/* ═══════════════════════════════════════
   dream dump — bold editorial design system
   fonts: Playfair Display + DM Sans
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #1f1228;
  --white:   #CBC09F;
  --purple:  #8E76AA;
  --pink:    #CBC09F;
  --blue:    #4B5672;
  --gold:    #CBC09F;
  --surface: rgba(203,192,159,0.05);
  --border:  rgba(203,192,159,0.10);
  --muted:   #9c8db0;
  --jacarta: #482D58;
  --bronze:  #4B5672;
  --radius:  4px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

/* ── ink-splatter grunge bg (site-wide) ─────────────────────────── */
.dream-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    /* uneven shadow patches — distressed feel */
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(0,0,0,0.7), transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 10%, rgba(0,0,0,0.65), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(72,45,88,0.35), transparent 60%),
    /* base wash: deep purple to black */
    linear-gradient(135deg, #2a1338 0%, #1a0a25 35%, #0e051a 65%, #050208 100%);
}

/* SVG noise grain — distressed surface texture */
.dream-bg::before {
  content: "";
  position: absolute;
  inset: -5%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 240px 240px;
  mix-blend-mode: overlay;
  opacity: 0.85;
  animation: grainShift 8s steps(8) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-2%, -3%); }
  25%  { transform: translate(-5%, 4%); }
  40%  { transform: translate(3%, -2%); }
  55%  { transform: translate(-4%, 5%); }
  70%  { transform: translate(5%, -4%); }
  85%  { transform: translate(-3%, 2%); }
  100% { transform: translate(0,0); }
}

/* abstract diagonal paint strokes (was .aurora) */
.aurora {
  position: absolute;
  top: 5%; left: -30%;
  width: 160%; height: 25%;
  background:
    /* thin streak */
    linear-gradient(98deg,
      transparent 12%,
      rgba(72,45,88,0.85) 16%,
      rgba(142,118,170,0.55) 20%,
      transparent 24%,
      transparent 38%,
      rgba(72,45,88,0.7) 42%,
      transparent 48%);
  filter: blur(2px) contrast(1.2);
  transform: rotate(-3deg);
  animation: strokeDrift 24s ease-in-out infinite alternate;
  opacity: 0.9;
}
.aurora.two {
  top: 65%; left: -20%;
  width: 150%; height: 20%;
  background:
    linear-gradient(82deg,
      transparent 8%,
      rgba(0,0,0,0.6) 12%,
      rgba(72,45,88,0.75) 18%,
      transparent 26%,
      transparent 50%,
      rgba(142,118,170,0.45) 56%,
      rgba(0,0,0,0.5) 62%,
      transparent 70%);
  filter: blur(3px) contrast(1.15);
  transform: rotate(4deg);
  animation: strokeDrift2 32s ease-in-out infinite alternate;
  opacity: 0.8;
}
@keyframes strokeDrift  { 0% { transform: translate(0,0) rotate(-3deg); } 100% { transform: translate(60px, 20px) rotate(-1.5deg); } }
@keyframes strokeDrift2 { 0% { transform: translate(0,0) rotate(4deg); }  100% { transform: translate(-80px, -10px) rotate(2deg); } }
@keyframes auroraDrift {
  0%   { transform: translate(0,0) rotate(-2deg) scaleY(1); }
  100% { transform: translate(80px, 30px) rotate(3deg) scaleY(1.2); }
}
@keyframes auroraDrift2 {
  0%   { transform: translate(0,0) rotate(2deg); }
  100% { transform: translate(-100px, 50px) rotate(-3deg); }
}

/* repurposed as a heavy ink blot in the corner */
.moon {
  position: absolute;
  top: 50px;
  right: 8%;
  width: 280px; height: 220px;
  border-radius: 56% 44% 38% 62% / 49% 53% 47% 51%;
  background:
    radial-gradient(ellipse 50% 60% at 40% 45%, rgba(72,45,88,0.92), rgba(72,45,88,0.6) 60%, transparent 90%),
    radial-gradient(ellipse 30% 40% at 65% 30%, rgba(0,0,0,0.85), transparent 70%);
  filter: blur(8px) contrast(1.3);
  mix-blend-mode: multiply;
  opacity: 0.85;
  animation: blotMorph 14s ease-in-out infinite alternate;
}
.moon::before {
  content: "";
  position: absolute;
  top: -30px; left: -40px;
  width: 80px; height: 60px;
  border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%;
  background: rgba(72,45,88,0.7);
  filter: blur(6px);
}
@keyframes blotMorph {
  0%   { border-radius: 56% 44% 38% 62% / 49% 53% 47% 51%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 42% 58% 55% 45% / 55% 41% 59% 45%; transform: rotate(8deg) scale(1.08); }
}

