/* Arcana Nopții · indigo, violet închis, auriu cald și accente luminoase */

:root {
  --ink: #0c0a24;
  --indigo: #16133a;
  --indigo-2: #1f1a4d;
  --violet: #2c1d55;
  --violet-2: #3d2a72;
  --gold: #d9b56a;
  --gold-2: #f1d38d;
  --gold-soft: rgba(217, 181, 106, .18);
  --glow: #a99bff;
  --rose: #e79ab4;
  --text: #ece8ff;
  --muted: #b4acd6;
  --line: rgba(217, 181, 106, .28);
  --surface: rgba(31, 26, 77, .62);
  --surface-2: rgba(44, 29, 85, .78);
  --ok: #8fe0b5;
  --err: #ff9a9a;
  --card-top: #2a1f5c;
  --card-bottom: #120f2e;
  --r: 16px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(1200px 700px at 80% -10%, #33236a 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #1c1850 0%, transparent 60%),
              linear-gradient(180deg, var(--indigo) 0%, var(--ink) 100%);
  background-attachment: fixed;
  color: var(--text); font: 400 17px/1.65 var(--sans);
  overflow-x: clip;
}
#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nebula {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 30% at 70% 30%, rgba(169, 155, 255, .12), transparent 70%),
              radial-gradient(30% 25% at 20% 80%, rgba(231, 154, 180, .08), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, -2%, 0) rotate(3deg); } }
