/* ============================================================
   Survey Platform — Welcome Page
   Deep space blue-black × electric blue × gold  ·  Refined and minimal  ·  Overseas platform style
   ============================================================ */

:root {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --card: #ffffff;
  --card-border: #e2e8f0;
  --line: #e2e8f0;
  --blue: #111827;
  --cyan: #6b7280;
  --gold: #1f2937;
  --gold-soft: #6b7280;
  --text: #0f172a;
  --text-dim: #64748b;
  --text-faint: #94a3b8;
  --radius: 18px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --nav-bg: rgba(255, 255, 255, .85);
  --foot-bg: #f1f5f9;
  --input-bg: #f8fafc;
  --cookie-bg: #ffffff;
  --glow-a: rgba(15, 23, 42, .05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Common buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover { background: #000; transform: none; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: #9ca3af; }
.btn-lg { padding: 14px 36px; font-size: 15px; }
.btn.small { padding: 8px 18px; font-size: 13px; }

/* ---------- Top navigation bar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: Georgia, serif; font-size: 20px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(47, 129, 247, .4);
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.brand-name i { font-style: normal; color: var(--gold); font-weight: 400; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.menu a:hover { color: var(--gold); }
.nav .btn-primary { margin-left: 8px; }
.nav .nav-btn-mall + .btn-primary { margin-left: 0; }

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  min-width: 40px;
}
.lang-switch button:hover { color: var(--gold); }
.lang-switch button.on {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 129, 247, .35);
}
.lang-switch button.on:hover { color: #fff; }

/* ---------- Hero (dark full-width banner) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 170px 24px 150px;
  text-align: center;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/swag_hero_bg.avif') center/cover no-repeat, #0f2547;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, .86) 0%, rgba(17, 24, 39, .70) 55%, rgba(248, 250, 252, .96) 100%),
    radial-gradient(900px 500px at 50% 0%, rgba(255, 255, 255, .10), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  letter-spacing: 4px;
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .5px;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .3);
}
.hero-title .gold {
  background: linear-gradient(90deg, #fbbf24, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.8;
}

/* Big-number impact card: translucent glassmorphism */
.hero-counter {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-radius: 22px;
  padding: 22px 48px 24px;
  margin-bottom: 34px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(2, 12, 40, .45),
    inset 0 1px 1px rgba(255, 255, 255, .55),
    inset 0 -1px 1px rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
}
/* Diagonal sheen on the glass surface */
.hero-counter::before {
  content: "";
  position: absolute;
  top: -60%; left: -30%;
  width: 70%; height: 220%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 48%, rgba(255, 255, 255, .05) 56%, transparent 70%);
  transform: rotate(8deg);
  pointer-events: none;
}
/* Rim light along the edge */
.hero-counter::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .05) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hc-label { position: relative; z-index: 2; font-size: 13px; color: rgba(255, 255, 255, .88); letter-spacing: 1px; }
.hc-value {
  position: relative; z-index: 2;
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  text-shadow: 0 2px 16px rgba(2, 12, 40, .4);
}
.hc-currency { font-size: 32px; vertical-align: top; margin-right: 2px; opacity: .9; }
.hc-sub { position: relative; z-index: 2; font-size: 13px; color: rgba(255, 255, 255, .82); }

.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 46px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; }
.hero-trust span { color: rgba(255, 255, 255, .85); font-size: 13px; letter-spacing: .5px; }
.hero-trust i {
  color: #4ade80;
  font-style: normal;
  margin-right: 6px;
  font-weight: 700;
}