/* big ink splatter blobs (was orbs) */
.dream-bg .orb {
  position: absolute;
  filter: blur(4px) contrast(1.4);
  mix-blend-mode: multiply;
  will-change: transform;
  opacity: 0.95;
}
.orb-purple {
  width: 520px; height: 460px;
  top: -120px; left: -80px;
  border-radius: 48% 52% 65% 35% / 58% 42% 58% 42%;
  background:
    radial-gradient(ellipse 60% 55% at 45% 50%, rgba(72,45,88,0.95), rgba(72,45,88,0.5) 55%, transparent 85%),
    radial-gradient(ellipse 20% 25% at 70% 25%, rgba(0,0,0,0.85), transparent 70%);
  box-shadow:
    /* satellite droplets — splatter feel */
    180px 80px 0 -30px rgba(72,45,88,0.7),
    240px 30px 0 -42px rgba(72,45,88,0.55),
    -40px 220px 0 -28px rgba(72,45,88,0.6),
    300px 180px 0 -40px rgba(0,0,0,0.6),
    120px -40px 0 -50px rgba(72,45,88,0.5);
  animation: blot1 26s ease-in-out infinite alternate;
}
.orb-blue {
  width: 440px; height: 520px;
  bottom: -120px; right: -60px;
  border-radius: 62% 38% 45% 55% / 50% 60% 40% 50%;
  background:
    radial-gradient(ellipse 55% 60% at 50% 45%, rgba(0,0,0,0.9), rgba(0,0,0,0.4) 60%, transparent 85%),
    radial-gradient(ellipse 25% 20% at 30% 70%, rgba(72,45,88,0.85), transparent 70%);
  box-shadow:
    -160px -60px 0 -32px rgba(0,0,0,0.7),
    -260px -120px 0 -45px rgba(0,0,0,0.55),
    -80px -240px 0 -38px rgba(72,45,88,0.6),
    -220px 40px 0 -50px rgba(0,0,0,0.5);
  animation: blot2 30s ease-in-out infinite alternate;
}
.orb-pink {
  width: 380px; height: 320px;
  top: 32%; left: 48%;
  border-radius: 55% 45% 38% 62% / 42% 58% 42% 58%;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(142,118,170,0.8), rgba(142,118,170,0.35) 55%, transparent 80%);
  box-shadow:
    100px 60px 0 -25px rgba(142,118,170,0.55),
    -120px 100px 0 -30px rgba(72,45,88,0.55),
    180px -60px 0 -42px rgba(142,118,170,0.5);
  animation: blot3 34s ease-in-out infinite alternate;
}
@keyframes blot1 {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); border-radius: 48% 52% 65% 35% / 58% 42% 58% 42%; }
  100% { transform: translate(40px, 30px) rotate(6deg) scale(1.08); border-radius: 52% 48% 55% 45% / 48% 52% 48% 52%; }
}
@keyframes blot2 {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); border-radius: 62% 38% 45% 55% / 50% 60% 40% 50%; }
  100% { transform: translate(-30px, -40px) rotate(-5deg) scale(1.1); border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%; }
}
@keyframes blot3 {
  0%   { transform: translate(0,0) rotate(0deg) scale(0.95); border-radius: 55% 45% 38% 62% / 42% 58% 42% 58%; }
  100% { transform: translate(50px, -30px) rotate(8deg) scale(1.05); border-radius: 48% 52% 52% 48% / 55% 45% 55% 45%; }
}