#header, main, #footer { position: relative; z-index: 1; }
/* Keep the mobile navigation above the animated main sections (their transforms create stacking contexts). */
#header { z-index: 30; }
main { outline: none; min-height: 60vh; }
main.enter > * { animation: fadeUp .55s cubic-bezier(.2, .7, .2, 1) both; }
main.enter > *:nth-child(2) { animation-delay: .06s; }
main.enter > *:nth-child(3) { animation-delay: .12s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
em { font-style: italic; color: var(--gold-2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.section { padding: 56px 0; }
.section-h { text-align: center; margin-bottom: .2em; }
.section-h.small { font-size: 1.7rem; text-align: left; margin-top: 48px; }
.motif { color: var(--gold); flex: none; }
.sprig { display: block; width: 180px; margin: 0 auto 28px; color: var(--gold); opacity: .75; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold); font-weight: 600; }
.lead { font-size: 1.15rem; color: #d6d0f5; max-width: 62ch; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Butoane ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s, color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #b88f45); color: #1a1233; border-color: transparent; box-shadow: 0 8px 28px -10px rgba(241, 211, 141, .7); }
.btn-gold:hover { color: #120c28; box-shadow: 0 12px 36px -8px rgba(241, 211, 141, .85); }
.btn-ghost { background: rgba(255, 255, 255, .04); }
.btn-danger { border-color: rgba(255, 154, 154, .5); color: var(--err); }
.btn-danger:hover { background: rgba(255, 154, 154, .12); border-color: var(--err); color: #fff; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.08rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.4); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer; font-size: 1rem; transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--gold-soft); transform: rotate(90deg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(140%); background: rgba(14, 11, 40, .72); border-bottom: 1px solid rgba(217, 181, 106, .14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 1.55rem var(--serif); color: var(--text); text-decoration: none; letter-spacing: .02em; }
.logo i { color: var(--gold-2); }
.logo-mark { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-3px) rotate(-6deg); } }
.main-nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font: 500 .96rem var(--sans); background: none; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.nav-link:hover { background: rgba(255, 255, 255, .06); color: var(--gold-2); }
.avatar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); font-weight: 700; font-size: .82rem; }
.nav-dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; list-style: none; margin: 0; padding: 8px; background: var(--surface-2); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s; display: block !important; }
.nav-dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.dd-menu a:hover { background: var(--gold-soft); }
.badge-18 { display: inline-block; font: 700 .68rem var(--sans); font-style: normal; color: var(--rose); border: 1px solid rgba(231, 154, 180, .55); border-radius: 6px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; letter-spacing: .04em; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--gold-2); border-radius: 2px; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Intro ---------- */
.intro-hero { padding: 64px 0 24px; overflow-x: clip; }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.intro-text h1 em { font-style: italic; }
.how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(217, 181, 106, .14); }
.how li > span { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font: 600 1.1rem var(--serif); }
.fan { position: relative; height: 440px; }
.fan-card { position: absolute; left: 50%; top: 50%; width: 210px; color: var(--gold); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fan-card.c1 { transform: translate(-115%, -48%) rotate(-14deg); }
.fan-card.c2 { transform: translate(-50%, -56%); z-index: 2; }
.fan-card.c3 { transform: translate(15%, -48%) rotate(14deg); }
.fan:hover .c1 { transform: translate(-130%, -50%) rotate(-20deg); }
.fan:hover .c2 { transform: translate(-50%, -62%) scale(1.03); }
.fan:hover .c3 { transform: translate(30%, -50%) rotate(20deg); }
.arcana-svg { width: 100%; height: auto; display: block; }
.arcana-num { font: 600 18px var(--serif); fill: var(--gold-2); letter-spacing: .1em; }
.arcana-title { font: 600 17px var(--serif); fill: var(--gold-2); letter-spacing: .14em; text-transform: uppercase; }
.topic-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.topic-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(217, 181, 106, .2); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; text-align: center; padding: 64px 0 28px; overflow: hidden; }
.page-hero .lead { margin-inline: auto; }
.hero-motif { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle, rgba(217, 181, 106, .16), transparent 70%); margin-bottom: 16px; animation: halo 5s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 40px 4px rgba(241, 211, 141, .18); } }
.hero-const { position: absolute; right: -40px; top: 10px; width: 360px; opacity: .35; pointer-events: none; }
.constellation .c-lines line { stroke: var(--glow); stroke-width: .7; stroke-dasharray: 3 4; }
.constellation .c-dots circle { fill: var(--gold-2); }
.adult-note { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(231, 154, 180, .4); background: rgba(231, 154, 180, .08); color: #f6d6e1; font-size: .95rem; }
.adult-note .motif { color: var(--rose); }

/* ---------- Home ---------- */
.home-hero { padding: 56px 0 8px; }
.home-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.day-card-wrap { text-align: center; }
.day-card { width: 220px; aspect-ratio: 200/320; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1000px; color: var(--gold); border-radius: 14px; }
.day-card-inner, .sc-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.day-card.flipped .day-card-inner { transform: rotateY(180deg); }
.day-card:hover:not(.flipped) .day-card-inner { transform: rotateY(12deg) translateY(-4px); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55)); }
.face.front { transform: rotateY(180deg); }
.day-card-meaning { margin-top: 16px; color: var(--muted); min-height: 3em; }
.day-card-meaning strong { color: var(--gold-2); font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Carduri categorii ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.cat-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid rgba(217, 181, 106, .16); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .35s; }
.cat-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 24px 50px -24px rgba(241, 211, 141, .45); color: var(--text); }
.cat-card-art { position: relative; height: 130px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(169, 155, 255, .2), transparent 65%), linear-gradient(180deg, var(--violet), transparent); }
.cat-card-art .motif { position: relative; z-index: 1; transition: transform .6s; }
.cat-card:hover .cat-card-art .motif { transform: scale(1.1) rotate(-6deg); }
.cat-const { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; }
.cat-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cat-card-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.cat-meta { color: var(--gold-2); font-weight: 600; font-size: .9rem; }
.cat-meta span { display: inline-block; transition: transform .3s; }
.cat-card:hover .cat-meta span { transform: translateX(5px); }

