/* ═══════════════════════════════════════════════════════════════
   delfy.css  —  Shared design system for myDelfy.ai
   Single source of truth. All templates import this file.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Design tokens ───────────────────────────────────────── */
:root {
  /* Colour palette */
  --bg:           #08080f;
  --bg2:          #0d0d1a;
  --text:         #e8e6f0;
  --text-muted:   #8a8898;
  --gold:         #c9a84c;
  --gold-dim:     rgba(201,168,76,0.10);
  --gold-border:  rgba(201,168,76,0.22);
  --gold-bright:  #e2c97e;
  --card:         rgba(255,255,255,0.025);
  --card-border:  rgba(255,255,255,0.07);
  --input-bg:     rgba(255,255,255,0.05);
  --input-border: rgba(201,168,76,0.3);
  --surface-border: rgba(255,255,255,0.08);
  --violet:       rgba(139,92,246,0.55);

  /* ── Width tokens — 3 canonical values, used everywhere ── */
  --w-form:    520px;   /* birth form card, auth cards            */
  --w-content: 640px;   /* text blocks, reflection wrap, outputs  */
  --w-wide:    760px;   /* page headers, outer wrap, wide sections */

  /* ── Breakpoints (reference — use in media queries below) ── */
  /* --bp-tablet: 600px  — main mobile breakpoint               */
  /* --bp-phone:  400px  — small phone breakpoint               */
}

/* ── 2. Base reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── 3. Starfield background ────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at  7%  5%,  rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 13%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 40%  3%, rgba(255,255,255,0.42) 0%, transparent 100%),
    radial-gradient(1px 1px at 66% 17%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 84%  8%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 12% 31%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 54% 27%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 41%, rgba(201,168,76,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 29% 54%, rgba(201,168,76,0.28) 0%, transparent 100%),
    radial-gradient(1px 1px at 71% 60%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 17% 73%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 87% 77%, rgba(255,255,255,0.28) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 84%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 61% 92%, rgba(201,168,76,0.18) 0%, transparent 100%);
}

/* ── 4. Layout containers ───────────────────────────────────── */

