/* ============================================
   MERGED STYLES: ca20 + ca23
   Base styles from style_ca20.css merged below
   ============================================ */

/* === BASE STYLES FROM style_ca20.css === */
/* === ca6f base reset === */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* SUMMARY – desktop and landscape layout */
    @media (orientation: landscape), (min-width: 541px) {
      .summary-wrap {
        display: grid;
        grid-template-columns: 15fr 8fr; /* JS kirjutab vajadusel px-idega üle */
        column-gap: 10px;
        align-items: start;
      }

      .summary-hero {
        position: relative;
        aspect-ratio: 9 / 16;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid var(--accent-2);
        background: rgba(255, 255, 255, 0.05);
      }

      .summary-right {
        height: 100%;
        display: grid;
        /* Desktop/Landscape: 2 columns x 5 rows (compact like mobile) */
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

      .summary-tile {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--accent-2);
        background: rgba(255, 255, 255, 0.05);
        aspect-ratio: 3 / 4;
      }

      .summary-dim { display: none !important; }

      .summary-icon-wrap {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
      }

      .summary-icon {
        font-size: 35px;
        opacity: .95;
      }
    }

    /* Desktop content widths defined later in the file (late overrides) */

    /* Style step (1) – show two style cards side‑by‑side in landscape/desktop */
    @media (orientation: landscape), (min-width: 768px) {
      .style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
      /* Constrain summary wrap to keep tiles compact */
      .summary-wrap { max-width: 28rem; margin-left: auto; margin-right: auto; }
      /* Slightly increase gaps to reduce per-tile width further */
      .summary-right { gap: 12px; }
    }

html {
  scroll-behavior: smooth;
}

