/* ════════════════════════════════════════════════════════════════════
   AdvaBoost — Components CSS
   Reusable component styles: buttons, cards, forms, nav, badges.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--fn);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: var(--r);
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn.lg { padding: 15px 28px; font-size: .98rem; }
.btn.sm { padding: 8px 16px; font-size: .85rem; }

.btn-primary {
  background: var(--green);
  color: #051420;                    /* darker than --bg for stronger contrast */
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover {
  background: var(--green-l);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--t1);
  border-color: var(--bdr2);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green-l);
}

.btn-ghost {
  background: transparent;
  color: var(--t2);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--green-l); }

.btn-gold {
  background: var(--gold);
  color: #1a1306;
  font-weight: 700;
}
.btn-gold:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Dual-price CTA — "Začít za 2 430 Kč / 99 €" inside .btn */
.btn .cta-label {
  font-weight: 600;
  margin-right: 4px;
}
.btn .cta-price-local {
  font-family: var(--fm);
  font-weight: 700;
  letter-spacing: -.01em;
}
.btn .cta-price-eur {
  font-family: var(--fm);
  font-weight: 700;
  font-size: 1em;             /* equal-height to CZK price */
  margin-left: 4px;
  opacity: 1;
}
/* Sticky CTA layout (mobile) — narrower, tighter */
.sticky-cta .cta-label { margin-right: 4px; font-weight: 600; }
.sticky-cta .cta-price-local { font-weight: 700; }
.sticky-cta .cta-price-eur { margin-left: 4px; font-weight: 700; font-size: 1em; }

@media (max-width: 480px) {
  .btn.lg { padding: 14px 18px; font-size: .9rem; }
}

/* ─── Navigation ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,25,47,.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bdr);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fs);
  font-size: 1.25rem;
  color: var(--t1);
  font-weight: 500;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: .9rem;
  color: var(--t2);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--green); }

/* Desktop submenu (hover dropdown) */
.nav-item.has-submenu {
  position: relative;
}
.nav-item .nav-link-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-item .nav-link-main::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--t3);
  margin-left: 4px;
  transition: transform var(--t);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 240px;
  background: var(--bg3);
  border: 1px solid var(--bdr2);
  border-radius: var(--rl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t) var(--ease);
  box-shadow: var(--shadow);
}
.nav-item.has-submenu:hover .nav-submenu,
.nav-item.has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu a {
  display: block;
  padding: 9px 14px;
  font-size: .86rem;
  color: var(--t2);
  border-radius: var(--r);
  transition: all var(--t);
}
.nav-submenu a:hover {
  background: var(--surface);
  color: var(--green);
}

.nav-cta {
  background: var(--green);
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: var(--r);
  font-weight: 600;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--green-l);
  color: var(--bg) !important;
}

/* Language switcher */
.nav-lang-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-lang-label {
  display: none;            /* hidden on desktop, shown on mobile */
  font-family: var(--fm);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t3);
}
.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 3px;
}
.lang-switch button {
  font-family: var(--fm);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--t3);
  padding: 4px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  transition: all var(--t);
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--green);
  color: var(--bg);
  font-weight: 600;
}
.lang-switch button:hover:not(.active) { color: var(--t1); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--t1);
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 10000;        /* above the mobile menu (9999) so it can close it */
}
.nav-toggle svg { width: 24px; height: 24px; transition: transform .25s var(--ease); }
/* When menu is open, show X icon by rotating + hide the lines */
body.nav-open .nav-toggle svg .line-top    { transform: translate(0,6px) rotate(45deg);  transform-origin: center; }
body.nav-open .nav-toggle svg .line-mid    { opacity: 0; }
body.nav-open .nav-toggle svg .line-bot    { transform: translate(0,-6px) rotate(-45deg); transform-origin: center; }
.nav-toggle svg line { transition: all .25s var(--ease); }

