/* =====================================================================
   MULAQAT — MASTER STYLESHEET (v4: dark glass + flowing gradient)
   ===================================================================== */

/* The page glow is registered so it can fade slowly when a role is chosen
   (older browsers simply switch instantly). */
@property --bg-glow   { syntax: "<color>"; inherits: true; initial-value: #5C1020; }
@property --bg-glow-2 { syntax: "<color>"; inherits: true; initial-value: #8A2438; }
@property --btn-dark       { syntax: "<color>"; inherits: true; initial-value: #8C1F2E; }
@property --btn-dark-hover { syntax: "<color>"; inherits: true; initial-value: #A52A3A; }
/* --t is the 0 -> 1 slider the glass colours ride on (see glass.css) */
@property --t { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --bg-dark: #0E0407;
  --bg-glow: #5C1020;
  --bg-glow-2: #8A2438;
  --t: 0;
  --option-bg: #170609;
  --option-hover: rgba(140, 31, 46, 0.45);
  --ink: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.78);
  --cream-text: #F3DCCF;
  --btn-dark: #8C1F2E;
  --btn-dark-hover: #A52A3A;
  --accent-gold: #D9A98C;
  --accent-gold-bright: #F0C27B;
  --accent-gold-soft: rgba(217, 169, 140, 0.35);
  --glass-bg: rgba(20, 6, 10, 0.5);
  --glass-bg-strong: rgba(20, 6, 10, 0.68);
  --glass-border: rgba(255, 255, 255, 0.16);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.5);
  --radius: 22px;
  --radius-lg: 28px;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: radial-gradient(circle at 30% 25%, var(--bg-glow) 0%, transparent 45%),
              radial-gradient(circle at 75% 70%, var(--bg-glow-2) 0%, transparent 50%),
              var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

html {
  transition: --bg-glow 4s cubic-bezier(0.37, 0, 0.63, 1), --bg-glow-2 4s cubic-bezier(0.37, 0, 0.63, 1),
              --btn-dark 4s cubic-bezier(0.37, 0, 0.63, 1), --btn-dark-hover 4s cubic-bezier(0.37, 0, 0.63, 1),
              --t 4s cubic-bezier(0.37, 0, 0.63, 1);
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-gold-soft); color: var(--ink); }

p, span, label, li, a, h1, h2, h3, .headline, .subtext, .field-label, .popup-line, .consent-text,
.tip-card, .payment-note, .privacy-body, .terms-item, .stat-label, .stat-num,
.eyebrow-plain, .quiz-category, .inline-note, .badge, .mini-badge, .role-name,
.day-chip, .time-chip, .btn, .step-chip, .tagline {
  font-weight: 800 !important;
  font-style: italic !important;
}

.headline, .popup-line, .consent-text, .quiz-option {
  text-wrap: balance;
}

button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-gold); outline-offset: 2px; border-radius: 4px;
}

#app { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.phone-frame {
  width: 100%; max-width: 400px; aspect-ratio: 9 / 16; max-height: 840px;
  border-radius: 36px; overflow: hidden; position: relative;
  isolation: isolate;
  z-index: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
  #app { padding: 0; min-height: 100vh; min-height: 100dvh; display: block; }
  .phone-frame {
    width: 100vw;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    aspect-ratio: unset;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .screen {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: visible;
  }
}

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* (the 5% brightness is now baked into background.mp4, so the phone does not have to filter every frame) */
  pointer-events: none;
}

#bg-video-tint {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #7A1B28;                     /* burgundy until a role is chosen */
  mix-blend-mode: color;
  pointer-events: none;
  transition: background-color 3s cubic-bezier(0.37, 0, 0.63, 1);
}

/* ===== Role colours: chosen once, kept for the whole journey ===== */

html.theme-boy, html.theme-girl { --t: 1; }