/* tiny ink speckles scattered around (was stars) */
.stars-layer {
  position: absolute;
  inset: -10%;
  mix-blend-mode: multiply;
  filter: blur(0.5px);
}
/* big ink splotches clustered like splatter */
.stars-layer.near {
  background-image:
    radial-gradient(8px 5px at 12% 18%, rgba(0,0,0,0.85), transparent 60%),
    radial-gradient(5px 7px at 27% 64%, rgba(72,45,88,0.8), transparent 60%),
    radial-gradient(10px 6px at 41% 22%, rgba(0,0,0,0.7), transparent 60%),
    radial-gradient(4px 6px at 55% 78%, rgba(72,45,88,0.75), transparent 60%),
    radial-gradient(7px 5px at 68% 12%, rgba(0,0,0,0.8), transparent 60%),
    radial-gradient(6px 4px at 82% 56%, rgba(72,45,88,0.7), transparent 60%),
    radial-gradient(9px 6px at 91% 30%, rgba(0,0,0,0.75), transparent 60%),
    radial-gradient(5px 7px at 7% 88%, rgba(72,45,88,0.7), transparent 60%),
    radial-gradient(4px 5px at 34% 8%, rgba(0,0,0,0.6), transparent 60%),
    radial-gradient(6px 4px at 62% 70%, rgba(72,45,88,0.65), transparent 60%),
    radial-gradient(8px 5px at 75% 85%, rgba(0,0,0,0.7), transparent 60%),
    radial-gradient(5px 6px at 96% 78%, rgba(72,45,88,0.75), transparent 60%);
  animation: speckleShift 60s linear infinite;
  opacity: 0.8;
}
/* mid-sized ink droplets */
.stars-layer.mid {
  opacity: 0.7;
  background-image:
    radial-gradient(3px 2px at 22% 8%, rgba(0,0,0,0.8), transparent 60%),
    radial-gradient(2px 3px at 47% 33%, rgba(72,45,88,0.85), transparent 60%),
    radial-gradient(3px 2px at 71% 67%, rgba(0,0,0,0.75), transparent 60%),
    radial-gradient(2px 3px at 15% 73%, rgba(72,45,88,0.8), transparent 60%),
    radial-gradient(3px 2px at 38% 51%, rgba(0,0,0,0.7), transparent 60%),
    radial-gradient(2px 3px at 84% 19%, rgba(72,45,88,0.8), transparent 60%),
    radial-gradient(3px 2px at 95% 95%, rgba(0,0,0,0.75), transparent 60%),
    radial-gradient(2px 2px at 64% 5%, rgba(72,45,88,0.85), transparent 60%),
    radial-gradient(3px 2px at 33% 92%, rgba(0,0,0,0.7), transparent 60%),
    radial-gradient(2px 3px at 9% 27%, rgba(72,45,88,0.75), transparent 60%),
    radial-gradient(3px 2px at 28% 47%, rgba(0,0,0,0.65), transparent 60%),
    radial-gradient(2px 3px at 52% 80%, rgba(72,45,88,0.75), transparent 60%),
    radial-gradient(2px 2px at 67% 28%, rgba(0,0,0,0.6), transparent 60%),
    radial-gradient(3px 2px at 78% 88%, rgba(72,45,88,0.7), transparent 60%),
    radial-gradient(2px 2px at 91% 41%, rgba(0,0,0,0.65), transparent 60%),
    radial-gradient(3px 2px at 5% 62%, rgba(72,45,88,0.75), transparent 60%);
  animation: speckleShift 90s linear infinite reverse;
}
/* tiny pepper specks */
.stars-layer.far {
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 19% 41%, rgba(0,0,0,0.7), transparent 60%),
    radial-gradient(1px 1px at 88% 75%, rgba(0,0,0,0.65), transparent 60%),
    radial-gradient(1px 1px at 60% 35%, rgba(72,45,88,0.7), transparent 60%),
    radial-gradient(1px 1px at 4% 55%, rgba(0,0,0,0.6), transparent 60%),
    radial-gradient(1px 1px at 49% 47%, rgba(0,0,0,0.55), transparent 60%),
    radial-gradient(1px 1px at 75% 89%, rgba(72,45,88,0.65), transparent 60%),
    radial-gradient(1px 1px at 30% 25%, rgba(0,0,0,0.6), transparent 60%),
    radial-gradient(1px 1px at 11% 14%, rgba(0,0,0,0.55), transparent 60%),
    radial-gradient(1px 1px at 41% 79%, rgba(72,45,88,0.6), transparent 60%),
    radial-gradient(1px 1px at 56% 19%, rgba(0,0,0,0.55), transparent 60%),
    radial-gradient(1px 1px at 70% 56%, rgba(72,45,88,0.65), transparent 60%),
    radial-gradient(1px 1px at 82% 11%, rgba(0,0,0,0.5), transparent 60%),
    radial-gradient(1px 1px at 93% 38%, rgba(0,0,0,0.55), transparent 60%),
    radial-gradient(1px 1px at 25% 67%, rgba(72,45,88,0.55), transparent 60%);
  animation: speckleShift 140s linear infinite;
}
@keyframes speckleShift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(-30px, 20px); }
}
@keyframes twinkleNear { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes twinkleMid  { 0%,100% { opacity: 0.7; } 50% { opacity: 0.3; } }
@keyframes twinkleFar  { 0%,100% { opacity: 0.45; } 50% { opacity: 0.2; } }
@keyframes starsPan { 0% { transform: translate(0,0); } 100% { transform: translate(-60px, 30px); } }

/* dripping paint streaks (was shooting stars) */
.shoot {
  position: absolute;
  width: 4px;
  height: 90px;
  background: linear-gradient(180deg,
    rgba(72,45,88,0.9) 0%,
    rgba(72,45,88,0.7) 60%,
    rgba(72,45,88,0.3) 90%,
    transparent);
  filter: blur(1px);
  border-radius: 0 0 50% 50% / 0 0 30px 30px;
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.shoot::after {
  content: "";
  position: absolute;
  bottom: -4px; left: -3px;
  width: 10px; height: 10px;
  border-radius: 50% 50% 60% 40% / 50% 50% 70% 30%;
  background: rgba(72,45,88,0.9);
  filter: blur(1.5px);
}
.shoot.s1 { top: 0;  left: 18%; height: 120px; animation: dripSway 11s ease-in-out infinite; }
.shoot.s2 { top: 0;  left: 47%; height: 70px;  animation: dripSway 13s ease-in-out infinite; animation-delay: -3s; }
.shoot.s3 { top: 0;  left: 73%; height: 95px;  animation: dripSway 16s ease-in-out infinite; animation-delay: -7s; }
.shoot.s4 { top: 0;  left: 92%; height: 55px;  animation: dripSway 14s ease-in-out infinite; animation-delay: -2s; }
@keyframes dripSway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(8px) rotate(2deg); }
}