@media (max-width: 880px) {
  .nav-inner { padding: 14px 18px; gap: 14px; }
  .nav-links {
    /* Bulletproof opaque mobile menu — explicit non-CSS-var background */
    position: fixed !important;
    top: 60px;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: calc(100vh - 60px);
    background-color: #0A192F !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 80px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--t2dur) var(--ease);
    overflow-y: auto;
    border-top: 1px solid var(--bdr);
    visibility: hidden;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  .nav-links > a,
  .nav-links > .nav-item > .nav-link-main {
    font-size: 1.05rem;
    padding: 14px 12px;
    border-bottom: 1px solid var(--bdr);
    color: var(--t1);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-item.has-submenu .nav-link-main::after { display: none; }
  /* Submenu — always visible inline on mobile, indented */
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 14px;
    min-width: 0;
    margin: 0;
  }
  .nav-submenu a {
    padding: 9px 12px;
    font-size: .92rem;
    color: var(--t3);
    border-radius: 6px;
  }
  .nav-submenu a:hover {
    color: var(--green);
    background: var(--surface);
  }
  /* Language: dedicated block on mobile */
  .nav-lang-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 12px 14px;
    border-bottom: 1px solid var(--bdr);
    margin-top: 8px;
  }
  .nav-lang-label { display: inline-block; }
  .lang-switch { width: 100%; justify-content: space-between; }
  .lang-switch button { flex: 1; padding: 8px 4px; font-size: .8rem; }
  /* CTA at the bottom of menu */
  .nav-cta {
    margin-top: 18px;
    padding: 14px 22px;
    font-size: 1rem;
    text-align: center;
    display: block;
  }
  .nav-toggle { display: inline-flex; }
}

/* ─── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--rl);
  padding: 28px;
  transition: all var(--t2dur) var(--ease);
  position: relative;
}
.card:hover {
  background: var(--surface2);
  border-color: var(--bdr2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.product-card.tier-flagship {
  background: linear-gradient(135deg, var(--surface2), var(--gold-bg));
  border-color: var(--gold-bdr);
}
.product-card.tier-strategic {
  border-color: var(--bdr2);
}
.product-card .tier-badge {
  display: inline-block;
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t3);
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--bdr);
  align-self: flex-start;
}
.product-card .tier-badge.entry      { color: var(--green); background: var(--green-bg); border-color: var(--green-bdr); }
.product-card .tier-badge.strategic  { color: var(--t1); }
.product-card .tier-badge.flagship   { color: var(--gold); background: var(--gold-bg); border-color: var(--gold-bdr); }

.product-card h3 {
  margin-top: 4px;
  font-size: 1.4rem;
}
.product-card .tagline {
  font-size: .95rem;
  color: var(--t3);
  line-height: 1.65;
}
.product-card .features {
  margin: 12px 0;
  flex-grow: 1;
}
.product-card .features li {
  padding: 6px 0 6px 22px;
  font-size: .88rem;
  position: relative;
  color: var(--t2);
}
.product-card .features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Pricing block */
.pricing {
  display: flex;
  gap: 12px;
  margin: 16px 0 4px;
  padding-top: 16px;
  border-top: 1px solid var(--bdr);
}
.price-option {
  display: grid;
  /* Fixed-height rows so AI/HYBRID + N/A boxes align across the grid:
     label (top, fixed) — spacer (1fr) — value+eur block (bottom) — turnaround */
  grid-template-rows: auto 1fr auto auto auto;
  gap: 0;
  padding: 14px 16px 14px;
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  transition: all var(--t);
  min-height: 140px;
}
.price-option:hover { border-color: var(--bdr2); }
.price-option .label {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--t3);
  text-transform: uppercase;
  min-height: 2.2em;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  grid-row: 1;                 /* always top */
}
.price-option .value {
  font-family: var(--fm);
  font-size: 1.2rem;
  color: var(--t1);
  font-weight: 700;
  letter-spacing: -.01em;
  align-self: end;
  grid-row: 3;                  /* always bottom-anchored row */
  margin-top: 8px;
}
/* EUR price — prominent (Czech law: dual display required since 2025) */
.price-option .value-eur {
  font-family: var(--fm);
  font-size: 1rem;
  color: var(--t2);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: -.005em;
  grid-row: 4;
}
.price-option .hybrid-hint {
  font-family: var(--fn);
  font-size: .62rem;
  color: var(--t3);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  display: inline-block;
  white-space: nowrap;
}
.price-option .turnaround {
  font-size: .82rem;
  color: var(--t3);
  margin-top: 6px;
  font-weight: 500;
  grid-row: 5;
}
.price-option.ai .label { color: var(--green); }
.price-option.hybrid .label { color: var(--gold); }
.price-option.disabled {
  opacity: .35;
  pointer-events: none;
}

.product-card .card-cta {
  display: block;
  text-align: center;
  background: var(--green);
  color: var(--bg);
  padding: 12px;
  border-radius: var(--r);
  margin-top: 12px;
  font-weight: 600;
  font-size: .94rem;
  transition: all var(--t);
}
.product-card .card-cta:hover {
  background: var(--green-l);
}