html.theme-boy {
  --bg-dark: #050B16;  --bg-glow: #0F2A5C;  --bg-glow-2: #1B4A94;
  --btn-dark: #1F4E96; --btn-dark-hover: #2B63B5;
  --glass-bg: rgba(6, 16, 34, 0.5);  --glass-bg-strong: rgba(6, 16, 34, 0.68);
  --option-bg: #07101F;  --option-hover: rgba(31, 78, 150, 0.45);
}
html.theme-girl {
  --bg-dark: #14060E;  --bg-glow: #6B1440;  --bg-glow-2: #A02763;
  --btn-dark: #B22A66; --btn-dark-hover: #C93A7A;
  --glass-bg: rgba(30, 6, 20, 0.5);  --glass-bg-strong: rgba(30, 6, 20, 0.68);
  --option-bg: #1C0713;  --option-hover: rgba(178, 42, 102, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  html, #bg-video-tint { transition: none !important; }
}

.screen {
  width: 100%; height: 100%; padding: 26px 22px; overflow-y: auto;
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; animation: screen-enter 0.45s var(--ease-standard) both;
  scrollbar-width: thin; scrollbar-color: var(--accent-gold-soft) transparent;
  position: relative;
  color: var(--ink);
}
.screen > * {
  flex-shrink: 0;
}
.screen[hidden] { display: none; }
.screen::-webkit-scrollbar { width: 5px; }
.screen::-webkit-scrollbar-thumb { background: var(--accent-gold-soft); border-radius: 999px; }
@keyframes screen-enter { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .screen, .logo-image-contain, .dot, .glossy-heart, .spinner, .glow-drift,
  .role-card, .list-option, .btn, .quiz-decor, .orbit-ring, .orbit-dot, .popup-sparkle { animation: none !important; transition: none !important; }
}

.centered-vert { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.btn {
  border: none; border-radius: 999px; height: 52px; padding: 0 24px;
  font-size: 14px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.18s var(--ease-bounce), background-color 0.15s ease, border-color 0.15s ease;
}
.btn.is-pressed { transform: scale(0.88); }
.btn-primary { background: var(--btn-dark); color: #FFFFFF; width: 100%; }
.btn-primary:hover { background: var(--btn-dark-hover); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); color: var(--ink); flex: 1; }
.btn-ghost:hover { border-color: var(--accent-gold); background: rgba(255,255,255,0.1); }
.button-row { display: flex; gap: 10px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled::after { display: none; }

.back-btn {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border); color: var(--ink); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s var(--ease-bounce), background-color 0.15s ease;
}
.back-btn.is-pressed { transform: scale(0.8); }
.back-btn:hover { background: rgba(255,255,255,0.2); }

.top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.step-chip {
  font-family: var(--font-display); font-style: italic; font-size: 12px; color: var(--ink);
  background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border);
  padding: 6px 16px; border-radius: 999px;
}

#screen-splash { align-items: center; justify-content: center; position: relative; overflow: hidden; }
.glow-drift { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 50%, rgba(217,169,140,0.25) 0%, transparent 55%); animation: glow-move 9s ease-in-out infinite; pointer-events: none; }
@keyframes glow-move { 0%,100% { transform: translate(-4%,-3%) scale(1); } 50% { transform: translate(4%,3%) scale(1.08); } }
.dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent-gold); animation: twinkle-drift 4s ease-in-out infinite; }
@keyframes twinkle-drift { 0%,100% { opacity: 0.2; transform: translate(0,0); } 50% { opacity: 0.95; transform: translate(4px,-6px); } }
.splash-center { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; transform: translateY(-40px); }
.logo-badge { width: 170px; height: 170px; border-radius: 50%; overflow: hidden; box-shadow: 0 18px 46px rgba(0,0,0,0.45); }
.logo-image-contain { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; animation: logo-settle 1.2s var(--ease-standard) both; }
@keyframes logo-settle { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.tagline { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--cream-text); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--accent-gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.screen-cream-bg { background: linear-gradient(160deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.38) 100%); color: var(--ink); }
.content-block { text-align: left; }
.content-block.centered { text-align: center; }
.eyebrow-plain { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.headline { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.3; margin-bottom: 8px; color: var(--ink); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.headline.centered { text-align: center; }
.subtext {
  font-size: 12px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  color: var(--muted); line-height: 1.6; margin-bottom: 22px; text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.subtext.centered { text-align: center; }
.accent-italic { font-style: italic; color: var(--accent-gold-bright); }

.inner-card {
  background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 24px 20px; box-shadow: var(--shadow-soft); margin-bottom: 22px;
}
.inner-card.centered { text-align: center; }

.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; margin-top: 14px; }
.field-label:first-of-type { margin-top: 0; }
.optional-tag { font-style: italic; font-weight: 400; }
.field-input {
  width: 100%; height: 48px; border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 0 18px; background: rgba(255,255,255,0.08); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="date"].field-input {
  min-width: 0;
  max-width: 100%;
}
.field-input::placeholder { color: rgba(255,255,255,0.45); }
.field-input:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(217,169,140,0.15); }
.field-input option {
  background: var(--option-bg);
  color: var(--cream-text);
  padding: 10px;
}
.field-input option:checked, .field-input option:hover {
  background: linear-gradient(var(--option-hover), var(--option-hover)), var(--option-bg);
}
.field-textarea { height: auto; min-height: 90px; padding: 14px 18px; resize: vertical; border-radius: 20px; }
.field-row { display: flex; gap: 12px; }
.field-col { flex: 1; }
.field-error-text { color: #F0879C; font-size: 12px; margin-top: 6px; }

.link-row { text-align: center; margin-top: 14px; }
.text-link { font-size: 13px; color: var(--accent-gold-bright); position: relative; padding-bottom: 1px; }
.text-link::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--accent-gold-bright); transition: width 0.2s ease; }
.text-link:hover::after { width: 100%; }
#toggle-login {
  font-size: 11px !important;
  font-weight: 400 !important;
  font-style: normal !important;
}
#forgot-pin {
  font-family: var(--font-display);
  font-size: 10px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  text-decoration: underline;
}
.muted-link { color: var(--muted); }
.inline-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }

.consent-check-3d { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; cursor: pointer; }
.consent-check-3d input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-3d {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 8px; margin-top: 2px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border);
  position: relative; transition: all 0.15s ease;
}
.consent-check-3d input:checked + .check-3d { background: var(--accent-gold); border-color: var(--accent-gold); box-shadow: 0 3px 0 rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.3); }
.check-3d::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--bg-dark); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 0.15s var(--ease-bounce);
}
.consent-check-3d input:checked + .check-3d::after { transform: rotate(45deg) scale(1); }
.consent-text { font-size: 13px; line-height: 1.55; color: var(--ink); }

.screen-role-bg {
  background: linear-gradient(to bottom, rgba(20,6,10,0.35) 0%, rgba(20,6,10,0.55) 60%, rgba(14,4,7,0.8) 100%), url('assets/images/couple-bg.png');
  background-position: center, bottom center; background-size: cover, 100% 55%; background-repeat: no-repeat, no-repeat;
  color: var(--ink);
}
.role-cards { display: flex; gap: 14px; margin-top: 8px; }
.role-card {
  flex: 1; background: var(--glass-bg-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.18s var(--ease-bounce), box-shadow 0.2s ease;
}
.role-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.45); }
.role-card.is-pressed { transform: scale(0.9); }
.role-photo { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; }
.role-name { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.badge { font-size: 11px; padding: 5px 12px; border-radius: 999px; }
.badge-cream { background: var(--accent-gold); color: var(--bg-dark); }
.badge-gold { background: rgba(255,255,255,0.15); color: var(--ink); }

.screen-dark-dotted { background: transparent; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.popup-sparkle { position: absolute; color: var(--accent-gold-bright); font-size: 22px; animation: popup-twinkle 1.8s ease-in-out infinite; text-shadow: 0 0 6px #FFF6E5, 0 0 16px rgba(240,194,123,1), 0 0 30px rgba(240,194,123,0.7); }
@keyframes popup-twinkle { 0%,100% { opacity: 0.55; transform: scale(0.85) rotate(0deg); } 50% { opacity: 1; transform: scale(1.5) rotate(30deg); } }
.popup-card {
  background: var(--glass-bg-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 30px; padding: 34px 28px; text-align: center;
  box-shadow: var(--shadow-strong), 0 0 40px rgba(240,194,123,0.2); max-width: 320px; margin: auto;
  position: relative; z-index: 1; animation: popup-glow-pulse 3s ease-in-out infinite;
}
@keyframes popup-glow-pulse {
  0%,100% { box-shadow: var(--shadow-strong), 0 0 30px rgba(240,194,123,0.15); }
  50% { box-shadow: var(--shadow-strong), 0 0 55px rgba(240,194,123,0.35); }
}
.popup-logo-badge { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; box-shadow: 0 0 20px rgba(240,194,123,0.5); }
.popup-card .subtext {
  font-size: 11px !important;
  font-weight: 500 !important;
  font-style: italic !important;
}
.popup-line {
  font-size: 10px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  color: var(--muted); line-height: 1.7; margin-bottom: 8px;
}

.screen-hearts-bg { background: linear-gradient(160deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%); color: var(--ink); position: relative; }
.lookingfor-list { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.list-option {
  display: flex; align-items: center; gap: 14px; background: var(--glass-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: 999px; height: 58px; padding: 0 20px;
  cursor: pointer; text-align: left; transition: transform 0.18s var(--ease-bounce), background-color 0.15s ease;
}
.list-option:hover { background: var(--glass-bg-strong); border-color: var(--accent-gold); }
.list-option.is-pressed { transform: scale(0.92); }
.gender-icon { font-size: 18px; color: var(--accent-gold-bright); }

.stat-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.stat-item { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.stat-label { display: block; font-size: 12px; font-style: italic; color: var(--muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 28px; background: var(--glass-border); }

.quiz-theme-personality, .quiz-theme-values, .quiz-theme-lifestyle { padding: 26px 22px; display: flex; flex-direction: column; overflow-y: auto; position: relative; color: var(--ink); }
.quiz-theme-personality { background: linear-gradient(160deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.38) 100%); }
.quiz-theme-values { background: linear-gradient(160deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.38) 100%); }
.quiz-theme-lifestyle { background: linear-gradient(160deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.38) 100%); }
.quiz-decor { text-align: center; font-size: 14px; opacity: 0.6; margin-bottom: 8px; letter-spacing: 4px; }
.quiz-progress { width: 100%; height: 4px; background: rgba(255,255,255,0.12); border-radius: 999px; margin-bottom: 24px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-bright)); border-radius: 999px; transition: width 0.3s ease; }
.quiz-category { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 1px; color: var(--accent-gold-bright); margin-bottom: 10px; }
.quiz-cat-icon { font-size: 14px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; position: relative; z-index: 1; }
.quiz-option {
  background: rgba(20, 6, 10, 0.4); border: 1px solid var(--glass-border); border-radius: 999px;
  text-align: left; padding: 14px 18px; font-size: 15px; color: var(--ink); cursor: pointer;
  transition: background-color 0.15s ease, transform 0.18s var(--ease-bounce);
  display: flex; align-items: center; gap: 12px;
}
.quiz-option-check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--accent-gold); background: transparent; position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.quiz-option-check::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--accent-gold); transform: scale(0); transition: transform 0.15s var(--ease-bounce);
}
.quiz-option.is-selected { background: var(--glass-bg-strong); border-color: var(--accent-gold); }
.quiz-option.is-selected .quiz-option-check { border-color: var(--accent-gold); }
.quiz-option.is-selected .quiz-option-check::after { transform: scale(1); }
.quiz-option:hover { background: rgba(255,255,255,0.1); }
.quiz-option.is-pressed { transform: scale(0.97); }
.quiz-text-input { margin-top: 8px; margin-bottom: 6px; }