/* Normalize text auto-sizing across mobile browsers (Android/iOS) */
html, body{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
      min-height: 100vh;
      background: linear-gradient(143deg, var(--bg-1, #4e283c) 37.31%, var(--bg-2, #271a2b) 112.95%) !important;
      color: #fff;
      font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
      overflow-x: hidden;
    }

/* === RTL (Arabic) minimal overrides === */
html[dir="rtl"] body { direction: rtl; }
/* Progress stepper flows right-to-left visually */
html[dir="rtl"] .progress-stepper{ direction: rtl; }
/* Mirror the shine animation direction on primary buttons */
html[dir="rtl"] .btn-primary::before{ left: auto; right: 0; transform: translateX(120%); }
html[dir="rtl"] .btn-primary:not(:disabled):hover::before{ transform: translateX(-120%); }
/* Mirror navigation chevrons if SVGs are used inside buttons */
html[dir="rtl"] #backBtn svg,
html[dir="rtl"] #nextBtn svg{ transform: scaleX(-1); }

    .video-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      height: 100svh;
      object-fit: cover;
      z-index: -2;
      pointer-events: none;
      will-change: transform;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      z-index: -1;
      pointer-events: none;
    }

    .hidden {
      display: none !important;
    }

    .page-wrapper {
      position: relative;
      min-height: 100vh;
      padding-top: 0;
      padding-bottom: 0;
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }

.content {
      width: min(92vw, 26rem);
      display: flex;
      flex-direction: column;
      gap: 14px;
      text-align: center;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 16px;
      padding: 20px 18px;
      padding-top: calc(20px + env(safe-area-inset-top, 0px));
      padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
      backdrop-filter: saturate(120%) blur(10px);
      -webkit-backdrop-filter: saturate(120%) blur(10px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
      margin-bottom: 20px;
      position: relative;
      overflow: hidden;
}

    .content>*:last-child {
      margin-bottom: 0 !important;
    }

    .trust-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 8px 12px;
      z-index: 10;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.8);
      animation: slideUp 0.5s ease-out 1s both;
    }

    @keyframes slideUp {
      from {
        transform: translateY(100%);
      }

      to {
        transform: translateY(0);
      }
    }

    .trust-item {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .trust-icon {
      width: 16px;
      height: 16px;
      opacity: 0.9;
    }

    .value-banner {
      background: #151515;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 8px 12px;
      margin-bottom: 10px;
      text-align: center;
      animation: fadeIn .8s ease-out .3s both;
    }

    /* Make value banner look interactive when used as CTA on step 7 */
    .value-banner.clickable { cursor: pointer; }
    .value-banner.clickable:hover { background: rgba(255,255,255,0.08); }
    .summary-wrap.clickable { cursor: pointer; }
    /* Dim removed on summary */

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .value-text {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .value-text .highlight {
      color: var(--accent-2);
      font-weight: 700;
      transition: transform .2s ease;
      display: inline-block;
    }

    @media (max-width:390px) {
      .value-banner {
        padding: 7px 10px;
        margin-bottom: 8px;
      }

      .value-text {
        font-size: 13px;
      }
    }

    .progress-bar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: rgba(255, 255, 255, 0.1);
      border-top-left-radius: inherit;
      border-top-right-radius: inherit;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
      transition: width .3s cubic-bezier(.4, 0, .2, 1);
      box-shadow: 0 0 10px color-mix(in srgb, var(--accent-2) 40%, transparent);
    }

    .section-title {
      font-weight: 800;
      font-size: clamp(17px, 4vw, 24px);
      letter-spacing: -0.5px;
      line-height: 1.3;
      margin: 0;
      color: #fff;
      text-transform: uppercase;

    }

    .section-subtitle {
      font-weight: 600;
      font-size: clamp(14px, 4vw, 18px);
      line-height: 1.2;
      margin: 0 0 10px 0;
      color: #fff;
    }

    .btn-primary {
      background: linear-gradient(103deg, #de8424, #fc658f 31%, #8049f3);
      color: #fff;
      border: 0;
      border-radius: 14px;
      padding: 16px 24px;
      font-weight: 700;
      font-size: 18px;
      text-transform: uppercase;
      letter-spacing: .5px;
      line-height: 1;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      min-height: 52px;
      margin-top: 24px;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(255, 112, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
      transition: all .2s cubic-bezier(.4, 0, .2, 1);
      position: relative;
      overflow: hidden;
    }

    .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;                 /* jääb konteineri sisse */
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-120%);      /* start väljaspool vasakul */
  transition: transform .6s ease;    /* animatsioon transform'iga */
  pointer-events: none;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.btn-primary:not(:disabled):hover::before {
  transform: translateX(120%);       /* libise paremale välja */
}
/* Prevent hover-lighten on single-action steps (CTA step re-enables via .cta-action) */
.navigation-wrapper.single-action:not(.cta-action) .btn-primary::before{ display: none; }
.navigation-wrapper.single-action:not(.cta-action) .btn-primary:not(:disabled):hover{
  background: var(--accent-1) !important;
}
.btn-primary.is-pressed,
.btn-primary:not(:disabled):active{
  transform: scale(0.96) translateY(3px) !important;
  filter: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

    .btn-primary:disabled {
      opacity: .4;
      cursor: not-allowed;
    }

@media (hover: hover) {
  .btn-primary:not(:disabled):hover {
    background: linear-gradient(103deg, #de8424, #fc658f 31%, #8049f3);
    box-shadow: 0 12px 32px rgba(255, 112, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}
@supports (-webkit-touch-callout: none) {
  .btn-primary:not(:disabled):active,
  .navigation-wrapper .btn-primary:not(:disabled):active,
  .navigation-wrapper .btn-primary.is-pressed{
    transform: scale(0.96) translateY(3px) !important;
    -webkit-transform: scale(0.96) translateY(3px) !important;
    background: var(--accent-2) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    filter: none !important;
    transition: transform .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s cubic-bezier(.4, 0, .2, 1) !important;
    -webkit-transition: -webkit-transform .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s cubic-bezier(.4, 0, .2, 1) !important;
  }
}
    .btn-primary.no-anim {
      animation: none !important;
    }

    .trust-mini {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      margin-top: 16px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.6);
      font-weight: 500;
      animation: fadeIn .5s ease-out .8s both;
    }

    .style-grid {      display: grid; grid-template-columns: 1fr 1fr;
      gap: 12px;
      width: 100%;
    }

    .style-card {
      position: relative;
      border-radius: 14px;
      overflow: hidden;
      border: 2px solid transparent;
      background: rgba(255, 255, 255, 0.05);
      aspect-ratio: 9/16;
      display: flex;
      align-items: stretch;
      justify-content: stretch;
      -webkit-tap-highlight-color: transparent;
      transition: all .2s ease;
      cursor: pointer;
    }

    .style-card button {
      all: unset;
      position: relative;
      width: 100%;
      height: 100%;
      cursor: pointer;
      display: block;
    }

.style-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  transition: transform .2s ease;
}

    @media(hover:hover) {
      .style-card:hover {
        transform: scale(1.03);
        border-color: rgba(255, 255, 255, 0.2);
      }
    }

    /* (old .style-badge capsule styles removed) */
    .style-card.selected {
      border-color: var(--accent-2);
      box-shadow:
        0 0 0 3px color-mix(in srgb, var(--accent-2) 35%, transparent),
        0 8px 24px color-mix(in srgb, var(--accent-2) 25%, transparent);
    }

    .style-check {
      position: absolute;
      right: 10px;
      top: 10px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
      display: none;
      place-items: center;
      z-index: 2;
      font-size: 16px;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(255, 112, 0, 0.3);
      animation: checkIn .3s cubic-bezier(.34, 1.56, .64, 1);
    }

    @keyframes checkIn {
      from {
        transform: scale(0);
      }

      to {
        transform: scale(1);
      }
    }

.style-card.selected .style-check {
  display: grid;
}

/* Selected style card: make video appear slightly larger */
.style-card.selected video{
  transform: scale(1.03);
}

    .grid {
      display: grid;
      gap: 10px;
      width: 100%;
    }

    .grid-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    .card {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      border: 2px solid rgba(33, 33, 33, 1);
      background: rgba(21, 21, 21, 1);
      aspect-ratio: 3/4;
      display: flex;
      align-items: stretch;
      justify-content: stretch;
      transition: all .2s ease;
      cursor: pointer;
    }

    .card button {
      all: unset;
      width: 100%;
      height: 100%;
      cursor: pointer;
      display: block;
      position: relative;
    }

/* Ensure injected media covers the card area (steps 2–4 images) */
.card button img,
.card button picture,
.card button video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform .2s ease;
}

    /* (old .badge capsule styles removed) */
    .check {
      display: none;
      position: absolute;
      right: 6px;
      top: 6px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
      place-items: center;
      z-index: 2;
      font-size: 12px;
      font-weight: 700;
      animation: checkIn .3s cubic-bezier(.34, 1.56, .64, 1);
    }

    .card.selected {
      border-color: var(--accent-2);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 35%, transparent);
    }

.card.selected .check {
  display: grid;
}

/* Selected cards: default scale-up (non-ethnicity) */
.card.selected button img,
.card.selected button picture,
.card.selected button video {
  transform: scale(1.03);
}

/* Ethnicity cards: single landscape image covers card */
.content #ethnicityGroup .card button img.eth-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .2s ease;
}
.content #ethnicityGroup .card.selected button img.eth-img { transform: scale(1.03); }

    /* (old .card.selected .badge gradient removed) */
    .card.age {
      aspect-ratio: 16/9;
    }

    .card.age .num {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: clamp(16px, 4.5vw, 20px);
      z-index: 2; /* above dim overlay */
    }

    .card .dim {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12));
      z-index: 1; /* dim above image */
    }

    .card.icon-card .icon-content {
      position: absolute;
      z-index: 2; /* above dim overlay */
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px;
    }

.card.icon-card .icon {
  font-size: 40px; /* bigger in all views */
  line-height: 1;
}

.card.icon-card .icon svg{
  display: block;
  width: 44px;
  height: 44px;
}

.card.icon-card[data-type="relationship"] .icon svg{
  width: 76px;
  height: 76px;
}

