/* ─── AstroAI — Main CSS ─────────────────────────────────────────── */
:root {
  --bg:         #fff7ef;
  --bg2:        #fff2e6;
  --bg3:        #f6edf8;
  --surface:    #ffffff;
  --surface2:   #fff1f5;
  --gold:       #f5b942;
  --gold-light: #ffd978;
  --violet:     #6e4cff;
  --violet-light:#947cff;
  --coral:      #ff4f7b;
  --teal:       #12b8b1;
  --lime:       #9ddc62;
  --white:      #221824;
  --muted:      #786b7b;
  --danger:     #e05555;
  --success:    #4caf82;
  --radius:     14px;
  --radius-sm:  8px;
  --nav-h:      68px;
  --top-h:      56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,91,121,.18), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(31,185,190,.16), transparent 30rem),
    radial-gradient(circle at 50% 92%, rgba(182,227,93,.10), transparent 26rem),
    var(--bg);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-top: var(--top-h);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

/* ─── Stars background ─── */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stars-layer { position: absolute; inset: 0; background-repeat: repeat; animation: twinkle 8s infinite alternate; }
.stars-small  { background-image: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.6) 0%, transparent 100%), radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,.4) 0%, transparent 100%), radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,.5) 0%, transparent 100%), radial-gradient(1px 1px at 80% 80%, rgba(255,255,255,.3) 0%, transparent 100%), radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,.6) 0%, transparent 100%); background-size: 300px 300px; animation-duration: 6s; }
.stars-medium { background-image: radial-gradient(1.5px 1.5px at 20% 50%, rgba(255,79,123,.24) 0%, transparent 100%), radial-gradient(1.5px 1.5px at 70% 20%, rgba(18,184,177,.22) 0%, transparent 100%), radial-gradient(1.5px 1.5px at 45% 90%, rgba(110,76,255,.18) 0%, transparent 100%); background-size: 500px 500px; animation-duration: 10s; }
.stars-large  { background-image: radial-gradient(2px 2px at 15% 35%, rgba(255,79,123,.28) 0%, transparent 100%), radial-gradient(2px 2px at 85% 65%, rgba(18,184,177,.22) 0%, transparent 100%); background-size: 800px 800px; animation-duration: 14s; }
@keyframes twinkle { 0% { opacity: .7; } 100% { opacity: 1; } }

/* ─── Topbar ─── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,24,36,.08);
}
.topbar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 22px; color: var(--gold); animation: pulse-gold 3s infinite; }
@keyframes pulse-gold { 0%,100%{opacity:1;} 50%{opacity:.6;} }
.logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 650; color: var(--white); letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.btn-upgrade { background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 20px; text-decoration: none; letter-spacing: 0; }
.btn-login { color: var(--gold); font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(201,168,76,.4); border-radius: 20px; }
.topbar-avatar img, .avatar-initial { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--violet); font-size: 14px; font-weight: 600; color: var(--white); }

/* ─── Bottom Nav ─── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(34,24,36,.08);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--muted); padding: 8px 12px;
  border-radius: var(--radius-sm); transition: color .2s;
  min-width: 56px; position: relative;
}
.nav-item.active { color: var(--gold); }
.nav-item:active { transform: scale(.92); }
.nav-icon svg { width: 24px; height: 24px; }
.nav-label { font-size: 10px; font-weight: 500; letter-spacing: .03em; }
.nav-item-center .nav-icon-center {
  background: linear-gradient(135deg, var(--violet), var(--gold));
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -8px; box-shadow: 0 0 20px rgba(123,94,167,.5);
}
.nav-item-center .nav-icon-center svg { width: 22px; height: 22px; color: white; }
.nav-item-center { color: var(--white); }
.nav-item-center.active .nav-icon-center { box-shadow: 0 0 30px rgba(201,168,76,.6); }

/* ─── Main content ─── */
.main-content { position: relative; z-index: 1; padding: 16px 16px 24px; }

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 8px;
  padding: 20px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.04) 0%, transparent 60%);
  pointer-events: none;
}
.card-sm { padding: 14px 16px; border-radius: var(--radius-sm); }
.card-glow { box-shadow: 0 0 30px rgba(123,94,167,.15); }

/* ─── Typography ─── */
h1,h2,h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.2; }
h1 { font-size: 28px; color: var(--white); }
h2 { font-size: 22px; color: var(--white); }
h3 { font-size: 18px; color: var(--white); }
.serif { font-family: var(--font-display); }
.gold { color: var(--gold); }
.muted { color: var(--muted); font-size: 13px; }
.text-sm { font-size: 13px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: none; cursor: pointer; transition: all .2s; letter-spacing: .02em;
  width: 100%;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--coral); color: white; box-shadow: 0 10px 24px rgba(255,79,123,.18); }
.btn-secondary { background: var(--surface2); color: var(--white); border: 1px solid rgba(201,168,76,.2); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-danger { background: var(--danger); color: white; }

/* ─── Forms ─── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; letter-spacing: .03em; text-transform: uppercase; }
.form-control {
  width: 100%; padding: 14px 16px;
  background: var(--surface); color: var(--white);
  border: 1px solid rgba(201,168,76,.2); border-radius: var(--radius-sm);
  font-size: 15px; font-family: 'Inter', sans-serif;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--gold); background: var(--surface2); }
.form-control::placeholder { color: var(--muted); }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238885a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.chip-group label { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; user-select: none; }
.chip-group input:checked + label { background: var(--teal); border-color: var(--teal); color: #0c0a14; }
.chip-group input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.opt-details { border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 16px; background: rgba(255,255,255,.02); }
.opt-details > summary { cursor: pointer; font-size: 14px; color: #cfc8da; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.opt-details > summary::-webkit-details-marker { display: none; }
.opt-details[open] > summary { margin-bottom: 14px; }

/* ─── Stars score ─── */
.score-bar { display: flex; align-items: center; gap: 8px; }
.score-dots { display: flex; gap: 4px; }
.score-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface2); }
.score-dot.filled { background: var(--gold); box-shadow: 0 0 6px rgba(201,168,76,.5); }

/* ─── Pills / badges ─── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge-gold { background: rgba(201,168,76,.15); color: var(--gold); border: 1px solid rgba(201,168,76,.25); }
.badge-violet { background: rgba(123,94,167,.2); color: var(--violet-light); }
.badge-green { background: rgba(76,175,130,.15); color: var(--success); }
.badge-red { background: rgba(224,85,85,.15); color: var(--danger); }

/* ─── Messages ─── */
.messages-container { margin-bottom: 16px; }
.message { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 14px; }
.message-success { background: rgba(76,175,130,.15); border: 1px solid rgba(76,175,130,.3); color: var(--success); }
.message-error { background: rgba(224,85,85,.15); border: 1px solid rgba(224,85,85,.3); color: var(--danger); }
.message-info { background: rgba(123,94,167,.15); border: 1px solid rgba(123,94,167,.3); color: var(--violet-light); }

/* ─── Divider ─── */
.divider { height: 1px; background: rgba(201,168,76,.1); margin: 20px 0; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: rgba(201,168,76,.1); }

/* ─── Skeleton loading ─── */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ─── PWA install banner ─── */
.install-banner {
  position: fixed; bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
  left: 16px; right: 16px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.install-banner span { flex: 1; }
.btn-install { background: var(--gold); color: var(--bg); border: none; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-close-banner { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; }

/* ─── Chat bubble ─── */
.chat-messages { display: flex; flex-direction: column; gap: 12px; padding-bottom: 80px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; }
.msg-user { align-self: flex-end; background: var(--violet); color: white; border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: var(--surface2); color: var(--white); border-bottom-left-radius: 4px; border: 1px solid rgba(201,168,76,.1); }
.msg-ai-icon { font-size: 16px; margin-bottom: 4px; }
.chat-input-bar {
  position: fixed; bottom: calc(var(--nav-h) + var(--safe-bottom));
  left: 0; right: 0; z-index: 80;
  padding: 10px 16px; background: rgba(8,8,16,.95); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201,168,76,.1);
  display: flex; gap: 10px; align-items: flex-end;
}
.chat-input { flex: 1; background: var(--surface); border: 1px solid rgba(201,168,76,.2); border-radius: 22px; padding: 12px 16px; color: var(--white); font-size: 15px; resize: none; max-height: 120px; font-family: 'Inter', sans-serif; }
.chat-input:focus { outline: none; border-color: var(--violet-light); }
.btn-send { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--gold)); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .15s; }
.btn-send:active { transform: scale(.9); }
.btn-send svg { width: 20px; height: 20px; color: white; }