/* ─── Forms ───────────────────────────────────────────────────────── */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-row label {
  font-size: .82rem;
  color: var(--t2);
  font-weight: 500;
}
.form-row label .required {
  color: var(--green);
  font-weight: 700;
}
.form-row .hint {
  font-size: .76rem;
  color: var(--t4);
  margin-top: 2px;
}
.input, .select, .textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--bdr2);
  border-radius: var(--r);
  padding: 11px 14px;
  color: var(--t1);
  font-size: .94rem;
  transition: border-color var(--t);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--green);
}
.textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238FAFD4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* Delivery mode toggle */
.toggle-group {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--bdr2);
  border-radius: var(--r);
  padding: 3px;
}
.toggle-group button {
  flex: 1;
  padding: 9px 12px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--t3);
  border-radius: 5px;
  transition: all var(--t);
}
.toggle-group button.active {
  background: var(--green);
  color: var(--bg);
  font-weight: 600;
}
.toggle-group button:hover:not(.active):not(:disabled) { color: var(--t1); }
.toggle-group button:disabled { opacity: .35; cursor: not-allowed; }

/* Checkboxes & radio */
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
}
.check-row input { margin-top: 4px; }
.check-row label { font-size: .85rem; color: var(--t2); }

/* ─── Badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  font-family: var(--fm);
  font-size: .72rem;
  letter-spacing: .04em;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-bdr);
}
.badge.dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* ─── Sticky CTA (mobile) ─────────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 88;
  background: var(--green);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: var(--rl);
  text-align: center;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(19,211,210,.4);
  transform: translateY(120%);
  transition: transform var(--t2dur) var(--ease);
  /* prevent inline children (cta-price-local etc.) from forcing overflow */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: normal;
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.2;
}
.sticky-cta.show { transform: translateY(0); }
@media (max-width: 720px) {
  /* mobile-only — hidden by default, shown after scroll via JS */
  .sticky-cta { display: none; }
  .sticky-cta.show { display: flex; }
}
@media (min-width: 721px) {
  .sticky-cta { display: none !important; }
}
/* When cookie banner is up, hide sticky CTA */
body.cookie-active .sticky-cta {
  display: none !important;
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--bg4);
  border-top: 1px solid var(--bdr);
  padding: 56px 0 28px;
  color: var(--t3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h5 {
  font-family: var(--fn);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 14px;
}
.footer ul li { padding: 5px 0; font-size: .88rem; }
.footer ul li a { color: var(--t2); transition: color var(--t); }
.footer ul li a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--bdr);
  font-size: .82rem;
  color: var(--t4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer .brand-line {
  font-family: var(--fs);
  font-size: 1.4rem;
  color: var(--t1);
  margin-bottom: 8px;
  display: block;
}
.footer .brand-desc { font-size: .9rem; line-height: 1.7; max-width: 380px; }

/* ─── Cookies banner ─────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 540px;
  width: calc(100% - 32px);
  background: var(--bg3);
  border: 1px solid var(--bdr2);
  border-radius: var(--rl);
  padding: 16px 18px;
  z-index: 95;            /* above sticky CTA */
  box-shadow: var(--shadow-lg);
  display: none;
  font-size: .85rem;
  box-sizing: border-box;
}
.cookie-banner.show {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner .text {
  flex: 1;
  color: var(--t2);
  line-height: 1.55;
}
.cookie-banner button {
  background: var(--green);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .82rem;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-banner button:hover { background: var(--green-l); }

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 12px 14px;
    font-size: .8rem;
  }
  .cookie-banner.show {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie-banner button {
    width: 100%;
    padding: 11px;
  }
}
/* ─── AdvaBoost v3 — additions to components.css/pages.css ───
   Append to bottom of components.css (or merge selectively). 
   Targets: 3×3 product grid, market_preview styling, promo, credit badges.
*/

/* ─── 3×3 Products grid ──────────────────────────────────────────── */
.products-grid.products-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 1180px) {
  .products-grid.products-grid-3x3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .products-grid.products-grid-3x3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 620px) {
  .products-grid.products-grid-3x3 { grid-template-columns: 1fr; }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--rl);
  padding: 22px;
  text-decoration: none;
  transition: all var(--t) var(--ease);
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.product-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.product-card .pc-name {
  font-family: var(--fs);                 /* now Inter — modern sans */
  font-size: 1.18rem;
  color: var(--t1);
  margin: 6px 0;
  letter-spacing: -.02em;
  line-height: 1.25;
  font-weight: 650;
  /* prevent long titles from breaking layout */
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}
.product-card .pc-tagline {
  font-size: .94rem;
  color: var(--t2);
  margin: 0 0 14px 0;
  line-height: 1.55;
  min-height: 2.6em;
  font-weight: 400;
  overflow-wrap: break-word;
}
.product-card .pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: .9rem;
  color: var(--t2);
  font-weight: 400;
}
.product-card .pc-features li {
  padding: 4px 0;
  line-height: 1.5;
  color: var(--t2);
  overflow-wrap: break-word;
}
.product-card .pc-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
  align-items: stretch;          /* equal heights for AI + Hybrid boxes */
}
.product-card .pc-prices > .price-option {
  height: 100%;                  /* stretch fills the row */
}
.product-card .card-cta {
  display: block;
  text-align: center;
  background: var(--green);
  color: var(--bg);
  padding: 11px;
  border-radius: var(--r);
  margin-top: 8px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
}