/* Hook: recolor relationship icons via currentColor */
.card.icon-card[data-type="relationship"] .icon{ color: #fff; }
.card.icon-card[data-type="relationship"] .icon svg path{ fill: currentColor !important; }

.card.icon-card.voice-card .icon {
  font-size: 36px; /* bigger in all views */
  color: #fff; /* default icon (triangle/bars) color via currentColor */
}

/* Mobile portrait: make step 5 emojis/icons larger */
@media (orientation: portrait) and (max-width: 540px){
  .card.icon-card .icon { font-size: 44px; }
.card.icon-card.voice-card .icon { font-size: 40px; }
}

.summary-icon svg{
  display: block;
  /* Icon sizes defined in ca23 section below for unified Voice/Relationship sizing */
}

/* Voice summary icon follows currentColor */
#summaryVoice .summary-icon { color: #fff; }

.summary-icon.summary-icon--text{
  font-size: 33px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0.02em;
  min-width: 2ch;
}

/* Relationship icon color hook - size defined in ca23 section below */
#summaryRelationship .summary-icon{ color: #fff; }
#summaryRelationship .summary-icon svg path{ fill: currentColor !important; }

.group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* Consistent spacing between groups (cards → next heading) */
.group + .group { margin-top: 14px; }
@media (min-width: 768px) {
  /* Desktop already adds .grid margin-bottom; keep inter-group top spacing modest */
  .group + .group { margin-top: 8px; }
}

    .group-title {
      font-weight: 700;
      font-size: clamp(15px, 3.85vw, 18px);
      letter-spacing: -0.5px;
      text-align: center;
      color: rgba(255, 255, 255, 1);
      margin-top: 5px;
      margin-bottom: 6px;
      text-transform: uppercase;

    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      min-height: 44px;
      margin-top: 8px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.05);
      color: rgba(255, 255, 255, 0.9);
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      transition: all .2s ease;
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .btn-secondary:active {
      transform: translateY(1px);
    }

    .content.animating {
      pointer-events: none;
    }

    @keyframes cardOut {
      0% {
        opacity: 1;
        transform: scale(1);
      }

      100% {
        opacity: 0;
        transform: scale(0.95);
      }
    }

    @keyframes cardIn {
      0% {
        opacity: 0;
        transform: scale(0.95);
      }

      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    .content.closing {
      animation: cardOut .2s ease-out forwards;
    }

    .content.opening {
      animation: cardIn .25s ease-out forwards;
    }

    @media (max-width:375px) {
      /* Unify small mobile portrait with larger portrait rules */
      .content { gap: 14px; padding: 20px 18px; }
      .section-title { font-size: clamp(15px, 3.6vw, 22px); }
      .section-subtitle { font-size: clamp(14px, 4vw, 18px); }
      .btn-primary { font-size: 18px; padding: 16px 24px; }
      .value-banner { padding: 8px 12px; margin-bottom: 10px; }
      .value-text { font-size: 13px; }
    }

    @media (orientation:landscape) and (max-height:500px) {
      .page-wrapper {
        padding-top: 20px;
      }

      .trust-bar {
        display: none;
      }
    }

    @keyframes shimmer {
      0% {
        background-position: -1000px 0;
      }

      100% {
        background-position: 1000px 0;
      }
    }

    .skeleton {
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
      background-size: 1000px 100%;
      animation: shimmer 2s infinite;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    button:focus-visible {
      outline: 2px solid var(--accent-2);
      outline-offset: 2px;
    }

    button:focus {
      outline: none;
    }

    button:focus:not(:focus-visible) {
      outline: none;
    }

button,
.style-card,
.card {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation; /* eliminate 300ms click delay on iOS */
}

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }

      .video-bg,
      .style-card video {
        display: none !important;
      }

      .overlay {
        background: rgba(0, 0, 0, 0.8);
      }
    }

    /* SUMMARY – mobile portrait layout */
    @media (max-width: 540px) {
      .summary-wrap {
        display: grid;
        grid-template-columns: 15fr 8fr;
        /* JS kirjutab täpsete px-idega üle */
        column-gap: 8px;
        align-items: start;
      }

      .summary-hero {
        position: relative;
        aspect-ratio: 9 / 16;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid var(--accent-2);
        background: rgba(255, 255, 255, 0.05);
      }

      .summary-right {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

      .summary-tile {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--accent-2);
        background: rgba(255, 255, 255, 0.05);
        aspect-ratio: 3 / 4;
      }

      .summary-dim {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4));
        z-index: 0;
      }

      .summary-icon-wrap {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
      }

      .summary-icon {
        font-size: 31px;
        opacity: .95;
      }
    }

    /* (old summary compact badge blocks removed) */
    /* Step heading spacing */
    .step-heading {
      margin: 0 0 8px 0;
    }

    /* Colored emoji inside section-title (disables text-clip mask) */
    .section-title .emoji {
      background: none !important;
      -webkit-background-clip: initial !important;
      background-clip: initial !important;
      -webkit-text-fill-color: initial !important;
      color: inherit;
      margin-right: 6px;
    }

    /* Edge-to-edge badge – COMMON BASE for all (style, card, summary) */
    .style-badge,
    .card .badge,
    .summary-wrap .summary-badge {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 4px 8px;
      font-size: 11px;
      line-height: 1.2;
      font-weight: 600; /* ühtlustatud */
      background: rgba(0, 0, 0, 0.60);
      color: #fff;
      border: 0;
      border-radius: 0;
      border-bottom-left-radius: inherit;
      border-bottom-right-radius: inherit;
      display: flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-transform: capitalize;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      z-index: 2;
      pointer-events: none;
    }

    /* Selected – one declaration is enough */
    .style-card.selected .style-badge,
    .card.selected .badge {
      background: rgba(0, 0, 0, 0.72) !important;
      border: 0 !important;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    /* Summary smaller badges (refinement) */
    .summary-right .summary-badge {
      padding: 2px 6px;
      font-size: 10px;
      line-height: 1.1;
    }
    @media (min-width: 768px) {
      .summary-right .summary-badge { font-size: 13px; padding: 4px 8px; }
      .summary-icon { font-size: 37px; }
    }
    @media (min-width: 1200px) {
      .summary-right .summary-badge { font-size: 14px; padding: 5px 10px; }
      .summary-icon { font-size: 40px; }
    }

    /* Responsive sizing (only size/padding, not positioning) */
    @media (max-width:540px) {
      .summary-wrap .summary-badge {
        font-size: 11px;
        padding: 3px 6px;
      }
    }

    @media (min-width:768px) {
      .summary-wrap .summary-badge {
        font-size: 12px;
        padding: 5px 10px;
      }
    }

    /* === THEME OVERRIDE: Purple ↔ Pink === */
/* Purple+Pink theme variables removed (using ca6a palette below) */

/* Content pane */
.content{
  background: linear-gradient(143deg, var(--bg-1) 37.31%, var(--bg-2) 112.95%) !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Cards (steps 2–6) + style cards (step 1) */
.card,
.style-card{
  background: var(--card-grad-1), var(--card-grad-2), var(--card-base) !important;
  border-color: var(--accent-1) !important; /* pink #FE2C55 */
}

/* Selected state */
.card.selected,
.style-card.selected{
  border-color: var(--accent-2) !important; /* aqua */
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent-2) 35%, transparent),
    0 8px 24px color-mix(in srgb, var(--accent-2) 25%, transparent) !important;
}