/* ─── Calendar ─── */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 16px 0; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; font-weight: 500; cursor: pointer; position: relative; transition: all .15s; }
.cal-day.has-slots { color: var(--gold); }
.cal-day.has-slots::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal-day.selected { background: var(--gold); color: var(--bg); }
.cal-day.disabled { color: var(--surface2); cursor: default; }
.cal-day:not(.disabled):active { transform: scale(.88); }

/* ─── Slot pills ─── */
.slots-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.slot-pill { padding: 10px 16px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(201,168,76,.2); color: var(--gold); font-size: 15px; font-weight: 500; cursor: pointer; transition: all .15s; }
.slot-pill.selected, .slot-pill:active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ─── Consultant card ─── */
.consultant-card { display: flex; gap: 14px; align-items: flex-start; }
.consultant-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201,168,76,.3); flex-shrink: 0; background: var(--surface2); }
.consultant-info { flex: 1; }
.consultant-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.consultant-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gold); margin: 2px 0; }
.consultant-price { font-size: 13px; color: var(--muted); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 6px var(--success); }

/* ─── Subscription cards ─── */
.plan-card { border-radius: 8px; padding: 24px; border: 1px solid rgba(201,168,76,.15); background: var(--surface); text-align: center; margin-bottom: 16px; }
.plan-card.featured { border-color: var(--coral); background: linear-gradient(135deg, rgba(255,91,121,.12), rgba(31,185,190,.08)); }
.plan-price { font-family: var(--font-display); font-size: 42px; font-weight: 300; color: var(--gold); line-height: 1; }
.plan-period { font-size: 13px; color: var(--muted); }
.plan-features { list-style: none; margin: 16px 0; text-align: left; }
.plan-features li { padding: 6px 0; font-size: 14px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.04); }
.plan-features li::before { content: '✦'; color: var(--gold); font-size: 10px; flex-shrink: 0; }

/* ─── Section header ─── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.section-link { font-size: 13px; color: var(--gold); text-decoration: none; }

/* ─── Utility ─── */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* Product surfaces */
.hero-panel {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255,91,121,.16), rgba(31,185,190,.10)),
    rgba(26,26,48,.84);
}
.hero-panel h1 { font-size: 30px; margin-bottom: 8px; }
.eyebrow {
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.profile-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}
.profile-preview {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,79,123,.10), transparent 12rem),
    #fff;
}
.public-preview {
  box-shadow: none;
  background: #fff9f6;
}
.settings-panel {
  padding: 0;
  overflow: hidden;
}
.settings-panel > summary {
  display: grid;
  gap: 3px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}
.settings-panel > summary::-webkit-details-marker { display: none; }
.settings-panel > summary::marker { content: ""; }
.settings-panel > summary span {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}
.settings-panel > summary small {
  color: var(--muted);
  font-size: 13px;
}
.settings-panel > form {
  padding: 0 18px 18px;
}
.profile-avatar,
.match-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  border: 1px solid rgba(255,255,255,.2);
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mini-stat {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  padding: 12px 10px;
  background: rgba(26,26,48,.76);
  min-width: 0;
}
.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.mini-stat strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 8px;
  background: rgba(26,26,48,.86);
  border: 1px solid rgba(255,255,255,.10);
}
.match-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.profile-avatar-img,
.match-avatar-img,
.dating-avatar-img {
  object-fit: cover;
}
.match-main p {
  margin-top: 6px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
}
.contact-unlocked {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(182,227,93,.26);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(182,227,93,.08);
}
.contact-unlocked span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-unlocked strong {
  color: var(--white);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.auth-shell,
.onboarding-shell {
  max-width: 520px;
  margin: 0 auto;
}
.auth-card,
.onboarding-card {
  padding: 18px;
}
.field-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}
.sticky-submit {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px);
  z-index: 5;
}
.range-control {
  width: 100%;
  accent-color: var(--coral);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.45;
}
.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.horoscope-card-head {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.style-chip {
  max-width: 100%;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sector-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(34,34,64,.62);
  padding: 12px;
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
  min-height: 88px;
  width: 100%;
  border: 0;
  cursor: pointer;
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.sector-hint {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sector-card.active {
  background: rgba(31,185,190,.10);
  border-color: rgba(31,185,190,.28);
}
.sector-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.sector-detail-panel {
  margin: -4px 0 16px;
  border: 1px solid rgba(31,185,190,.24);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(31,185,190,.10);
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
}
.compatibility-result p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
}
.compat-selector {
  display: grid;
  gap: 8px;
}
.compat-score {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--lime));
  flex-shrink: 0;
}

@media (max-width: 430px) {
  body {
    padding-top: 52px;
  }
  .topbar {
    height: 52px;
    padding: 0 12px;
  }
  .main-content {
    padding: 12px 12px 22px;
  }
  .hero-panel {
    padding: 18px;
  }
  .hero-panel h1 {
    font-size: 27px;
  }
  .card {
    padding: 16px;
  }
  .mobile-stack {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nav-item {
    padding-inline: 7px;
    min-width: 50px;
  }
  .nav-label {
    font-size: 9px;
  }
  .form-control {
    font-size: 16px;
  }
  .sector-grid {
    gap: 8px;
  }
  .sector-card {
    padding: 10px;
  }
  .sector-card summary {
    font-size: 14px;
  }
}

@media (min-width: 760px) {
  .main-content {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 24px;
  }
}

/* ─── AstroAI 2026 refresh: light, match-first, mobile-first ─── */
:root {
  --bg: #fff7ef;
  --bg2: #fffdf9;
  --bg3: #ffe9dc;
  --surface: #ffffff;
  --surface2: #fff1e8;
  --white: #221824;
  --muted: #705f6f;
  --gold: #e7a928;
  --gold-light: #ffd36a;
  --violet: #6e4cff;
  --violet-light: #6e4cff;
  --coral: #ff4f7b;
  --teal: #00a6a6;
  --lime: #267a4b;
  --accent: #ff4f7b;
  --ink: #221824;
  --line: rgba(34, 24, 36, .10);
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 12% -8%, rgba(255,79,123,.20), transparent 17rem),
    radial-gradient(circle at 100% 4%, rgba(0,166,166,.18), transparent 18rem),
    linear-gradient(180deg, #fff7ef 0%, #fffdf9 42%, #f8fbff 100%);
  color: var(--ink);
}

.stars { opacity: .22; mix-blend-mode: multiply; }
.stars-small,
.stars-medium,
.stars-large { animation: none; }

.topbar {
  background: rgba(255, 250, 245, .88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(34,24,36,.06);
}
.logo-icon { color: var(--accent); animation: none; }
.logo-text,
h1,
h2,
h3,
.section-title,
.serif,
.plan-price,
.chat-world-name {
  font-family: var(--font-display);
}
.logo-text { color: var(--ink); letter-spacing: 0; font-size: 23px; }
.btn-upgrade,
.btn-login {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(34,24,36,.14);
}

.bottom-nav {
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(34,24,36,.08);
}
.nav-item { color: #7b6b78; }
.nav-item.active { color: var(--accent); }
.nav-item-center .nav-icon-center {
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(34,24,36,.22);
}
.nav-item-center.active .nav-icon-center { box-shadow: 0 10px 30px rgba(255,79,123,.28); }

.card,
.plan-card,
.match-card,
.mini-stat,
.hero-panel {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(34,24,36,.08);
}
.card::before { display: none; }
.card-sm { border-radius: 16px; }
.card-glow { box-shadow: 0 22px 60px rgba(34,24,36,.10); }

.hero-panel {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,79,123,.16), transparent 12rem),
    radial-gradient(circle at 100% 0%, rgba(0,166,166,.14), transparent 13rem),
    #fff;
}
.hero-panel h1 { color: var(--ink); font-size: 34px; }
.eyebrow {
  color: var(--accent);
  letter-spacing: .10em;
  font-weight: 900;
}
.muted { color: var(--muted); }
h1, h2, h3 { color: var(--ink); letter-spacing: 0; }

.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-send,
.btn-install {
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: 0;
  box-shadow: none;
  font-weight: 800;
}
.btn-secondary,
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:active,
.nav-item:active { transform: translateY(1px); }

.form-control,
.chat-input {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(34,24,36,.16);
  border-radius: 14px;
}
.form-control:focus,
.chat-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,79,123,.12);
}
select.form-control {
  background-color: #fff;
}

