:root {
  --front-ink: #102033;
  --front-muted: #5c6b7a;
  --front-line: #dce4ed;
  --front-soft: #f5f8fb;
  --front-blue: #2563eb;
  --front-blue-dark: #1747b8;
  --front-teal: #0f9f8f;
  --front-green: #14945c;
  --front-amber: #b7791f;
  --front-red: #c2413a;
  --front-shadow: 0 22px 54px rgba(23, 40, 63, 0.12);
}

html.bicrmy-front-root,
html.bicrmy-front-root body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--front-ink);
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bicrmy-front-page,
.bicrmy-expired-page {
  overflow-x: hidden;
}

.bicrmy-front-page a {
  color: inherit;
  text-decoration: none;
}

.bicrmy-front-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.bicrmy-front-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 237, 0.78);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.bicrmy-front-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.bicrmy-front-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.bicrmy-front-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bicrmy-front-links,
.bicrmy-front-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bicrmy-front-links a {
  color: var(--front-muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.bicrmy-front-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--front-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--front-ink);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.bicrmy-front-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.42);
}

.bicrmy-front-page .bicrmy-front-btn-primary,
.bicrmy-expired-page .bicrmy-front-btn-primary,
.bicrmy-front-btn-primary {
  border-color: var(--front-blue);
  background: var(--front-blue);
  color: #ffffff !important;
}

.bicrmy-front-page .bicrmy-front-btn-primary:hover,
.bicrmy-expired-page .bicrmy-front-btn-primary:hover,
.bicrmy-front-btn-primary:hover {
  background: var(--front-blue-dark);
  color: #ffffff !important;
}

.bicrmy-front-btn-primary i,
.bicrmy-front-btn-primary span,
.bicrmy-front-btn-primary strong {
  color: #ffffff !important;
}

.bicrmy-front-hero {
  padding: 74px 0 46px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 72%),
    radial-gradient(circle at 72% 18%, rgba(15, 159, 143, 0.18), transparent 36%);
}

.bicrmy-front-hero .bicrmy-front-shell {
  width: min(100% - 32px, 1280px);
}

.bicrmy-front-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}

.bicrmy-front-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--front-blue-dark);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.bicrmy-front-hero h1 {
  margin: 0;
  color: #0f1d2d;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.bicrmy-front-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--front-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.bicrmy-front-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.bicrmy-front-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.bicrmy-front-trust div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--front-line);
  border-radius: 8px;
  background: #ffffff;
}

.bicrmy-front-trust strong,
.bicrmy-front-trust span {
  display: block;
}

.bicrmy-front-trust strong {
  font-size: 1.2rem;
  color: var(--front-ink);
}

.bicrmy-front-trust span {
  margin-top: 2px;
  color: var(--front-muted);
  font-size: 0.82rem;
}

.bicrmy-front-preview {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(220, 228, 237, 0.96);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--front-shadow);
}

.bicrmy-front-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--front-line);
  background: #f7fafc;
}

.bicrmy-front-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7dee8;
}

.bicrmy-front-preview-dot:nth-child(1) { background: #ef6a5b; }
.bicrmy-front-preview-dot:nth-child(2) { background: #e5aa35; }
.bicrmy-front-preview-dot:nth-child(3) { background: #2fbf71; }

.bicrmy-front-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  min-height: 520px;
}

.bicrmy-front-side {
  min-width: 0;
  padding: 18px 14px;
  border-right: 1px solid var(--front-line);
  background: #0f1d2d;
  color: #dbeafe;
}

.bicrmy-front-side-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 0 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.86rem;
}

.bicrmy-front-side-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bicrmy-front-side-label {
  display: block;
  margin: 14px 8px 8px;
  color: rgba(219, 234, 254, 0.52);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bicrmy-front-side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 34px;
  margin-bottom: 5px;
  padding: 0 9px;
  border-radius: 7px;
  color: rgba(219, 234, 254, 0.78);
  font-size: 0.78rem;
}

.bicrmy-front-side-item i {
  flex: 0 0 auto;
  width: 17px;
  text-align: center;
}

.bicrmy-front-side-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bicrmy-front-side-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.bicrmy-front-main {
  min-width: 0;
  padding: 20px;
  background: #f6f9fc;
}

.bicrmy-front-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bicrmy-front-preview-top span,
.bicrmy-front-preview-top strong {
  display: block;
}

.bicrmy-front-preview-top span {
  color: var(--front-muted);
  font-size: 0.72rem;
}

.bicrmy-front-preview-top strong {
  margin-top: 2px;
  font-size: 1rem;
}

.bicrmy-front-preview-top button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--front-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--front-blue-dark);
}