.photo-slot { margin-bottom: 18px; }
.photo-card {
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05); overflow: hidden; margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.photo-card:has(.photo-preview-box.has-photo) { border-color: var(--accent-gold); }
.photo-preview-box {
  background-size: cover; background-position: center;
  min-height: 110px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.photo-icon { font-size: 22px; opacity: 0.7; }
.photo-slot-label { font-size: 12px; color: var(--muted); }
.photo-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--glass-border); }
.photo-action-btn {
  background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font-size: 10px; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.photo-action-btn:hover { background: rgba(255,255,255,0.14); border-color: var(--accent-gold); }
.photo-action-link {
  background: none; border: none; color: var(--muted); font-size: 9px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.photo-status {
  text-align: center; font-size: 12px !important; font-weight: 600 !important; font-style: italic !important;
  color: var(--accent-gold-bright);
}
.photo-status.is-uploading { color: var(--muted); }
.privacy-note-box { display: flex; gap: 12px; background: var(--glass-bg); border-left: 3px solid var(--accent-gold); border-radius: 20px; padding: 14px 16px; margin-bottom: 16px; }
.privacy-lock { font-size: 18px; }
.privacy-title {
  font-family: var(--font-display);
  font-size: 12px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  margin-bottom: 4px;
}
.privacy-body {
  font-size: 10px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: var(--muted);
  line-height: 1.6;
}
.badge-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.mini-badge {
  font-size: 10px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); padding: 6px 12px; border-radius: 999px; color: var(--ink);
}

.payment-card { background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-soft); margin-bottom: 20px; }
.payment-icon { font-size: 32px; margin-bottom: 6px; }
.payment-amount { font-family: var(--font-display); font-size: 42px; color: var(--accent-gold-bright); margin-bottom: 4px; }
.payment-sub { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.payment-qr-box {
  border: 2px dashed var(--accent-gold); border-radius: 20px; height: 160px; width: 160px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: rgba(255,255,255,0.04);
  font-size: 11px !important; font-weight: 500 !important; font-style: italic !important;
  color: var(--muted); text-align: center; padding: 10px;
}
.payment-qr-box img { width: 100%; height: 100%; object-fit: contain; }
#pay-now-btn { margin-bottom: 12px; }
.payment-or { font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 12px; }
.payment-note { font-size: 12px; color: var(--muted); line-height: 1.6; }

.activation-confirm { margin-top: 18px; animation: screen-enter 0.5s var(--ease-standard) both; }
.activation-check {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; margin-bottom: 14px;
}
.activation-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.activation-check-box {
  width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; position: relative;
  border: 1px solid var(--accent-gold-soft); background: rgba(255,255,255,0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.activation-check input:checked + .activation-check-box { background: var(--accent-gold); border-color: var(--accent-gold); }
.activation-check input:checked + .activation-check-box::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid var(--bg-dark); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.activation-check span:last-child {
  font-family: var(--font-display);
  font-size: 10px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  color: var(--cream-text);
}

.age-icon-row { text-align: center; font-size: 34px; margin-bottom: 12px; }
.age-warning-box { margin-bottom: 20px; }
.age-warning-box p {
  font-size: 9px !important;
  font-style: italic !important;
  font-weight: 500 !important;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.day-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.day-chip {
  flex: 1 1 calc(33.333% - 10px); min-width: 70px; height: 52px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--ink);
  cursor: pointer; transition: transform 0.18s var(--ease-bounce), background-color 0.15s ease, color 0.15s ease;
}
.day-chip.is-pressed { transform: scale(0.9); }
.day-chip.selected { background: var(--accent-gold); color: var(--bg-dark); border-color: var(--accent-gold); }

.time-chip-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.time-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 14px 20px; cursor: pointer; color: var(--ink);
  transition: transform 0.18s var(--ease-bounce), background-color 0.15s ease, color 0.15s ease;
}
.time-chip.is-pressed { transform: scale(0.95); }
.time-chip.selected { background: var(--accent-gold); color: var(--bg-dark); border-color: var(--accent-gold); }
.time-chip-range { font-size: 12px; font-weight: 400; opacity: 0.75; }

.orbit-loader { position: relative; width: 110px; height: 110px; margin: 0 auto; }
.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--accent-gold-bright);
  animation: orbit-spin 2.2s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit-dot { position: absolute; inset: 0; animation: orbit-spin 2.2s linear infinite; }
.orbit-dot::before {
  content: ''; position: absolute; top: -4px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--accent-gold-bright); box-shadow: 0 0 14px rgba(240,194,123,0.9);
}
.orbit-core {
  position: absolute; inset: 14px; border-radius: 50%; background: var(--glass-bg-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
  animation: orbit-pulse 2.4s ease-in-out infinite;
}
@keyframes orbit-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.approval-progress { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; text-align: left; }
.approval-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.approval-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-gold); flex-shrink: 0; }
.tip-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  font-style: italic !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 4px;
}
.tip-card { font-size: 13px; font-style: italic; color: var(--muted); background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 14px 16px; margin-top: 0; }
.waiting-footer-note {
  font-family: var(--font-display);
  font-size: 10px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  color: var(--cream-text);
  text-align: center;
  margin-top: 16px;
}