/* ---------- Carduri articole ---------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.art-grid.two { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.art-card { position: relative; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid rgba(217, 181, 106, .14); transition: transform .3s, border-color .3s, background .3s; display: flex; flex-direction: column; }
.art-card:hover { transform: translateY(-4px); border-color: var(--gold); background: var(--surface-2); }
.art-card:focus-within { border-color: var(--gold); }
.art-card-top { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.art-cat { display: inline-flex; gap: 6px; align-items: center; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.art-card h3 { font-size: 1.35rem; }
.art-card h3 a { color: var(--text); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.art-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.art-cta { color: var(--gold-2); font-weight: 600; font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Galerie arcane ---------- */
.arcana-grid { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.arcana-row { list-style: none; padding: 6px 4px 18px; margin: 0 0 18px; display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--gold) transparent; }
.arcana-row li { scroll-snap-align: start; }
.arcana-tile { display: grid; gap: 6px; text-decoration: none; color: var(--text); text-align: center; }
.tile-card { display: block; color: var(--gold); transition: transform .4s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .5)); }
.arcana-tile:hover .tile-card, .arcana-tile:focus-visible .tile-card { transform: translateY(-8px) rotate(-2deg); filter: drop-shadow(0 20px 30px rgba(241, 211, 141, .25)); }
.tile-name { font: 600 1.1rem var(--serif); color: var(--gold-2); }
.tile-short { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.arcana-row .tile-short { display: none; }

/* ---------- Pagina unei arcane ---------- */
.arcana-page { padding: 40px 0 20px; }
.arcana-layout { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; margin-bottom: 20px; }
.arcana-big { position: sticky; top: 96px; color: var(--gold); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)); animation: float 7s ease-in-out infinite; }
.keys { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.keys li { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--gold-soft); color: var(--gold-2); font-size: .88rem; font-weight: 600; }
.meanings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.meaning { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid rgba(217, 181, 106, .14); }
.meaning h2 { font-size: 1.3rem; color: var(--gold-2); margin-bottom: .3em; }
.meaning p { margin: 0; color: #dcd6f6; }
.arcana-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.suit-jump { position: sticky; top: 80px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 0; }
.suit-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 11, 40, .85); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; transition: .2s; }
.suit-jump a:hover { border-color: var(--gold); color: var(--gold-2); }
.suit-jump a span { font-size: .75rem; color: var(--muted); font-weight: 500; }
[id^="suita-"], #majore { scroll-margin-top: 140px; }
.section-h .motif { vertical-align: -4px; }
.suits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.suit { text-align: center; }
.suit h3 { margin: 10px 0 0; }
.suit-el { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.suit p:last-child { color: var(--muted); margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.pillar { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid rgba(217, 181, 106, .16); text-align: center; }
.pillar h3 { margin: 12px 0 6px; }
.pillar p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Articol: arcana asociată ---------- */
.card-aside { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; margin: 26px 0; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(61, 42, 114, .55), rgba(22, 19, 58, .6)); }
.card-aside-art { color: var(--gold); }
.card-aside h2 { font-size: 1.4rem; margin: 2px 0 4px; }
.card-aside p { margin: 0 0 6px; color: #dcd6f6; }
.card-aside .eyebrow { font-size: .7rem; }
.art-theme { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- Tiraje ---------- */
.spread { text-align: center; }
.spread-cards { display: grid; gap: 18px; justify-content: center; margin: 24px auto 8px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 170px)); }
.spread-cards.n5 { --cols: 5; }
.spread-slot { display: grid; gap: 10px; justify-items: center; }
.spread-card { width: 100%; aspect-ratio: 200/320; perspective: 1000px; color: var(--gold); }
.spread-card .sc-inner { transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
.spread-card.flipped .sc-inner { transform: rotateY(180deg); }
.face.front.reversed svg, .face.front.reversed .photo-card img { transform: rotate(180deg); }
.spread.shuffling .spread-card { animation: shuffle .7s ease-in-out; }
.spread.shuffling .spread-slot:nth-child(2n) .spread-card { animation-direction: reverse; }
@keyframes shuffle { 25% { transform: translateX(-10px) rotate(-4deg); } 50% { transform: translateY(-8px); } 75% { transform: translateX(10px) rotate(4deg); } }
.spread-pos { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.spread-pos b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font-size: .75rem; margin-right: 4px; }
.spread-actions { margin: 18px 0; }
.spread-reading { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 10px; text-align: left; }
.reading-item { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(217, 181, 106, .16); animation: fadeUp .5s both; }
.r-pos { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.reading-item strong { font-family: var(--serif); font-size: 1.25rem; }
.reading-item strong a { color: var(--gold-2); text-decoration: none; }
.reading-item span:last-child { color: #dcd6f6; }
.rev-tag { font: 600 .72rem var(--sans); color: var(--rose); border: 1px solid rgba(231, 154, 180, .5); border-radius: 6px; padding: 1px 6px; vertical-align: middle; }

/* ---------- Articol ---------- */
.article-head { padding-top: 48px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: .95rem; }
.article-art { position: relative; width: 170px; margin: 18px auto 30px; color: var(--gold); animation: float 7s ease-in-out infinite; }
.art-const { position: absolute; left: -150px; top: 30px; width: 470px; opacity: .45; z-index: -1; }
.article-lead { font: 500 1.45rem/1.5 var(--serif); color: #f0eaff; border-left: 2px solid var(--gold); padding-left: 18px; }
.article-body { position: relative; font-size: 1.08rem; }
.article-body.fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, var(--ink) 95%); pointer-events: none; }

/* ---------- Formulare ---------- */
.card-surface { background: var(--surface); border: 1px solid rgba(217, 181, 106, .18); border-radius: var(--r); padding: 26px; }
.form fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.form legend { font: 600 1.35rem var(--serif); color: var(--gold-2); margin-bottom: 14px; }
.field { margin-bottom: 18px; position: relative; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(180, 172, 214, .35);
  background: rgba(12, 10, 36, .6); color: var(--text); font: 400 1rem var(--sans); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 181, 106, .18); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255, 154, 154, .14); }
.field.is-valid input:not([type=checkbox]), .field.is-valid select { border-color: rgba(143, 224, 181, .6); }
.help { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }
.error { font-size: .88rem; color: var(--err); margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.error:not(:empty)::before { content: "⚠ "; }
.banner-error:not(:empty) { padding: 12px 14px; border-radius: 12px; background: rgba(255, 154, 154, .1); border: 1px solid rgba(255, 154, 154, .4); }
.field.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field.check label { font-weight: 500; margin: 0; }
.field.check .error, .field.check .help { grid-column: 2; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }
.field.check input[type=checkbox] { width: 22px; height: 22px; margin: 2px 0 0; cursor: pointer; }
.field.check.has-error input { outline: 2px solid var(--err); outline-offset: 2px; }
.field.check.is-valid label { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(180, 172, 214, .35); font-weight: 500; font-size: .92rem; transition: .2s; }
.chip input:checked + span { background: var(--gold-soft); border-color: var(--gold); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.disclosure { margin-bottom: 26px; }
.disclosure h2 { font-size: 1.8rem; }
.disc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.disc-col { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid rgba(217, 181, 106, .14); }
.disc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.disc-list li { display: grid; gap: 2px; }
.disc-list span { color: var(--muted); font-size: .93rem; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pill-req { background: rgba(217, 181, 106, .2); color: var(--gold-2); border: 1px solid var(--gold); }
.pill-opt { background: rgba(169, 155, 255, .14); color: #d2cbff; border: 1px solid rgba(169, 155, 255, .5); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(169, 155, 255, .08); border: 1px dashed rgba(169, 155, 255, .4); font-size: .95rem; margin-top: 18px; }
.note .motif { margin-top: 3px; }


.summary { margin: 0; display: grid; gap: 0; }
.summary > div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(180, 172, 214, .15); }
.summary dt { color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; }
/* ---------- Conținut legal și profil ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 30px; }
.legal p, .legal li { color: #dcd6f6; }
.table-wrap { overflow-x: auto; padding: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 12px; border-bottom: 1px solid rgba(180, 172, 214, .15); vertical-align: top; }
.data-table thead th { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; padding: 30px 0 24px; border-top: 1px solid rgba(217, 181, 106, .14); background: linear-gradient(180deg, transparent, rgba(6, 5, 20, .6)); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.footer-h { font-size: 1.15rem; color: var(--gold-2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--gold-2); text-decoration: underline; }
.site-footer .muted { font-size: .92rem; }
.fine { margin-top: 26px; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- Toast ---------- */
#toasts { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: var(--shadow); text-align: center; opacity: 0; transform: translateY(12px); transition: .35s; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(143, 224, 181, .55); }
.toast.warn { border-color: rgba(255, 154, 154, .55); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro-grid, .home-grid { grid-template-columns: 1fr; }
  .intro-art { order: -1; }
  .fan { height: 320px; }
  .fan-card { width: 150px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
/* Meniul are multe elemente: trece în varianta cu buton sub 1100 px. */
@media (max-width: 1100px) {
  .menu-toggle { display: flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 72px; background: rgba(14, 11, 40, .97); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .4s ease; }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 2px; }
  .nav-link { width: 100%; padding: 14px; }
  .dd-menu { position: static; min-width: 0; box-shadow: none; background: rgba(255, 255, 255, .03); max-height: 0; overflow: hidden; padding: 0 8px; opacity: 1; visibility: visible; transform: none; transition: max-height .35s, padding .35s; }
  .nav-dd.open .dd-menu { max-height: 600px; padding: 8px; }
  .main-nav .btn { margin-top: 8px; }
  .nav-link { text-align: left; justify-content: flex-start; }
}
@media (max-width: 820px) {
  .disc-cols { grid-template-columns: 1fr; }
  .arcana-layout { grid-template-columns: 1fr; gap: 24px; }
  .arcana-big { position: static; width: 200px; margin: 0 auto; }
  .meanings, .pillars { grid-template-columns: 1fr; }
  .summary > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .cat-grid, .art-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-const { width: 240px; }
  .arcana-grid { grid-template-columns: repeat(2, 1fr); }
  .spread-cards { gap: 10px; }
  .spread-cards.n5 { --cols: 3; }
  .spread-pos { font-size: .76rem; }
  .suit-jump { top: 72px; gap: 6px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; width: 100%; padding-inline: 16px; }
  .suit-jump::-webkit-scrollbar { display: none; }
  .suit-jump a { flex: none; }
  .suit-jump a { padding: 6px 11px; font-size: .84rem; }
  .card-aside { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; }
  .article-art { width: 130px; }
  .data-table thead { display: none; }
  .data-table tr { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid rgba(180, 172, 214, .15); }
  .data-table th, .data-table td { display: block; padding: 0 8px; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Prioritate mobil ---------- */
@media (max-width: 640px) {
  body { background-attachment: scroll; font-size: 16px; line-height: 1.6; }
  .wrap, .wrap.narrow { width: calc(100% - 28px); }
  .section { padding: 36px 0; }
  .section-h { text-align: left; }
  .lead { font-size: 1.04rem; }

  /* Pe ecran mic, mesajul și butonul principal vin înaintea ilustrației. */
  .intro-hero { padding: 24px 0 8px; }
  .intro-grid { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
  .intro-text { order: 0; }
  .intro-art { order: 1; width: 100%; }
  .fan { height: 190px; }
  .fan-card { width: 112px; }
  .intro-text h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .how { margin-top: 20px; gap: 10px; }
  .how li { padding: 12px; gap: 10px; }

  .home-hero { padding: 28px 0 0; }
  .home-grid { gap: 24px; }
  .day-card { width: min(190px, 58vw); }
  .page-hero { padding: 38px 0 20px; }
  .hero-motif { width: 72px; height: 72px; margin-bottom: 10px; }
  .hero-const { right: -90px; opacity: .2; }

  .cta-row { gap: 10px; }
  .cta-row > .btn { flex: 1 1 100%; width: 100%; }
  .btn { min-height: 48px; }
  .btn-small { min-height: 44px; }
  .cat-grid, .art-grid, .art-grid.two { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cat-card-body, .art-card { padding: 16px; }
  .art-card-top { flex-wrap: wrap; gap: 6px 12px; }
  .topic-strip { justify-content: flex-start; gap: 8px; }
  .topic-pill { padding: 8px 12px; }

  .menu-toggle { min-width: 48px; min-height: 48px; }
  /* Expand inside the header so the menu pushes content down instead of covering it. */
  .header-inner { height: auto; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
  .main-nav { position: relative; inset: auto; flex: 0 0 100%; width: 100%; max-height: 0; }
  .main-nav.open { max-height: 85dvh; padding-bottom: env(safe-area-inset-bottom); }
  .main-nav > ul { padding: 10px 14px 18px; }
  .nav-link { min-height: 48px; }
  .dd-menu a { min-height: 44px; }

  .form input:not([type="checkbox"]), .form select, .form textarea,
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; max-width: 100%; min-height: 48px; font-size: 16px; }
  .field.check input[type="checkbox"], .field.check input[type="radio"] { width: 24px; min-width: 24px; height: 24px; min-height: 24px; }
  .form-actions { display: grid; }
  .form-actions .btn { width: 100%; }
  .disc-cols, .pillars, .meanings { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .site-footer { margin-top: 36px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .table-wrap { margin-inline: -4px; }
}

@media (max-width: 380px) {
  .wrap, .wrap.narrow { width: calc(100% - 24px); }
  .header-inner { height: auto; min-height: 64px; }
  .logo { gap: 6px; font-size: 1.35rem; }
  .logo .motif { width: 26px; height: 26px; }
  .main-nav.open { max-height: calc(100dvh - 64px); }
  .arcana-grid { gap: 12px 10px; }
  .spread-cards { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
  .spread-cards.n5 { --cols: 2; }
}

/* ---------- Fața cărții: pictură, integrată discret ---------- */
.photo-card { position: relative; display: block; width: 100%; aspect-ratio: 200 / 320; border-radius: 14px; overflow: hidden; container-type: inline-size;
  background: var(--card-bottom); border: 1px solid rgba(217, 181, 106, .55); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: saturate(.72) contrast(.95) brightness(.88) sepia(.08); transition: filter .5s ease, transform .8s ease; }
.photo-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(44, 29, 85, .28) 0%, rgba(44, 29, 85, .08) 35%, rgba(18, 15, 46, .15) 62%, rgba(12, 10, 36, .92) 92%); }
.photo-card::after { content: ""; position: absolute; inset: 5px; z-index: 2; pointer-events: none; border: 1px solid rgba(241, 211, 141, .32); border-radius: 10px; }
.photo-title { position: absolute; left: 6%; right: 6%; bottom: 6%; z-index: 3; text-align: center; font: 600 8.2cqw/1.15 var(--serif);
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .85); }
.arcana-tile:hover .photo-card img, .arcana-tile:focus-visible .photo-card img, .luna-card:hover .photo-card img { filter: saturate(.92) contrast(1) brightness(.98) sepia(0); transform: scale(1.03); }
.card-aside-art .photo-title { display: none; }
.luna-revealed .photo-card, .luna-home-art .photo-card { width: 100%; }
.arcana-tile .photo-title { display: none; }
.luna-revealed { width: 200px; }
input[type=date] { color-scheme: dark; max-width: 260px; }

/* ---------- Povestea tarotului ---------- */
.tarot-story .eyebrow.center { display: flex; justify-content: center; }
.story-line { list-style: none; margin: 10px auto 0; padding: 0; max-width: 860px; position: relative; display: grid; gap: 34px; }
.story-line::before { content: ""; position: absolute; left: 59px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold), rgba(217, 181, 106, .1)); }
.story-step { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; }
.story-step:nth-child(even) .story-card { transform: rotate(3deg); }
.story-step:nth-child(odd) .story-card { transform: rotate(-3deg); }
.story-card { width: 120px; position: relative; z-index: 1; transition: transform .5s ease; }
.story-step:hover .story-card { transform: rotate(0) translateY(-4px); }
.story-card .photo-title { display: none; }
.story-when { margin: 0 0 4px; color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.story-text h3 { margin-bottom: .3em; }
.story-text p:last-child { color: #dcd6f6; margin: 0; }
.story-cta { max-width: 860px; margin: 44px auto 0; text-align: center; }
.cta-row.center { justify-content: center; }
@media (max-width: 560px) {
  .story-line::before { left: 39px; }
  .story-step { grid-template-columns: 80px 1fr; gap: 16px; align-items: start; }
  .story-card { width: 80px; }
}
.nav-link { white-space: nowrap; }

/* Povestea, sub titlu: compactă pe ecrane late (2 rânduri × 3 etape) */
.tarot-story { padding-top: 10px; }
@media (min-width: 900px) {
  .story-line { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 30px; }
  .story-line::before { display: none; }
  .story-step { grid-template-columns: 84px 1fr; gap: 18px; align-items: start; }
  .story-card { width: 84px; }
  .story-text h3 { font-size: 1.2rem; }
  .story-text p:last-child { font-size: .92rem; line-height: 1.55; }
  .story-cta { margin-top: 32px; }
}
.email-hint { font-size: .88rem; color: var(--gold-2); margin: 6px 0 0; }
.email-hint:empty { display: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-2); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Administrare ---------- */
.admin h1 { margin-bottom: 20px; }
.admin-login { max-width: 520px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.admin-stat { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(217, 181, 106, .2); }
.admin-stat strong { display: block; font: 600 2rem var(--serif); color: var(--gold-2); }
.admin-stat span { color: var(--muted); font-size: .9rem; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.admin-tools input[type=search] { flex: 1 1 240px; min-height: 38px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(180, 172, 214, .35); background: rgba(12, 10, 36, .6); color: var(--text); font: inherit; }
.admin-filter { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; }
.admin-table td, .admin-table th { white-space: nowrap; font-size: .88rem; }
.admin code { color: var(--gold-2); }

/* ---------- Pagini legale ---------- */
.legal section { scroll-margin-top: 90px; }
.legal h3 { font-size: 1.15rem; color: var(--gold-2); margin: 20px 0 6px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .table-wrap { margin: 12px 0; }
.legal .data-table td { color: #dcd6f6; }
.legal-summary { margin-bottom: 26px; }
.legal-summary-h, .legal-toc-h { font: 600 1.2rem var(--serif); color: var(--gold-2); margin: 0 0 8px; }
.legal-summary .fine { text-align: left; margin-top: 12px; }
.legal-toc { margin: 0 0 10px; padding: 18px 22px; border-radius: var(--r); border: 1px dashed var(--line); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { break-inside: avoid; margin-bottom: 4px; }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--gold-2); text-decoration: underline; }
mark.todo { background: rgba(255, 154, 154, .14); color: #ffc9c9; border: 1px dashed rgba(255, 154, 154, .5); border-radius: 4px; padding: 0 4px; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

/* ---------- Ghiduri lungi ---------- */
.guide .article-body { font-size: 1.06rem; line-height: 1.75; }
.guide .article-body h2 { font-size: 1.75rem; margin: 40px 0 12px; scroll-margin-top: 90px; }
.guide .article-body h3 { font-size: 1.25rem; color: var(--gold-2); margin: 24px 0 6px; }
.guide .article-body ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }
.guide .article-body blockquote { margin: 24px 0; padding: 14px 22px; border-left: 3px solid var(--gold); font: italic 500 1.3rem/1.5 var(--serif); color: #f0eaff; background: rgba(217, 181, 106, .06); border-radius: 0 12px 12px 0; }
.card-link { color: var(--gold-2); text-decoration: none; border-bottom: 1px dotted rgba(241, 211, 141, .6); }
.card-link:hover { color: #fff; border-bottom-style: solid; }
.article-toc { margin: 22px 0; }
.guide-tag { font: 700 .68rem var(--sans); font-style: normal; color: var(--ink); background: var(--gold); border-radius: 6px; padding: 1px 6px; letter-spacing: .04em; }
.article-filters { justify-content: center; margin-bottom: 22px; }
.chip-btn { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(180, 172, 214, .35); background: none; color: var(--text); font: 500 .9rem var(--sans); cursor: pointer; transition: .2s; }
.chip-btn:hover { border-color: var(--gold); }
.chip-btn.active { background: var(--gold-soft); border-color: var(--gold); color: #fff; }
.art-wrap { display: contents; }
.art-wrap[hidden] { display: none; }