/* Glassmorphism button */
.btn-glass {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

/* Hero primary button: white on dark (Apple monochrome) */
.hero .btn-primary {
  background: #fff;
  border: 1px solid #fff;
  color: #111827;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.hero .btn-primary:hover {
  transform: translateY(-2px);
  background: #f3f4f6;
  border-color: #f3f4f6;
  color: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

/* Bottom wave divider */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 60%, 8% 50%, 18% 45%, 30% 52%, 42% 62%, 55% 68%, 68% 62%, 80% 50%, 90% 44%, 100% 50%, 100% 100%, 0 100%);
  z-index: 1;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 24px;
  position: relative;
  z-index: 5;
}
.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 34px 0;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-plus { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
.stat-star { color: #0071e3; -webkit-text-fill-color: #0071e3; font-size: 30px; }
.stat-lbl { font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.stat-divider { width: 1px; height: 48px; background: var(--line); }

/* ---------- Press mentions wall ---------- */
.press-wall {
  background: var(--bg2);
  padding: 44px 24px;
  text-align: center;
}
.press-title {
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 26px;
}
.press-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.press-logo {
  height: 26px;
  width: auto;
  filter: grayscale(1) opacity(.5);
  transition: all .25s;
}
.press-logo:hover { filter: grayscale(0) opacity(1); }

/* ---------- Sections ---------- */
.section { padding: 96px 24px; max-width: 1180px; margin: 0 auto; }
.section.alt {
  max-width: none;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-en { color: #0071e3; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.sec-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 16px; }
.sec-head p { color: var(--text-dim); font-size: 15px; }

/* ---------- Cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 180, 90, .35);
  box-shadow: var(--shadow);
}
.card-icon { font-size: 28px; color: var(--gold); margin-bottom: 18px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 14px; }

/* About section: side-by-side image and text layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.about-visual { position: relative; }
.about-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .12);
}
.about-float-card {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: #fff;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .14);
  text-align: center;
}
.about-float-card .afc-num {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-float-card .afc-lbl {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}
.about-cards { grid-template-columns: repeat(3, 1fr); }

/* Topic cards */
.card.theme { display: block; position: relative; overflow: hidden; }
.theme-icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.theme-emoji {
  display: inline-flex;
  width: 54px; height: 54px;
  align-items: center; justify-content: center;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  transition: all .25s ease;
}
.theme-emoji svg { display: block; width: 24px; height: 24px; stroke-width: 1.5; }
.card.theme:hover .theme-emoji {
  color: #1f2937;
  border-color: rgba(15, 23, 42, .28);
  background: #f1f5f9;
}
.theme-no {
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 129, 247, .45);
}
.card.theme:hover .theme-no { -webkit-text-stroke: 1px var(--gold); }
.theme-more { display: inline-block; margin-top: 18px; color: #0071e3; font-size: 14px; font-weight: 600; transition: color .2s, transform .2s; }
.card.theme:hover .theme-more { color: #0077ed; transform: translateX(3px); }

/* ---------- Process steps ---------- */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0;
  text-align: center;
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, .14);
  border-color: rgba(15, 23, 42, .3);
}
.step-illus {
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
.step-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.step:hover .step-illus img { transform: scale(1.05); }
.step-num {
  position: absolute;
  top: 166px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 50px;
  margin: 0;
  border-radius: 50%;
  background: #0071e3;
  color: #fff;
  font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 113, 227, .32);
  border: 4px solid #fff;
  z-index: 2;
}
.step h3 { font-size: 18px; font-weight: 700; margin: 38px 24px 10px; }
.step p { color: var(--text-dim); font-size: 14px; line-height: 1.7; padding: 0 26px 30px; }
.step-arrow { align-self: center; color: #0071e3; font-size: 26px; font-weight: 700; }

/* ---------- Partner merchants wall ---------- */
.merchant-wall {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}
.merchant-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 8px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.merchant-item {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .10);
  transition: all .28s cubic-bezier(.2,.7,.3,1);
}
.merchant-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .2);
}
.merchant-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: "+"; color: #0071e3; font-size: 20px; font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-dim); font-size: 14px; margin-top: 12px; }

/* ---------- CTA ---------- */
.cta {
  padding: 90px 24px;
  text-align: center;
  background:
    radial-gradient(800px 380px at 50% 0%, rgba(47, 129, 247, .18), transparent 65%),
    var(--bg);
}
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--text-dim); margin-bottom: 30px; }