.terms-page-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 30% 25%, var(--bg-glow) 0%, transparent 45%),
              radial-gradient(circle at 75% 70%, var(--bg-glow-2) 0%, transparent 50%),
              var(--bg-dark);
}
.terms-card { background: var(--glass-bg-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-border); color: var(--ink); max-width: 480px; width: 100%; border-radius: 30px; padding: 32px 26px; text-align: left; box-shadow: var(--shadow-strong); }
.terms-heading { font-family: var(--font-display); font-size: 17px; margin: 24px 0 8px; color: var(--accent-gold-bright); }
.terms-item { font-size: 14px; line-height: 1.65; margin-bottom: 14px; color: var(--muted); }

/* ===== Waiting-screen chat: icon + full overlay conversation ===== */
.chat-bubble-wrap {
  position: absolute; bottom: 20px; right: 16px; z-index: 15;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  animation: chat-bubble-slide-in 0.6s var(--ease-bounce) 1.5s both;
}
@keyframes chat-bubble-slide-in {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
.chat-icon-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--btn-dark); border: 1px solid var(--glass-border);
  color: #fff; font-size: 24px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  position: relative;
}
.chat-icon-label {
  font-family: var(--font-display);
  font-size: 10px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  color: var(--cream-text);
  white-space: nowrap;
}