/* Standard outer wrapper — max-width: --w-wide (760px) */
.wrap {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Narrow content wrapper — max-width: --w-content (640px) */
.wrap-content {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Form wrapper — centres the birth card — max-width: --w-form (520px) */
.wrap-form {
  max-width: var(--w-form);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ── 5. Navigation ──────────────────────────────────────────── */
nav.user-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.user-nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
}

.user-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
}

.user-nav-credits {
  color: var(--gold);
  font-weight: 500;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 4px 12px;
}

.user-nav-account {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.user-nav-account:hover { color: var(--text); }

.user-nav-signin {
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  transition: all 0.2s;
}

.user-nav-signin:hover { background: rgba(201,168,76,0.1); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.lang-switcher a:hover { color: var(--gold); }

.lang-switcher a.active {
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}

.lang-switcher .sep { color: rgba(255,255,255,0.12); }

/* ── 6. Page header ─────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 24px 28px 0;
  position: relative;
  z-index: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.back-link:hover { opacity: 1; }

.page-header {
  padding: 52px 28px 48px;
  max-width: var(--w-wide);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.75;
}

.page-header h1,
h1.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.page-header h1 em,
h1.page-title em { color: var(--gold); font-style: italic; }

.header-desc {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(17px, 2.5vw, 20px);
  font-style: italic;
  font-weight: 400;
  color: rgba(232,230,240,0.75);
  line-height: 1.65;
  max-width: var(--w-content);
}

/* Thin divider between subtitle and feature-bullet list */
.header-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 32px 0 28px;
  max-width: var(--w-content);
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* ── 7. Birth form card ─────────────────────────────────────── */

/* The card container — always max-width: --w-form, centred */
.calc-card {
  background: var(--bg2);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: var(--w-form);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.calc-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
}

.calc-card-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: 28px;
}

/* ── 8. Form fields ─────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.8;
}

.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.field input[type="text"]:focus,
.field input[type="number"]:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}

.field input::placeholder { color: var(--text-muted); opacity: 0.6; }
.field input.invalid { border-color: rgba(239,68,68,0.6) !important; }

/* Date row: Day | Month | Year */
.row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 12px;
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Time + Gender row */
.row-time-gender {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

/* Timezone result */
.tz-result {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: rgba(100,200,160,0.85);
  margin-top: 6px;
}

/* Gender toggle */
.gender-toggle {
  display: flex;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  overflow: hidden;
  height: 43px;
}

.gender-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gender-btn:first-child { border-right: 1px solid var(--input-border); }
.gender-btn.active-male   { background: rgba(96,165,250,0.18);  color: #60a5fa; }
.gender-btn.active-female { background: rgba(244,114,182,0.18); color: #f472b6; }
.gender-toggle.invalid    { border-color: rgba(239,68,68,0.6); }

/* Form lock state */
.form-locked .field input,
.form-locked .field label { opacity: 0.55; pointer-events: none; }
.form-locked .gender-btn  { opacity: 0.55; pointer-events: none; }
.form-locked .tz-result   { opacity: 0.55; }

/* Hints */
.hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 12px;
  margin-top: -8px;
  line-height: 1.5;
}

/* Error box */
.calc-error {
  background: rgba(220,60,60,0.1);
  border: 1px solid rgba(220,60,60,0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: #f87171;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}

.calc-error:not(:empty) { display: block; }

/* Credit cost hint */
.credit-cost-hint {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
  opacity: 0.75;
  min-height: 18px;
}

.credit-cost-hint strong { color: var(--gold); }

/* ── 9. Primary CTA button ──────────────────────────────────── */
.btn-create {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #9a7230 0%, var(--gold) 45%, #9a7230 100%);
  border: none;
  border-radius: 10px;
  color: #08080f;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-create:hover    { opacity: 0.9; transform: translateY(-1px); }
.btn-create:active   { transform: translateY(0); }
.btn-create:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Variant — reflection / secondary action */
.btn-create--reflection {
  background: linear-gradient(135deg, #3a7d5a 0%, #52b07f 45%, #3a7d5a 100%);
  color: #f0f7f3;
}

/* Form action links (Edit / Run for another) */
.form-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 12px;
}

.form-action-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-action-link:hover { opacity: 1; color: var(--gold); }

/* ── 10. Progress UI ────────────────────────────────────────── */
.progress-wrap {
  margin: 20px 0 8px;
  padding: 20px 22px;
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
}

.progress-orb { display: flex; gap: 6px; margin-bottom: 14px; }

.progress-orb span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(201,168,76,0.6);
  animation: progress-pulse 1.4s ease-in-out infinite;
}

.progress-orb span:nth-child(2) { animation-delay: 0.2s; }
.progress-orb span:nth-child(3) { animation-delay: 0.4s; }

@keyframes progress-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40%            { opacity: 1;   transform: scale(1);   }
}

.progress-msg {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.progress-timer {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.55;
  margin-bottom: 12px;
}

.progress-bar-track {
  height: 2px;
  background: rgba(201,168,76,0.12);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* ── 11. Reflection / output widget ────────────────────────── */
.reflection-wrap {
  max-width: var(--w-content);
  margin: 48px auto 0;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

.reflection-wrap h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-bright);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.reflection-prompt {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.reflection-sent {
  text-align: center;
  padding: 24px 0 8px;
}

.reflection-sent p:first-child {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.reflection-sent p:last-child {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.reflection-error {
  margin-top: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #e07070;
  display: none;
}

/* ── 12. Footer ─────────────────────────────────────────────── */
footer.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 28px 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 64px;
}

footer.site-footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin: 0 0 6px;
}

footer.site-footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

footer.site-footer a:hover { opacity: 1; }

footer.site-footer .copyright {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.3;
}

/* ── 13. Utility ────────────────────────────────────────────── */

/* Divider */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold-border);
  margin: 28px 0;
}

/* ── 14. Mobile breakpoints ─────────────────────────────────── */

/* Tablet / large phone (≤ 600px) */
@media (max-width: 600px) {
  .wrap,
  .wrap-content,
  .wrap-form { padding: 0 20px; }

  nav.user-nav { padding: 12px 20px; }
  .user-nav-right { gap: 10px; font-size: 11px; }
  .user-nav-credits { padding: 3px 9px; font-size: 11px; }
  .user-nav-account { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .page-header { padding: 40px 20px 36px; }

  .calc-card { padding: 28px 20px; border-radius: 12px; }

  .row-time-gender {
    grid-template-columns: 1fr 1fr;
  }
  .row-time-gender > div:last-child { grid-column: 1 / -1; }

  .reflection-wrap { padding: 24px 18px; }

  footer.site-footer { padding: 32px 20px 40px; }
  footer.site-footer p { font-size: 11px; }

  .back-link { padding: 20px 20px 0; }
}

/* Small phone (≤ 400px) */
@media (max-width: 400px) {
  body { font-size: 15px; }

  nav.user-nav { padding: 10px 16px; }

  .calc-card { padding: 24px 16px; }

  .row-3 { grid-template-columns: 1fr 1fr; }
  .row-3 > div:last-child { grid-column: 1 / -1; }

  .btn-create { font-size: 15px; padding: 14px 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   ADDITIONS — shared components extracted from child templates
   ═══════════════════════════════════════════════════════════════ */

/* ── 15. Teal accent (relationship / object pages) ────────────── */
:root {
  --teal:        rgba(34,211,238,0.85);
  --teal-border: rgba(34,211,238,0.25);
  --teal-dim:    rgba(34,211,238,0.08);
}

/* ── 16. Page content wrapper (account, buy_credits) ──────────── */
.page {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

/* ── 17. Calc section (padding shell around the form card) ─────── */
.calc-section {
  padding: 0 28px 80px;
  position: relative;
  z-index: 1;
}

/* ── 18. "What's included" strip (profile/oracle pages) ────────── */
.includes-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 48px;
}

.include-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.include-item span {
  color: var(--gold);
  font-size: 10px;
  flex-shrink: 0;
}

/* ── 19. Open-report button (after generation completes) ─────── */
.open-report-btn {
  display: block;
  margin-top: 16px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #c9a84c 0%, #e2c97e 50%, #c9a84c 100%);
  color: #08080f;
  border-radius: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}

.open-report-btn:hover { opacity: 0.88; }

/* ── 20. btn-generate alias (relationship page) ──────────────── */
/* Identical to .btn-create — keeps existing JS/HTML unchanged */
.btn-generate {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #9a7230 0%, var(--gold) 45%, #9a7230 100%);
  border: none;
  border-radius: 10px;
  color: #08080f;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-generate:hover    { opacity: 0.9; transform: translateY(-1px); }
.btn-generate:active   { transform: translateY(0); }
.btn-generate:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-generate--reflection {
  background: linear-gradient(135deg, #3a7d5a 0%, #52b07f 45%, #3a7d5a 100%);
  color: #f0f7f3;
}

/* ── 21. Reflection form components ─────────────────────────── */
.reflection-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.75;
  padding: 14px 16px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.reflection-textarea:focus { border-color: var(--gold); }
.reflection-textarea::placeholder { color: var(--text-muted); opacity: 0.5; }

.reflection-options {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reflection-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.reflection-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.reflection-anon-label {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
  display: block;
}

.reflection-submit {
  margin-top: 20px;
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.reflection-submit:hover:not(:disabled) {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.reflection-submit:disabled { opacity: 0.4; cursor: default; }

/* ── 22. Field helper text ──────────────────────────────────── */
.field-helper {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 10px;
  margin-top: -4px;
}

/* ── 23. Pitch text (profile intro paragraphs) ─────────────────── */
.pitch-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.92;
  color: rgba(232,230,240,0.80);
  margin-bottom: 20px;
}

/* ── 24. Section / includes label (e.g. "YOUR PROFILE CONTAINS") ── */
.includes-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  opacity: 0.45;
  margin-bottom: 16px;
}


  /* Credits chip becomes a tappable button on mobile */
  .nav-credits-tap {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* Mobile dropdown panel */
  .nav-mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 16px;
    min-width: 200px;
    background: #0d0d1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 0;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  }
  .nav-mobile-menu.open { display: block; }
  .nav-mobile-email {
    display: block;
    padding: 10px 16px 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: rgba(232,230,240,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
    word-break: break-all;
  }
  .nav-mobile-link {
    display: block;
    padding: 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(232,230,240,0.8);
    text-decoration: none;
    transition: background 0.15s;
  }
  .nav-mobile-link:hover { background: rgba(255,255,255,0.04); }
  .nav-mobile-link:last-child { color: rgba(232,230,240,0.4); margin-top: 2px; border-top: 1px solid rgba(255,255,255,0.05); }

  /* Relative positioning so dropdown anchors to nav */
  .user-nav { position: relative; }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV (Fix 3) — pure CSS: hide email/signout on small screens
   No JS dropdown. Credits chip stays. Account reachable via /account.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .user-nav-account { display: none !important; }
    .user-nav { padding: 12px 16px; }
  .user-nav-right { gap: 8px; }
  .user-nav-credits { font-size: 11px; padding: 3px 9px; }
  .lang-switcher { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV DROPDOWN — <details>/<summary> — no JS, native toggle
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Hide desktop-only account links */
  .user-nav-account { display: none !important; }

  /* The <details> element sits in the nav-right flow */
  .nav-mobile-details {
    position: relative;
    list-style: none;
  }
  .nav-mobile-details summary {
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-mobile-details summary::-webkit-details-marker { display: none; }

  /* Dropdown panel */
  .nav-mobile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #0d0d1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 0;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  }
  .nav-mobile-email {
    display: block;
    padding: 10px 16px 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: rgba(232,230,240,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
    word-break: break-all;
  }
  .nav-mobile-link {
    display: block;
    padding: 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(232,230,240,0.8);
    text-decoration: none;
  }
  .nav-mobile-signout {
    color: rgba(232,230,240,0.4);
    margin-top: 2px;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  /* Keep nav compact on mobile */
  .user-nav { padding: 10px 16px; position: relative; }
  .user-nav-right { gap: 8px; }
  .user-nav-credits { font-size: 11px; padding: 3px 9px; }
}

/* ── Nav inner wrapper — constrains logo+items on wide screens ── */
.user-nav-inner {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 600px) {
  .user-nav-inner { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE FORM CARD — fill viewport regardless of parent padding.
   Profile/oracle pages have calc-section+wrap double-padding (56px
   total), shrinking the card to 263px. This override restores the
   same full-width feel as the Delfy Daily form (which the user confirmed
   looks right). 16px margin each side matches the relationship form.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .calc-card {
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  /* Also zero double-padding from calc-section on mobile */
  .calc-section { padding-left: 0; padding-right: 0; }
  .calc-section .wrap { padding-left: 0; padding-right: 0; }
}