.badge-gold {
  background: rgba(255,79,123,.10);
  color: var(--accent);
  border-color: rgba(255,79,123,.18);
}
.score-dot { background: #eadfe7; box-shadow: none; }
.score-dot.filled { background: var(--accent); box-shadow: none; }
.divider { background: var(--line); }

.daily-hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  margin: 12px 0 18px;
}
.zodiac-orb {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.80), transparent 28%),
    linear-gradient(145deg, #ffe2a8, #ff6b8e 54%, #6e4cff);
  color: #fff;
  font-size: 68px !important;
  line-height: 1;
  box-shadow: 0 18px 42px rgba(255,79,123,.24);
}
.daily-hero h1 {
  font-size: 46px;
  line-height: .95;
  margin-bottom: 6px;
}
.daily-card {
  background: #fff;
}
.daily-reading {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 500;
}
.style-chip {
  color: var(--muted);
  background: var(--surface2);
  border-radius: 999px;
  padding: 6px 10px;
  text-transform: none;
  letter-spacing: 0;
}
.sector-card {
  background: #fff7f8;
  border: 1px solid rgba(255,79,123,.12);
  color: var(--ink);
  min-height: 92px;
  box-shadow: 0 10px 24px rgba(34,24,36,.06);
}
.sector-card.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.sector-card.active .sector-hint { color: rgba(255,255,255,.70); }
.sector-hint { color: var(--muted); }
.sector-detail-panel,
.compatibility-result {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.sector-detail-panel,
.compatibility-result p {
  color: var(--ink);
}
.lucky-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lucky-row span {
  background: rgba(201,168,76,.10);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}
.lucky-row strong { color: var(--gold); display: block; font-size: 18px; margin-top: 2px; }
.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.keyword-row span {
  background: #f2eefb;
  color: #5f45c8;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.compat-score {
  background: var(--ink);
  color: #fff;
}
.compat-selector { background: #fff; }
.section-link { color: var(--accent); font-weight: 800; }

.match-avatar,
.profile-avatar {
  background: linear-gradient(145deg, #ff6b8e, #6e4cff);
}
.match-main p,
.contact-unlocked strong,
.check-row { color: var(--ink); }
.contact-unlocked {
  background: #f0fff7;
  border-color: rgba(38,122,75,.18);
}
.contact-unlocked span { color: #267a4b; }

.chat-header {
  background: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid var(--line) !important;
}
.msg-user {
  background: var(--ink);
  color: #fff;
}
.msg-ai {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.chat-input-bar {
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
}
.main-content.chat-page {
  padding: 0 0 24px;
}
.chat-page .chat-header {
  position: sticky;
  top: var(--top-h);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.world-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--surface2);
  font-size: 24px;
}
.chat-world-name {
  font-size: 22px;
  font-weight: 650;
}
.chat-disclaimer {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.chat-back {
  margin-left: auto;
  color: var(--ink);
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
}
.chat-wrap {
  padding: 12px 16px 140px;
}
.limit-bar {
  margin: 10px 16px 0;
  background: #fff7f8;
  border: 1px solid rgba(255,79,123,.14);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
}
.limit-bar a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tool-card {
  display: grid;
  gap: 8px;
  min-height: 152px;
  align-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 12px;
  box-shadow: 0 14px 34px rgba(34,24,36,.07);
}
.tool-icon {
  font-size: 42px;
  line-height: 1;
}
.tool-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
}
.muted-tool {
  opacity: .72;
}

.plan-card.featured {
  border-color: rgba(255,79,123,.22);
  background: #fff;
}
.plan-price { color: var(--ink); font-size: 52px; }
.plan-features li { border-bottom-color: var(--line); }
.plan-features li::before { color: var(--accent); }

.trust-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.trust-strip span {
  flex: 0 0 auto;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}
.compact-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.compact-sign {
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 3px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: #fff9f6;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.compact-sign div {
  font-size: 30px;
  line-height: 1;
}
.compact-sign span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.sign-picker-card,
.cta-card,
.premium-note {
  background: rgba(255,255,255,.92);
}
.premium-note {
  border-color: rgba(255,79,123,.18);
}
.privacy-note {
  color: var(--muted);
  background: #fff9f6;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px;
}
.profile-progress {
  background: #fff;
}
.simple-checklist {
  display: grid;
  gap: 9px;
}
.simple-checklist div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  background: #fff9f6;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}
.simple-checklist strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0e7ee;
  color: var(--ink);
}
.simple-checklist .done strong {
  background: #e8f8ef;
  color: #267a4b;
}
.simple-checklist span {
  color: var(--ink);
  font-weight: 900;
}
.simple-checklist small {
  grid-column: 2;
  color: var(--muted);
  margin-top: -6px;
}
.form-step-title {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  margin: 18px 0 14px;
}
.form-step-title > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}
.form-step-title strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}
.form-step-title small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}
.advanced-location {
  background: #fff9f6;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.advanced-location summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}
.danger-actions {
  padding: 0 18px 18px;
}
.danger-btn {
  color: var(--danger);
  border-color: rgba(224,85,85,.24);
}
.report-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.report-panel summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.match-lab {
  max-width: 560px;
  margin: 8px auto 24px;
}
.match-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.radius-card {
  background: rgba(255,255,255,.92);
}
.radius-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: center;
}
.profile-nudge strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.compat-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 8px;
}
.compat-label-row strong {
  color: var(--ink);
}
.action-hint {
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}
.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 7px;
}
.dating-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,79,123,.10), transparent 12rem),
    #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(34,24,36,.10);
  padding: 18px;
}
.dating-card-top {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
}
.dating-avatar {
  width: 68px;
  height: 68px;
  font-size: 26px;
}
.dating-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dating-name-row h2 {
  font-size: 26px;
  line-height: 1;
}
.compat-pill {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
}
.compat-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e7ee;
  margin: 16px 0 12px;
}
.compat-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--teal));
}
.match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.match-reasons span {
  background: #fff1f5;
  color: var(--ink);
  border: 1px solid rgba(255,79,123,.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}
.preference-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.preference-pills span {
  background: #f7f4ff;
  border: 1px solid rgba(110,76,255,.14);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}
.dating-bio {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.58;
  margin-top: 14px;
}
.photo-uploader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.photo-upload-tile {
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(34,24,36,.22);
  border-radius: 18px;
  background: #fff9f6;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  padding: 10px;
}
.photo-upload-tile.has-photo {
  border-style: solid;
  color: #fff;
}
.photo-upload-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-upload-tile span {
  position: relative;
  z-index: 1;
  background: rgba(34,24,36,.72);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
}
.photo-upload-tile:not(.has-photo) span {
  background: transparent;
  color: var(--muted);
}
.photo-upload-tile input {
  display: none;
}
.photo-strip,
.dating-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.photo-strip img {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface2);
}
.dating-gallery img {
  flex: 0 0 42%;
  width: 42%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface2);
}
.remove-photo-grid {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.remove-photo-grid input {
  accent-color: var(--danger);
}
.score-panel {
  background: #fff9f6;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 12px;
  padding: 12px;
}
.score-panel summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.score-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.score-breakdown div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.score-breakdown strong {
  color: var(--accent);
}
.locked-contact {
  background: #f7f4ff;
  border: 1px solid rgba(110,76,255,.14);
  border-radius: 16px;
  padding: 12px;
}
.locked-contact span,
.locked-contact strong {
  display: block;
}
.locked-contact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.locked-contact strong {
  color: var(--ink);
  margin-top: 2px;
}
.dating-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.round-action {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(34,24,36,.12);
}
.pass-action {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}
.like-action {
  background: var(--accent);
  color: #fff;
}
.legal-shell {
  max-width: 720px;
  margin: 8px auto 24px;
}
.legal-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.app-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 16px 18px;
  margin-top: -8px;
  font-size: 12px;
}
.app-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.check-row a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 430px) {
  .daily-hero {
    grid-template-columns: 96px 1fr;
    gap: 14px;
  }
  .zodiac-orb {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    font-size: 60px !important;
  }
  .daily-hero h1 {
    font-size: 40px;
  }
  .sector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sector-card {
    min-height: 84px;
    padding: 9px 6px;
    font-size: 14px;
  }
  .compact-sign-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─── AstroAI product polish: clearer, calmer, more dating-led ─── */
:root {
  --bg: #fffaf7;
  --bg2: #ffffff;
  --surface2: #fff0eb;
  --ink: #211620;
  --white: #211620;
  --muted: #766574;
  --accent: #ff466f;
  --coral: #ff466f;
  --teal: #0aa7a4;
  --gold: #bf7b16;
  --violet: #6b58d8;
  --line: rgba(33, 22, 32, .11);
}

body {
  background: linear-gradient(180deg, #fff8f4 0%, #ffffff 42%, #f7fbfb 100%);
  color: var(--ink);
}

.stars { display: none; }

.topbar {
  height: 58px;
  background: rgba(255,255,255,.92);
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #211620;
  color: #fff;
  font-size: 14px;
}

.logo-text { font-size: 22px; }

.btn-login,
.btn-upgrade {
  background: #211620;
  color: #fff;
  padding: 8px 14px;
}

.bottom-nav { background: rgba(255,255,255,.96); }
.nav-item.active { color: var(--accent); }
.nav-item-center .nav-icon-center { background: var(--accent); }
.main-content { padding-inline: 14px; }

.hero-panel {
  padding: 26px 22px;
  background:
    linear-gradient(145deg, rgba(255,70,111,.10), rgba(10,167,164,.08) 58%, rgba(255,255,255,0)),
    #fff;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(33,22,32,.08);
}

.hero-panel h1 {
  max-width: 11ch;
  font-size: clamp(34px, 10vw, 46px);
  line-height: .98;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.hero-panel .muted {
  max-width: 34rem;
  color: #5f5060;
  font-size: 15px;
  line-height: 1.58;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .11em;
  margin-bottom: 12px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trust-strip span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.card,
.plan-card,
.match-card,
.dating-card,
.mini-stat,
.settings-panel,
.score-panel,
.radius-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 38px rgba(33,22,32,.07);
}

.card,
.plan-card,
.dating-card { border-radius: 18px; }

.btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(255,70,111,.22);
}

.btn-secondary,
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.form-label {
  color: #7b6877;
  letter-spacing: .06em;
  font-weight: 900;
}

.form-control {
  min-height: 50px;
  border-color: rgba(33,22,32,.14);
  color: var(--ink);
}

.section-title {
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
}

.section-link {
  color: var(--accent);
  font-weight: 900;
}

.compact-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.compact-sign {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.compact-sign div {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff1eb;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  line-height: 1;
}

.compact-sign span {
  font-size: 12px;
  font-weight: 900;
}

.tool-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(33,22,32,.06);
}

.tool-icon { display: none; }

.tool-name {
  font-size: 18px;
  font-family: var(--font-display);
}

.match-card {
  grid-template-columns: 58px 1fr;
  border-radius: 18px;
  padding: 14px;
}

.match-avatar,
.dating-avatar,
.profile-avatar,
.avatar-initial {
  background: linear-gradient(145deg, #ff466f, #0aa7a4);
}

.match-main p,
.check-row,
.compatibility-result p { color: var(--ink); }

.contact-unlocked {
  background: #ecfbf7;
  border-color: rgba(10,167,164,.20);
}

.contact-unlocked span { color: #087d7a; }
.contact-unlocked strong { color: var(--ink); }

.dating-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,70,111,.08), rgba(255,255,255,0) 36%),
    #fff;
}

.dating-card-top {
  grid-template-columns: 76px 1fr;
  gap: 14px;
}

.dating-avatar {
  width: 76px;
  height: 76px;
}

.dating-name-row h2 { font-size: 28px; }

.compat-pill {
  background: var(--ink);
  padding: 8px 11px;
}

.match-reasons span,
.preference-pills span {
  border-color: transparent;
  background: #f8f2f6;
  color: var(--ink);
}

.locked-contact { background: #f7f5ff; }

.round-action {
  width: 64px;
  height: 64px;
}

.like-action { background: var(--accent); }
.pass-action { color: #8a7b86; }

.plan-card.featured {
  background:
    linear-gradient(145deg, rgba(255,70,111,.10), rgba(10,167,164,.08)),
    #fff;
}

.plan-price {
  color: var(--ink);
  font-weight: 650;
}

.plan-features li { border-bottom: 1px solid rgba(33,22,32,.06); }

.plan-features li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.install-banner {
  background: #fff;
  box-shadow: 0 16px 44px rgba(33,22,32,.16);
}

@media (max-width: 430px) {
  .topbar { height: 54px; }
  .main-content { padding: 12px 12px 22px; }
  .hero-panel { padding: 24px 18px; }
  .hero-panel h1 { font-size: 38px; }
  .radius-row { grid-template-columns: 1fr; }
  .dating-card-top { grid-template-columns: 68px 1fr; }
  .dating-avatar {
    width: 68px;
    height: 68px;
  }
}

/* ─── AstroAI landing v2: app-like, minimal, high contrast ─── */
:root {
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ink: #120b16;
  --white: #120b16;
  --accent: #ff315f;
  --coral: #ff315f;
  --teal: #22e6d0;
  --gold: #ffd166;
  --muted: #746a78;
}

body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
.logo-text,
.section-title,
.serif,
.plan-price,
.tool-name {
  font-family: var(--font-display);
}

.landing-main {
  max-width: none;
  width: 100%;
  min-height: calc(100dvh - var(--top-h) - var(--nav-h) - var(--safe-bottom));
  padding: 0;
}

.landing-body .bottom-nav {
  background: rgba(15,10,20,.82);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -18px 44px rgba(0,0,0,.30);
}

.landing-body .nav-item {
  color: rgba(255,255,255,.62);
}

.landing-body .nav-item.active {
  color: #fff;
}

.landing-body .nav-item-center .nav-icon-center {
  background: #fff;
  color: #120b16;
  box-shadow: 0 14px 34px rgba(255,49,95,.35);
}

.landing-body .nav-item-center .nav-icon-center svg {
  color: #120b16;
}

.landing-body .nav-item-center .nav-icon-center svg * {
  stroke: #120b16;
}

.landing-body .topbar {
  background: rgba(15,10,20,.78);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: none;
}

.landing-body .logo-icon {
  background: #fff;
  color: #120b16;
}

.landing-body .logo-text {
  color: #fff;
}

.landing-body .btn-login {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
}

.landing-body .app-footer {
  display: none;
}

.landing-app {
  min-height: calc(100dvh - var(--top-h) - var(--nav-h) - var(--safe-bottom));
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: repeat(4, auto);
  align-content: center;
  gap: 14px;
  padding: clamp(18px, 5vw, 28px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(12,8,18,.14), rgba(12,8,18,.82) 68%, #0f0a14 100%),
    radial-gradient(circle at 72% 24%, rgba(34,230,208,.40), transparent 22rem),
    radial-gradient(circle at 18% 12%, rgba(255,49,95,.46), transparent 18rem),
    linear-gradient(145deg, #120b16 0%, #24112b 46%, #091d22 100%);
}

.landing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .82;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,.10) 44.2% 44.8%, transparent 45%),
    radial-gradient(circle at 82% 34%, rgba(255,255,255,.78) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 18%, rgba(255,255,255,.50) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 70%, rgba(34,230,208,.85) 0 2px, transparent 3px),
    linear-gradient(140deg, transparent 58%, rgba(255,49,95,.22));
}

.landing-copy,
.landing-preview,
.landing-actions,
.landing-trust {
  position: relative;
  z-index: 1;
}

.landing-copy {
  align-self: center;
  max-width: 440px;
  padding-top: 10px;
}

.landing-mark {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.landing-copy h1 {
  max-width: 100%;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(48px, 15vw, 70px);
  line-height: .86;
  letter-spacing: -0.03em;
}

.landing-copy p {
  max-width: 320px;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.45;
}

.landing-preview {
  width: min(100%, 356px);
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.landing-preview > .landing-preview-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.landing-preview div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-preview span,
.landing-preview small {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
}

.landing-preview strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.landing-preview p {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.landing-actions {
  width: min(100%, 356px);
  display: grid;
  gap: 10px;
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.landing-proof span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.landing-app .btn-primary {
  min-height: 54px;
  background: #fff;
  color: #120b16;
  box-shadow: 0 18px 34px rgba(255,255,255,.16);
  font-size: 16px;
}

.landing-login {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.landing-disclosure {
  color: rgba(255,255,255,.68);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.landing-trust {
  width: min(100%, 356px);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.landing-trust p {
  color: rgba(255,255,255,.70);
  font-size: 11px;
  line-height: 1.5;
}

.landing-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 10px 0 8px;
}

.landing-legal a {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.landing-trust small {
  color: rgba(255,255,255,.52);
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .landing-copy h1 {
    max-width: 100%;
    font-size: clamp(39px, 12vw, 48px);
    line-height: .92;
  }

  .landing-copy p {
    max-width: 100%;
  }

  .landing-mark {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .landing-proof {
    gap: 5px;
  }

  .landing-proof span {
    padding-inline: 4px;
    font-size: 10px;
  }
}

@media (max-height: 740px) {
  .landing-app {
    gap: 9px;
    padding-block: 14px;
  }

  .landing-copy h1 {
    font-size: 42px;
  }

  .landing-copy p {
    font-size: 13px;
  }

  .landing-preview {
    padding: 12px;
  }

  .landing-proof span {
    min-height: 30px;
  }

  .landing-app .btn-primary {
    min-height: 50px;
  }

  .landing-trust p,
  .landing-disclosure {
    font-size: 10px;
  }
}

/* ─── AstroAI app-wide v2: match the landing across every screen ─── */
body:not(.landing-body) {
  background:
    radial-gradient(circle at 88% 0%, rgba(34,230,208,.20), transparent 20rem),
    radial-gradient(circle at 0% 8%, rgba(255,49,95,.22), transparent 18rem),
    linear-gradient(180deg, #120b16 0%, #17101d 54%, #0d1518 100%);
  color: #fff;
}

body:not(.landing-body) .topbar {
  background: rgba(18,11,22,.86);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: none;
}

body:not(.landing-body) .logo-icon {
  background: #fff;
  color: #120b16;
}

body:not(.landing-body) .logo-text,
body:not(.landing-body) h1,
body:not(.landing-body) h2,
body:not(.landing-body) h3,
body:not(.landing-body) .section-title,
body:not(.landing-body) .serif,
body:not(.landing-body) .consultant-name,
body:not(.landing-body) .plan-price,
body:not(.landing-body) .tool-name {
  color: #fff;
  font-family: var(--font-display);
}

body:not(.landing-body) .bottom-nav {
  background: rgba(18,11,22,.88);
  border-top: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 -18px 44px rgba(0,0,0,.30);
}

body:not(.landing-body) .nav-item {
  color: rgba(255,255,255,.58);
}

body:not(.landing-body) .nav-item.active {
  color: #fff;
}

body:not(.landing-body) .nav-item-center .nav-icon-center {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255,49,95,.32);
}

body:not(.landing-body) .btn-login,
body:not(.landing-body) .btn-upgrade {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

body:not(.landing-body) .main-content {
  padding-top: 14px;
}

body:not(.landing-body) .hero-panel,
body:not(.landing-body) .card,
body:not(.landing-body) .plan-card,
body:not(.landing-body) .match-card,
body:not(.landing-body) .dating-card,
body:not(.landing-body) .mini-stat,
body:not(.landing-body) .settings-panel,
body:not(.landing-body) .score-panel,
body:not(.landing-body) .radius-card,
body:not(.landing-body) .tool-card,
body:not(.landing-body) .compat-selector,
body:not(.landing-body) .auth-card,
body:not(.landing-body) .onboarding-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

body:not(.landing-body) .hero-panel {
  background:
    linear-gradient(145deg, rgba(255,49,95,.20), rgba(34,230,208,.10) 62%, rgba(255,255,255,.04)),
    rgba(255,255,255,.08);
  border-radius: 24px;
}

body:not(.landing-body) .hero-panel h1 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(34px, 10vw, 48px);
  line-height: .92;
  letter-spacing: -0.03em;
}

body:not(.landing-body) .eyebrow,
body:not(.landing-body) .section-link,
body:not(.landing-body) .gold {
  color: var(--teal);
}

body:not(.landing-body) .muted,
body:not(.landing-body) .field-help,
body:not(.landing-body) .privacy-note,
body:not(.landing-body) .plan-period,
body:not(.landing-body) .consultant-price,
body:not(.landing-body) .report-panel summary,
body:not(.landing-body) .settings-panel > summary small {
  color: rgba(255,255,255,.66);
}

body:not(.landing-body) p,
body:not(.landing-body) .match-main p,
body:not(.landing-body) .dating-bio,
body:not(.landing-body) .check-row,
body:not(.landing-body) .compatibility-result p {
  color: rgba(255,255,255,.86);
}

body:not(.landing-body) strong,
body:not(.landing-body) .settings-panel > summary span,
body:not(.landing-body) .profile-nudge strong,
body:not(.landing-body) .compat-label-row strong,
body:not(.landing-body) .locked-contact strong,
body:not(.landing-body) .contact-unlocked strong,
body:not(.landing-body) .score-panel summary,
body:not(.landing-body) .advanced-location summary {
  color: #fff;
}

body:not(.landing-body) .btn {
  min-height: 50px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 900;
}

body:not(.landing-body) .btn-primary {
  background: #fff;
  color: #120b16;
  box-shadow: 0 18px 34px rgba(255,255,255,.14);
}

body:not(.landing-body) .btn-secondary,
body:not(.landing-body) .btn-outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

body:not(.landing-body) .form-label {
  color: rgba(255,255,255,.58);
}

body:not(.landing-body) .form-control,
body:not(.landing-body) .chat-input {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

body:not(.landing-body) .form-control:focus,
body:not(.landing-body) .chat-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(34,230,208,.14);
}

body:not(.landing-body) .form-control::placeholder,
body:not(.landing-body) .chat-input::placeholder {
  color: rgba(255,255,255,.40);
}

body:not(.landing-body) select.form-control {
  background-color: rgba(255,255,255,.10);
}

body:not(.landing-body) .badge-gold,
body:not(.landing-body) .badge-violet,
body:not(.landing-body) .match-reasons span,
body:not(.landing-body) .preference-pills span {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

body:not(.landing-body) .compat-pill,
body:not(.landing-body) .like-action {
  background: var(--accent);
  color: #fff;
}

body:not(.landing-body) .pass-action {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.70);
  border-color: rgba(255,255,255,.16);
}

body:not(.landing-body) .compat-meter,
body:not(.landing-body) .score-dot {
  background: rgba(255,255,255,.14);
}

body:not(.landing-body) .compat-meter span,
body:not(.landing-body) .score-dot.filled {
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

body:not(.landing-body) .contact-unlocked {
  background: rgba(34,230,208,.12);
  border-color: rgba(34,230,208,.24);
}

body:not(.landing-body) .contact-unlocked span {
  color: var(--teal);
}

body:not(.landing-body) .locked-contact,
body:not(.landing-body) .score-panel,
body:not(.landing-body) .photo-upload-tile,
body:not(.landing-body) .public-preview {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}

body:not(.landing-body) .divider,
body:not(.landing-body) .report-panel {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.10);
}

body:not(.landing-body) .divider {
  height: 1px;
}

body:not(.landing-body) .daily-card,
body:not(.landing-body) .profile-preview,
body:not(.landing-body) .plan-card.featured,
body:not(.landing-body) .dating-card {
  background:
    linear-gradient(145deg, rgba(255,49,95,.14), rgba(34,230,208,.08)),
    rgba(255,255,255,.08);
}

body:not(.landing-body) .zodiac-orb {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(34,230,208,.38);
  color: var(--teal);
  font-family: 'Sora', sans-serif;
  font-size: 58px !important;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

body:not(.landing-body) .daily-reading {
  color: rgba(255,255,255,.88);
  font-size: clamp(16px, 4.2vw, 19px);
  font-weight: 600;
  line-height: 1.55;
}

body:not(.landing-body) .style-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

body:not(.landing-body) .sector-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

body:not(.landing-body) .sector-card.active {
  background: var(--accent);
  color: #fff;
}

body:not(.landing-body) .sector-detail-panel,
body:not(.landing-body) .compatibility-result {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
}

body:not(.landing-body) .compat-score {
  background: #fff;
  color: #120b16;
}

body:not(.landing-body) .app-footer a,
body:not(.landing-body) .check-row a {
  color: rgba(255,255,255,.72);
}

body:not(.landing-body) .message {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}

body:not(.landing-body) .chat-input-bar {
  background: rgba(18,11,22,.92);
  border-top: 1px solid rgba(255,255,255,.10);
}

body:not(.landing-body) .msg-ai {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

body:not(.landing-body) .msg-user {
  background: var(--accent);
  color: #fff;
}

body:not(.landing-body) .admin-tab,
body:not(.landing-body) .filter-pill {
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.72) !important;
  border-color: rgba(255,255,255,.12) !important;
}

body:not(.landing-body) .admin-tab.active,
body:not(.landing-body) .filter-pill.active {
  background: #fff !important;
  color: #120b16 !important;
}

body:not(.landing-body) a:not(.btn):not(.nav-item):not(.topbar-logo):not(.topbar-avatar):not(.tool-card):not(.card):not(.section-link) {
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

body:not(.landing-body) a.card,
body:not(.landing-body) a.tool-card {
  color: #fff;
}

body:not(.landing-body) .section-link {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.quick-start-shell,
.subscription-shell {
  max-width: 560px;
  margin: 0 auto;
}

.quick-start-card {
  display: grid;
  gap: 12px;
}

.quick-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.quick-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #120b16;
  font-weight: 950;
}

.quick-step strong,
.compact-note strong,
.cancel-note strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.quick-step small,
.compact-note span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

.compact-onboarding .form-group {
  margin-bottom: 14px;
}

.compact-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(34,230,208,.10);
  border: 1px solid rgba(34,230,208,.20);
}

.plan-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34,230,208,.14);
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cancel-note {
  background: rgba(255,255,255,.08);
}

.trust-strip {
  text-align: center;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.6;
}

.date-pill {
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}

.date-pill strong {
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.date-pill small {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  text-transform: uppercase;
}

.quick-start-shell .hero-panel,
.onboarding-shell .hero-panel,
.subscription-shell .hero-panel {
  padding: 26px 20px;
  margin-bottom: 12px;
}

body:not(.landing-body) .quick-start-shell .hero-panel h1,
body:not(.landing-body) .onboarding-shell .hero-panel h1,
body:not(.landing-body) .subscription-shell .hero-panel h1 {
  max-width: 11ch;
  font-size: clamp(34px, 9vw, 42px);
  line-height: .96;
}

.quick-start-shell .hero-panel .muted,
.onboarding-shell .hero-panel .muted,
.subscription-shell .hero-panel .muted {
  font-size: 15px;
  line-height: 1.48;
}

.compact-onboarding {
  padding: 16px;
  padding-bottom: 92px;
}

.compact-onboarding .form-control {
  min-height: 54px;
}

.compact-onboarding .field-help {
  font-size: 12px;
  line-height: 1.42;
}

body:not(.landing-body) .compact-onboarding .sticky-submit {
  position: fixed !important;
  left: max(18px, calc((100vw - 520px) / 2 + 18px));
  right: max(18px, calc((100vw - 520px) / 2 + 18px));
  bottom: 96px !important;
  z-index: 80 !important;
  width: auto;
}

.subscription-shell .plan-card {
  padding: 22px;
}

.subscription-shell .plan-features {
  gap: 9px;
}

.subscription-shell .plan-features li {
  font-size: 15px;
  line-height: 1.34;
}

body:not(.landing-body) .bottom-nav {
  padding-left: 4px;
  padding-right: 4px;
}

body:not(.landing-body) .nav-item {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
}

body:not(.landing-body) .nav-label {
  font-size: 9px;
  font-weight: 800;
}

body:not(.landing-body) .nav-icon svg {
  width: 22px;
  height: 22px;
}

body:not(.landing-body) .nav-item-center .nav-icon-center {
  width: 56px;
  height: 56px;
}

.legal-grid {
  display: grid;
  gap: 10px;
}

.legal-link-card {
  display: block;
  text-decoration: none;
}

.legal-link-card h2 {
  color: #fff;
}

.legal-link-card .section-link {
  display: inline-flex;
  margin-top: 10px;
}

.compact-note .section-link {
  display: inline-flex;
  margin-top: 8px;
}

.menu-shell,
.support-shell {
  max-width: 620px;
  margin: 0 auto;
}

.menu-grid {
  display: grid;
  gap: 10px;
}

.menu-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.menu-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(34,230,208,.12);
  color: var(--teal);
  border: 1px solid rgba(34,230,208,.20);
}

.menu-card-icon svg {
  width: 25px;
  height: 25px;
}

.menu-card strong,
.support-topic strong,
.support-card h2 {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  margin-bottom: 5px;
}

.menu-card small {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.45;
}

.support-topic {
  padding: 16px;
}

.support-links {
  display: grid;
  gap: 8px;
}

.support-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
}

/* ─── Oroscopo redesign + chat-header fix (v27) ─────────────────── */
.daily-hero-main { min-width: 0; }
.daily-hero h1 {
  font-size: clamp(30px, 9vw, 44px);
  line-height: .98;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  word-break: break-word;
}
.daily-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.daily-sign-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}
.hero-compat-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff !important;
}

.daily-card .style-chip { display: inline-flex; margin-bottom: 12px; }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.sector-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.score-dots-lg { gap: 6px; justify-content: center; }
.score-dots-lg .score-dot { width: 11px; height: 11px; }
.sector-detail-title {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}
.sector-detail-panel p { margin: 0; }

/* Pallini votazione piu evidenti (tema scuro app) */
body:not(.landing-body) .score-dots-lg .score-dot {
  background: rgba(255,255,255,.18);
}
body:not(.landing-body) .score-dots-lg .score-dot.filled {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 0 10px rgba(255,49,95,.45);
}
body:not(.landing-body) .sector-card.active .score-dot { background: rgba(255,255,255,.40); }
body:not(.landing-body) .sector-card.active .score-dot.filled { background: #fff; box-shadow: none; }
body:not(.landing-body) .sector-detail-title { color: var(--teal); }

/* Numero / Colore fortunati leggibili nel tema scuro */
body:not(.landing-body) .lucky-row span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.66);
}
body:not(.landing-body) .lucky-row strong { color: var(--gold-light); }

/* Header chat: prima era quasi bianco e il nome (bianco) spariva */
body:not(.landing-body) .chat-header {
  background: rgba(18,11,22,.94) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}
body:not(.landing-body) .chat-world-name { color: #fff; }
body:not(.landing-body) .chat-disclaimer { color: rgba(255,255,255,.62); }
body:not(.landing-body) .chat-back { color: #fff; }
body:not(.landing-body) .world-badge { background: rgba(255,255,255,.12); }

/* ─── Chiedi (chat home) compatto: titolo piccolo, sei card tutte visibili ─── */
.chat-home-head h1 {
  font-size: clamp(24px, 6.5vw, 30px);
  line-height: 1.05;
  margin-bottom: 6px;
}
.chat-home-head .muted { font-size: 13px; line-height: 1.4; }
body.chat-home .tool-grid { gap: 10px; }
body.chat-home .tool-card {
  min-height: 0;
  padding: 14px 10px;
  gap: 4px;
}
body.chat-home .tool-icon { font-size: 28px; }
body.chat-home .tool-name { font-size: 16px; }
body.chat-home .tool-card .muted { font-size: 11px; line-height: 1.25; }

/* Card "Profilo dating" cliccabile sul profilo */
.profile-progress[role="button"] { transition: transform .12s ease, border-color .12s ease; }
.profile-progress[role="button"]:hover,
.profile-progress[role="button"]:focus-visible { transform: translateY(-1px); outline: none; }

/* ═══════════════════════════════════════════════════════════════════
   TEMA CHIARO & SOLARE v29 — sostituisce il vecchio look scuro.
   Sfondo caldo, card bianche, accenti pieni (coral/ambra/teal/rosa),
   testo scuro leggibile. Tutto scoped a body:not(.landing-body).
   ═══════════════════════════════════════════════════════════════════ */
body:not(.landing-body) {
  background:
    radial-gradient(circle at 86% -2%, rgba(255,176,32,.20), transparent 42%),
    radial-gradient(circle at 2% 8%, rgba(255,122,162,.16), transparent 40%),
    radial-gradient(circle at 50% 108%, rgba(21,184,166,.10), transparent 46%),
    linear-gradient(180deg, #fff6ec 0%, #fff1ef 58%, #fdeff6 100%);
  background-attachment: fixed;
  color: #2b2333;
}

body:not(.landing-body) .topbar {
  background: rgba(255,250,243,.9);
  border-bottom: 1px solid rgba(43,35,51,.08);
  box-shadow: 0 2px 18px rgba(255,140,90,.06);
}
body:not(.landing-body) .logo-icon { background: #ff6b6b; color: #fff; }
body:not(.landing-body) .logo-text { color: #2b2333; }

body:not(.landing-body) .bottom-nav {
  background: rgba(255,251,245,.95);
  border-top: 1px solid rgba(43,35,51,.08);
  box-shadow: 0 -10px 30px rgba(255,140,90,.12);
}
body:not(.landing-body) .nav-item { color: #bcaeb4; }
body:not(.landing-body) .nav-item.active { color: #ff5d6c; }
body:not(.landing-body) .nav-item-center .nav-icon-center {
  background: #ff5d6c; color: #fff; box-shadow: 0 12px 26px rgba(255,93,108,.36);
}

body:not(.landing-body) .btn-login,
body:not(.landing-body) .btn-upgrade {
  background: #ffb020; color: #5a3a00; border: 1px solid rgba(255,176,32,.5);
}

body:not(.landing-body) .hero-panel,
body:not(.landing-body) .card,
body:not(.landing-body) .plan-card,
body:not(.landing-body) .match-card,
body:not(.landing-body) .dating-card,
body:not(.landing-body) .mini-stat,
body:not(.landing-body) .settings-panel,
body:not(.landing-body) .score-panel,
body:not(.landing-body) .radius-card,
body:not(.landing-body) .tool-card,
body:not(.landing-body) .compat-selector,
body:not(.landing-body) .auth-card,
body:not(.landing-body) .onboarding-card,
body:not(.landing-body) .quick-start-card,
body:not(.landing-body) .trust-card {
  background: #ffffff;
  border: 1px solid rgba(43,35,51,.08);
  box-shadow: 0 10px 26px rgba(255,150,110,.10);
  backdrop-filter: none;
}

body:not(.landing-body) .hero-panel {
  background: linear-gradient(135deg, #fff0e0 0%, #ffe7ef 100%);
  border: 1px solid rgba(255,176,32,.22);
}
body:not(.landing-body) .hero-panel h1 { color: #2b2333; }

body:not(.landing-body) .quick-step {
  background: #fff7ef;
  border-color: rgba(43,35,51,.08);
}
body:not(.landing-body) .quick-step span {
  background: #ffe7c2;
  color: #946011;
}
body:not(.landing-body) .quick-step small { color: #8a7f8c; }

body:not(.landing-body) .logo-text,
body:not(.landing-body) h1,
body:not(.landing-body) h2,
body:not(.landing-body) h3,
body:not(.landing-body) .section-title,
body:not(.landing-body) .serif,
body:not(.landing-body) .plan-price,
body:not(.landing-body) .tool-name { color: #2b2333; }

body:not(.landing-body) .eyebrow,
body:not(.landing-body) .section-link,
body:not(.landing-body) .gold { color: #e0582e; }

body:not(.landing-body) .muted,
body:not(.landing-body) .field-help,
body:not(.landing-body) .privacy-note,
body:not(.landing-body) .plan-period,
body:not(.landing-body) .report-panel summary,
body:not(.landing-body) .settings-panel > summary small { color: #8a7f8c; }

body:not(.landing-body) p,
body:not(.landing-body) .match-main p,
body:not(.landing-body) .dating-bio,
body:not(.landing-body) .check-row,
body:not(.landing-body) .compatibility-result p { color: #3b3340; }

body:not(.landing-body) strong,
body:not(.landing-body) .settings-panel > summary span,
body:not(.landing-body) .profile-nudge strong,
body:not(.landing-body) .contact-unlocked strong,
body:not(.landing-body) .score-panel summary,
body:not(.landing-body) .advanced-location summary { color: #2b2333; }

body:not(.landing-body) .btn-primary {
  background: #ff5d6c; color: #fff; box-shadow: 0 12px 24px rgba(255,93,108,.28);
}
body:not(.landing-body) .btn-secondary,
body:not(.landing-body) .btn-outline {
  background: #fff; color: #2b2333; border: 1px solid rgba(43,35,51,.14); box-shadow: none;
}

body:not(.landing-body) .form-label { color: #8a7f8c; }
body:not(.landing-body) .form-control,
body:not(.landing-body) .chat-input {
  background: #fff; color: #2b2333; border: 1px solid rgba(43,35,51,.14);
}
body:not(.landing-body) .form-control:focus,
body:not(.landing-body) .chat-input:focus {
  border-color: #ff5d6c; box-shadow: 0 0 0 4px rgba(255,93,108,.14);
}
body:not(.landing-body) .form-control::placeholder,
body:not(.landing-body) .chat-input::placeholder { color: #bcaeb4; }
body:not(.landing-body) select.form-control { background-color: #fff; }

body:not(.landing-body) .badge-gold,
body:not(.landing-body) .badge-violet,
body:not(.landing-body) .match-reasons span,
body:not(.landing-body) .preference-pills span {
  background: #ffe7c2; color: #946011; border: 1px solid rgba(255,176,32,.25);
}
body:not(.landing-body) .compat-pill,
body:not(.landing-body) .like-action { background: #ff5d6c; color: #fff; }
body:not(.landing-body) .pass-action {
  background: #fff; color: #8a7f8c; border: 1px solid rgba(43,35,51,.14);
}

body:not(.landing-body) .compat-meter,
body:not(.landing-body) .score-dot { background: #f0e1d3; }
body:not(.landing-body) .compat-meter span,
body:not(.landing-body) .score-dot.filled { background: #ff5d6c; }

body:not(.landing-body) .contact-unlocked {
  background: #d6f5f0; border: 1px solid rgba(21,184,166,.28);
}
body:not(.landing-body) .contact-unlocked span { color: #0f6e56; }
body:not(.landing-body) .contact-unlocked strong { color: #0a4a3c; }

body:not(.landing-body) .locked-contact,
body:not(.landing-body) .photo-upload-tile,
body:not(.landing-body) .public-preview {
  background: #fff7ef; border: 1px solid rgba(43,35,51,.08);
}

body:not(.landing-body) .divider { background: rgba(43,35,51,.08); }
body:not(.landing-body) .report-panel {
  background: #fff7ef; border: 1px solid rgba(43,35,51,.08);
}

body:not(.landing-body) .daily-card,
body:not(.landing-body) .profile-preview,
body:not(.landing-body) .plan-card.featured,
body:not(.landing-body) .dating-card {
  background: linear-gradient(140deg, #fff4ea 0%, #ffffff 72%);
  border: 1px solid rgba(255,176,32,.20);
}

body:not(.landing-body) .zodiac-orb {
  background: #ff5d6c;
  border: none;
  color: #fff;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 14px 30px rgba(255,93,108,.30);
}

body:not(.landing-body) .daily-reading { color: #3b3340; }
body:not(.landing-body) .style-chip { background: #ffe7c2; color: #946011; }

body:not(.landing-body) .sector-card {
  background: #fff7ef; border: 1px solid rgba(43,35,51,.08); color: #2b2333;
}
body:not(.landing-body) .sector-card.active { background: #ff5d6c; color: #fff; border-color: #ff5d6c; }
body:not(.landing-body) .sector-detail-panel,
body:not(.landing-body) .compatibility-result {
  background: #fff; border: 1px solid rgba(43,35,51,.08); color: #3b3340;
}
body:not(.landing-body) .compat-score { background: #ff5d6c; color: #fff; }

body:not(.landing-body) .score-dots-lg .score-dot { background: #f0e1d3; }
body:not(.landing-body) .score-dots-lg .score-dot.filled { background: #ff5d6c; box-shadow: none; }
body:not(.landing-body) .sector-card.active .score-dot { background: rgba(255,255,255,.45); }
body:not(.landing-body) .sector-card.active .score-dot.filled { background: #fff; box-shadow: none; }
body:not(.landing-body) .sector-detail-title { color: #e0582e; }

body:not(.landing-body) .lucky-row span {
  background: #ffe7c2; border: 1px solid rgba(255,176,32,.25); color: #946011;
}
body:not(.landing-body) .lucky-row strong { color: #7a4e08; }

.hero-compat-btn { background: #15b8a6; color: #fff !important; }
.daily-sign-chip { background: #ffe0dc; color: #993c1d; border: 1px solid rgba(255,93,108,.22); }

body:not(.landing-body) .chat-header {
  background: rgba(255,250,243,.94) !important;
  border-bottom: 1px solid rgba(43,35,51,.08) !important;
}
body:not(.landing-body) .chat-world-name { color: #2b2333; }
body:not(.landing-body) .chat-disclaimer { color: #8a7f8c; }
body:not(.landing-body) .chat-back { color: #2b2333; }
body:not(.landing-body) .world-badge { background: #ffe7c2; }
body:not(.landing-body) .msg-ai { background: #fff; color: #2b2333; border: 1px solid rgba(43,35,51,.08); }
body:not(.landing-body) .msg-user { background: #ff5d6c; color: #fff; }
body:not(.landing-body) .chat-input-bar { background: rgba(255,250,243,.96); border-top: 1px solid rgba(43,35,51,.08); }
body:not(.landing-body) .limit-bar { background: #fff7ef; border: 1px solid rgba(255,93,108,.20); color: #3b3340; }
body:not(.landing-body) .limit-bar a { color: #e0582e; }
body:not(.landing-body) .typing-dot { background: #bcaeb4; }

body:not(.landing-body) .message { background: #fff; border: 1px solid rgba(43,35,51,.10); color: #2b2333; }

body:not(.landing-body) .admin-tab,
body:not(.landing-body) .filter-pill {
  background: #fff !important; color: #8a7f8c !important; border: 1px solid rgba(43,35,51,.12) !important;
}
body:not(.landing-body) .admin-tab.active,
body:not(.landing-body) .filter-pill.active { background: #ff5d6c !important; color: #fff !important; }

body:not(.landing-body) a:not(.btn):not(.nav-item):not(.topbar-logo):not(.topbar-avatar):not(.tool-card):not(.card):not(.section-link) {
  color: #e0582e;
}
body:not(.landing-body) a.card,
body:not(.landing-body) a.tool-card { color: #2b2333; }
body:not(.landing-body) .section-link { color: #e0582e; }

body:not(.landing-body) .support-links a {
  background: #fff !important; color: #2b2333 !important; border: 1px solid rgba(43,35,51,.10);
}

/* ═══ Tipografia elegante & leggera v30 — Fraunces display, pesi alleggeriti ═══ */
body:not(.landing-body) { --font-display: 'Fraunces', Georgia, 'Times New Roman', serif; }
body:not(.landing-body) h1,
body:not(.landing-body) h2,
body:not(.landing-body) .hero-panel h1,
body:not(.landing-body) .daily-hero h1,
body:not(.landing-body) .plan-price,
body:not(.landing-body) .tool-name,
body:not(.landing-body) .chat-world-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.005em;
}
body:not(.landing-body) .daily-hero h1,
body:not(.landing-body) .hero-panel h1 { font-weight: 500; }
body:not(.landing-body) .btn { font-weight: 600; }
body:not(.landing-body) .section-title { font-weight: 600; }
body:not(.landing-body) .section-link { font-weight: 600; }
body:not(.landing-body) .nav-label { font-weight: 500; }
body:not(.landing-body) strong { font-weight: 600; }
body:not(.landing-body) .badge-gold,
body:not(.landing-body) .badge,
body:not(.landing-body) .preference-pills span,
body:not(.landing-body) .style-chip,
body:not(.landing-body) .daily-sign-chip { font-weight: 500; }
body:not(.landing-body) .eyebrow { font-weight: 600; letter-spacing: .1em; }
body:not(.landing-body) .daily-reading { font-weight: 400; }

/* CTA compatibilita sull'oroscopo + bottone "indietro" sulla pagina affinita */
.compat-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
}
.compat-cta strong { display: block; }
.compat-cta-arrow { font-size: 26px; line-height: 1; color: #ff5d6c; }
.hero-back-btn { background: #ffb020 !important; color: #5a3a00 !important; }

/* Bottom nav a 6 voci: distribuzione uniforme che ci sta su 380px */
.bottom-nav .nav-item { flex: 1; min-width: 0; padding: 8px 2px; }
.bottom-nav .nav-label { font-size: 10px; white-space: nowrap; }
.bottom-nav .nav-icon svg { width: 22px; height: 22px; }

/* ═══ Leggibilita: testo piu grande e arioso (v34) ═══ */
body:not(.landing-body) .daily-reading { font-size: clamp(17.5px, 4.8vw, 20px); line-height: 1.72; }
body:not(.landing-body) .sector-detail-panel p { font-size: 15.5px; line-height: 1.62; }
body:not(.landing-body) .sector-name { font-size: 17px; }
body:not(.landing-body) .sector-detail-title { font-size: 13px; }
body:not(.landing-body) .match-main p,
body:not(.landing-body) .public-preview p,
body:not(.landing-body) .check-row span { font-size: 15px; line-height: 1.6; }
body:not(.landing-body) .form-label { font-size: 13.5px; }
body:not(.landing-body) .field-help,
body:not(.landing-body) .privacy-note { font-size: 13px; }
.score-dots-lg .score-dot { width: 12px; height: 12px; }
@media (min-width: 760px) {
  .main-content { max-width: 600px; }
}

/* iOS PWA: rispetta la status bar (ora/batteria) — l'header non ci finisce sotto */
.topbar {
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
body { padding-top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); }

/* Pulsante menu nella topbar (sostituisce il vecchio tab Menu in basso) */
.topbar-menu {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  color: #2b2333; flex-shrink: 0;
}
.topbar-menu svg { width: 22px; height: 22px; }