/* Small round checks on selected tiles */
.check,
.style-check{
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-2) 35%, transparent) !important;
}

/* Progress bar fill */
.progress-fill{
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2)) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-2) 40%, transparent) !important;
}

/* Value banner highlight */
.value-text .highlight{
  color: var(--accent-2) !important;
}

    /* === Late overrides (ensure these apply after base .content rule) === */
    @media (orientation: landscape) {
      /* Steps 1–6 container a bit narrower */
      .content { width: min(92vw, 46rem); }
    }

    @media (min-width: 768px) {
      /* Steps 1–6 desktop container */
      .content { width: min(92vw, 50rem); }
      /* Summary container (shrinks tiles + hero) */
      .content.content--wide-summary { width: min(96vw, 28rem); }
    }

    @media (min-width: 1200px) {
      .content.content--wide-summary { width: min(96vw, 32rem); }
      .summary-wrap { max-width: 32rem; }
    }

    /* Reduce side gutters for steps 1–6 by widening inner grids */
    @media (orientation: landscape) {
      .content .grid,
      .content .style-grid { width: 100%; max-width: 35.5rem; margin-left: auto; margin-right: auto; }
    }

    /* Desktop emoji/icon sizing (steps 5–7) */
@media (min-width: 768px) {
  /* Step 5 & 6 cards */
  .card.icon-card .icon { font-size: 48px; }
  .card.icon-card.voice-card .icon { font-size: 44px; }
  /* Summary step icons (smaller on desktop) */
  .summary-icon { font-size: 35px; }
}
@media (min-width: 1200px) {
  .card.icon-card .icon { font-size: 52px; }
  .card.icon-card.voice-card .icon { font-size: 48px; }
  .summary-icon { font-size: 37px; }
}

    /* Desktop typography scale-up and breathing room */
    @media (min-width: 768px) {
      .section-title { font-size: clamp(20px, 2.9vw, 24px); letter-spacing: -0.5px; }
      .section-subtitle { font-size: clamp(18px, 2.6vw, 22px); }
      .group-title { font-size: clamp(18px, 2.2vw, 20px); margin-bottom: 12px; letter-spacing: -0.5px; }
      .value-text { font-size: 16px; }
      .grid { margin-bottom: 16px; }
      .style-grid { margin-bottom: 16px; }
      .btn-primary { font-size: 20px; min-height: 62px; margin-top: 28px; }
      .btn-secondary { font-size: 16px; min-height: 52px; margin-top: 12px; }
      .style-badge, .card .badge { font-size: 13px; }
      .card.age .num { font-size: clamp(18px, 2.2vw, 22px); }
      .trust-mini { font-size: 12px; }
    }
    @media (min-width: 1200px) {
      .section-title { font-size: 26px; letter-spacing: -0.5px; }
      .section-subtitle { font-size: 24px; }
      .group-title { font-size: 22px; margin-bottom: 14px; letter-spacing: -0.5px; }
      .value-text { font-size: 18px; }
      .btn-primary { font-size: 21px; min-height: 64px; }
      .btn-secondary { font-size: 17px; min-height: 54px; }
      .style-badge, .card .badge { font-size: 14px; }
      .card.age .num { font-size: 24px; }
      .trust-mini { font-size: 13px; }
    }
    /* Buttons align to grid width on desktop */
    @media (orientation: landscape) {
      .content .btn-primary,
      .content .btn-secondary { width: 100%; max-width: 35.5rem; margin-left: auto; margin-right: auto; }
    }
    @media (min-width: 768px) {
      .content .btn-primary,
      .content .btn-secondary { width: 100%; max-width: 36rem; margin-left: auto; margin-right: auto; }
    }
    /* Summary right badges smaller in mobile portrait only (hero unchanged) */
    @media (max-width: 540px) {
      .summary-right .summary-badge { font-weight: 500; font-size: 9px; }
    }
    @media (min-width: 768px) {
      .content .grid,
      .content .style-grid { width: 100%; max-width: 36rem; margin-left: auto; margin-right: auto; }
    }



/* === ca6 overrides === */
.video-bg, .overlay { display: none !important; }