/* scattered ink droplets (was floating glyphs) — hide text, render as blots */
.glyph {
  position: absolute;
  font-size: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
  width: 14px; height: 11px;
  background: rgba(0,0,0,0.7);
  border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%;
  filter: blur(1px);
  mix-blend-mode: multiply;
  animation: dropletBlot 8s ease-in-out infinite alternate;
  opacity: 0.7;
  bottom: auto;
  user-select: none;
}
.glyph:nth-child(odd)  { background: rgba(72,45,88,0.75); width: 18px; height: 8px; }
.glyph:nth-child(3n)   { width: 9px; height: 9px; border-radius: 50%; }
.glyph:nth-child(4n+1) { top: 70%; }
.glyph:nth-child(5n)   { top: 20%; }
.glyph:nth-child(7n)   { top: 50%; }
@keyframes dropletBlot {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(15deg); }
}

/* heavy ink smear along the bottom (was mist) */
.mist {
  position: absolute;
  bottom: -40px; left: -10%;
  width: 120%; height: 30%;
  background:
    radial-gradient(ellipse 40% 80% at 25% 100%, rgba(0,0,0,0.75), transparent 70%),
    radial-gradient(ellipse 50% 70% at 60% 100%, rgba(72,45,88,0.7), transparent 70%),
    radial-gradient(ellipse 35% 60% at 85% 100%, rgba(0,0,0,0.65), transparent 70%);
  filter: blur(20px);
  mix-blend-mode: multiply;
  animation: smearShift 35s ease-in-out infinite alternate;
}
@keyframes smearShift {
  0%   { transform: translateX(0) scaleY(1); }
  100% { transform: translateX(-4%) scaleY(1.1); }
}

.dream-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* heavy edge darkening for high-contrast grunge */
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%),
    /* extra ink seep at corners */
    radial-gradient(circle 50% at 0% 0%,   rgba(0,0,0,0.5), transparent 60%),
    radial-gradient(circle 50% at 100% 100%, rgba(0,0,0,0.45), transparent 60%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── Typography ── */
.display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-style: italic;
}

h1, h2, h3 { line-height: 1.15; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(31,18,40,0.55);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 7px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--white); background: var(--surface); }
.nav-links a.active { color: var(--white); background: rgba(142,118,170,0.15); border: 1px solid rgba(142,118,170,0.25); }
.nav-hint { color: rgba(156,141,176,0.55); font-size: 0.72rem; margin-left: 2px; font-weight: 400; }

.nav-cta {
  padding: 8px 18px !important;
  background: var(--purple) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { opacity: 0.88 !important; background: var(--purple) !important; }

/* ── Page wrapper ── */
.page { padding-top: 60px; min-height: 100vh; }

/* ── Section utils ── */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-weight: 700; font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--white); color: var(--black);
  box-shadow: 0 4px 20px rgba(203,192,159,0.12);
}
.btn-primary:hover { background: var(--purple); color: var(--white); }

