/* Iuby */
:root {
    --bg: #fff9f6;
    --bg-2: #f8e9e3;
    --surface: #ffffff;
    --ink: #1c0a10;
    --muted: #624b55;
    --line: #e6d0c7;
    --accent: #e8123c;
    --accent-2: #ff4d6d;
    --accent-ink: #ffffff;
    --soft: #ffe1e7;
    --gold: #e07a1f;
    --bold: #3d0613;
    --ok: #0f7a4d;
    --err: #b3140f;
    --deep: #a80a2e;
    --hot: #f01e46;
    --warm: #ff8a4c;
    --glow: rgba(232, 18, 60, .1);
    --shadow: 0 1px 2px rgba(70, 10, 25, .07), 0 10px 28px rgba(70, 10, 25, .1);
    --shadow-lg: 0 2px 6px rgba(70, 10, 25, .1), 0 28px 64px rgba(70, 10, 25, .2);
    color-scheme: light;
    --r: 18px;
    --r-sm: 12px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --top: 64px;
}
:root[data-theme="dark"] {
    --bg: #0c0608;
    --bg-2: #170c10;
    --surface: #1c1015;
    --ink: #fff5f7;
    --muted: #d0bbc3;
    --line: #402832;
    --accent: #ff3358;
    --accent-2: #ff7a93;
    --accent-ink: #1a0408;
    --soft: #40101d;
    --gold: #ffa64d;
    --bold: #7a0a24;
    --ok: #4fd6a0;
    --err: #ff8d80;
    --deep: #c40d36;
    --hot: #ff3358;
    --warm: #ff9a5c;
    --glow: rgba(255, 51, 88, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .4);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 28px 64px rgba(0, 0, 0, .6);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0c0608;
        --bg-2: #170c10;
        --surface: #1c1015;
        --ink: #fff5f7;
        --muted: #d0bbc3;
        --line: #402832;
        --accent: #ff3358;
        --accent-2: #ff7a93;
        --accent-ink: #1a0408;
        --soft: #40101d;
        --gold: #ffa64d;
        --bold: #7a0a24;
        --ok: #4fd6a0;
        --err: #ff8d80;
        --deep: #c40d36;
        --hot: #ff3358;
        --warm: #ff9a5c;
        --glow: rgba(255, 51, 88, .14);
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .4);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 28px 64px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden], .is-hidden { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 460px; }
.narrow--wide { max-width: 720px; }
.page { padding-block: 32px 72px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.link { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }
.err, .field em { color: var(--err); font-style: normal; font-size: .88rem; display: block; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 650; line-height: 1.2; background: var(--accent); color: var(--accent-ink); transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn--sm { padding: 7px 14px; font-size: .9rem; }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn--soft { background: var(--soft); color: var(--accent); }
.btn--soft:hover { box-shadow: none; background: color-mix(in srgb, var(--soft) 80%, var(--accent)); }
.btn--light { background: #fff; color: #e8123c; }
.btn--danger { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.btn--danger:hover { background: var(--err); color: #fff; box-shadow: none; }
.btn--bold { background: linear-gradient(135deg, #a80a2e, #f01e46); color: #fff; }
.btn--round { width: 46px; height: 46px; padding: 0; flex: none; }
.btn--spark.on { background: var(--soft); color: var(--accent); }
.btn--spark.on .i { fill: currentColor; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.linkbtn:hover { color: var(--accent); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(60, 20, 35, .06); }
.top__in { height: var(--top); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); line-height: 1; }
.logo__svg { height: 42px; width: auto; display: block; overflow: visible; }
.logo__ro { stroke: currentColor; }
.logo__thread { stroke: var(--accent); stroke-dasharray: 140; transition: stroke-dashoffset .9s ease; }
.logo:hover .logo__thread { animation: thread 1s ease; }
.logo--sm .logo__svg { height: 30px; }
.logo--sm { margin-right: 10px; vertical-align: middle; }
@keyframes thread { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; position: relative; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.on { color: var(--accent); background: var(--soft); }
.top__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; font-style: normal; animation: pop .3s; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; display: block; }
.menu summary::-webkit-details-marker { display: none; }
.menu__list { position: absolute; right: 0; top: calc(100% + 10px); width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 8px; animation: drop .18s; z-index: 50; }
.menu__who { margin: 0; padding: 8px 12px 10px; font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }
.menu__list a, .menu__list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none; }
.menu__list a:hover, .menu__list button:hover { background: var(--bg-2); color: var(--accent); }

/* ---------- avatars ---------- */
.av { --s: 44px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 62% 62%), hsl(calc(var(--h) + 40) 66% 46%)); color: #fff; font-family: var(--serif); font-weight: 600; font-size: calc(var(--s) * .42); line-height: 1; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av--xs { --s: 26px; } .av--sm { --s: 38px; } .av--md { --s: 52px; } .av--lg { --s: 76px; } .av--xl { --s: 132px; }
.av__on { position: absolute; right: 4%; bottom: 4%; width: max(10px, 20%); height: max(10px, 20%); border-radius: 50%; background: #2fbf71; border: 2px solid var(--surface); }

/* ---------- forms ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.auth { padding-block: clamp(24px, 6vh, 72px); }
.auth__alt { text-align: center; margin: 20px 0 0; color: var(--muted); }
.form { display: grid; gap: 18px; margin-top: 20px; }
.field { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span:first-child, .field > legend { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.field small { color: var(--muted); font-weight: 400; margin-left: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], textarea { width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea { resize: vertical; min-height: 46px; line-height: 1.55; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field__pw { position: relative; display: block; }
.field__pw input { padding-right: 70px; }
.field__eye { position: absolute; right: 8px; top: 50%; translate: 0 -50%; border: 0; background: none; color: var(--accent); font-size: .85rem; font-weight: 650; padding: 6px 8px; }
.meter { display: block; height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--err); border-radius: 4px; transition: width .3s, background .3s; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.counter { display: block; text-align: right; color: var(--muted); margin: 4px 0 0; }
.counter.low { color: var(--err); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: block; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; transition: all .18s; }
.pills label:hover span { border-color: var(--accent); }
.pills input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.pills--sm span { padding: 7px 14px; font-size: .9rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: translate .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { translate: 18px 0; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch--row { align-items: flex-start; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); }
.switch--row span b { display: block; }
.switch--row span small { color: var(--muted); font-weight: 400; }
.plink { display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: border-color .2s, transform .2s; }
.plink:hover { border-color: var(--accent); transform: translateY(-2px); }
.plink > span:first-child { display: grid; gap: 2px; }
.plink b { font-family: var(--serif); font-size: 1.2rem; }
.plink small { color: var(--muted); }
.plink__go { color: var(--accent); font-weight: 700; white-space: nowrap; }
.sumlink { cursor: pointer; font-weight: 650; }
details[open] > .sumlink { margin-bottom: 12px; }
.danger { box-shadow: none; }
.danger summary { cursor: pointer; color: var(--err); font-weight: 650; }
.danger[open] summary { margin-bottom: 12px; }
.avedit { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.avedit p { margin: 10px 0 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 104px); background: radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), radial-gradient(700px 500px at 0% 100%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); background: linear-gradient(120deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero__note { margin: 22px 0 0; color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.hero__art { position: relative; min-height: 440px; }
.float { position: absolute; width: min(300px, 78%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow-lg); animation: bob 7s ease-in-out infinite; }
.float p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; margin: 12px 0 0; }
.float--a { top: 0; left: 4%; rotate: -4deg; }
.float--b { top: 150px; right: 0; rotate: 3deg; animation-delay: -2.4s; }
.float--c { bottom: 0; left: 14%; rotate: -1.5deg; animation-delay: -4.6s; background: linear-gradient(140deg, #3d0613, #c40d36); color: #fff; border-color: transparent; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; z-index: -1; }
.orb--1 { width: 240px; height: 240px; background: var(--accent-2); top: 10%; right: 10%; }
.orb--2 { width: 200px; height: 200px; background: var(--gold); bottom: 5%; left: 0; }

.band { padding: clamp(48px, 7vw, 88px) 0; }
.band--soft { background: var(--bg-2); }
.band h2.center { margin-bottom: 36px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat__ico, .empty__ico, .gate__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); color: var(--accent); font-size: 1.3rem; margin-bottom: 16px; }
.feat p { color: var(--muted); margin: 0; }
.steps__list { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps__list li { padding: 8px 4px; }
.steps__list b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 12px; }
.steps__list p { color: var(--muted); margin: 0; }
.cta { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #a80a2e, #f01e46 60%, #ff8a4c); box-shadow: var(--shadow-lg); }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 22px; }

/* ---------- headings / tabs / filters ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head p { margin: 0; }
.sub { margin: 40px 0 16px; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.count { font-family: var(--sans); font-size: .8rem; font-weight: 700; background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 2px 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 14px; margin-bottom: 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; white-space: nowrap; color: var(--muted); transition: all .18s; }
.tabs a:hover { color: var(--ink); border-color: var(--muted); }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabs a.tabs__bold { color: #e8123c; border-color: color-mix(in srgb, #e8123c 40%, transparent); }
.tabs a.tabs__bold.on { background: linear-gradient(135deg, #a80a2e, #f01e46); border-color: transparent; color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 24px; position: sticky; top: calc(var(--top) + 8px); z-index: 20; box-shadow: var(--shadow); }
.mini { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.mini input { padding: 7px 10px; border-radius: 10px; }
.mini input[type=number] { width: 64px; text-align: center; }
.mini--grow { flex: 1 1 150px; }
.results { transition: opacity .2s; min-height: 120px; }
.results.is-loading { opacity: .45; pointer-events: none; }
.more { display: grid; place-items: center; padding: 28px 0 0; }

/* ---------- people ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard__media { display: grid; place-items: center; aspect-ratio: 1; background: linear-gradient(135deg, hsl(var(--h) 62% 66%), hsl(calc(var(--h) + 40) 66% 44%)); position: relative; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s; }
.pcard:hover .pcard__media img { scale: 1.05; }
.pcard__letter { font-family: var(--serif); font-size: 5rem; color: rgba(255, 255, 255, .92); }
.chip { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(20, 10, 15, .55); color: #fff; backdrop-filter: blur(6px); }
.chip--on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ee08a; margin-right: 6px; }
.pcard__body { padding: 14px 60px 16px 16px; min-height: 88px; }
.pcard__body h3 { margin: 0 0 2px; font-size: 1.15rem; }
.pcard__body h3 span { font-weight: 400; color: var(--muted); }
.pcard__body h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard__city { margin: 0; color: var(--muted); font-size: .88rem; }
.pcard__line { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spark { position: absolute; right: 12px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--accent); display: grid; place-items: center; font-size: 1.1rem; transition: all .2s; }
.spark:hover { border-color: var(--accent); scale: 1.08; }
.spark.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.spark.on .i { fill: currentColor; }
.spark.pulse, .like.pulse .i, .btn--spark.pulse .i { animation: pop .4s; }
.heartbit { position: fixed; z-index: 90; pointer-events: none; color: var(--accent-2); font-size: 16px; animation: fly .8s ease-out forwards; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.person { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 22px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .2s, box-shadow .2s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- profile ---------- */
.phead { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.phead__main { flex: 1 1 280px; }
.phead h1 { margin-bottom: 4px; }
.phead h1 span { font-weight: 400; color: var(--muted); }
.phead__line { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 10px 0 16px; }
.block { margin-top: 36px; }
.block > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.psafe { display: flex; gap: 24px; justify-content: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- writings ---------- */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.wcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 16px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.wcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.wcard__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-family: var(--sans); }
.tag--bold { background: linear-gradient(135deg, #a80a2e, #f01e46); color: #fff; }
.wcard h3 { font-size: 1.35rem; margin-bottom: 8px; }
.wcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.wcard__text { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; flex: 1; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.wcard--poezie .wcard__text { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); }
.wcard__foot { display: flex; align-items: center; gap: 10px; font-size: .86rem; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; position: relative; z-index: 2; }
a.who:hover { color: var(--accent); }
.wcard__acts { margin-left: auto; display: inline-flex; gap: 4px; position: relative; z-index: 2; }
.like { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-weight: 650; font-size: .88rem; transition: background .2s, color .2s; }
.like:hover { background: var(--soft); color: var(--accent); }
.like.on { color: var(--accent); }
.like.on .i { fill: currentColor; }
.like--lg { font-size: 1.05rem; padding: 10px 18px; border: 1.5px solid var(--line); }
.back { display: inline-block; color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.back:hover { color: var(--accent); }
.read__head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 14px 0 18px; }
.read__by { display: flex; gap: 12px; align-items: center; }
.read__by div { display: grid; line-height: 1.35; font-size: .92rem; }
.read__body { font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.25rem); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; margin: 36px 0; }
.read--poezie .read__body { font-style: italic; line-height: 1.9; padding-left: clamp(0px, 4vw, 40px); border-left: 2px solid var(--soft); }
/* Poezia intr-o pagina de scrisoare, cu inimioare care urca incet. */
.poem { position: relative; isolation: isolate; overflow: hidden; margin: 36px 0; padding: clamp(28px, 5vw, 56px) clamp(22px, 6vw, 64px); border-radius: 22px; border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 70%); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px color-mix(in srgb, var(--accent) 25%, transparent), 0 18px 40px rgba(234, 76, 127, .12); }
.poem::before, .poem::after { content: "❦"; display: block; text-align: center; color: var(--accent); font-size: 1.4rem; }
.poem::before { margin-bottom: 14px; }
.poem::after { margin-top: 14px; }
.poem .read__body { margin: 0; padding: 0; border: 0; font-style: italic; text-align: center; }
.poem__hearts { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.poem__hearts span { position: absolute; left: var(--x); bottom: -30px; font-size: var(--s); color: var(--accent); opacity: 0; animation: poem-rise 9s linear infinite; animation-delay: var(--d); }
@keyframes poem-rise { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 15% { opacity: .55; } 100% { transform: translateY(-460px) rotate(25deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .poem__hearts { display: none; } }
/* Fundaluri predefinite pentru poezii (culorile vin din baza de date, ca variabile). */
.poem { background: var(--motif-bg, none), linear-gradient(160deg, color-mix(in srgb, var(--pa, #fff6f8) 62%, transparent), color-mix(in srgb, var(--pb, #fde2ea) 62%, transparent)), var(--img, none) center / cover no-repeat; border-color: color-mix(in srgb, var(--pacc, var(--accent)) 35%, transparent); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px color-mix(in srgb, var(--pacc, var(--accent)) 25%, transparent), 0 18px 40px rgba(0, 0, 0, .08); color: var(--ptxt, var(--ink)); }
.poem::before, .poem::after, .poem__hearts span { color: var(--pacc, var(--accent)); }
.poem--soare { --motif-bg: radial-gradient(circle at 50% 100%, rgba(255, 236, 170, .75), transparent 60%); }
.poem--stele { --motif-bg: radial-gradient(circle, rgba(255, 255, 255, .8) 1px, transparent 1.6px) 0 0 / 38px 38px; }
.bgpick { border: 0; padding: 0; margin: 18px 0 8px; }
.bgpick legend { font-weight: 600; margin-bottom: 8px; }
.bgpick__item { display: inline-flex; align-items: center; gap: 8px; margin: 0 10px 10px 0; padding: 6px 10px 6px 6px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .92rem; }
.bgpick__item:has(input:checked) { border-color: var(--accent); }
.bgpick__item input { position: absolute; opacity: 0; pointer-events: none; }
.bgpick__sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.bgpick__sw--none { background: var(--surface); background-image: linear-gradient(45deg, transparent 45%, var(--muted) 45%, var(--muted) 55%, transparent 55%); }
.bgprev { padding: 22px; margin: 10px 0 16px; border-radius: 16px; text-align: center; font-family: var(--serif); }
.bgpick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bgpick__card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.bgpick__card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.bgpick__card input { position: absolute; opacity: 0; pointer-events: none; }
.bgpick__thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.bgpick__thumb--none { background: var(--surface); background-image: linear-gradient(45deg, transparent 45%, var(--muted) 45%, var(--muted) 55%, transparent 55%); }
.bgpick__name { font-size: .85rem; text-align: center; }
.poem-preview { margin: 8px 0 18px; }
.poem-preview .read__body { font-family: var(--serif); font-style: italic; text-align: center; font-size: 1.15rem; line-height: 1.8; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; }
/* Imagine proprie a poeziei: foarte discreta, sub un voal alb, ca titlul si versurile sa ramana clare. */
.poem--cover { background: linear-gradient(rgba(255, 252, 250, .8), rgba(255, 252, 250, .8)), var(--img) center / cover no-repeat; color: #2d1a22; }
.read--poveste .read__body::first-letter { font-size: 3.4em; float: left; line-height: .85; padding: .08em .1em 0 0; color: var(--accent); font-weight: 600; }
.read__acts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 20px 0; border-block: 1px solid var(--line); }
.read__acts form { margin-left: auto; }
.comments { margin-top: 36px; }
.comments h2 { display: flex; gap: 10px; align-items: center; }
.cform { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 24px; width: 100%; }
.cform textarea { flex: 1 1 0; min-width: 0; width: auto; }
.comment__edit { margin-top: 4px; }
.comment__edit { margin: 0; }
.comment__edit summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; padding: 4px 0; color: var(--muted); font-size: .9rem; }
.comment__edit summary::-webkit-details-marker { display: none; }
.comment__edit summary:hover { color: var(--accent); }
.comment__acts { align-items: center; }
.comment__react { display: flex; gap: 8px; margin-top: 6px; }
.react-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .88rem; cursor: pointer; }
.react-btn:hover { color: var(--accent); border-color: var(--accent); }
.react-btn.on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.react-btn[disabled] { opacity: .55; cursor: default; }
.react-btn .thumb { flex-shrink: 0; }
.comment__react { align-items: center; flex-wrap: wrap; }
.comment__reply { margin-left: 8px; }
.comment__reply summary { color: var(--muted); }
.comment__reply[open] { flex-basis: 100%; margin-left: 0; }
.react-score { min-width: 2.5ch; text-align: center; font-weight: 600; color: var(--ink, inherit); font-variant-numeric: tabular-nums; }
.react-score.pos { color: var(--accent); }
.react-score.neg { color: var(--muted); }
.comment__hidden { padding: 4px 0; }
.comment__hidden summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.comment__hidden summary:hover { color: var(--accent); }
.comment__hidden[open] > summary { margin-bottom: 6px; }
.comment-sort { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.comment--reply { margin-left: 44px; padding-top: 10px; border-top: 0; }
.comment--reply + .comment--reply { padding-top: 10px; }
.comment--reply .av { width: 30px; height: 30px; }
.comment-sort__item { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.comment-sort__item:hover { color: var(--accent); border-color: var(--accent); }
.comment-sort__item.on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }
.comment__edit .cform { margin: 8px 0 0; }
.comment__acts { flex-wrap: wrap; }
.comment__edit[open] { display: block; flex-basis: 100%; }
.comment__acts:has(.comment__edit[open]) { opacity: 1; }
.cform > .av, .cform > img, .cform > button { flex-shrink: 0; }
.mention-pop { display: flex; flex-direction: column; gap: 4px; margin: -12px 0 18px 46px; padding: 6px; max-width: 320px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.mention-pop[hidden] { display: none; }
.mention-pop__item { display: flex; gap: 8px; align-items: baseline; text-align: left; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; color: inherit; }
.mention-pop__item.on, .mention-pop__item:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mention-pop__item span { color: var(--muted); font-size: .9rem; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment > div { flex: 1; min-width: 0; }
.comment__by { margin: 0 0 4px; display: flex; gap: 10px; align-items: baseline; font-size: .92rem; }
.comment__acts { display: flex; gap: 16px; margin-top: 6px; opacity: .0; transition: opacity .2s; }
.comment:hover .comment__acts, .comment:focus-within .comment__acts { opacity: 1; }
@media (hover: none) { .comment__acts { opacity: 1; } }
.editor__title { font-family: var(--serif); font-size: 1.7rem !important; font-weight: 600; border: 0 !important; border-bottom: 1.5px solid var(--line) !important; border-radius: 0 !important; background: none !important; padding: 8px 0 !important; box-shadow: none !important; }
.editor__body { font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; border: 0 !important; background: none !important; padding: 8px 0 !important; box-shadow: none !important; min-height: 280px; resize: none; }
.editor.is-poezie .editor__body { font-style: italic; }
.gate { text-align: center; max-width: 520px; margin: 32px auto; padding: 44px 28px; border-radius: 28px; color: #fff; background: radial-gradient(500px 300px at 80% 0%, #f01e46, transparent 70%), linear-gradient(150deg, #1f050c, #7a0a24); box-shadow: var(--shadow-lg); }
.gate__ico { background: rgba(255, 255, 255, .14); color: #fff; }
.gate p { color: rgba(255, 255, 255, .82); }
.gate .btn--bold { background: #fff; color: #a80a2e; }
.gate .link { color: #fff; }
.gate .small { margin: 16px 0 0; }

/* ---------- messages ---------- */
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 16px; }
.strip a { display: grid; justify-items: center; gap: 6px; font-weight: 600; font-size: .9rem; flex: none; }
.strip .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.threads { padding: 6px; }
.thread { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; transition: background .15s; }
.thread:hover { background: var(--bg-2); }
.thread__main { flex: 1; min-width: 0; display: grid; }
.thread__main span { color: var(--muted); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread--new .thread__main span { color: var(--ink); font-weight: 650; }
.thread__meta { display: grid; justify-items: end; gap: 6px; font-size: .8rem; color: var(--muted); }
body.is-chat .foot { display: none; }
.chat { width: min(760px, 100%); margin-inline: auto; height: calc(100dvh - var(--top)); display: flex; flex-direction: column; background: var(--surface); border-inline: 1px solid var(--line); }
.chat__head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat__head .back { margin: 0; font-size: 1.3rem; padding: 4px 8px; }
.chat__head .who { flex: 1; }
.chat__head .who span { display: grid; line-height: 1.25; }
.chat__head small { color: var(--muted); font-weight: 400; }
.chat__head small.on { color: #2fa567; }
.chat__list { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.chat__empty { margin: auto; max-width: 320px; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.chat__day { align-self: center; font-size: .75rem; color: var(--muted); background: var(--bg-2); padding: 3px 12px; border-radius: 999px; margin: 10px 0 6px; }
.msg { max-width: min(78%, 520px); align-self: flex-start; background: var(--bg-2); border-radius: 20px 20px 20px 6px; padding: 10px 14px 6px; animation: rise .25s ease-out; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: .7rem; color: var(--muted); text-align: right; margin-top: 2px; }
.msg--me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 20px 20px 6px 20px; }
.msg--me time { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.msg--me.seen time::after { content: " · văzut"; }
.chat__form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.chat__form textarea { flex: 1; border-radius: 22px; max-height: 140px; resize: none; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: 24px; }
.empty--sm { padding: 28px 20px; }
.empty .btn { margin-top: 8px; }
.doc h2 { margin-top: 1.8em; font-size: 1.3rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }
.modcard p { margin-bottom: .6em; }
.quote { padding: 12px 16px; background: var(--bg); border-left: 3px solid var(--line); border-radius: 8px; margin-bottom: 14px !important; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; margin-top: auto; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a:hover { color: var(--accent); }
.tabbar { display: none; }

.toasts { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 95; display: grid; gap: 10px; justify-items: center; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .95rem; animation: rise .3s ease-out; transition: opacity .4s, translate .4s; }
.toast--err { background: var(--err); color: #fff; }
.toast.out { opacity: 0; translate: 0 12px; }

dialog { border: 0; padding: 0; background: none; color: inherit; max-width: none; }
dialog::backdrop { background: rgba(25, 10, 16, .55); backdrop-filter: blur(4px); }
.sheet form, .matchbox { width: min(92vw, 440px); background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg); animation: rise .25s ease-out; }
.sheet textarea { margin: 6px 0 18px; }
.matchbox { text-align: center; background: linear-gradient(150deg, #a80a2e, #f01e46 65%, #ff8a4c); color: #fff; padding: 40px 28px; }
.matchbox h2 { font-size: 2.1rem; }
.matchbox p { color: rgba(255, 255, 255, .88); }
.matchbox .big { font-size: 3.4rem; line-height: 1; animation: beat 1s infinite; display: inline-block; margin-bottom: 8px; }
.matchbox .row { justify-content: center; margin-top: 20px; }
.matchbox .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

.oops .logo__svg { height: 52px; }
.oops { min-height: 100dvh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 24px; }
.oops__code { font-family: var(--serif); font-size: clamp(5rem, 20vw, 9rem); line-height: 1; margin: 16px 0 0; color: var(--accent); opacity: .9; }
.oops .btn { margin-top: 14px; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@keyframes pop { 0% { scale: .6; } 60% { scale: 1.25; } 100% { scale: 1; } }
@keyframes beat { 0%, 100% { scale: 1; } 20% { scale: 1.18; } 40% { scale: 1; } 60% { scale: 1.12; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
@keyframes drop { from { opacity: 0; translate: 0 -6px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes fly { to { translate: var(--x) var(--y); opacity: 0; scale: .4; rotate: var(--r); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; translate: 0 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .hero__in { grid-template-columns: 1fr; }
    .hero__art { min-height: 400px; max-width: 460px; width: 100%; margin-inline: auto; }
    .trio, .steps__list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --top: 56px; }
    body[data-auth] .nav, body[data-auth] .top__write { display: none; }
    body:not([data-auth]) .nav a:last-child { display: none; }
    body[data-auth] { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 45; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: .68rem; font-weight: 650; color: var(--muted); }
    .tabbar a .i { font-size: 1.25rem; }
    .tabbar a.on { color: var(--accent); }
    .tabbar a.on .i { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
    .tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); }
    .tabbar__main { align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink) !important; place-content: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); translate: 0 -10px; }
    .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
    body.is-chat { padding-bottom: 0; }
    body.is-chat .tabbar { display: none; }
    .chat { border: 0; }
    .page { padding-block: 20px 40px; }
    .panel { padding: 20px; }
    .grid2 { grid-template-columns: 1fr; }
    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pcard__letter { font-size: 3.6rem; }
    .pcard__body { padding: 12px 12px 14px; min-height: 0; }
    .spark { bottom: auto; top: 10px; right: 10px; width: 40px; height: 40px; }
    .wgrid { grid-template-columns: 1fr; }
    .filters { position: static; }
    .phead { padding: 20px; gap: 18px; }
    .av--xl { --s: 96px; }
    .foot__in { justify-content: center; text-align: center; }
    .float p { font-size: 1.05rem; }
}

/* ---------- confirmare e-mail ---------- */
.notice { background: linear-gradient(135deg, #a80a2e, #f01e46); color: #fff; font-size: .93rem; }
.notice__in { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-block: 10px; }
.notice p { margin: 0; flex: 1 1 280px; }
.form__aside { margin: -6px 0 0; text-align: right; font-size: .92rem; }

/* ---------- pre-lansare ---------- */
.gauge { display: grid; gap: 18px; margin: 28px 0; }
.gauge__row p { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.gauge__row span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .92rem; }
.gauge__bar { height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.gauge__bar i { display: block; height: 100%; min-width: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.wait__card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 44px); box-shadow: var(--shadow); }
.wait__card .lead { max-width: none; }
.trio--tight { gap: 14px; }
.trio--tight .feat { text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 22px; }
.band--gauge { background: var(--bg-2); }
.band--gauge .wrap { max-width: 720px; }
.band--gauge .lead { margin-inline: auto; text-align: center; }

/* ---------- echipa si tema saptamanii ---------- */
.tag--team { background: var(--ink); color: var(--bg); }
.tag--founder { background: linear-gradient(120deg, #f7c96b, #e8123c); color: #fff; font-weight: 700; letter-spacing: .02em; }
.founder-badge { margin: 4px 0 0; }
.theme { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 18px 22px; margin-bottom: 20px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--gold) 14%, var(--surface))); border: 1px solid var(--line); }
.theme p { margin: 0; flex: 1 1 260px; }
.theme small { display: block; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); font-size: .72rem; margin-bottom: 2px; }
.theme b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.hint { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg-2); color: var(--muted); font-size: .93rem; }

/* ---------- galerie ---------- */
.gallery, .gedit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery a, .gtile { position: relative; display: block; aspect-ratio: 1; margin: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.gallery img, .gtile img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s, filter .3s; }
.gallery a { cursor: zoom-in; }
.gallery a:hover img { scale: 1.06; }
.gedit { margin-top: 14px; }
.gedit:empty { display: none; }
.gtile { animation: rise .3s ease-out; }
.gtile.is-busy img { filter: grayscale(1) opacity(.5); }
.gtile figcaption { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 6px; padding: 28px 8px 8px; background: linear-gradient(transparent, rgba(20, 8, 14, .78)); }
.gtile button { border: 0; border-radius: 999px; padding: 5px 11px; font-size: .78rem; font-weight: 650; background: rgba(255, 255, 255, .92); color: #2b1720; transition: background .2s, color .2s; }
.gtile button:hover { background: #fff; color: #e8123c; }
.gtile [data-photo-delete] button:hover { background: #b42318; color: #fff; }
[data-gallery] .head { margin-bottom: 8px; align-items: center; }
[data-gallery] .head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: rgba(15, 6, 10, .94); }
.lightbox[open] { display: grid; place-items: center; animation: fadein .2s; }
.lightbox img { max-width: min(96vw, 1280px); max-height: 88dvh; border-radius: 10px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); user-select: none; }
.lightbox button { position: absolute; border: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox [data-lb-close] { top: 16px; right: 16px; }
.lightbox [data-lb-prev] { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox [data-lb-next] { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox p { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .88rem; margin: 0; }
@keyframes fadein { from { opacity: 0; } }
@media (max-width: 760px) {
    .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .gedit { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .lightbox [data-lb-prev], .lightbox [data-lb-next] { top: auto; bottom: 48px; translate: none; }
}

/* ---------- contrast si atmosfera ---------- */
body { background:
    radial-gradient(1100px 600px at 100% -10%, var(--glow), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, color-mix(in srgb, var(--warm) 9%, transparent), transparent 60%),
    var(--bg);
    background-attachment: fixed; }
h1, h2, h3 { font-weight: 700; color: var(--ink); }
.btn { background: linear-gradient(135deg, var(--hot), var(--accent) 55%, var(--deep)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); box-shadow: none; }
.btn--soft { background: var(--soft); color: var(--accent); box-shadow: none; }
.btn--light { background: #fff; color: #c40d36; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.btn--danger { background: transparent; color: var(--err); box-shadow: none; }
.btn--spark.on { background: var(--soft); color: var(--accent); box-shadow: none; }
.gate .btn--bold { background: #fff; color: #a80a2e; }
.panel, .pcard, .wcard, .feat, .person, .phead, .filters, .wait__card, .stat { border-color: var(--line); }
.wcard, .pcard, .feat { box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent); }
.nav a { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.nav a.on { background: var(--accent); color: #fff; }
.tag { background: var(--soft); color: var(--accent); }
.link { color: var(--accent); }
.hero h1 em { background: linear-gradient(100deg, var(--accent), var(--warm)); -webkit-background-clip: text; background-clip: text; }
.eyebrow { color: var(--accent); }
.msg--me { background: linear-gradient(135deg, var(--hot), var(--deep)); color: #fff; }
.msg--me time { color: rgba(255, 255, 255, .8); }
.spark.on, .pills input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge { background: var(--accent); color: #fff; }
.switch input:checked + i { background: var(--accent); }
.tabbar__main { background: linear-gradient(135deg, var(--hot), var(--deep)); color: #fff !important; }
::selection { background: var(--accent); color: #fff; }

/* ---------- comutator luminos / intunecat ---------- */
.themebtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .2s, color .2s, rotate .4s; }
.themebtn:hover { border-color: var(--accent); color: var(--accent); rotate: 20deg; }
.themebtn .i { width: 20px; height: 20px; }
.themebtn .i-sun { display: none; }
:root[data-theme="dark"] .themebtn .i-sun { display: block; }
:root[data-theme="dark"] .themebtn .i-moon { display: none; }
.theming, .theming *, .theming *::before, .theming *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important; }
/* ---------- administrare ---------- */
.ahead { margin-bottom: 24px; }
.ahead .eyebrow { margin-bottom: 10px; }
.anav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.anav::-webkit-scrollbar { display: none; }
.anav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; font-size: .93rem; white-space: nowrap; color: var(--muted); transition: all .18s; }
.anav a:hover { color: var(--ink); border-color: var(--ink); }
.anav a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.anav .badge { animation: none; }
.admin h1 { display: flex; align-items: center; gap: 12px; }
.admin .panel h2 { font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.admin .panel h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.admin .panel .head { margin-bottom: 8px; align-items: center; }
.admin .panel .head h2 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 24px; }
.kpis .stat b { color: var(--ink); font-variant-numeric: tabular-nums; }
.acols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 170px; }
.bars__col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; gap: 4px; }
.bars__col span { font-size: .72rem; font-weight: 700; color: var(--muted); min-height: 1em; }
.bars__col i { align-self: end; width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--hot), var(--deep)); }
.bars__col i.is-zero { background: var(--line); }
.bars__col small { font-size: .7rem; color: var(--muted); }
.arow { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; border-top: 1px solid var(--line); transition: background .15s; }
.arow:first-of-type { border-top: 0; }
.arow:hover { background: var(--bg-2); }
.arow > span:first-of-type, .arow > span:nth-of-type(2):not(.arow__end) { display: grid; min-width: 0; line-height: 1.35; }
.arow small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow__end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.afilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.afilter input[type=search] { flex: 1 1 240px; width: auto; }
.afilter select, select { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; color: var(--ink); }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.tag--ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.tag--warn { background: color-mix(in srgb, var(--gold) 20%, transparent); color: color-mix(in srgb, var(--gold) 70%, var(--ink)); }
.tag--bad { background: color-mix(in srgb, var(--err) 16%, transparent); color: var(--err); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 20px; }
.pager > :last-child { justify-self: end; }
.pager > :first-child { justify-self: start; }
.gedit--admin { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gtile__who { color: #fff; font-weight: 650; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: center; }
.admin .gtile a { display: block; height: 100%; }
@media (max-width: 900px) {
    .acols { grid-template-columns: 1fr; }
}

/* ---------- detalii de profil ---------- */
.dprog { margin: 20px 0; padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.dprog p { margin: 0 0 8px; color: var(--muted); }
.dprog b { color: var(--ink); font-size: 1.15rem; }
.dform .panel h2 { font-size: 1.2rem; margin-bottom: 12px; }
.dgroup { padding: 0; overflow: hidden; }
.dgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; transition: background .15s; }
.dgroup > summary::-webkit-details-marker { display: none; }
.dgroup > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: rotate .2s; }
.dgroup[open] > summary::after { rotate: 45deg; }
.dgroup > summary:hover { background: var(--bg-2); }
.dgroup > summary > span:first-child { display: grid; flex: 1; }
.dgroup > summary b { font-family: var(--serif); font-size: 1.2rem; }
.dgroup > summary small { color: var(--muted); }
.dgroup > .dgrid, .dgroup > p { margin: 0 24px 20px; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field--wide { grid-column: 1 / -1; }
.dgrid select { width: 100%; }
.dsave { position: sticky; bottom: 12px; z-index: 10; display: flex; justify-content: flex-end; gap: 12px; padding: 12px; margin-top: 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.pills input:disabled + span { opacity: .4; cursor: not-allowed; }
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 12px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.dcard--wide { grid-column: 1 / -1; }
.dcard h3 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.dcard--bold { background: linear-gradient(150deg, #1f050c, #7a0a24); border-color: transparent; color: #fff; }
.dcard--bold h3, .dcard--bold .danswer p { color: #fff; }
.dcard--bold blockquote { border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .92); }
.dfacts { margin: 0; display: grid; gap: 8px; }
.dfacts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.dfacts div:last-child { border-bottom: 0; padding-bottom: 0; }
.dfacts dt { color: var(--muted); font-size: .92rem; }
.dfacts dd { margin: 0; font-weight: 650; text-align: right; }
.dtags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.dtags span { padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--accent); font-weight: 650; font-size: .9rem; }
.danswer + .danswer { margin-top: 16px; }
.danswer p { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.danswer blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--soft); font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.hint .i { vertical-align: -.2em; margin-right: 4px; }
@media (max-width: 760px) {
    .dgrid { grid-template-columns: 1fr; }
    .dgroup > summary { padding: 16px 18px; }
    .dgroup > .dgrid, .dgroup > p { margin: 0 18px 18px; }
    .dsave { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- portofel si monede ---------- */
.purse-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; color: var(--ink); transition: border-color .2s, color .2s; font-variant-numeric: tabular-nums; }
.purse-chip:hover { border-color: var(--accent); color: var(--accent); }
.purse-chip .i { color: var(--accent); }
.toast--coin { background: linear-gradient(135deg, var(--hot), var(--deep)); color: #fff; }
.purse { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; padding: clamp(22px, 4vw, 34px); margin-bottom: 20px; border-radius: 24px; color: #fff; background: radial-gradient(500px 260px at 90% 0%, var(--warm), transparent 70%), linear-gradient(135deg, var(--deep), var(--hot)); box-shadow: var(--shadow-lg); }
.purse .eyebrow { color: rgba(255, 255, 255, .8); margin-bottom: 6px; }
.purse__sum { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); }
.purse__sum b { font-size: clamp(3rem, 9vw, 4.4rem); line-height: 1; }
.purse__sum span { font-size: 1.3rem; }
.purse__sum .i { width: 2.2rem; height: 2.2rem; align-self: center; }
.purse__note { flex: 1 1 280px; margin: 0; color: rgba(255, 255, 255, .92); }
.wallet .panel h2 { font-size: 1.25rem; margin-bottom: 14px; }
.earn { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.earn li { display: flex; gap: 12px; align-items: center; }
.earn li > span:last-child { display: grid; line-height: 1.35; }
.earn small { color: var(--muted); }
.earn__mark { flex: none; min-width: 46px; text-align: center; padding: 5px 8px; border-radius: 999px; background: var(--soft); color: var(--accent); font-weight: 700; font-size: .9rem; }
.earn li.is-done { color: var(--muted); }
.earn li.is-done .earn__mark { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.earn--cost .earn__mark { background: var(--bg-2); color: var(--ink); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 12px; }
.pack { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); text-align: center; transition: border-color .2s, transform .2s; }
.pack:hover { border-color: var(--accent); transform: translateY(-3px); }
.pack p { margin: 0; }
.pack__n { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; display: flex; align-items: center; gap: 8px; }
.pack__n .i { color: var(--accent); width: 1.6rem; height: 1.6rem; }
.pack__name { color: var(--muted); }
.pack__price { font-weight: 700; font-size: 1.1rem; margin: 8px 0 10px !important; }
.orow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.orow:first-of-type { border-top: 0; }
.orow > span:first-child { display: grid; flex: 1 1 200px; line-height: 1.35; min-width: 0; }
.orow small { color: var(--muted); }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.amount--plus { color: var(--ok); }
.payinfo { margin-top: 14px; }
.payinfo p { margin: 6px 0 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 760px) {
    body[data-auth] .purse-chip { padding: 6px 10px; }
}
/* ---------- administrare: partea tehnica ---------- */
.admin.wrap { width: min(1320px, 100% - 32px); }
.health { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.health__item { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--line); background: var(--surface); transition: transform .15s, border-color .15s; }
.health__item:hover { transform: translateY(-2px); }
.health__item b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; line-height: 1.2; }
.health__item span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.health__item--ok { border-left-color: var(--ok); }
.health__item--warn { border-left-color: var(--gold); }
.health__item--bad { border-left-color: var(--err); }
.health__item--bad b { color: var(--err); }
.health__item--info { border-left-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.tgrid .panel { margin: 0; padding: 20px; }
.tgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tech .panel h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.tech .panel h2 + .kv, .tech .panel .kv + h2 { margin-top: 0; }
.tech .panel .kv + h2 { margin-top: 18px; }
.kv--tech { grid-template-columns: minmax(120px, max-content) 1fr; gap: 0; margin: 0; font-size: .9rem; }
.kv--tech dt, .kv--tech dd { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv--tech dt { padding-right: 16px; }
.kv--tech dd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; font-weight: 500; text-align: right; }
.kv--tech dt:nth-last-of-type(1), .kv--tech dd:last-of-type { border-bottom: 0; }
.table--tech { font-size: .84rem; }
.table--tech td { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px 14px; }
.table--tech th { padding: 9px 14px; }
.table--bare th, .table--bare td { padding-left: 0; padding-right: 10px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.wrapcell { white-space: normal !important; overflow-wrap: anywhere; min-width: 260px; }
.tablewrap--flat { border: 0; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); }
.hbars { display: grid; gap: 10px; }
.hbar p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: .88rem; }
.hbar b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }
.hbar small { color: var(--muted); font-weight: 400; }
.hbar > div { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.hbar i { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--hot), var(--deep)); }
.tech .arow { padding: 7px 4px; font-size: .9rem; }
@media (max-width: 1000px) { .tgrid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .tgrid, .tgrid--2 { grid-template-columns: 1fr; } }
/* ---------- invitatii ---------- */
.invlink { display: flex; gap: 10px; margin-bottom: 14px; }
.invlink input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
.invhint { margin-bottom: 18px; }
.wallet .kpis { margin: 0 0 20px; }

/* ---------- siguranta contului ---------- */
.otp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 700; letter-spacing: .45em; text-align: center; padding-left: .45em; max-width: 280px; }
.auth__more { margin-top: 18px; }
.secgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.secstat { position: relative; display: grid; gap: 2px; padding: 16px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.secstat b { font-family: var(--serif); font-size: 1.1rem; }
.secstat small { color: var(--muted); }
.dot { position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.choice { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); transition: border-color .2s; }
.choice.on { border-color: var(--ok); }
.choice b { font-family: var(--serif); font-size: 1.15rem; }
.choice small { color: var(--muted); }
.panel h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.panel details + details, .choices + details { margin-top: 12px; }
.panel details > .form { margin-top: 14px; }
.plink strong { color: var(--accent); }

/* ---------- pagini legale ---------- */
.rights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 8px; }
.right { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; justify-items: start; }
.doc .right h2 { margin: 0; font-size: 1.2rem; }
.right p { margin: 0; color: var(--muted); font-size: .95rem; }
.tablewrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.doctable { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.doctable th, .doctable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doctable th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg-2); }
.doctable tr:last-child td { border-bottom: 0; }

/* ---------- nota despre cookie-uri si invitatia de instalare ---------- */
.cbar, .ibar { position: fixed; left: 50%; translate: -50% 0; bottom: 16px; z-index: 90; width: min(94vw, 620px); display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); animation: rise .35s both; }
.cbar[hidden], .ibar[hidden] { display: none; }
.cbar p, .ibar p { margin: 0; flex: 1; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.cbar p b, .ibar p b { color: var(--ink); }
.ibar p b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.ibar img { border-radius: 12px; flex: none; }
.ibar__x { background: none; border: 0; font-size: 1.5rem; line-height: 1; padding: 4px 8px; color: var(--muted); }
.ibar__x:hover { color: var(--accent); }
.foot .linkbtn { padding: 0; font-size: inherit; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (display-mode: standalone) { [data-install], .ibar { display: none !important; } }
@media (max-width: 760px) {
    .secgrid { grid-template-columns: 1fr 1fr; }
    .choices, .rights { grid-template-columns: 1fr; }
    body[data-auth] .cbar, body[data-auth] .ibar { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .cbar { flex-wrap: wrap; }
    .cbar .btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .cbar, .ibar { animation: none; } }

/* ---------- zona „Fără perdea” si scala de temperament ---------- */
.temper { display: grid; gap: 8px; }
.temper label { cursor: pointer; }
.temper input { position: absolute; opacity: 0; pointer-events: none; }
.temper span { display: block; padding: 11px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); transition: border-color .18s, background .18s; }
.temper span small { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; }
.temper label:hover span { border-color: var(--accent); }
.temper input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.temper input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.zone h1 .i { color: var(--accent); margin-right: 8px; vertical-align: -3px; }
.zrules { text-align: left; margin: 18px auto; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 560px; }
.zrules li { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .94rem; }
.zjoin { text-align: left; max-width: 560px; margin: 18px auto 0; display: grid; gap: 12px; }
.zjoin .btn { justify-self: center; }
.zcompose { margin: 18px 0; }
.zpost { margin: 14px 0; }
.zpost__by { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.zpost__by div { display: grid; line-height: 1.25; }
.zpost__by .muted { font-size: .82rem; }
.zpost__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.04rem; }
.zpost__acts { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; font-size: .9rem; }
.zpost__acts .i { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.zfire { display: inline-flex; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .18s, color .18s; }
.zfire:hover, .zfire.on { border-color: var(--accent); color: var(--accent); }
.zfire.on { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.zthread { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; min-height: 160px; }
.zthread__flag { font-size: .72rem; opacity: .7; }
.zfoot { margin-top: 22px; }

/* cont restrictionat: doar citire */
.notice--mute { background: #2a1218; border-bottom: 2px solid var(--accent); }
.afilter select, .modcard select { max-width: 100%; }

/* iconita de temperament, langa nume */
.tbadge { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; color: var(--muted); line-height: 1; position: relative; z-index: 2; }
.phead h1 .tbadge, .pcard__body h3 .tbadge { color: var(--muted); }
.tbadge--4, .tbadge--5, .phead h1 .tbadge--4, .phead h1 .tbadge--5, .pcard__body h3 .tbadge--4, .pcard__body h3 .tbadge--5 { color: var(--accent); }
.tbadge .i { width: 1.15em; height: 1.15em; vertical-align: 0; }
.tbadge b { font-family: var(--sans, inherit); font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.phead h1 .tbadge { margin-left: 6px; padding: 5px 11px 5px 8px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 1.1rem; }
.temper span .i { margin-right: 8px; color: var(--accent); width: 1.35em; height: 1.35em; vertical-align: -.3em; }

/* ---------- plati: card si SMS ---------- */
.pack .btn + .btn { margin-top: 4px; }
.pack small { color: var(--muted); font-size: .8rem; }
.paybox form { width: min(94vw, 480px); max-height: 92vh; overflow: auto; }
.paybox__mount { min-height: 150px; margin: 14px 0; }
.paybox h2 { margin-top: 0; }
.smspay { margin: 8px 0 14px; padding: 14px 16px; border: 1.5px dashed var(--accent); border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.smspay p { margin: 0 0 4px; }
.smspay__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; user-select: all; }
.wallet h3 { margin: 22px 0 10px; }

/* ---------- administrare: trafic, monitorizare, paza ---------- */
.tr-chart { display: block; width: 100%; height: auto; max-height: 320px; }
.tr-chart .tr-grid { stroke: var(--line); stroke-width: 1; }
.tr-chart .tr-axis { fill: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tr-chart .tr-bar { fill: color-mix(in srgb, var(--ink) 24%, var(--surface)); }
.tr-chart .tr-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tr-chart .tr-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.tr-chart .tr-hit { fill: transparent; }
.tr-chart .tr-hit:hover { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.tr-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 10px; font-size: .86rem; color: var(--muted); }
.tr-legend span { display: inline-flex; align-items: center; gap: 8px; }
.tr-key { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.tr-key--bar { background: color-mix(in srgb, var(--ink) 24%, var(--surface)); }
.tr-key--line { height: 3px; width: 18px; border-radius: 2px; background: var(--accent); }
.kpis .stat b.tr-bad { color: var(--err); }
.tr-kpis .stat b { font-size: 1.6rem; }
.tr-top { margin-top: 20px; }
.tr-top .sub.tr-first, .tr-cols .sub:first-child { margin-top: 0; }
.tech .panel h2.tr-gap, .tr-gap { margin-top: 20px; }
.tr-note p { font-size: .93rem; }

/* optiuni de ales (pastile, temperament): campul acopera toata optiunea, ca atingerea sa-l nimereasca direct si pe iPhone */
.pills label, .temper label { position: relative; display: block; }
.pills input, .temper input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: auto; cursor: pointer; z-index: 1; -webkit-appearance: none; appearance: none; }

/* ---------- grafica: sigla noua si ilustratii (art-) ---------- */
.logo__g1 { stop-color: #f4506f; } .logo__g2 { stop-color: #d42a6c; } .logo__h1 { stop-color: #fb5d58; } .logo__h2 { stop-color: #ec3d66; }
:root[data-theme="dark"] .logo__g1 { stop-color: #ff7590; } :root[data-theme="dark"] .logo__g2 { stop-color: #ea4c7f; }
:root[data-theme="dark"] .logo__h1 { stop-color: #ff7a6e; } :root[data-theme="dark"] .logo__h2 { stop-color: #fb5a78; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .logo__g1 { stop-color: #ff7590; } :root:not([data-theme]) .logo__g2 { stop-color: #ea4c7f; }
    :root:not([data-theme]) .logo__h1 { stop-color: #ff7a6e; } :root:not([data-theme]) .logo__h2 { stop-color: #fb5a78; }
}
.logo__dot { transform-box: fill-box; transform-origin: 50% 80%; transition: scale .35s cubic-bezier(.3, 1.8, .5, 1); }
.logo:hover .logo__dot { scale: 1.18; }
.is-home .top .logo__dot { animation: pop .7s .25s both; }

.art { display: block; width: 100%; height: auto; overflow: visible; }
.art-f-s { fill: var(--surface); } .art-k-s { stroke: var(--surface); }
.art-f-soft { fill: var(--soft); }
.art-f-acc { fill: var(--accent); } .art-k-acc { stroke: var(--accent); }
.art-f-deep { fill: var(--deep); } .art-k-deep { stroke: var(--deep); }
.art-f-gold { fill: var(--gold); } .art-k-gold { stroke: var(--gold); }
.art-f-ink { fill: var(--ink); } .art-k-ink { stroke: var(--ink); }
.art-f-line { fill: var(--line); } .art-k-line { stroke: var(--line); }
.art-k-page { stroke: var(--bg); }
.art-f-angel { fill: #fff; } .art-f-out { fill: #2a0f18; } .art-k-out { stroke: #2a0f18; }

/* prima pagina */
.hero::before { content: none; }
.hero__in { position: relative; }
.art-stage { min-height: 0; aspect-ratio: 520 / 480; width: 100%; max-width: 560px; margin-inline: auto; }
.art-stage .art-hero { position: absolute; inset: 0; height: 100%; }
.art-stage .float { width: auto; padding: 13px 16px 14px; border-radius: 18px; }
.art-stage .float p { font-size: clamp(.84rem, 1.5vw, 1rem); line-height: 1.4; margin-top: 8px; }
.art-note--a { top: auto; bottom: -3%; left: 0; max-width: 31%; rotate: -4deg; }
.art-note--b { top: auto; bottom: 3%; right: 0; left: auto; max-width: 42%; rotate: 2.5deg; animation-delay: -3s; }
.art-hero__thread { stroke-dasharray: 430; animation: art-draw 2.2s .4s ease-out both; }
.art-hero__quill { transform-box: view-box; transform-origin: 180px 392px; animation: art-rock 5s ease-in-out infinite; }
.art-hero__bits > * { transform-box: fill-box; transform-origin: center; animation: art-twinkle 4s ease-in-out infinite; }
.art-hero__bits > :nth-child(2n) { animation-delay: -1.3s; }
.art-hero__bits > :nth-child(3n) { animation-delay: -2.6s; }
@keyframes art-draw { from { stroke-dashoffset: 430; } to { stroke-dashoffset: 0; } }
@keyframes art-rock { 0%, 100% { rotate: 0deg; } 50% { rotate: 3deg; } }
@keyframes art-twinkle { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .7; opacity: .55; } }
@keyframes art-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.art-ico { display: block; width: 136px; max-width: 60%; margin: -10px 0 8px -10px; }
.feat:hover .art-ico .art-spot { animation: art-float 2.4s ease-in-out infinite; }
.art-step { position: relative; display: inline-block; width: 132px; margin-bottom: 8px; }
.steps__list .art-step b { position: absolute; left: -2px; top: -2px; margin: 0; background: var(--bg); }
.art-rule { display: flex; justify-content: center; padding: 0 16px; }
.art-rule .art-divider { width: min(240px, 70%); }
.art-rule--up { margin-bottom: 14px; }
.art-top { display: block; width: min(190px, 56%); margin: -6px auto 10px; }
.art-top--sm { width: min(140px, 46%); }
.empty--sm .art-top { margin-bottom: 4px; }

.art-scaleband { text-align: center; }
.art-scaleband .lead { margin-inline: auto; }
.art-scale { position: relative; display: flex; justify-content: space-between; gap: 6px; max-width: 640px; margin: 8px auto 0; }
.art-scale::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--accent-2) 45%, var(--accent) 70%, var(--deep)); opacity: .55; }
.art-scale__s { position: relative; flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 8px; }
.art-scale__s i { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); color: var(--muted); box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.art-scale__s i .i { width: 30px; height: 30px; }
.art-scale__s b { font-size: .86rem; font-weight: 650; }
.art-scale__s--1 i { border-color: var(--gold); color: var(--gold); }
.art-scale__s--3 i { border-color: var(--accent-2); color: var(--accent); }
.art-scale__s--4 i { border-color: var(--accent); color: var(--accent); }
.art-scale__s--5 i { border-color: var(--deep); background: linear-gradient(135deg, #a80a2e, #f01e46); color: #fff; }
.art-scale__s:hover i { transform: translateY(-4px) scale(1.06); }

.cta { position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; width: 230px; height: 230px; pointer-events: none; opacity: .13; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%23fff'%3E%3Cpath d='M50 84C41 75 18 61 18 45.500C18 34 26.500 27.500 35 27.500C42.500 27.500 47.500 32 50 38.500C52.500 32 57.500 27.500 65 27.500C73.500 27.500 82 34 82 45.500C82 61 59 75 50 84Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.cta::before { right: -40px; bottom: -70px; rotate: 12deg; }
.cta::after { left: -60px; top: -80px; rotate: -18deg; width: 180px; height: 180px; }
.cta > * { position: relative; z-index: 1; }

/* pagini de eroare si de asteptare */
.oops .art-oops { width: min(250px, 64vw); margin: 18px 0 0; }
.oops .art-oops + .oops__code { font-size: clamp(3rem, 13vw, 5rem); margin-top: 0; }
.art-wait { float: right; width: min(190px, 40%); margin: -10px -10px 6px 16px; }

/* autentificare: panou ilustrat si fundal */
.auth { position: relative; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(340px 260px at 8% 12%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%), radial-gradient(320px 260px at 96% 78%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%); }
main:has(> .auth) { position: relative; z-index: 0; }
.art-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 28px; align-items: start; max-width: 940px; }
.art-side { position: sticky; top: calc(var(--top) + 24px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; padding: 30px; border-radius: var(--r); color: #fff; background: radial-gradient(120% 80% at 50% 18%, #1a5690, #0b3463 52%, #031338); box-shadow: var(--shadow-lg); }
.art-side::before { content: ""; position: absolute; inset: 0; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170' fill='none' stroke='%23e9b9a6' stroke-opacity='.3' stroke-width='1.300'%3E%3Cg transform='translate(8 2) scale(.42) rotate(-10 50 56)'%3E%3Cpath d='M50 84C41 75 18 61 18 45.500C18 34 26.500 27.500 35 27.500C42.500 27.500 47.500 32 50 38.500C52.500 32 57.500 27.500 65 27.500C73.500 27.500 82 34 82 45.500C82 61 59 75 50 84Z'/%3E%3C/g%3E%3Cg transform='translate(96 84) scale(.6) rotate(12 50 56)'%3E%3Cpath d='M50 84C41 75 18 61 18 45.500C18 34 26.500 27.500 35 27.500C42.500 27.500 47.500 32 50 38.500C52.500 32 57.500 27.500 65 27.500C73.500 27.500 82 34 82 45.500C82 61 59 75 50 84Z'/%3E%3C/g%3E%3Ccircle cx='70' cy='120' r='1.500' fill='%23ffd9a0' stroke='none'/%3E%3Ccircle cx='140' cy='40' r='1.500' fill='%23ffd9a0' stroke='none'/%3E%3C/svg%3E") 0 0 / 170px 170px; }
.art-side::after { content: ""; position: absolute; inset: 9px; border: 1.5px solid rgba(243, 220, 192, .55); border-radius: calc(var(--r) - 5px); pointer-events: none; }
.art-side > * { position: relative; }
.art-side__mark { width: 170px; margin: 6px auto auto; animation: art-float 6s ease-in-out infinite; }
.art-side__scene { position: relative; aspect-ratio: 640 / 440; margin: 0 -12px auto; border-radius: 16px; overflow: hidden; }
.art-side__scene .art-couple { position: absolute; inset: 0; height: 100%; }
.art-side__brand { display: block; margin-top: 22px; color: #fff; }
.art-side__brand .logo__svg { height: 30px; }
.art-side__q { font-family: var(--serif); font-size: 1.65rem; line-height: 1.2; letter-spacing: -.01em; margin: 26px 0 18px; text-wrap: balance; }
.art-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .97rem; font-weight: 550; }
.art-side__list li { display: flex; gap: 10px; align-items: center; }
.art-side__list svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .2); }

@media (max-width: 900px) {
    .art-auth { display: block; max-width: 460px; }
    .art-side { display: none; }
    .hero::before { -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%); mask-image: linear-gradient(to bottom, #000, transparent 60%); }
    .art-ico { width: 120px; }
    .steps__list li { text-align: center; }
}
@media (max-width: 520px) {
    .art-note--a { display: none; }
    .art-note--b { max-width: 54%; bottom: -3%; }
    .art-stage .float p { font-size: .8rem; margin-top: 6px; }
    .art-stage .float { padding: 10px 12px 11px; border-radius: 14px; }
    .art-scale__s i { width: 46px; height: 46px; }
    .art-scale__s i .i { width: 24px; height: 24px; }
    .art-scale::before { top: 21px; }
    .art-scale__s b { font-size: .72rem; }
    .art-wait { float: none; margin: -6px auto 8px; width: 150px; }
}

/* ---------- Subsol: grupuri de legaturi, identitatea firmei, pictograma SAL (ANPC) ---------- */
.foot nav { gap: 8px 30px; align-items: center; }
.foot__grp { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.foot__legal { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }
.foot__co { max-width: 46em; line-height: 1.5; }
.foot__co a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
/* Pictograma SAL: textul oficial, cel putin 250 x 50 px (cerinta ANPC); nu se micsoreaza. */
.sal { display: inline-flex; align-items: center; gap: 11px; box-sizing: border-box; min-width: 250px; min-height: 50px; flex: none; padding: 8px 16px 8px 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; line-height: 1.15; transition: border-color .15s, box-shadow .15s; }
.sal__ico { flex: none; width: 34px; height: 34px; padding: 6px; box-sizing: border-box; border-radius: 50%; background: var(--soft); color: var(--accent); }
.sal__txt { display: grid; gap: 3px; text-align: left; }
.sal__txt b { font-size: .68rem; font-weight: 800; letter-spacing: .16em; color: var(--accent); }
.sal__txt span { font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.sal:hover, .sal:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.foot a.sal:hover { color: var(--ink); }
@media (max-width: 760px) {
    .foot nav { justify-content: center; }
    .foot__grp { justify-content: center; flex-basis: 100%; }
    .foot__legal { flex-direction: column; text-align: center; }
}

/* Fotografii private: schita blurata in spate, mesajul deasupra */
.gphoto-lock { position: relative; overflow: hidden; }
.gphoto-blur { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(16px) saturate(1.3); transform: scale(1.05); z-index: 0; }
.gphoto-lock > span, .gphoto-lock > form, .gphoto-lock > .tag { position: relative; z-index: 1; }

/* Meniul contului: iconita pentru fiecare linie; numar necitit pe avatar */
.menu__list a, .menu__list button { display: flex; align-items: center; gap: 10px; }
.menu__list a > svg.i, .menu__list button > svg.i { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted, currentColor); }
.menu__list a .badge { margin-left: auto; }
.menu summary { position: relative; }
.notif-dot { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .66rem; border: 2px solid var(--bg); }

/* Banda oblica pe cardul fotografiei private */
.gphoto-lock > .gphoto-ribbon { position: absolute; top: 26px; left: -44px; width: 170px; padding: 5px 0; transform: rotate(-42deg); text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .02em; background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); z-index: 2; pointer-events: none; }

/* Cardul fotografiei private, varianta curata: schita in spate, un singur panou in centru */
.gphoto-lock { position: relative; overflow: hidden; display: block !important; min-height: 180px; border: 0 !important; border-radius: 14px; background: var(--bg-2); }
.gphoto-blur { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(14px) saturate(1.2); transform: scale(1.15); z-index: 0; }
.gphoto-lock > .gphoto-ribbon { top: 14px; left: -40px; width: 150px; font-size: .64rem; padding: 4px 0; }
.gphoto-veil { position: relative; z-index: 1; margin: 48px auto 14px; max-width: 86%; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 12px 10px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); }

/* Cere acces la baza cardului; costul evidentiat */
.gphoto-go { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; display: flex; justify-content: center; z-index: 2; }
.gphoto-cost { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .95rem; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* Butonul Cere acces ramane la baza cardului (regula veche de pe form il muta in flux) */
.gphoto-lock > .gphoto-go { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; display: flex; justify-content: center; z-index: 2; }

/* Costul: doar text alb, bold; panoul din spate se inchide ca textul alb sa se citeasca */
.gphoto-lock > .gphoto-veil { background: rgba(10, 6, 12, .5); color: #fff; }
.gphoto-lock .gphoto-cost, .gphoto-lock > .gphoto-veil .muted { display: inline; padding: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; font-weight: 700; font-size: .95rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* Panoul mai jos, ca sa nu intre sub banda; cardul ceva mai inalt ca sa incapa si butonul de jos */
.gphoto-lock { min-height: 220px; }
.gphoto-lock > .gphoto-veil { margin-top: 84px; }

/* Cardul fotografiei private, patrat ca celelalte fotografii din galerie */
.gallery .gphoto-lock { aspect-ratio: 1; min-height: 0; height: auto; }
.gallery .gphoto-lock > .gphoto-ribbon { top: 10px; left: -34px; width: 120px; font-size: .58rem; padding: 3px 0; }
.gallery .gphoto-lock > .gphoto-veil { margin-top: 40px; max-width: 90%; padding: 8px 8px; gap: 4px; }
.gallery .gphoto-lock > .gphoto-go { bottom: 8px; }

/* Panoul cu costul stă centrat pe verticala cardului, intre banda de sus si butonul de jos */
.gphoto-lock { display: flex; flex-direction: column; justify-content: center; }
.gallery .gphoto-lock > .gphoto-veil, .gphoto-lock > .gphoto-veil { margin: 0 auto; }

/* Regula veche cu display:block !important anula centrarea; cardul e flex pe coloana */
.gphoto-lock { display: flex !important; flex-direction: column; justify-content: center; align-items: stretch; }

/* Mesaje nedeblocate: avatarul nu se vede clar */
.idhide { display: inline-block; filter: blur(7px); }

/* Ciupitura pe cardul din Descoperă, langa scanteie */
.pinch-card { margin: 0; }
.pinch-card__btn { font-size: .78rem; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink, inherit); cursor: pointer; }
.pinch-card__btn:disabled { opacity: .6; cursor: default; }

/* ---------- compatibilitate ---------- */
.compat { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.compat__score { font-family: var(--serif, Georgia, serif); font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1; min-width: 3.2ch; }
.compat b { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compat small { display: block; font-size: .9rem; color: var(--ink); }
.compat--est { border-style: dashed; }
.compat-chip { margin: 4px 0 0; font-size: .78rem; font-weight: 700; color: var(--accent); }

/* Stări: gând scurt pe un fundal ilustrat (assets/stari/*.svg). */
.stat-composer .stat-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-pick__opt { position: relative; cursor: pointer; }
.stat-pick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.stat-pick__opt span { display: block; width: 96px; height: 60px; border-radius: 10px; border: 3px solid transparent; font-size: 0; overflow: hidden; }
.stat-pick__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.stat-pick__opt input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px #fff inset; }
.stat { border-radius: 16px; padding: 18px 18px 12px; margin: 0 0 14px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); background-color: #3a1a2e; background-size: cover; background-position: center; }
.stat__body { font-size: 1.1rem; line-height: 1.45; margin: 0 0 12px; white-space: pre-line; word-break: break-word; }
.stat--big .stat__body { font-size: 1.35rem; }
.stat__body a { color: inherit; text-decoration: none; }
.stat__meta { font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.stat__meta a { color: inherit; font-weight: 700; }
.stat__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; }
.stat__actions a, .stat .linkbtn { color: #fff; }
.stat-comment { border-top: 1px solid var(--line, #eee); padding: 10px 0; }

/* Reacții la stări (ca la Facebook): bară cu figurine și numărătoare pe tipuri. */
.stat-react { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; }
.stat-react__btn { border: 0; background: none; padding: 2px; border-radius: 50%; font-size: 1.45rem; line-height: 1; cursor: pointer; transition: transform .12s ease; }
.stat-react__btn:hover, .stat-react__btn:focus-visible { transform: scale(1.25); outline: none; }
.stat-react__btn.is-on { box-shadow: 0 0 0 2px var(--accent); }
.stat-react__icons span { font-size: 1rem; margin-left: -4px; }
.stat-react__icons span:first-child { margin-left: 0; }

/* Stări: imaginea de fundal ocupă doar zona textului; detaliile stau pe o bandă neutră, cu contrast. */
.stat { background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-shadow: none; padding: 0; overflow: hidden; }
.stat__art { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); padding: 22px 20px 20px; background-color: #3a1a2e; background-size: cover; background-position: center; min-height: 110px; display: flex; align-items: center; }
.stat--big .stat__art { min-height: 200px; padding: 30px 28px; }
.stat__band { padding: 10px 16px 12px; color: var(--ink); }
.stat__band .stat__meta { color: var(--muted); }
.stat__band .stat__meta a { color: var(--ink); }
.stat__band .stat__actions { color: var(--ink); }
.stat__band .stat__actions a, .stat__band .stat__actions .linkbtn { color: var(--accent); }
.stat__art .stat__body { margin: 0; width: 100%; }
.stat-react { margin: 0 0 6px; }
.stat--rose > .stat__art, .stat-pick__opt span.stat--rose { background-image: linear-gradient(rgba(60,0,20,.05), rgba(60,0,20,.45)), url('/assets/stari/rose.svg'); }
.stat--soare > .stat__art, .stat-pick__opt span.stat--soare { background-image: linear-gradient(rgba(60,30,0,.05), rgba(60,30,0,.4)), url('/assets/stari/soare.svg'); }
.stat--mare > .stat__art, .stat-pick__opt span.stat--mare { background-image: linear-gradient(rgba(0,20,50,.05), rgba(0,20,50,.4)), url('/assets/stari/mare.svg'); }
.stat--menta > .stat__art, .stat-pick__opt span.stat--menta { background-image: linear-gradient(rgba(0,40,30,.05), rgba(0,40,30,.4)), url('/assets/stari/menta.svg'); }
.stat--noapte > .stat__art, .stat-pick__opt span.stat--noapte { background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.35)), url('/assets/stari/noapte.svg'); }
.stat--lila > .stat__art, .stat-pick__opt span.stat--lila { background-image: linear-gradient(rgba(40,0,60,.05), rgba(40,0,60,.4)), url('/assets/stari/lila.svg'); }

/* Reacții strânse sub un buton: se deschid cu click (toate) sau cu mouseover pe calculator. */
.stat-react { position: relative; display: inline-flex; align-items: center; margin: 0 0 6px; }
.stat-react__chk { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.stat-react__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--ink); background: transparent; user-select: none; }
.stat-react__toggle:hover { background: rgba(0,0,0,.05); }
.stat-react__chk:focus-visible + .stat-react__toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
.stat-react__cur { font-size: 1.25rem; line-height: 1; }
.stat-react__icons span { font-size: .95rem; margin-left: -3px; }
.stat-react__icons span:first-child { margin-left: 0; }
.stat-react__count { color: var(--muted); }
.stat-react__pop { display: none; position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 5; gap: 2px; padding: 4px 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25); margin: 0; }
.stat-react__chk:checked ~ .stat-react__pop { display: inline-flex; }
@media (hover: hover) and (pointer: fine) {
    .stat-react:hover > .stat-react__pop, .stat-react:focus-within > .stat-react__pop { display: inline-flex; }
}
.stat-react__btn { border: 0; background: none; padding: 2px; border-radius: 50%; font-size: 1.45rem; line-height: 1; cursor: pointer; transition: transform .12s ease; }
.stat-react__btn:hover, .stat-react__btn:focus-visible { transform: scale(1.25); outline: none; }
.stat-react__btn.is-on { box-shadow: 0 0 0 2px var(--accent); }

/* Emoticoane animate: apar cu un pop eșalonat, se mișcă pe fiecare fel la mouseover, iar reacția aleasă respiră încet. */
@keyframes rx-pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rx-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
@keyframes rx-thumb { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-14deg) scale(1.12); } 50% { transform: rotate(8deg) scale(1.05); } 75% { transform: rotate(-4deg); } }
@keyframes rx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@keyframes rx-laugh { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg) scale(1.1); } 40% { transform: rotate(10deg) scale(1.1); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes rx-gasp { 0% { transform: scale(1); } 40% { transform: scale(1.3, .8); } 70% { transform: scale(.9, 1.15); } 100% { transform: scale(1); } }
@keyframes rx-sob { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(2px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
@keyframes rx-rage { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-2px) rotate(-6deg); } 40% { transform: translateX(2px) rotate(6deg); } 60% { transform: translateX(-2px) rotate(-4deg); } 80% { transform: translateX(2px); } }

.stat-react__btn > span { display: inline-block; transform-origin: 50% 80%; }
.stat-react__btn.k-like:hover > span { animation: rx-thumb .7s ease; }
.stat-react__btn.k-love:hover > span { animation: rx-beat .8s ease; }
.stat-react__btn.k-care:hover > span { animation: rx-float 1.4s ease-in-out infinite; }
.stat-react__btn.k-haha:hover > span { animation: rx-laugh .7s ease; }
.stat-react__btn.k-wow:hover > span { animation: rx-gasp .6s ease; }
.stat-react__btn.k-sad:hover > span { animation: rx-sob 1s ease; }
.stat-react__btn.k-angry:hover > span { animation: rx-rage .5s ease; }
.stat-react__cur { display: inline-block; transform-origin: 50% 80%; }
.stat-react__cur.k-like { animation: rx-thumb 3s ease-in-out infinite; }
.stat-react__cur.k-love { animation: rx-beat 2.2s ease-in-out infinite; }
.stat-react__cur.k-care { animation: rx-float 2.6s ease-in-out infinite; }
.stat-react__cur.k-haha { animation: rx-laugh 3.4s ease-in-out infinite; }
.stat-react__cur.k-wow { animation: rx-gasp 2.8s ease-in-out infinite; }
.stat-react__cur.k-sad { animation: rx-sob 3.2s ease-in-out infinite; }
.stat-react__cur.k-angry { animation: rx-rage 3.6s ease-in-out infinite; }
.stat-react__btn { transition: transform .15s ease, box-shadow .15s ease; }
.stat-react__btn:hover { transform: scale(1.22); }
@media (prefers-reduced-motion: reduce) {
    .stat-react *, .stat-react__btn, .stat-react__cur { animation: none !important; transition: none !important; }
}

/* Emoticoane mai mari. */
.stat-react__btn { font-size: 2.2rem; padding: 4px; }
.stat-react__pop { padding: 6px 10px; gap: 4px; }
.stat-react__cur { font-size: 1.9rem; }
.stat-react__toggle { padding: 6px 12px 6px 8px; }
.stat-react__icons span { font-size: 1.2rem; }

/* Figurine Twemoji (imagini SVG, assets/emoji/). */
.emo { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; }
.emo--lg { width: 1.25em; height: 1.25em; }
.stat-react__btn > span { display: inline-flex; }

/* Figurina de sub cursor (sau cea cu tastatura) se mărește clar. */
.stat-react__btn:hover, .stat-react__btn:focus-visible { transform: scale(1.6); z-index: 2; }
.stat-react__pop { padding-top: 10px; padding-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .stat-react__btn:hover, .stat-react__btn:focus-visible { transform: scale(1.3); } }

/* Figurinele au dimensiuni fixe in pixeli: in bara se vad mari, iar in rezumat raman discrete. */
.stat-react__pop .emo { width: 36px; height: 36px; }
.stat-react__cur .emo { width: 34px; height: 34px; }
.stat-react__icons .emo { width: 18px; height: 18px; vertical-align: -4px; }
.stat-react__btn { padding: 4px; }

/* Bara de reacții: fără efect de apariție, ca toate figurinele să fie vizibile imediat. */
.stat-react__pop .stat-react__btn { opacity: 1 !important; animation: none !important; }

/* Bara de reacții: fără spațiu în plus la mouseover. */
.stat-react__pop { padding: 2px 4px; gap: 0; }
.stat-react__btn { padding: 0; margin: 0; line-height: 0; }
.stat-react__pop .emo { width: 36px; height: 36px; vertical-align: top; }
.stat-react__btn:hover, .stat-react__btn:focus-visible { transform: scale(1.35); }

/* Figurinele din bara de reacții: fără limita generală de lățime pentru imagini (care le micșora în bara suspendată). */
.stat-react img.emo { max-width: none; display: inline-block; flex: none; }
.stat-react__pop .emo { width: 38px; height: 38px; }
.stat-react__cur .emo { width: 26px; height: 26px; }
.stat-react__cur { font-size: 1rem; }

/* Fără contur de selecție în bara de reacții. */
.stat-react__btn.is-on, .stat-react__btn:focus, .stat-react__btn:focus-visible, .stat-react__btn:active { box-shadow: none; outline: none; background: none; }
.stat-react__chk:focus-visible + .stat-react__toggle { outline: none; }

/* Autorul nu își poate reacționa la propriul conținut: doar numărătoarea, fără bară și fără efect la atingere. */
.stat-react.is-own .stat-react__toggle { cursor: default; }
.stat-react.is-own .stat-react__toggle:hover { background: none; }

/* Bara de reacții rămâne deschisă cât timp cursorul e pe ea: fără gol între buton și bară, cu o mică întârziere la închidere. */
.stat-react__pop { display: inline-flex !important; bottom: 100%; margin-bottom: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility 0s linear .3s; }
.stat-react__pop::after { content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 16px; }
.stat-react__chk:checked ~ .stat-react__pop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
    .stat-react:hover > .stat-react__pop, .stat-react:focus-within > .stat-react__pop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
}

/* Săgeata „comentarii” duce direct la secțiunea de comentarii, fără să fie ascunsă sub bara de sus. */
#comentarii { scroll-margin-top: 90px; }

/* Numărul de comentarii din listă arată ca un link și duce la comentarii. */
.stat__band .stat__meta a.stat__comments { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Autorul (poza, numele, timpul) stă deasupra, pe fundalul ilustrat. */
.stat__art { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.stat__who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: .9rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.stat__who a { color: #fff; font-weight: 700; }
.stat__who .av { width: 34px; height: 34px; flex: none; }

/* Autorul stă deasupra fundalului ilustrat, pe o fâșie neutră, cu poza și numele lizibile. */
.stat__who { background: var(--surface); color: var(--ink); text-shadow: none; padding: 12px 16px 10px; margin: 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.stat__who a { color: var(--ink); }
.stat__art { min-height: 0; }

/* Stegulețul de raportare, în dreapta sus, pe linia autorului. */
.stat__flag { margin: 0 0 0 auto; }
.stat__flagbtn { border: 0; background: none; padding: 4px; border-radius: 8px; color: var(--muted); cursor: pointer; line-height: 0; }
.stat__flagbtn:hover, .stat__flagbtn:focus-visible { color: var(--accent); background: rgba(0,0,0,.05); outline: none; }
.stat__flagbtn .i { width: 18px; height: 18px; }

/* Steguletul deschide motivele raportării. Cardul nu mai taie conținutul care iese în afară. */
.stat { overflow: visible; }
.stat__who { border-radius: 16px 16px 0 0; }
.stat__band { border-radius: 0 0 16px 16px; }
.stat__flag { position: relative; margin: 0 0 0 auto; display: inline-flex; }
.stat__flagchk { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.stat__flagbtn { display: inline-flex; border: 0; background: none; padding: 4px; border-radius: 8px; color: var(--muted); cursor: pointer; line-height: 0; }
.stat__flagbtn:hover, .stat__flagchk:focus-visible + .stat__flagbtn { color: var(--accent); background: rgba(0,0,0,.05); }
.stat__flagbtn .i { width: 18px; height: 18px; }
.stat__flagpop { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; flex-direction: column; gap: 2px; min-width: 220px; padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.22); margin: 0; text-shadow: none; }
.stat__flagtitle { font-size: .78rem; font-weight: 700; color: var(--muted); padding: 2px 6px 4px; }
.stat__flagopt { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.stat__flagopt:hover, .stat__flagopt:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); outline: none; }
.stat__flagchk:checked ~ .stat__flagpop { display: flex; }
@media (hover: hover) and (pointer: fine) { .stat__flag:hover > .stat__flagpop { display: flex; } }

/* Aspect ca pe Facebook sub fundal: reacțiile întâi, apoi numărătoarea, apoi acțiunile cu o linie de separare. */
.stat__band { display: flex; flex-direction: column; gap: 4px; }
.stat__band > .stat-react { order: 1; }
.stat__band > .stat__meta { order: 2; justify-content: flex-end; font-size: .85rem; }
.stat__band > .stat__meta > span:first-child { display: none; }
.stat__band > .stat__actions { order: 3; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; gap: 18px; font-weight: 700; }

/* Cine vede starea: alegerea din formularele de publicare și editare. */
.stat-vis { border: 1px solid var(--line); border-radius: var(--r-sm, 12px); padding: 10px 14px; display: grid; gap: 6px; margin: 0; }
.stat-vis legend { font-size: .85rem; font-weight: 700; color: var(--muted); padding: 0 4px; }
.stat-vis label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .95rem; }

/* Textul stării e centrat pe fundalul ilustrat. */
.stat__art { justify-content: center; text-align: center; }
.stat__art .stat__body { text-align: center; margin: 0; }

/* Favoritele săptămânii: cele mai apreciate stări, deasupra listei. */
.stat-fav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r, 16px); padding: 16px 20px; margin: 0 0 18px; }
.stat-fav h2 { margin: 0 0 8px; font-size: 1.1rem; }
.stat-fav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stat-fav__list a { color: var(--ink); text-decoration: none; }
.stat-fav__list a:hover { color: var(--accent); }

/* Compunerea stării: se vede doar câmpul de text; restul (fundal, cine vede, publicare) se deschide la click în câmp. */
.stat-composer__more { display: grid; gap: 14px; }
.stat-composer:not(:focus-within):not(:has(textarea:not(:placeholder-shown))) .stat-composer__more { display: none; }

/* Câmpul de text e scurt până se deschide formularul, apoi crește odată cu restul. */
.stat-composer textarea { height: 2.6em; min-height: 0; resize: none; transition: height .2s ease; }
.stat-composer:focus-within textarea, .stat-composer:has(textarea:not(:placeholder-shown)) textarea { height: 6em; resize: vertical; }

/* Compunerea: o singură linie, cu poza și câmpul rotund „La ce te gândești, …?”, ca în modelul trimis. */
.stat-composer__row { display: flex; align-items: center; gap: 10px; }
.stat-composer__row .av { width: 40px; height: 40px; flex: none; }
.stat-composer__row .field { flex: 1; min-width: 0; }
.stat-composer__row textarea { border-radius: 22px; padding: 10px 16px; }
.stat-composer .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Câmpul rotund al stării nu arată bara de derulare; apare doar când formularul e deschis și textul e lung. */
.stat-composer__row textarea { scrollbar-width: none; -ms-overflow-style: none; line-height: 1.4; overflow-y: hidden; }
.stat-composer__row textarea::-webkit-scrollbar { display: none; }
.stat-composer:focus-within .stat-composer__row textarea, .stat-composer:has(textarea:not(:placeholder-shown)) .stat-composer__row textarea { overflow-y: auto; scrollbar-width: thin; }

/* Mai mult aer sus și jos în jurul textului pe fundalul ilustrat, mai ales pe telefon. */
.stat__art { padding: 34px 22px; }
.stat--big .stat__art { padding: 42px 30px; }
@media (max-width: 760px) {
    .stat__art { padding: 36px 20px; min-height: 150px; }
    .stat--big .stat__art { padding: 44px 24px; min-height: 220px; }
}

/* Și mai mult aer în jurul textului pe fundal. */
.stat__art { padding: 48px 26px; min-height: 170px; }
.stat--big .stat__art { padding: 58px 32px; min-height: 240px; }
@media (max-width: 760px) {
    .stat__art { padding: 52px 22px; min-height: 180px; }
    .stat--big .stat__art { padding: 62px 26px; min-height: 260px; }
}

/* Numerele de telefon din mesaje: butoane de apelare. */
.phone-link { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.phone-link::before { content: "📞"; font-size: .9em; }
.phone-link:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* Numărul de telefon: text alb, pe un fond întunecat discret, lizibil și pe bulele roșii. */
.phone-link { color: #fff; background: rgba(0,0,0,.22); }
.phone-link:hover { background: rgba(0,0,0,.34); color: #fff; }

/* Felicitările de sărbători: pași numerotați, alegere clară a destinatarului și file între trimitere și listă. */
.cards-head { margin-bottom: 14px; }
.cards-head h1 { margin-bottom: 4px; }
.cards-left { margin: 4px 0 10px; font-weight: 700; color: var(--accent); }
.cards-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cards-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; }
.cards-tabs a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cards-form { display: grid; gap: 16px; }
.cards-step { margin-bottom: 0; display: grid; gap: 12px; }
.cards-step h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.cards-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 700; }
.cards-two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .cards-two { grid-template-columns: 1fr; } }
.cards-step .field small { font-size: .8rem; }
.card-item { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.card-item:first-of-type { border-top: 0; }
.card-item img { width: 110px; height: auto; border-radius: 10px; }
.card-item__who { margin: 0 0 4px; }
.card-item p { margin: 0; }
@media (max-width: 520px) { .card-item { grid-template-columns: 84px 1fr; } .card-item img { width: 84px; } }

/* Felicitările de sărbători: pași numerotați, alegere clară a destinatarului și file între trimitere și listă. */
.cards-head { margin-bottom: 14px; }
.cards-head h1 { margin-bottom: 4px; }
.cards-left { margin: 4px 0 10px; font-weight: 700; color: var(--accent); }
.cards-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cards-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; }
.cards-tabs a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cards-form { display: grid; gap: 16px; }
.cards-step { margin-bottom: 0; display: grid; gap: 12px; }
.cards-step h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.cards-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 700; }
.cards-two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .cards-two { grid-template-columns: 1fr; } }
.cards-step .field small { font-size: .8rem; }
.card-item { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.card-item:first-of-type { border-top: 0; }
.card-item img { width: 110px; height: auto; border-radius: 10px; }
.card-item__who { margin: 0 0 4px; }
.card-item p { margin: 0; }
@media (max-width: 520px) { .card-item { grid-template-columns: 84px 1fr; } .card-item img { width: 84px; } }

/* Ilustratiile de felicitare: pe calculator, toate pe un rand orizontal (cu derulare daca nu incap). */
.card-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
@media (min-width: 760px) {
    .card-pick { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px; padding-bottom: 6px; scroll-snap-type: x proximity; }
    .card-pick__opt { flex: 0 0 150px; scroll-snap-align: start; }
}

/* Ilustratiile de felicitare mai mici, ca previzualizare. */
.card-pick img { width: 100%; height: auto; }
@media (min-width: 760px) {
    .card-pick__opt { flex: 0 0 104px; }
}

/* Ilustratiile de felicitare: putin mai mari; alegerea se vede pe imagine, nu pe butonul radio ascuns. */
.card-pick__opt { position: relative; cursor: pointer; display: grid; gap: 4px; justify-items: center; }
.card-pick__opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.card-pick__opt img { border-radius: 10px; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s ease, transform .15s ease; }
.card-pick__opt:hover img { transform: translateY(-2px); }
.card-pick__opt input:checked ~ img { outline-color: var(--accent); }
.card-pick__opt input:focus-visible ~ img { outline-color: var(--accent); }
.card-pick__opt span { font-size: .8rem; color: var(--muted); }
.card-pick__opt input:checked ~ span { color: var(--accent); font-weight: 700; }
@media (min-width: 760px) {
    .card-pick__opt { flex: 0 0 124px; }
}

/* Paginile de felicitari folosesc mai mult spatiu pe calculator. */
.cards-page.narrow { max-width: 960px; }

/* Butoanele de felicitari de sarbatori, in pagina „Felicitările mele”. */
.cards-entry { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }

/* Felicitarea animata: coperta se deschide ca o carte si dezvaluie mesajul din interior. */
.xcard-wrap { position: relative; display: grid; justify-items: center; margin: 14px 0 22px; }
.xcard__chk { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.xcard { position: relative; width: min(440px, 92vw); aspect-ratio: 16 / 10; perspective: 1400px; }
.xcard__inside { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(160deg, #fffdf8, #fbeee3); box-shadow: inset 0 0 0 1px #eadbcf, 0 8px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 22px 26px; color: #2b1720; }
.xcard__msg { margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; line-height: 1.5; white-space: pre-line; max-width: 36ch; }
.xcard__from { margin: 0; font-style: italic; color: var(--accent); font-size: .95rem; }
.xcard__cover { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; cursor: pointer; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.6, .05, .2, 1); box-shadow: 0 10px 30px rgba(0,0,0,.22); backface-visibility: hidden; background: #fff; }
.xcard__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xcard__hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 8px; font-size: .85rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.4); }
.xcard__chk:checked ~ .xcard .xcard__cover { transform: rotateY(-175deg); }
.xcard__chk:focus-visible ~ .xcard .xcard__cover { outline: 3px solid var(--accent); outline-offset: 3px; }
.xcard__chk:checked ~ .xcard .xcard__hint { opacity: 0; }
.xcard__hint { transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) { .xcard__cover { transition: none; } }

/* Felicitarea deschisa pe calculator: mai mare si mai larga. */
@media (min-width: 760px) {
    .xcard { width: min(760px, 86vw); }
    .xcard__msg { font-size: 1.5rem; max-width: 40ch; }
    .xcard__from { font-size: 1.05rem; }
    .xcard__hint { font-size: .95rem; padding: 10px; }
}

/* Pagina felicitarii primite: centrata, cu textele pe un rand pe calculator. */
.cards-show { text-align: center; }
.cards-show .xcard-wrap { margin: 18px auto 26px; }
.cards-show p { margin-left: auto; margin-right: auto; }
@media (min-width: 760px) {
    .cards-show.narrow { max-width: 960px; }
    .cards-show h1 { white-space: nowrap; }
    .cards-show > p { white-space: nowrap; }
}