.content{
  width: 100vw !important;
  min-height: 100vh !important;
  background: linear-gradient(143deg, var(--bg-1, #4e283c) 37.31%, var(--bg-2, #271a2b) 112.95%) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: visible !important;
}

/* Replace progress bar with stepper */
.progress-bar, .progress-fill { display: none !important; }
.progress-stepper{
  position: static;
  top: auto; left: auto; right: auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 8px 6px;
  background: transparent;
  z-index: auto;
}
.progress-stepper .step{ height: 6px; border-radius: 4px; background: rgba(255,255,255,.15); }
.progress-stepper .step.done{ background: #FE2C55 !important; }
.progress-stepper .step.current{ background: #FE2C55 !important; }

/* Step 1: double the space between stepper and title */
.progress-stepper + .value-banner.hidden + #title{ margin-top: 16px; }

/* Step 1 spacing: 30px above and below the title (14px gap + 16px margin) */
.content.content--step1 #title.section-title{ margin-top: 16px !important; margin-bottom: 16px !important; }

/* Desktop: make value banner and stepper match grid width and centered */
@media (min-width: 768px){
  .value-banner,
  .progress-stepper{ width: 100%; max-width: 36rem; margin-left: auto; margin-right: auto; }
}
@media (orientation: landscape){
  .value-banner,
  .progress-stepper{ width: 100%; max-width: 35.5rem; margin-left: auto; margin-right: auto; }
}

/* Step 1 (single, centered, wider) */
.cta-btn-first{
  display: block;
  width: 100%;
  max-width: 36rem;
  margin: 12px auto 0;
  left: auto; right: auto; transform: none;
  align-self: center;
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
}
@media (orientation: landscape){
  .cta-btn-first{ max-width: 35.5rem; }
}

/* Step 1: remove extra bottom padding under the stepper to equalize spacing */
.content.content--step1 .progress-stepper{ padding-bottom: 0; }

/* Steps 2–5: slightly smaller cards (~10%) to add breathing room */
@media (orientation: landscape){
  .content.content--wide-cards .grid.grid-3 .card { flex: 0 0 calc(((min(96vw, var(--cards-row-width, 46rem)) - 60px) / 7) * 0.9); }
}
@media (min-width: 768px){
  .content.content--wide-cards .grid.grid-3 .card { flex: 0 0 calc(((min(96vw, var(--cards-row-width, 46rem)) - 72px) / 7) * 0.9); }
}

/* Steps 2–5: equalize vertical spacing to 20px */
.content.content--wide-cards{ gap: 20px; }
.content.content--wide-cards .progress-stepper{ padding-bottom: 6px; }
.content.content--wide-cards .group .step-heading{ margin-bottom: 20px; }
.content.content--wide-cards .group .grid,
.content.content--wide-cards .group .age-selector{ margin-top: 0; margin-bottom: 0; }
.content.content--wide-cards .group + .group{ margin-top: 20px; }
.content.content--wide-cards .group .grid{ padding-top: 0; padding-bottom: 0; }

/* Step 6 (summary): hide stepper and set 30px spacing via 16px margins (14px gap + 16px) */
.content.content--wide-summary .progress-stepper{ display: none !important; }
.content.content--wide-summary .value-banner{ margin-bottom: 16px; }
.content.content--wide-summary .section-title.step-heading + .summary-wrap{ margin-top: 16px !important; }

/* Step 6: centered icons for Voice and Relationship (sizes defined in ca23 section below) */
#summaryVoice .summary-icon,
#summaryRelationship .summary-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Button layout: stack vertically (Next on top, Back below) */
.next-btn, .back-btn{
  display: block;
  width: 100%;
  min-height: 56px;
}
.next-btn{ margin-right: 0; }

/* Final CTA (single, centered, wider) */
.cta-btn-final{
  display: inline-flex;
  width: 100%;
  margin: 50px auto 0;
  left: auto; right: auto; transform: none;
  align-self: center;
}

/* Ensure page background covers full page (remove visible black bars) */
html, body{ background: linear-gradient(143deg, var(--bg-1, #4e283c) 37.31%, var(--bg-2, #271a2b) 112.95%) !important; }
.trust-bar{ display:none !important; }


/* (Removed bottom-nav persistent bar) */

/* === Sticky Navigation Wrapper (Next/Back) === */
.navigation-wrapper{
  position: fixed; /* keep at bottom of the screen */
  left: 0;
  right: 0;
  /* Raise nav above bottom edge to add whitespace; keep safe-area respected */
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 9999; /* ensure above cards */
  background: transparent; /* no background */
  border-top: 0;           /* no border */
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
}
.navigation-inner{
  display: grid;
  grid-template-columns: 1fr 1.6fr; /* Back narrower, Next wider */
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 36rem; /* match grid width */
  margin-left: auto;
  margin-right: auto; /* center within content */
}
/* Single action mode (steps 1 and 6): hide Back, make Next full width and centered */
.navigation-wrapper.single-action .navigation-inner{
  grid-template-columns: 1fr;
}
.navigation-wrapper.single-action #backBtn{ display: none !important; }
.navigation-wrapper .btn-primary,
.navigation-wrapper .btn-secondary{
  margin-top: 0; /* remove extra top gaps inside nav */
  min-height: 56px;
}
@media (min-width:768px){
  .navigation-wrapper{ padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .navigation-inner{ gap: 12px; grid-template-columns: 1fr 1.5fr; max-width: 36rem; }
  .navigation-wrapper .btn-primary,
  .navigation-wrapper .btn-secondary{ min-height: 58px; }
}

/* Match grid width in landscape where grids use 35.5rem cap */
@media (orientation: landscape){
  .navigation-inner{ max-width: 35.5rem; }
}

/* Touch devices: prevent sticky hover states */
/* Use pointer: coarse to catch Android devices that report hover: hover */
@media (hover: none), (pointer: coarse) {
  .navigation-wrapper:not(.cta-action) .btn-primary:not(:disabled):hover{
    background: var(--accent-1) !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
  /* CTA button: force normal state on ALL touch devices including Android */
  .navigation-wrapper.cta-action .btn-primary,
  .navigation-wrapper.cta-action .btn-primary:hover,
  .navigation-wrapper.cta-action .btn-primary:active,
  .navigation-wrapper.cta-action .btn-primary:focus{
    background: var(--accent-1) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  /* But allow press animation with .is-pressed class */
  .navigation-wrapper.cta-action .btn-primary.is-pressed{
    transform: scale(0.97) translateY(2px) !important;
  }
}

/* CTA button (Step 6) should always be in normal state, not hover state */
.navigation-wrapper.cta-action .btn-primary{
  background: var(--accent-1) !important;
  box-shadow: none !important;
}
.navigation-wrapper.cta-action .btn-primary::before{
  display: block !important;
}

/* Desktop: pull navigation closer to the content section */
@media (min-width: 1024px){
  .navigation-wrapper{
    bottom: clamp(72px, 14vh, 200px);
  }
}

/* Laptops with less vertical space: keep nav closer to the bottom edge */
@media (min-width: 1024px) and (max-height: 900px){
  .navigation-wrapper{
    bottom: max(40px, env(safe-area-inset-bottom, 0px));
  }
}

/* Ultra-wide desktops: keep nav closer to bottom to avoid overlapping content */
@media (min-width: 1600px) and (min-height: 900px){
  .navigation-wrapper{
    bottom: max(40px, env(safe-area-inset-bottom, 0px));
  }
}

/* Disabled button ::before hidden */
.navigation-wrapper .btn-primary:disabled::before{ display: none; }

/* Back button styling inside nav */
.navigation-wrapper .btn-secondary{
  background: #00000040 !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}
.navigation-wrapper .btn-secondary:hover{
  background: #00000055 !important;
  border-color: #ffffff !important;
}

/* Step 1 main title: force accent color for the inline colored phrase */
#title span[style*="color"]{ color: var(--accent-1) !important; }

/* Age row layout (used by age-selector) */
.age-row{
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  align-items: center;
  gap: 8px;
}

/* Constrain slider width to match grids on desktop/landscape */
@media (min-width: 768px){
  .content .age-selector{ width: 100%; max-width: 36rem; margin-left: auto; margin-right: auto; }
}
@media (orientation: landscape){
  .content .age-selector{ width: 100%; max-width: 35.5rem; margin-left: auto; margin-right: auto; }
}

/* Larger labels and display on bigger screens */
@media (min-width: 768px){
  .age-row .age-min, .age-row .age-max{ font-size: 18px; }
  .age-display{ font-size: 14px; padding: 8px 14px; }
}
@media (min-width: 1200px){
  .age-row .age-min, .age-row .age-max{ font-size: 20px; }
  .age-display{ font-size: 16px; padding: 10px 16px; }
}

/* Make checkmark glyphs white (incl. iPhone Safari) */
.check,
.style-check{
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  filter: none !important;
  mix-blend-mode: normal;
  opacity: 1 !important;
}

/* === ca6r: Selection cards size + layout tweaks === */
/* 1) Slightly smaller selection cards overall on small portrait while keeping aspect ratio */
@media (max-width: 540px){
  .content .grid { width: 100%; max-width: 24rem; margin-left: auto; margin-right: auto; }
}

/* 2) Desktop and mobile landscape: single row, uniform card sizes, no scroll */
/* Style cards (.style-grid) remain unchanged */
@media (orientation: landscape){
  .content .grid { width: 100%; max-width: var(--cards-row-width, 46rem); margin-left: auto; margin-right: auto; }
  .grid.grid-3 { display: flex !important; flex-wrap: nowrap; justify-content: center; gap: 10px; overflow-x: hidden; align-items: center; }
  /* Make selection cards a bit smaller so borders fit */
  .grid.grid-3 .card { flex: 0 0 calc((min(96vw, var(--cards-row-width, 46rem)) - 60px) / 7); }
}
@media (min-width: 768px){
  .content .grid { width: 100%; max-width: var(--cards-row-width, 46rem); margin-left: auto; margin-right: auto; }
  .grid.grid-3 { display: flex !important; flex-wrap: nowrap; justify-content: center; gap: 12px; overflow-x: hidden; align-items: center; }
  .grid.grid-3 .card { flex: 0 0 calc((min(96vw, var(--cards-row-width, 46rem)) - 72px) / 7); }
}

/* Widens the content only on steps 2–5 via JS-applied class to keep style step unchanged */
@media (min-width: 768px){
  .content.content--wide-cards { width: min(96vw, 66rem); --cards-row-width: 66rem; }
}

/* Avoid clipping of card borders in wide cards steps (2–5) */
.content.content--wide-cards{ overflow: visible; }
.content.content--wide-cards .grid{ padding-top: 4px; padding-bottom: 4px; overflow: visible; }
/* Ensure all step grids have safe padding to show borders */
.group .grid{ padding-top: 4px; padding-bottom: 4px; overflow: visible; }

/* === Desktop (>=1024px) typography and spacing tweaks === */
@media (min-width: 1024px){
  /* Larger H1s on desktop */
  h1.section-title, .section-title { font-size: clamp(24px, 2.64vw, 31px); letter-spacing: -0.5px; }
  /* Step 2–5: more breathing room between headings and cards */
  .group .step-heading { margin-bottom: 16px; }
  .group .grid, .group .age-selector { margin-top: 6px; margin-bottom: 24px; }
  .group + .group { margin-top: 24px; }
  /* Step 1 and 6: even more spacing under H1 */
  #title.section-title { margin-bottom: 28px; }
  .section-title.step-heading + .summary-wrap { margin-top: 28px; }
}

/* === Landscape (short height) adjustments: smaller H1 + smaller cards === */
@media (orientation: landscape) and (max-height: 540px){
  /* H1s slightly smaller to avoid crowding */
  h1.section-title, .section-title { font-size: clamp(18px, 2.3vw, 22px); }
  /* Reduce selection card width a bit while keeping 3/4 ratio */
  .grid.grid-3 .card { flex: 0 0 calc((min(96vw, var(--cards-row-width, 46rem)) - 50px) / 7); }
}

/* === Mobile portrait Step 1: more space under the main title === */
@media (orientation: portrait) and (max-width: 540px){
  #title.section-title { margin-bottom: 16px; }
}
/* (auth-layer footer styles moved to auth/style_auth.css) */
/* === STEP 2 Ethnicity: stacked full-width landscape cards (all viewports) === */
/* Mobile portrait */
@media (max-width: 540px) and (orientation: portrait) {
  .content #ethnicityGroup .grid.grid-3 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }
  .content #ethnicityGroup .grid.grid-3 .card {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
  }
}

/* Desktop / landscape */
@media (orientation: landscape), (min-width: 541px) {
  .content #ethnicityGroup .grid.grid-3 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: calc(36rem * 0.7) !important;
    margin-left: auto;
    margin-right: auto;
  }
  .content #ethnicityGroup .grid.grid-3 .card {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
  }
}

/* === END OF BASE STYLES FROM style_ca20.css === */


/* ============================================
   VARIANT 7: CLASSIC RED
   Red + Black | Montserrat | Bold & Confident
   ============================================ */

/* === FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* === CSS VARIABLES === */
:root {
  /* Primary Colors */
  --accent-1: #FE2C55;        /* Pink - default card border, buttons */
  --accent-2: #25F4EE;        /* Aqua - selected card border */
  --accent-3: #d91a47;        /* Dark pink - button pressed state */

  /* Background Colors */
  --bg-1: #000000;            /* Pure black */
  --bg-2: #0a0a0a;            /* Soft black */
  --bg-3: #1f1f1f;            /* Card black */

  /* Card Colors */
  --card-bg: rgba(37, 244, 238, 0.04);
  --card-border: var(--accent-1);
  --card-border-hover: var(--accent-2);
  --card-glow: rgba(37, 244, 238, 0.3);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* UI Colors */
  --badge-bg: rgba(0, 0, 0, 0.85);
  --button-text: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-bg: linear-gradient(143deg, var(--bg-1) 0%, var(--bg-2) 100%);
  --gradient-card: linear-gradient(180deg, rgba(37, 244, 238, 0.06), transparent);

  /* Card Gradients */
  --card-grad-1: linear-gradient(36deg, #25F4EE40 -18.81%, transparent 51.42%);
  --card-grad-2: linear-gradient(33deg, transparent -2.3%, #FE2C5540 98.42%);
  --card-base: #11111166;

  /* Shadows - removed for cleaner look */
  --shadow-glow: none;
  --shadow-card: none;
  --shadow-button: none;
  --shadow-inset: none;

  /* Border Radius - Sharper for bold look */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE STYLES === */
html, body {
  background: var(--bg-1) !important;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
}

/* Subtle red ambient glow at top */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(37, 244, 238, 0.08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* === CONTENT CONTAINER === */
.content {
  background: var(--gradient-bg) !important;
  border: none !important;
}

/* === TYPOGRAPHY === */
h1.section-title {
  color: var(--text-primary) !important;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.5px !important;
  line-height: 120% !important;
}

@media (orientation: portrait) and (max-width: 540px) {
  h1.section-title {
    font-size: 24px !important;
  }
}

.section-title {
  color: var(--text-primary) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.5px !important;
}

.group-title {
  color: var(--text-secondary) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.5px !important;
}

/* === PROGRESS STEPPER === */
.progress-stepper .step {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-sm) !important;
  height: 5px !important;
}

.progress-stepper .step.done,
.progress-stepper .step.current {
  background: var(--accent-1) !important;
}

/* Progress stepper: solid color, no animation */
.progress-stepper .step.current {
  background: #FE2C55 !important;
}

/* === CARDS (Style Selection & Options) === */
.card,
.style-card {
  background: var(--card-grad-1), var(--card-grad-2), var(--card-base) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--transition-normal) !important;
  position: relative;
  overflow: hidden;
}

/* Overlay Border - fixes sub-pixel rendering gap */
.card::after,
.style-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent-1);
  pointer-events: none;
  z-index: 10;
}

@media (hover: hover) {
  .card:hover::after,
  .style-card:hover::after {
    border-color: var(--accent-2) !important;
  }
}

.card.selected::after,
.style-card.selected::after {
  border-color: var(--accent-2) !important;
  border-width: 3px;
}

.card.selected,
.style-card.selected {
  box-shadow: none !important;
}

/* Card badges */
.card .badge,
.style-badge {
  background: var(--badge-bg) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 11px !important;
  border-radius: 0 !important;
  /* Compensate for overlay border */
  padding: 4px 10px 6px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.card.selected .badge,
.style-card.selected .style-badge {
  background: rgba(0, 0, 0, 0.72) !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Checkmarks */
.check,
.style-check {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)) !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 900 !important;
}

/* === SELECTION DIMMING === */
.style-grid.dim-others .style-card:not(.selected),
.grid.dim-others .card:not(.selected) {
  filter: brightness(0.55) saturate(0.9);
  opacity: 0.85;
}

/* === PRIMARY BUTTON === */
.btn-primary,
.navigation-wrapper .btn-primary {
  background: var(--accent-1) !important;
  color: var(--button-text) !important;
  border: none !important;
  border-radius: var(--radius-xl) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: none !important;
  transition: all var(--transition-normal) !important;
  position: relative;
  overflow: hidden;
}

/* Shine effect */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

@media (hover: hover) {
  .btn-primary:not(:disabled):hover::before {
    left: 150%;
  }

  .btn-primary:not(:disabled):hover {
    background: color-mix(in srgb, var(--accent-1) 85%, #ffffff) !important;
    transform: translateY(-2px);
    box-shadow: none !important;
  }
}

.btn-primary {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  /* Ensure smooth transitions on all platforms */
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-primary:not(:disabled):active,
.btn-primary.is-pressed {
  transform: scale(0.97) translateY(2px) !important;
  background: color-mix(in srgb, var(--accent-1) 80%, #000000) !important;
  box-shadow: none !important;
}

/* iOS Safari specific: force active state to work */
@supports (-webkit-touch-callout: none) {
  .btn-primary {
    will-change: transform !important;
  }

  .btn-primary:not(:disabled):active,
  .btn-primary.is-pressed {
    transform: scale(0.97) translateY(2px) !important;
    background: color-mix(in srgb, var(--accent-1) 80%, #000000) !important;
    box-shadow: none !important;
  }
}

.btn-primary:disabled,
.navigation-wrapper .btn-primary:disabled {
  background: var(--accent-1) !important;
  filter: grayscale(90%) brightness(0.7) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

/* === SECONDARY BUTTON === */
.btn-secondary,
.navigation-wrapper .btn-secondary {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-xl) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all var(--transition-normal) !important;
}

.btn-secondary:hover {
  border-color: var(--accent-2) !important;
  color: var(--accent-2) !important;
  background: rgba(37, 244, 238, 0.1) !important;
}

/* === VALUE BANNER === */
.value-banner {
  background: #151515 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
}

.value-text .highlight {
  color: var(--accent-1) !important;
  font-weight: 800 !important;
}

/* === AGE SELECTOR === */
.age-selector {
  border: none;
  background: transparent;
  padding: 12px 12px 18px;
  position: relative;
  touch-action: pan-y;
  display: grid;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 10px;
  row-gap: 16px;
}

.age-display {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  align-self: start;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 3px solid var(--accent-1);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  box-sizing: border-box;
  display: block;
  width: calc((100% - 20px) / 3);
  max-width: calc((100% - 20px) / 3);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.age-row .age-min,
.age-row .age-max {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 600;
}

#ageRange {
  grid-column: 2;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(var(--accent-1), var(--accent-1)) left/var(--fill, 0%) 100% no-repeat,
              rgba(255,255,255,0.15);
  outline: none;
  pointer-events: auto;
}

#ageRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-1);
  border: none;
  box-shadow: none;
  cursor: pointer;
}

#ageRange::-moz-range-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}

#ageRange::-moz-range-progress {
  height: 14px;
  border-radius: 999px;
  background: var(--accent-1);
}

#ageRange::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-1);
  border: none;
  box-shadow: none;
  cursor: pointer;
}

/* === ICON CARDS (Voice & Relationship) === */
.card.icon-card {
  background: var(--card-grad-1), var(--card-grad-2), var(--card-base) !important;
}

.card.icon-card .icon {
  color: var(--text-primary) !important;
}

.card.icon-card .icon svg rect:first-child {
  fill: var(--accent-1) !important;
}

/* === SUMMARY SECTION === */
.summary-hero,
.summary-tile {
  border: none !important;
  border-radius: var(--radius-md) !important;
  background: var(--card-grad-1), var(--card-grad-2), var(--card-base) !important;
  position: relative;
  overflow: hidden;
}

/* Overlay Border for summary elements - fixes sub-pixel rendering gap */
.summary-hero::after,
.summary-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--accent-1);
  pointer-events: none;
  z-index: 10;
}

.summary-badge {
  background: var(--badge-bg) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.summary-icon {
  color: var(--text-primary) !important;
}

.summary-icon.summary-icon--text {
  color: var(--accent-1) !important;
  font-weight: 700 !important;
  font-size: 28px !important;
}

/* === STEP 6 SUMMARY ICONS - Red styling === */
/* Voice (Play) icon - red gradient background */
#summaryVoice .summary-icon svg rect:first-child {
  fill: var(--accent-1) !important;
}

/* Relationship icons - override gradient to red */
#summaryRelationship .summary-icon svg rect {
  fill: var(--accent-1) !important;
}

/* Relationship icon SVG gradient stops override */
#summaryRelationship .summary-icon svg linearGradient stop {
  stop-color: var(--accent-1) !important;
}

#summaryRelationship .summary-icon svg linearGradient stop:last-child {
  stop-color: var(--accent-2) !important;
}

/* Relationship paths stay white */
#summaryRelationship .summary-icon svg path {
  fill: #ffffff !important;
}

/* Unified icon sizes - SAME for both Voice and Relationship (larger for better visibility) */
#summaryVoice .summary-icon svg,
#summaryRelationship .summary-icon svg {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  display: block !important;
}

/* Center icons properly in summary tiles */
#summaryVoice .summary-icon-wrap,
#summaryRelationship .summary-icon-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  inset: 0 !important;
  gap: 4px !important;
  padding: 0 !important;
  margin: 0 !important;
}

#summaryVoice .summary-icon,
#summaryRelationship .summary-icon {
  position: relative !important; /* For absolute positioning of SVG inside */
  width: 64px !important; /* Constrain container to match SVG size */
  height: 64px !important;
  margin: 0 auto !important;
  font-size: 0 !important; /* Reset font-size to prevent inheritance affecting SVG */
  line-height: 0 !important;
  overflow: visible !important; /* Allow SVG to center */
}