.bicrmy-front-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bicrmy-front-metric,
.bicrmy-front-chart,
.bicrmy-front-table {
  border: 1px solid var(--front-line);
  border-radius: 8px;
  background: #ffffff;
}

.bicrmy-front-metric {
  padding: 16px;
}

.bicrmy-front-metric span {
  display: block;
  color: var(--front-muted);
  font-size: 0.78rem;
}

.bicrmy-front-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.42rem;
}

.bicrmy-front-chart {
  margin-top: 14px;
  padding: 18px;
}

.bicrmy-front-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 10px;
  height: 180px;
  margin-top: 14px;
}

.bicrmy-front-bars span {
  display: block;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--front-blue), var(--front-teal));
}

.bicrmy-front-table {
  margin-top: 14px;
  overflow: hidden;
}

.bicrmy-front-table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--front-line);
  color: var(--front-muted);
  font-size: 0.86rem;
}

.bicrmy-front-table-row:last-child {
  border-bottom: 0;
}

.bicrmy-front-section {
  padding: 72px 0;
}

.bicrmy-front-section.alt {
  background: var(--front-soft);
}

.bicrmy-front-section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.bicrmy-front-section-head h2 {
  margin: 0;
  color: #0f1d2d;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.bicrmy-front-section-head p {
  margin: 14px 0 0;
  color: var(--front-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.bicrmy-front-feature-grid,
.bicrmy-front-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bicrmy-front-feature,
.bicrmy-front-module,
.bicrmy-front-faq-item {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--front-line);
  border-radius: 8px;
  background: #ffffff;
}

.bicrmy-front-feature i,
.bicrmy-front-module i {
  color: var(--front-blue);
  font-size: 1.55rem;
}

.bicrmy-front-feature h3,
.bicrmy-front-module h3,
.bicrmy-front-faq-item h3 {
  margin: 14px 0 8px;
  font-size: 1.04rem;
  font-weight: 900;
}

.bicrmy-front-feature p,
.bicrmy-front-module p,
.bicrmy-front-faq-item p {
  margin: 0;
  color: var(--front-muted);
  line-height: 1.65;
}

.bicrmy-front-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bicrmy-front-price-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--front-line);
  border-radius: 8px;
  background: #ffffff;
}

.bicrmy-front-price-card.featured {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: var(--front-shadow);
}

.bicrmy-front-price-code {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 6px;
  background: #eaf2ff;
  color: var(--front-blue-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.bicrmy-front-price-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.bicrmy-front-price {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.bicrmy-front-price strong {
  font-size: 2.2rem;
  line-height: 1;
}

.bicrmy-front-price span {
  color: var(--front-muted);
}

.bicrmy-front-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--front-muted);
  font-size: 0.92rem;
}

.bicrmy-front-list li {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: flex-start;
}

.bicrmy-front-list i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--front-green);
}

.bicrmy-front-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bicrmy-front-price-card .bicrmy-front-btn {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-right: 12px;
  padding-left: 12px;
  white-space: normal;
}

.bicrmy-front-form-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 68%);
}

.bicrmy-front-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 0.62fr);
  gap: 32px;
  align-items: start;
  padding: 48px 0;
}

.bicrmy-front-form-panel,
.bicrmy-front-info-panel,
.bicrmy-expired-panel {
  border: 1px solid var(--front-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--front-shadow);
}

.bicrmy-front-form-panel,
.bicrmy-front-info-panel {
  padding: 28px;
}

.bicrmy-front-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bicrmy-front-field {
  display: grid;
  gap: 7px;
}

.bicrmy-front-field.full {
  grid-column: 1 / -1;
}

.bicrmy-front-field label {
  color: var(--front-ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.bicrmy-front-field input,
.bicrmy-front-field select,
.bicrmy-front-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--front-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--front-ink);
  font: inherit;
  box-sizing: border-box;
}