.btn-purple {
  background: var(--purple); color: var(--black);
  box-shadow: 0 4px 20px rgba(142,118,170,0.3);
}
.btn-purple:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

.btn-deep {
  background: linear-gradient(135deg, #4B5672, #8E76AA, #CBC09F);
  color: white;
  box-shadow: 0 4px 24px rgba(142,118,170,0.35);
}
.btn-deep:hover { box-shadow: 0 6px 32px rgba(142,118,170,0.55); }

.btn-danger { background: rgba(72,45,88,0.15); color: #c19fd1; border: 1px solid rgba(72,45,88,0.3); }
.btn-danger:hover { background: rgba(72,45,88,0.25); }

.btn-sm { padding: 8px 14px; font-size: 0.8rem; }

/* ── Glass card ── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  border-radius: 2px;
}

/* ── Tag / pill ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-purple { background: rgba(142,118,170,0.15); color: var(--purple); border: 1px solid rgba(142,118,170,0.25); }
.tag-pink   { background: rgba(203,192,159,0.12); color: var(--pink);   border: 1px solid rgba(203,192,159,0.22); }
.tag-gold   { background: rgba(203,192,159,0.12);  color: var(--gold);   border: 1px solid rgba(203,192,159,0.22); }
.tag-blue   { background: rgba(75,86,114,0.12);  color: var(--blue);   border: 1px solid rgba(75,86,114,0.22); }

/* ── Fortune pills ── */
.fortune-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.fp-great-good { background: rgba(203,192,159,0.18); color: #CBC09F; border: 1px solid rgba(203,192,159,0.4); }
.fp-good       { background: rgba(142,118,170,0.18); color: #b8a3d0; border: 1px solid rgba(142,118,170,0.4); }
.fp-mixed-good { background: rgba(142,118,170,0.10); color: #a896ba; border: 1px solid rgba(142,118,170,0.22); }
.fp-neutral    { background: rgba(75,86,114,0.18);   color: #8995b3; border: 1px solid rgba(75,86,114,0.32); }
.fp-mixed-bad  { background: rgba(72,45,88,0.45);    color: #b89dc8; border: 1px solid rgba(72,45,88,0.65); }
.fp-bad        { background: rgba(72,45,88,0.70);    color: #d0b8e0; border: 1px solid rgba(72,45,88,0.9); }

/* ── Forms ── */
input, textarea, select {
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(203,192,159,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  padding: 11px 14px;
  width: 100%;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(142,118,170,0.5);
  background: rgba(142,118,170,0.05);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
select option { background: #2a1838; color: var(--white); }

textarea {
  resize: vertical;
  line-height: 1.75;
  min-height: 180px;
}

/* ── Toast ── */
.toast {
  font-size: 0.82rem;
  min-height: 20px;
  margin-top: 10px;
  transition: opacity 0.4s;
  color: #CBC09F;
}

/* ── Analysis output ── */
.zhougong-entry {
  border: 1px solid var(--border);
  padding: 16px 18px;
  margin-top: 10px;
  animation: fadeUp 0.3s ease;
}
.zhougong-zh { font-size: 1.3rem; font-weight: 800; color: #CBC09F; }
.zhougong-en { color: var(--muted); font-size: 0.88rem; }
.zhougong-classical { font-style: italic; color: #d5c2e0; font-size: 0.88rem; line-height: 1.65; margin: 8px 0 4px; }
.zhougong-en-text { color: #b8a3d0; font-size: 0.84rem; line-height: 1.6; }
.zhougong-modern { color: #c8b3da; font-size: 0.84rem; line-height: 1.55; margin-top: 6px; }

.deep-read-output {
  border: 1px solid rgba(142,118,170,0.2);
  background: linear-gradient(135deg, rgba(75,86,114,0.06), rgba(203,192,159,0.04));
  padding: 20px 22px;
  animation: fadeUp 0.4s ease;
  line-height: 1.8;
}
.deep-read-output p { margin-bottom: 10px; color: #d8c5e8; font-size: 0.92rem; }
.deep-read-output p:last-child { margin-bottom: 0; }
.deep-read-output em { color: #c0a8d4; font-style: italic; }
.deep-read-output .takeaway { color: var(--purple); font-weight: 600; margin-top: 14px; }

.fortune-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  animation: fadeUp 0.3s ease;
}
.fortune-emoji { font-size: 2rem; }
.fortune-verdict { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em; }
.fortune-sub { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Loading spinner ── */
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

/* ── Responsive nav ── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 0.78rem; }
}

@media (max-width: 560px) {
  .nav-links .hide-mobile { display: none; }
}