/* Tier badges — high contrast on dark UI */
.tier-badge {
  display: inline-block;
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.tier-badge.preview   { color: #5FE6E5; background: rgba(95,230,229,.18);  border: 1px solid rgba(95,230,229,.50); }
.tier-badge.entry     { color: #5FE6E5; background: rgba(95,230,229,.18);  border: 1px solid rgba(95,230,229,.50); }
.tier-badge.marketing { color: #B6C5DF; background: rgba(182,197,223,.14); border: 1px solid rgba(182,197,223,.40); }
.tier-badge.strategic { color: #E0CC95; background: rgba(224,204,149,.14); border: 1px solid rgba(224,204,149,.40); }
.tier-badge.flagship  { color: #F0D78A; background: rgba(240,215,138,.16); border: 1px solid rgba(240,215,138,.45); }

/* Special styling for the preview tier card */
.product-card.tier-preview {
  background: linear-gradient(135deg, var(--surface), rgba(22,224,140,.04));
  border-color: rgba(22,224,140,.20);
}
.product-card.tier-preview:hover {
  border-color: rgba(22,224,140,.55);
}

.product-card.tier-flagship {
  background: linear-gradient(135deg, var(--surface2), var(--gold-bg));
  border-color: var(--gold-bdr);
}

/* Promo badge on cards */
.promo-badge {
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: #ff4d6d;
  color: #fff;
  font-weight: 700;
}

/* Strikethrough for the original price when promo is live */
.price-option .value-strike {
  font-family: var(--fm);
  font-size: .74rem;
  color: var(--t4);
  text-decoration: line-through;
  margin-top: -1px;
}

/* Preview note inside the market_preview card */
.product-card .credit-note {
  font-family: var(--fm);
  font-size: .72rem;
  color: #6FE3E2;
  background: rgba(19,211,210,.12);
  border: 1px dashed rgba(19,211,210,.45);
  border-radius: 6px;
  padding: 7px 9px;
  margin: 6px 0 10px;
  text-align: center;
  letter-spacing: .02em;
}
/* Invisible spacer in non-preview cards — reserves height so all cards' CTAs/prices align */
.product-card .credit-note-spacer {
  color: transparent;
  background: transparent;
  border-color: transparent;
  pointer-events: none;
  user-select: none;
}

/* ─── Product detail: cross-credit highlight box ─────────────────── */
.credit-highlight {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(22,224,140,.10), rgba(22,224,140,.04));
  border: 1px solid rgba(22,224,140,.30);
  border-radius: var(--rl);
  margin: 22px 0;
}
.credit-highlight .credit-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: #16E0DF;
  flex-shrink: 0;
}
.credit-highlight .credit-body strong {
  display: block;
  color: var(--t1);
  font-size: .95rem;
  margin-bottom: 4px;
}
.credit-highlight .credit-body p {
  margin: 0;
  color: var(--t2);
  font-size: .88rem;
  line-height: 1.55;
}

/* ─── Brief form: credit badge ───────────────────────────────────── */
.credit-badge {
  display: none;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(22,224,140,.10), rgba(22,224,140,.04));
  border: 1px solid rgba(22,224,140,.30);
  border-radius: var(--rl);
  color: var(--t1);
  font-size: .9rem;
  margin: 14px 0;
  line-height: 1.55;
}
.credit-badge.show { display: block; }
.credit-badge strong { color: #16E0DF; margin-right: 6px; }

/* ─── B2B/Solo toggle row ────────────────────────────────────────── */
.b2b-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  margin-bottom: 18px;
}
.b2b-toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .92rem;
  color: var(--t2);
}
.b2b-toggle-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

/* Hide B2B-only fields when solo */
[data-b2b-only] { transition: opacity .2s ease; }

/* ─── Hybrid hint inline label ───────────────────────────────────── */
.hybrid-hint {
  font-family: var(--fn);
  font-size: .62rem;
  color: var(--t4);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  margin-left: 2px;
}