.bicrmy-front-field textarea {
  min-height: 96px;
  padding: 12px;
}

.bicrmy-front-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 8px;
  line-height: 1.55;
}

.bicrmy-front-alert.success {
  background: #eaf8f0;
  color: #116642;
}

.bicrmy-front-alert.error {
  background: #fff1f0;
  color: #a4332e;
}

.bicrmy-front-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bicrmy-front-footer {
  border-top: 1px solid var(--front-line);
  padding: 28px 0;
  color: var(--front-muted);
}

.bicrmy-front-footer .bicrmy-front-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bicrmy-expired-page {
  min-height: 100vh;
  background: #f6f9fc;
  padding: 34px 0;
}

.bicrmy-expired-shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.bicrmy-expired-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.bicrmy-expired-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.bicrmy-expired-panel {
  padding: 24px;
}

.bicrmy-expired-panel .bicrmy-front-pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bicrmy-expired-panel select,
.bicrmy-expired-panel input,
.bicrmy-expired-panel textarea {
  box-sizing: border-box;
  max-width: 100%;
}

.bicrmy-expired-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7e6;
  color: var(--front-amber);
  font-weight: 900;
}

.bicrmy-paytr-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
}

@media (max-width: 1100px) {
  .bicrmy-front-hero-grid,
  .bicrmy-front-form-wrap,
  .bicrmy-expired-grid {
    grid-template-columns: 1fr;
  }

  .bicrmy-front-preview {
    max-width: 820px;
  }

  .bicrmy-front-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1260px) and (min-width: 1101px) {
  .bicrmy-front-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bicrmy-front-shell,
  .bicrmy-expired-shell {
    width: min(100% - 22px, 1180px);
  }

  .bicrmy-front-nav,
  .bicrmy-front-footer .bicrmy-front-shell,
  .bicrmy-expired-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .bicrmy-front-links {
    display: none;
  }

  .bicrmy-front-actions,
  .bicrmy-front-hero-actions {
    width: 100%;
  }

  .bicrmy-front-actions .bicrmy-front-btn,
  .bicrmy-front-hero-actions .bicrmy-front-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
  }

  .bicrmy-front-dashboard {
    grid-template-columns: minmax(144px, 0.46fr) minmax(0, 1fr);
    min-height: 360px;
  }

  .bicrmy-front-side {
    display: block;
    padding: 12px 8px;
  }

  .bicrmy-front-side-brand {
    gap: 7px;
    margin-bottom: 10px;
    padding: 0 6px 9px;
    font-size: 0.72rem;
  }

  .bicrmy-front-side-brand img {
    width: 22px;
    height: 22px;
  }

  .bicrmy-front-side-label {
    margin: 10px 6px 6px;
    font-size: 0.56rem;
  }

  .bicrmy-front-side-item {
    min-height: 30px;
    gap: 6px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .bicrmy-front-side-item i {
    width: 14px;
  }

  .bicrmy-front-main {
    padding: 12px;
  }

  .bicrmy-front-preview-bar {
    height: 38px;
    padding: 0 12px;
  }

  .bicrmy-front-preview-top {
    margin-bottom: 10px;
  }

  .bicrmy-front-preview-top button {
    width: 32px;
    height: 32px;
  }

  .bicrmy-front-metric {
    padding: 12px;
  }

  .bicrmy-front-metric strong {
    font-size: 1.08rem;
  }

  .bicrmy-front-metrics,
  .bicrmy-front-trust,
  .bicrmy-front-feature-grid,
  .bicrmy-front-module-grid,
  .bicrmy-front-pricing-grid,
  .bicrmy-expired-panel .bicrmy-front-pricing-grid,
  .bicrmy-front-faq,
  .bicrmy-front-form-grid {
    grid-template-columns: 1fr;
  }

  .bicrmy-front-metrics {
    grid-template-columns: 1fr;
  }

  .bicrmy-front-chart {
    padding: 14px;
  }

  .bicrmy-front-bars {
    height: 130px;
    gap: 6px;
  }

  .bicrmy-front-section {
    padding: 52px 0;
  }

  .bicrmy-front-table-row {
    grid-template-columns: 1fr;
  }
}