.chat-overlay {
  position: absolute; inset: 0; background: var(--bg-dark); z-index: 20;
  display: flex; flex-direction: column;
}
.chat-overlay[hidden] { display: none !important; }
.chat-overlay-header {
  display: flex; align-items: center; gap: 12px; padding: 18px;
  border-bottom: 1px solid var(--glass-border); font-size: 14px; font-weight: 700; color: var(--ink);
}
.chat-back-btn {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border); color: var(--ink); cursor: pointer;
}
.chat-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.4; }
.chat-bubble.from-applicant { align-self: flex-end; background: var(--btn-dark); color: #fff; }
.chat-bubble.from-manager { align-self: flex-start; background: var(--glass-bg); color: var(--ink); border: 1px solid var(--glass-border); }
.chat-input-row { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--glass-border); }
.chat-input-row input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); color: var(--ink); border-radius: 999px; padding: 10px 16px; }

/* ===== Boy-only: "your profile is live" status + validity timer ===== */
.live-status-card {
  background: var(--glass-bg); border: 1px solid var(--accent-gold); border-radius: 20px;
  padding: 18px 20px; margin: 16px 0; text-align: center;
}
.live-status-title {
  font-family: var(--font-display);
  font-size: 13px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: var(--accent-gold-bright);
  margin-bottom: 6px;
}
.live-status-body {
  font-size: 11px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.live-status-timer {
  font-family: var(--font-display);
  font-size: 12px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: var(--ink);
}
.approval-item.is-approved .approval-dot { background: #6FCF97; }
.approval-item.is-approved span:last-child { color: #6FCF97; }
.approval-progress[hidden] { display: none !important; }.chat-unread-badge {
  position: absolute; top: -6px; right: -6px;
  background: #E5484D; color: #fff;
  font-size: 11px; font-weight: 800; font-style: normal;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid var(--bg-dark);
  animation: badge-pop 0.3s var(--ease-bounce);
}
@keyframes badge-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
} /* Uploaded photo softens to 80% once it has been saved */
.photo-preview-box.is-uploaded {
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

/* ---- No coloured flash on tap (the blue strip Android Chrome draws over buttons and text) ---- */
* { -webkit-tap-highlight-color: transparent; }
button, a, label, summary, .btn, .quiz-option, .role-card, .list-option, .day-chip, .time-chip, .back-btn, .consent-card {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }

/* ---- Chat: the Send button was pushed off the right edge on phones. Input shrinks, Send always fits. ---- */
.chat-input-row { align-items: center; box-sizing: border-box; width: 100%; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.chat-input-row input { flex: 1 1 0; min-width: 0; width: 0; height: 48px; font-size: 16px; }
.chat-input-row .btn { flex: 0 0 auto; width: auto; height: 48px; padding: 0 22px; white-space: nowrap; }