/* Mobile adjustments for summary icons */
@media (max-width: 540px) {
  #summaryVoice .summary-icon,
  #summaryRelationship .summary-icon {
    width: 44px !important;
    height: 44px !important;
  }

  #summaryVoice .summary-icon svg,
  #summaryRelationship .summary-icon svg {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
}

/* Desktop adjustments for summary icons */
@media (min-width: 768px) {
  #summaryVoice .summary-icon,
  #summaryRelationship .summary-icon {
    width: 72px !important;
    height: 72px !important;
  }

  #summaryVoice .summary-icon svg,
  #summaryRelationship .summary-icon svg {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
  }
}

/* === TRUST MINI === */
.trust-mini {
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}

.trust-mini svg {
  color: var(--accent-1) !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* === FOCUS STATES === */
button:focus-visible {
  outline: 2px solid var(--accent-1) !important;
  outline-offset: 2px;
}

/* === ETHNICITY CARDS === */
.content #ethnicityGroup .card {
  background: var(--card-grad-1), var(--card-grad-2), var(--card-base) !important;
}

/* Red underline removed - was hidden behind badge anyway */

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 540px) {
  .btn-primary,
  .navigation-wrapper .btn-primary {
    font-size: 18px !important;
    letter-spacing: 0.5px !important;
    min-height: 52px !important;
    padding: 16px 24px !important;
  }

  .card .badge,
  .style-badge {
    font-size: 11px !important;
    letter-spacing: 0.3px !important;
  }
}

/* === DESKTOP ENHANCEMENTS === */
@media (min-width: 768px) {
  .group-title {
    font-size: clamp(18px, 2.2vw, 20px) !important;
    letter-spacing: -0.5px !important;
  }

  .btn-primary,
  .navigation-wrapper .btn-primary {
    font-size: 20px !important;
    min-height: 62px !important;
  }

  .style-badge, .card .badge {
    font-size: 13px !important;
  }
}

/* === LARGE DESKTOP === */
@media (min-width: 1200px) {
  .group-title {
    font-size: 22px !important;
    letter-spacing: -0.5px !important;
  }

  .btn-primary,
  .navigation-wrapper .btn-primary {
    font-size: 21px !important;
    min-height: 64px !important;
  }

  .style-badge, .card .badge {
    font-size: 14px !important;
  }
}