/* ---------- Footer ---------- */
.foot { background: var(--foot-bg); border-top: 1px solid var(--line); padding: 64px 24px 0; }
.foot-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
}
.foot-brand .brand-name { font-size: 17px; }
.foot-brand p { color: var(--text-faint); font-size: 13px; margin-top: 14px; max-width: 260px; }
.foot-col h4 { font-size: 14px; color: var(--text); margin-bottom: 16px; letter-spacing: 1px; }
.foot-col a { display: block; color: var(--text-faint); font-size: 13px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--text-faint); font-size: 12px;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 130%);
  z-index: 200;
  width: min(760px, calc(100vw - 32px));
  background: var(--cookie-bg);
  border: 1px solid rgba(232, 180, 90, .3);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  transition: transform .35s ease;
}
.cookie.show { transform: translate(-50%, 0); }
.cookie-text { flex: 1; }
.cookie-text strong { color: var(--gold-soft); font-size: 15px; }
.cookie-text p { color: var(--text-dim); font-size: 13px; margin-top: 6px; line-height: 1.7; }
.cookie-text a { color: var(--cyan); border-bottom: 1px dashed var(--cyan); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu { display: none; }
  .hero { padding: 130px 20px 110px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hc-value { font-size: 32px; }
  .hc-currency { font-size: 24px; }
  .cards-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-float-card { bottom: -12px; right: -12px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .merchant-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-divider { display: none; }
  .stats-inner { gap: 20px; }
  .stat-num { font-size: 30px; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .merchant-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .foot-inner { grid-template-columns: 1fr; }
}

/* ---------- Legal / info pages ---------- */
.legal-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.legal-nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.legal-nav .btn { margin-left: auto; }
.legal {
  max-width: 860px; margin: 0 auto;
  padding: 140px 24px 80px;
}
.legal h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 36px; }
.legal h2 {
  font-size: 20px; font-weight: 700;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
.legal p, .legal li { color: var(--text-dim); font-size: 14.5px; line-height: 1.9; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal strong { color: var(--text); }
.legal .box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 18px 0;
}

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.contact-form label { display: block; font-size: 13px; color: var(--text-dim); margin: 16px 0 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #111827; box-shadow: 0 0 0 3px rgba(17,24,39,.08); }
.contact-ok { color: var(--gold-soft); font-size: 14px; margin-top: 16px; }


/* ---------- Top-bar user dropdown (expand by clicking the ID) ---------- */
.nav-user-wrap { position: relative; }
.nav-user { position: relative; cursor: pointer; border: 1px solid var(--card-border); background: var(--card); }
.nav-user .uv-caret { font-size: 10px; opacity: .75; margin-left: 2px; }
/* Unread in-app message blue dot (top-right of the account pill, visible without opening the dropdown) */
.uv-mail-dot {
  position: absolute; top: -4px; right: -4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #0071e3; border: 2px solid var(--nav-bg, #fff);
  box-shadow: 0 0 0 1px rgba(0,113,227,.35);
  animation: uvPulse 2s ease-out infinite;
}
@keyframes uvPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,113,227,.45); }
  70%  { box-shadow: 0 0 0 6px rgba(0,113,227,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,113,227,0); }
}
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 224px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,.30); padding: 8px; z-index: 130;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.nav-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.nd-info { padding: 10px 14px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nd-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 0; }
.nd-k { color: var(--text-faint); font-size: 12.5px; }
.nd-v { font-weight: 700; font-size: 14px; }
.nd-v.gold { color: var(--gold); }
.nd-sep { color: var(--text-faint); margin: 0 6px; font-weight: 400; }
.nd-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(22,163,74,.10); color: #15803d;
}
.nd-item { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text); text-decoration: none; transition: background .15s; }
.nd-item:hover { background: rgba(15,23,42,.06); }
.nd-item.danger { color: #dc2626; }
.nd-item:has(.nd-badge-mail) { display: flex; align-items: center; justify-content: space-between; }
.nd-badge-mail { background: rgba(0,113,227,.10); color: #0071e3; min-width: 22px; justify-content: center; }
.nd-item.danger:hover { background: rgba(220,38,38,.08); }

/* ===== Account health status in the dropdown menu (rounded card) ===== */
.nd-status-row {
  margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.10);
}
.nd-status-row .nd-k { font-size: 12.5px; }
.nd-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.nd-state-dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block;
  box-shadow: 0 0 0 3px rgba(15,23,42,.06);
}
.nd-state-good   .nd-state-dot { background: #16a34a; } .nd-state-good   { color: #15803d; }
.nd-state-normal .nd-state-dot { background: #16a34a; } .nd-state-normal { color: #15803d; }
.nd-state-warn   .nd-state-dot { background: #d97706; } .nd-state-warn   { color: #b45309; }
.nd-state-danger .nd-state-dot { background: #dc2626; } .nd-state-danger { color: #b91c1c; }

/* ---------- Click-text CAPTCHA ---------- */
.slide-hint {
  font-size: 13px;
  color: #8b95a7;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.slide-guide {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  padding: 7px 10px;
  letter-spacing: 0.3px;
  z-index: 6;
  pointer-events: none;
}
.slide-box { margin-top: 6px; position: relative; }
.slide-bg { position: relative; width: 100%; max-width: 360px; aspect-ratio: 360 / 200; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #10162a; user-select: none; }
.slide-bg-img { display: block; width: 100%; height: 100%; cursor: crosshair; }
.click-dots { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.click-dot {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
  border: 2px solid rgba(255,255,255,.4);
}
.slide-state { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 20px; font-size: 12px; white-space: nowrap; background: rgba(10,15,30,.78); color: #c8d3e8; z-index: 7; }
.slide-state.slide-err { color: #ff8a8a; }
.slide-state.slide-ok { color: #6ee7a0; }
.slide-state.slide-lock { color: #f0b429; }
.slide-box.locked .slide-bg-img { pointer-events: none; opacity: .45; }

/* ---------- Top-bar user area (email + task ID; the ID is the clickable account entry) ---------- */
.nav-user {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border: 1px solid var(--card-border);
  border-radius: 999px; background: var(--card);
  text-decoration: none; color: var(--text); transition: border-color .2s;
}
.nav-user:hover { border-color: var(--gold); }
.nav-user .uv-mail {
  font-size: 12px; color: var(--text-dim);
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user .uv-id { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .5px; }

/* ---------- Mobile top-bar adaptations: tighten spacing and keep the brand name from wrapping awkwardly ---------- */
@media (max-width: 600px) {
  .nav-inner { padding: 10px 12px; gap: 10px; }
  .brand { gap: 8px; }
  .logo { width: 30px; height: 30px; border-radius: 9px; font-size: 18px; box-shadow: 0 3px 10px rgba(47,129,247,.4); }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .nav-user { padding: 6px 12px; gap: 6px; }
  .nav-user .uv-mail { max-width: 96px; }
  .lang-switch { padding: 3px; gap: 4px; flex-shrink: 0; }
  .lang-switch button { padding: 5px 11px; font-size: 12px; min-width: 0; }
  .nav .btn-sm { padding: 8px 14px; font-size: 13px; }
  /* On mobile, hide the large "Start answering" and "Points Mall" buttons in the nav (the homepage Hero has its own primary button, and after login users land on the task hall) */
  .nav .btn-primary:not(.btn-sm),
  .nav .nav-btn-mall:not(.btn-sm) { display: none; }
}
@media (max-width: 400px) {
  .nav-inner { gap: 8px; }
  .brand-name { display: none; }
  .nav-user .uv-mail { display: none; }
  .nav .btn-sm { padding: 7px 12px; font-size: 12.5px; }
  .nav-dropdown { min-width: 200px; }
}

/* ---------- Footer (theme toggle removed) ---------- */

/* ---------- Light theme ---------- */

/* ===== Debug mode: recommended answer highlight ===== */
.opt.debug-rec {
  border: 2px solid #16a34a !important;
  background: rgba(22, 163, 74, 0.1) !important;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.3) !important;
}
.opt.debug-rec .mark {
  background: #16a34a !important;
  color: white !important;
}
.rate-btn.debug-rec {
  border: 2px solid #16a34a !important;
  background: rgba(22, 163, 74, 0.1) !important;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.3) !important;
}


/* ========== New footer styles (mainstream survey-site look) ========== */

/* ============================================================
   User reviews section (Trustpilot-style rating platform)
   ============================================================ */
.reviews-section {
  position: relative;
  background: linear-gradient(155deg, #1f2937 0%, #111827 60%, #0b0f17 100%);
  padding: 76px 24px 84px;
  overflow: hidden;
}
.reviews-section::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(6, 182, 212, .18), transparent 70%);
  pointer-events: none;
}
.reviews-section::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  bottom: -220px; left: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%);
  pointer-events: none;
}
.reviews-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; text-align: center; }
.rv-title { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 4px; letter-spacing: .5px; }

/* Overall rating banner */
.trust-summary {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  padding: 20px 38px;
  margin: 26px auto 48px;
  box-shadow: 0 14px 42px rgba(2, 12, 40, .4);
}
.ts-score { font-size: 54px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.ts-stars { color: #00b67a; font-size: 22px; letter-spacing: 3px; line-height: 1; text-align: left; }
.ts-verdict { margin-top: 7px; text-align: left; }
.ts-badge {
  display: inline-block;
  background: #00b67a; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 6px;
  letter-spacing: .5px;
}
.ts-divider { width: 1px; height: 48px; background: rgba(255, 255, 255, .22); }
.ts-count { text-align: left; }
.ts-count b { display: block; font-size: 22px; color: #fff; font-weight: 800; line-height: 1.2; }
.ts-count span { font-size: 13px; color: rgba(255, 255, 255, .75); }

/* Review cards */
.reviews-grid { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.review-card {
  flex: 1; min-width: 280px; max-width: 340px;
  background: #fff;
  border-radius: 20px;
  padding: 26px 26px 22px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(2, 12, 40, .3);
  transition: transform .3s ease, box-shadow .3s ease;
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 18px; right: 20px;
  font-size: 100px; line-height: 1;
  color: #00b67a; opacity: .09;
  font-family: Georgia, "Times New Roman", serif;
  z-index: 1;
}
.review-card:hover { transform: translateY(-8px); box-shadow: 0 26px 54px rgba(2, 12, 40, .5); }
.rc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; position: relative; z-index: 2; }
.rc-stars { color: #00b67a; font-size: 17px; letter-spacing: 2px; }
.rc-verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: #00a871; font-weight: 700;
  background: rgba(0, 182, 122, .1);
  padding: 4px 10px; border-radius: 20px;
}
.rc-verified i {
  font-style: normal;
  display: inline-flex; width: 15px; height: 15px;
  border-radius: 50%; background: #00b67a; color: #fff;
  font-size: 10px; align-items: center; justify-content: center;
}
.review-text {
  font-size: 14.5px; color: #334155; line-height: 1.78;
  margin: 0 0 20px; min-height: 80px;
  position: relative; z-index: 2;
}
.rc-foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #f1f5f9; position: relative; z-index: 2; }
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .2);
}
.review-name { font-size: 15px; font-weight: 700; color: #0f172a; }
.review-loc { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }

@media (max-width: 640px) {
  .trust-summary { flex-wrap: wrap; gap: 16px; padding: 18px 24px; }
  .ts-divider { display: none; }
  .review-card { max-width: 100%; }
  .ts-score { font-size: 44px; }
}

/* Email newsletter section */
.footer-newsletter {
  background: #111827;
  padding: 48px 24px;
  color: #fff;
}
.newsletter-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.newsletter-text p {
  font-size: 14px;
  opacity: 0.9;
  max-width: 480px;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 420px;
  min-width: 280px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
}
.newsletter-form button {
  padding: 12px 24px;
  background: #fff;
  color: #111827;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover {
  background: #e5e7eb;
}

/* Main footer area */
.foot {
  background: var(--foot-bg);
  border-top: 1px solid var(--line);
  padding: 56px 24px 0;
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

/* Brand intro column */
.foot-brand {
  padding-right: 20px;
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.foot-logo .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.foot-logo .brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.foot-logo .brand-name i {
  color: var(--blue);
  font-style: normal;
}
.foot-desc {
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.foot-contact {
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 8px;
}
.contact-icon {
  font-size: 14px;
  color: var(--blue);
}
.foot-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.security-badge {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  font-size: 11px;
  color: #374151;
  font-weight: 500;
}

/* Link columns */
.foot-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.foot-col a {
  display: block;
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
  text-decoration: none;
}
.foot-col a:hover {
  color: var(--blue);
}

/* Footer copyright bar */
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-faint);
  font-size: 12px;
  flex-wrap: wrap;
}
.foot-bottom-left, .foot-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-divider {
  color: var(--line);
}
.payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pay-icon {
  padding: 3px 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

/* Responsive adaptations */
@media (max-width: 960px) {
  .foot-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}
@media (max-width: 640px) {
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    width: 100%;
    max-width: 100%;
  }
  .foot-inner {
    grid-template-columns: 1fr 1fr;
  }
  .foot-bottom {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 420px) {
  .foot-inner {
    grid-template-columns: 1fr;
  }
}


/* ========== Unified footer emoji colors (grayscale to avoid visual clutter) ========== */
.foot .cert-icon,
.foot .contact-icon,
.foot .security-badge,
.foot .pay-icon,
.foot .logo {
  filter: grayscale(100%) opacity(0.75);
  transition: filter 0.2s;
}
.foot .cert-item:hover .cert-icon,
.foot .security-badge:hover,
.foot .pay-icon:hover {
  filter: grayscale(100%) opacity(1);
}

/* Certification badges laid out horizontally */
.footer-certs {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 24px;
}
.certs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.cert-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cert-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cert-text .cert-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.3;
}
.cert-text .cert-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}


/* ========== Unified page-content emoji colors (blue tones to avoid visual clutter) ========== */
.page-section .emoji,
.page-section .card-icon,
.page-section .step-num,
.page-section .value-icon,
.page-section .timeline-icon {
  filter: hue-rotate(180deg) saturate(0.6) brightness(1.1);
}
/* Unify emoji icons in page content to blue tones */
.page-section [class*="icon"] {
  filter: grayscale(30%) sepia(50%) hue-rotate(180deg) saturate(1.2);
}

/* ========== Footer adaptations under dark theme ========== */


/* ========== Page-content color hierarchy (avoid flat monotony) ========== */
.page-section {
  background: #f8fafc;
}
.page-section:nth-child(even) {
  background: #fff;
}
.page-section .card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
}
.page-section .card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.page-section .section-title {
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-section .section-subtitle {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 32px;
}
.page-section .accent-text {
  color: #111827;
  font-weight: 600;
}
.page-section .gold-text {
  color: #111827;
  font-weight: 600;
}

/* Page-content adaptations under dark theme */


/* ========== Forceful dark-theme overrides (fix hardcoded white backgrounds) ========== */

/* Cards dark theme */

/* Card text dark theme */

/* Section headings dark theme */

/* Unified card emoji colors (blue tones, consistent across all themes) */
.value-icon,
.feature-icon,
.step-icon,
.theme-icon,
.reward-icon,
.card-icon,
.timeline-icon {
  filter: grayscale(40%) sepia(60%) hue-rotate(180deg) saturate(1.5) brightness(1.1);
  display: inline-block;
}

/* Stat numbers dark theme */

/* Buttons dark theme */

/* Dividers dark theme */


/* ========== Addendum: dark-theme overrides for more elements ========== */

/* Page body background dark theme */

/* Stat cards dark theme */

/* Step flow dark theme */

/* FAQ dark theme */

/* Tables dark theme */

/* Blockquotes dark theme */

/* Tags / badges dark theme */

/* Lists dark theme */

/* Links dark theme */

/* Divider sections dark theme */


/* ========== Final addendum: full dark-theme coverage for all page elements ========== */
/* Page section backgrounds */

/* Headings and text inside sections */

/* info-card */

/* step-content */

/* faq-item */

/* contact-form / form-group */

/* Ensure correct text colors under light theme (prevent generic dark-theme overrides from affecting them) */

/* Navigation bar dark theme */

/* Language switcher button dark theme */

/* Theme toggle button dark theme */

/* Cookie banner dark theme */

/* Buttons dark theme */


/* ========== Dark-theme overrides specific to about.php ========== */

/* Timeline dark theme */

/* value-card dark theme */

/* Ensure white background for about-section under light theme */


/* ========== Unified colors for all icons / emoji ========== */
.info-card .icon,
.value-card .icon,
.feature-card .icon,
.theme-card .icon,
.reward-card .icon,
.step-card .icon,
.f-card .icon,
.foot-badges .contact-icon,
.about-hero .stats .num {
  filter: grayscale(100%) sepia(100%) hue-rotate(180deg) saturate(3) brightness(1.2);
  opacity: 0.9;
}

/* Unify emoji inside cards to blue tones */
.info-card h3::before,
.value-card h3::before,
.feature-card h3::before,
.theme-card h3::before,
.reward-card h3::before {
  filter: grayscale(60%) sepia(80%) hue-rotate(180deg) saturate(2) brightness(1.1);
}

/* ===== Content-page theme adaptations (override hardcoded colors in per-page inline <style> blocks for consistent light/dark themes) ===== */
.page-section h2,
.page-section h3,
.info-card h3,
.step-content h3,
.faq-item h3,
.form-group label {
  color: var(--text) !important;
}
.page-section p,
.page-section li,
.info-card p,
.step-content p,
.faq-item p {
  color: var(--text-dim) !important;
}
.info-card,
.faq-item,
.contact-form,
.step-item {
  background: var(--card) !important;
  border-color: var(--card-border) !important;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--input-bg) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint) !important;
}
/* page-hero: fixed blue gradient with white text, shared by both themes */
.page-hero { color: #fff; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.9); }
/* submit-btn: brand gradient button shared by both themes */
.submit-btn { background: linear-gradient(135deg, var(--blue), var(--cyan)) !important; color: #fff !important; }

/* ============================================================
   Post-registration profiling Onboarding Modal (monochrome minimal)
   ============================================================ */
.ob-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ob-overlay.ob-show { display: flex; animation: obFade .25s ease; }
@keyframes obFade { from { opacity: 0; } to { opacity: 1; } }

.ob-modal {
  width: 100%; max-width: 500px;
  max-height: 92vh; overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: obPop .3s cubic-bezier(.2, .8, .3, 1);
}
@keyframes obPop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.ob-head { padding: 30px 34px 0; }
.ob-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.ob-steps i { height: 3px; flex: 1; border-radius: 99px; background: #e5e7eb; transition: background .3s; }
.ob-steps i.on { background: #111827; }
.ob-taskrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ob-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #9ca3af; text-transform: uppercase; margin-bottom: 0; }
.ob-task-pill {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .3px;
  color: #8a6d1f; background: #fbf6e8; border: 1px solid #ecd9a8;
  padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}
.ob-title { font-size: 25px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.ob-sub { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0; }

.ob-body { padding: 22px 34px 8px; }
.ob-step { display: none; }
.ob-step.on { display: block; animation: obFade .25s ease; }

.ob-field { margin-bottom: 18px; }
.ob-field > label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin: 0 0 8px; }
.ob-field input[type="date"],
.ob-field input[type="text"],
.ob-field select {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: 12px; border: 1px solid #e2e8f0;
  background: #fff; color: #0f172a;
  font-size: 14.5px; font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.ob-field input:focus, .ob-field select:focus {
  outline: none; border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .1);
}
.ob-row2 { display: flex; gap: 12px; }
.ob-row2 .ob-field { flex: 1; }

/* Gender selection tiles */
.ob-seg { display: flex; gap: 10px; }
.ob-seg button {
  flex: 1; height: 52px;
  border: 1px solid #e2e8f0; background: #fff;
  border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #374151;
  transition: all .18s;
}
.ob-seg button:hover { border-color: #9ca3af; }
.ob-seg button.on {
  background: #111827; border-color: #111827; color: #fff;
  box-shadow: 0 6px 16px rgba(17, 24, 39, .22);
}

.ob-err { display: none; font-size: 13px; color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 9px 13px; margin-bottom: 14px; }
.ob-err.show { display: block; }

.ob-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 34px 30px;
}
.ob-btn {
  height: 50px; padding: 0 28px; border: none; border-radius: 12px;
  background: #111827; color: #fff;
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .18s;
}
.ob-btn:hover { background: #000; }
.ob-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.ob-link {
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #9ca3af;
  font-family: inherit; padding: 8px 4px;
  transition: color .18s;
}
.ob-link:hover { color: #374151; }
.ob-foot-right { display: flex; align-items: center; gap: 8px; }

/* Completion screen */
.ob-done { text-align: center; padding: 10px 0 6px; }
.ob-check {
  width: 76px; height: 76px; margin: 6px auto 20px;
  border-radius: 50%; background: #111827;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 38px;
  animation: obPop .4s cubic-bezier(.2, .8, .3, 1);
}
.ob-reward-pill {
  display: inline-block; margin-top: 14px;
  padding: 8px 20px; border-radius: 99px;
  background: #f3f4f6; color: #111827;
  font-size: 15px; font-weight: 800;
}
.ob-done-note {
  margin: 14px auto 0; max-width: 380px;
  font-size: 12.5px; line-height: 1.7; color: #9ca3af;
}
.ob-done .ob-foot { justify-content: center; padding-bottom: 6px; }

@media (max-width: 520px) {
  .ob-overlay { padding: 0; }
  .ob-modal { max-width: 100%; max-height: 100vh; border-radius: 0; min-height: 100vh; }
  .ob-head, .ob-body, .ob-foot { padding-left: 22px; padding-right: 22px; }
}
