/* ==========================================================================
   RIFT2 CMS - tema medievala (auriu antic, mov rift, visiniu, piatra)
   ========================================================================== */

:root {
    --bg: #07050b;
    --bg-2: #0d0913;
    --bg-3: #150e1e;
    --panel: rgba(17, 11, 24, .86);
    --panel-2: rgba(30, 19, 41, .9);
    --line: rgba(201, 164, 92, .26);
    --line-strong: rgba(226, 194, 125, .62);

    --gold: #d6b26e;
    --gold-hi: #f4dfa6;
    --gold-lo: #8c6a33;
    --gold-deep: #4a3618;

    --purple: #9150ff;
    --purple-hi: #c39bff;
    --purple-lo: #3b1670;
    --purple-deep: #1a0a30;

    --crimson: #8e1b3a;
    --crimson-hi: #d0466c;
    --crimson-lo: #4a0d1f;

    --text: #ece2cf;
    --text-dim: #b8aa92;
    --text-faint: #807463;

    --ok: #73d796;
    --err: #ff6f84;
    --warn: #ffc76f;

    --font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
    --font-head: 'Cinzel', Georgia, serif;
    --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;

    --header-h: 86px;
    --container: 1240px;
    --ease: cubic-bezier(.2, .8, .2, 1);

    --cursor: url("../img/cursor.svg") 2 2, auto;
    --cursor-hover: url("../img/cursor-hover.svg") 2 2, pointer;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: var(--cursor);
    -webkit-font-smoothing: antialiased;
}
a, button, [role="button"], label, select, summary, .clickable { cursor: var(--cursor-hover); }
input, textarea { cursor: text; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--gold-hi); font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
::selection { background: rgba(145, 80, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--purple-hi); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-faint); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.coin-ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.25em; filter: drop-shadow(0 0 4px rgba(214, 178, 110, .5)); }

@media (pointer: coarse) {
    body, a, button, label, select { cursor: auto; }
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0710; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-lo), #3a2a12); border: 2px solid #0a0710; border-radius: 6px; }
html { scrollbar-color: var(--gold-lo) #0a0710; }

/* ---------------------------------------------------------------- fundal global */
.bg-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-image {
    position: absolute; inset: -5%;
    background: url("../img/bg-rift.jpg") center 30% / cover no-repeat;
    opacity: .95;
    animation: bgDrift 40s ease-in-out infinite alternate;
}
.bg-fog {
    position: absolute; left: 0; right: 0; height: 320px;
    background-repeat: repeat-x; background-size: 1600px 300px;
    opacity: .16; mix-blend-mode: screen;
}
.fog-a { bottom: -40px; background-image: url("../img/fog-1.png"); animation: fogMove 90s linear infinite; }
.fog-b { bottom: 18%; background-image: url("../img/fog-2.png"); opacity: .09; animation: fogMove 140s linear infinite reverse; }
.bg-vignette {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(7, 5, 11, .35) 55%, rgba(7, 5, 11, .92) 100%),
        linear-gradient(180deg, rgba(7, 5, 11, .25), rgba(7, 5, 11, .75) 70%, var(--bg));
}
#embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#cursor-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; }

@keyframes bgDrift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); } }
@keyframes fogMove { from { background-position-x: 0; } to { background-position-x: 1600px; } }

/* ---------------------------------------------------------------- tipografie decorativa */
.title-deco {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: .02em;
    background: linear-gradient(100deg, #a77a35 0%, #f3dc9f 22%, #c99d55 40%, #fff6dc 50%, #c99d55 60%, #f0d595 78%, #a77a35 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .75)) drop-shadow(0 0 22px rgba(214, 178, 110, .22));
    animation: goldShimmer 7s linear infinite;
}
@keyframes goldShimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-head); font-size: .78rem; font-weight: 700;
    letter-spacing: .32em; text-transform: uppercase; color: var(--purple-hi);
    text-shadow: 0 0 12px rgba(145, 80, 255, .6);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--purple-hi)); }
.eyebrow::after { transform: scaleX(-1); }

.ornament { display: block; width: min(320px, 70%); height: 32px; margin: 6px auto 0; overflow: visible; }
.ornament.wide { width: min(560px, 90%); }
.ornament-gem { animation: gemPulse 3s ease-in-out infinite; transform-origin: 160px 16px; }
@keyframes gemPulse { 0%, 100% { opacity: .75; filter: drop-shadow(0 0 2px #a46bff); } 50% { opacity: 1; filter: drop-shadow(0 0 8px #c39bff); } }

.section { position: relative; padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 0; }

/* ---------------------------------------------------------------- butoane */
.btn {
    --btn-edge: linear-gradient(180deg, #f6e3a8, #8c6a33);
    --btn-fill: linear-gradient(180deg, #2a1a33, #120b18);
    --btn-color: var(--gold-hi);
    --cut: 12px;
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 32px;
    font-family: var(--font-head); font-size: .9rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
    color: var(--btn-color);
    background: var(--btn-edge);
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
    transition: transform .3s var(--ease), filter .3s var(--ease), color .3s;
    overflow: hidden;
}
.btn::before {
    content: ""; position: absolute; inset: 2px; z-index: -1;
    background: var(--btn-fill);
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
}
.btn::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1;
    background: linear-gradient(100deg, transparent, rgba(255, 248, 225, .45), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--ease);
    pointer-events: none;
}
.btn:hover { transform: translateY(-2px); color: #fff; filter: drop-shadow(0 0 14px rgba(214, 178, 110, .5)); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; filter: grayscale(.5); }
.btn .ico { width: 1.1em; height: 1.1em; }

.btn-gold { --btn-edge: linear-gradient(180deg, #fff1c4, #6e5022); --btn-fill: linear-gradient(180deg, #f5dc9a 0%, #d6b26e 45%, #a37a37 100%); --btn-color: #1e1306; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { color: #000; filter: drop-shadow(0 0 18px rgba(244, 223, 166, .6)); }
.btn-purple { --btn-edge: linear-gradient(180deg, #e4d0ff, #4b1d8c); --btn-fill: linear-gradient(180deg, #8f4cff 0%, #5b23b8 60%, #3b1670 100%); --btn-color: #fff; }
.btn-purple:hover { filter: drop-shadow(0 0 18px rgba(145, 80, 255, .75)); }
.btn-crimson { --btn-edge: linear-gradient(180deg, #ffb8c9, #4a0d1f); --btn-fill: linear-gradient(180deg, #b52a50, #6b1029); --btn-color: #fff; }
.btn-ghost { --btn-fill: linear-gradient(180deg, rgba(30, 19, 41, .95), rgba(10, 6, 14, .95)); }
.btn-sm { padding: 10px 20px; font-size: .74rem; --cut: 9px; }
.btn-lg { padding: 19px 44px; font-size: 1rem; --cut: 15px; }
.btn-block { width: 100%; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid var(--line); color: var(--gold);
    background: rgba(20, 13, 27, .8); transition: all .25s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 12px rgba(214, 178, 110, .35); }

/* ---------------------------------------------------------------- cadre (panouri cu colturi) */
.frame {
    position: relative;
    background:
        linear-gradient(180deg, rgba(29, 19, 38, .92), rgba(11, 7, 15, .95)),
        url("../img/grain.png");
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .65), inset 0 0 60px rgba(145, 80, 255, .05), 0 24px 60px rgba(0, 0, 0, .55);
}
.frame::before {
    content: ""; position: absolute; inset: 5px; pointer-events: none;
    border: 1px solid rgba(214, 178, 110, .1);
}
.frame::after {
    content: ""; position: absolute; inset: -2px; pointer-events: none; z-index: 2;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 22V8l7-7h14' fill='none' stroke='%23d6b26e' stroke-width='1.6'/%3E%3Cpath d='M6.5 3.5l3 3-3 3-3-3z' fill='%23a46bff' stroke='%23f4dfa6' stroke-width='.8'/%3E%3C/svg%3E") top left / 24px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 22V8l-7-7H2' fill='none' stroke='%23d6b26e' stroke-width='1.6'/%3E%3Cpath d='M17.5 3.5l3 3-3 3-3-3z' fill='%23a46bff' stroke='%23f4dfa6' stroke-width='.8'/%3E%3C/svg%3E") top right / 24px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 2v14l7 7h14' fill='none' stroke='%23d6b26e' stroke-width='1.6'/%3E%3Cpath d='M6.5 14.5l3 3-3 3-3-3z' fill='%23a46bff' stroke='%23f4dfa6' stroke-width='.8'/%3E%3C/svg%3E") bottom left / 24px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 2v14l-7 7H2' fill='none' stroke='%23d6b26e' stroke-width='1.6'/%3E%3Cpath d='M17.5 14.5l3 3-3 3-3-3z' fill='%23a46bff' stroke='%23f4dfa6' stroke-width='.8'/%3E%3C/svg%3E") bottom right / 24px no-repeat;
}
.frame-pad { padding: 32px; }
.frame-glow { animation: frameGlow 4s ease-in-out infinite; }
@keyframes frameGlow { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(0,0,0,.65), 0 0 0 rgba(145,80,255,0), 0 24px 60px rgba(0,0,0,.55); } 50% { box-shadow: inset 0 0 0 1px rgba(0,0,0,.65), 0 0 30px rgba(145,80,255,.25), 0 24px 60px rgba(0,0,0,.55); } }

.panel-title {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold-hi); margin: 0 0 22px; padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.panel-title .ico { color: var(--purple-hi); filter: drop-shadow(0 0 6px rgba(145, 80, 255, .7)); }

/* ---------------------------------------------------------------- anunt + header */
.announce {
    position: relative; z-index: 60;
    background: linear-gradient(90deg, var(--crimson-lo), #2a0d3f, var(--crimson-lo));
    border-bottom: 1px solid rgba(214, 178, 110, .3);
    font-family: var(--font-head); font-size: .8rem; letter-spacing: .08em; color: var(--gold-hi);
}
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; text-align: center; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(7, 5, 11, .92), rgba(7, 5, 11, 0));
    transition: background .4s var(--ease), box-shadow .4s, height .4s var(--ease);
}
.site-header.is-scrolled {
    --header-h: 70px;
    background: rgba(10, 6, 15, .9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(214, 178, 110, .25), 0 12px 40px rgba(0, 0, 0, .6);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; max-width: 1480px; }
.brand { flex: none; display: block; width: 128px; transition: transform .4s var(--ease), width .4s var(--ease); }
.brand img { width: 100%; filter: drop-shadow(0 0 10px rgba(145, 80, 255, .35)); }
.brand:hover { transform: scale(1.05) rotate(-1deg); }
.is-scrolled .brand { width: 104px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-link {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    font-family: var(--font-head); font-size: .8rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
.nav-link .ico { width: 15px; height: 15px; opacity: .55; transition: all .3s; }
.nav-link::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 7px; height: 7px;
    background: var(--purple-hi); transform: translateX(-50%) rotate(45deg) scale(0);
    box-shadow: 0 0 10px var(--purple), -14px 0 0 -2px rgba(214, 178, 110, 0), 14px 0 0 -2px rgba(214, 178, 110, 0);
    transition: transform .35s var(--ease);
}
.nav-link::before {
    content: ""; position: absolute; left: 18%; right: 18%; bottom: 5px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--gold-hi); text-shadow: 0 0 12px rgba(214, 178, 110, .45); }
.nav-link:hover .ico, .nav-link.is-active .ico { opacity: 1; color: var(--purple-hi); }
.nav-link:hover::after, .nav-link.is-active::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.nav-link:hover::before, .nav-link.is-active::before { transform: scaleX(1); }
.nav-mobile-actions { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch { display: flex; border: 1px solid var(--line); }
.lang-switch a { padding: 5px 9px; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--text-faint); }
.lang-switch a.is-active { background: linear-gradient(180deg, rgba(214, 178, 110, .25), rgba(214, 178, 110, .08)); color: var(--gold-hi); }
.lang-switch a:hover { color: var(--gold-hi); }

.coin-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
    border: 1px solid rgba(214, 178, 110, .45); border-radius: 999px;
    background: linear-gradient(180deg, rgba(60, 40, 15, .6), rgba(20, 12, 6, .8));
    font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--gold-hi);
    box-shadow: inset 0 0 12px rgba(214, 178, 110, .15);
}
.coin-pill:hover { box-shadow: 0 0 16px rgba(214, 178, 110, .4), inset 0 0 12px rgba(214, 178, 110, .2); }
.coin-pill.bump { animation: coinBump .6s var(--ease); }
@keyframes coinBump { 0% { transform: scale(1); } 40% { transform: scale(1.18); box-shadow: 0 0 26px rgba(244, 223, 166, .8); } 100% { transform: scale(1); } }

.user-menu { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    border: 1px solid var(--line); background: rgba(20, 13, 27, .8);
    font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-hi);
    transition: border-color .25s;
}
.user-btn:hover, .user-menu.is-open .user-btn { border-color: var(--gold); }
.user-btn .chev { width: 14px; transition: transform .3s; }
.user-menu.is-open .chev { transform: rotate(180deg); }
.user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; z-index: 80;
    background: rgba(14, 9, 20, .97); border: 1px solid var(--line-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .7), 0 0 30px rgba(145, 80, 255, .12);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all .25s var(--ease);
}
.user-menu.is-open .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown a, .user-dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left;
    font-family: var(--font-head); font-size: .8rem; letter-spacing: .06em; color: var(--text-dim);
}
.user-dropdown a:hover, .user-dropdown button:hover { background: rgba(145, 80, 255, .12); color: var(--gold-hi); }
.user-dropdown form { margin: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border: 1px solid var(--line); background: rgba(20, 13, 27, .8); }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--gold); transition: all .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- hero (acasa) */
.hero {
    position: relative; min-height: calc(100vh - var(--header-h));
    display: flex; align-items: center; justify-content: center;
    padding: 40px 0 180px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 30px);
    overflow: hidden; text-align: center;
}
.hero-portal {
    position: absolute; left: 50%; top: 44%; width: min(92vmin, 980px); aspect-ratio: 1;
    transform: translate(-50%, -50%); pointer-events: none;
}
.hero-portal .ring {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(145, 80, 255, .55) 50deg, transparent 110deg, rgba(208, 70, 108, .35) 170deg, transparent 230deg, rgba(195, 155, 255, .45) 290deg, transparent 360deg);
    -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, #000 58%, transparent 70%);
    mask: radial-gradient(circle, transparent 38%, #000 40%, #000 58%, transparent 70%);
    filter: blur(18px);
    animation: spin 26s linear infinite;
}
.hero-portal .ring.r2 { inset: 12%; animation-duration: 18s; animation-direction: reverse; opacity: .7; }
.hero-portal .core {
    position: absolute; inset: 28%; border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 155, 255, .35), rgba(91, 35, 184, .18) 40%, transparent 70%);
    animation: corePulse 5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes corePulse { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }

.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(720px, 90vw); animation: floatY 6s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(145, 80, 255, .45)) drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-slogan { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-style: italic; color: var(--text); max-width: 640px; margin: 6px auto 26px; text-shadow: 0 2px 12px #000; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 8px; }
.hero .eyebrow { margin-top: -10px; }

.status-chip {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
    padding: 7px 16px; border: 1px solid var(--line); background: rgba(10, 6, 14, .7);
    font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-faint); }
.status-chip.is-online .status-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s ease-in-out infinite; }
.status-chip.is-online { color: var(--ok); }
.status-chip.is-offline { color: var(--err); }
.status-chip.is-offline .status-dot { background: var(--err); }
.status-chip.is-soon { color: var(--purple-hi); }
.status-chip.is-soon .status-dot { background: var(--purple-hi); box-shadow: 0 0 10px var(--purple); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* countdown */
.countdown { margin: 4px 0 30px; }
.countdown-title { font-family: var(--font-head); font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.countdown-boxes { display: flex; gap: 14px; justify-content: center; }
.cd-box {
    position: relative; width: 98px; padding: 14px 6px 10px;
    background: linear-gradient(180deg, rgba(40, 24, 56, .9), rgba(12, 8, 16, .95));
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 0 20px rgba(145, 80, 255, .18), 0 10px 30px rgba(0, 0, 0, .6);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.cd-num { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-hi); text-shadow: 0 0 18px rgba(214, 178, 110, .5); }
.cd-num.tick { animation: tick .45s var(--ease); }
@keyframes tick { 0% { transform: translateY(-30%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cd-label { display: block; margin-top: 6px; font-family: var(--font-head); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }

/* silueta castel + ceata */
.hero-fog { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; z-index: 2; pointer-events: none; background: url("../img/fog-1.png") repeat-x 0 100% / 1600px 300px; opacity: .35; animation: fogMove 60s linear infinite; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%); color: var(--gold); animation: bounce 2s ease-in-out infinite; }
.scroll-hint .ico { width: 28px; height: 28px; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); opacity: .6; } 50% { transform: translate(-50%, 8px); opacity: 1; } }

/* ---------------------------------------------------------------- statistici */
.stats-bar { position: relative; z-index: 5; margin-top: -90px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 28px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(180deg, transparent, var(--line-strong), transparent); }
.stat-ico {
    flex: none; width: 54px; height: 54px; display: grid; place-items: center;
    border: 1px solid var(--line-strong); transform: rotate(45deg);
    background: radial-gradient(circle, rgba(145, 80, 255, .3), rgba(20, 10, 30, .9));
    box-shadow: 0 0 18px rgba(145, 80, 255, .3);
}
.stat-ico .ico { transform: rotate(-45deg); width: 24px; height: 24px; color: var(--gold-hi); }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--gold-hi); }
.stat-label { display: block; margin-top: 6px; font-family: var(--font-head); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.stat-online .stat-num { color: var(--ok); text-shadow: 0 0 14px rgba(115, 215, 150, .4); }

/* ---------------------------------------------------------------- stiri */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; transition: transform .45s var(--ease), box-shadow .45s; }
.news-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .65), 0 0 40px rgba(145, 80, 255, .25), 0 30px 60px rgba(0, 0, 0, .6); border-color: var(--line-strong); }
.news-link { display: flex; flex-direction: column; width: 100%; color: inherit; }
.news-link:hover { color: inherit; }
.news-thumb {
    position: relative; aspect-ratio: 16 / 9; margin: 8px 8px 0;
    background: center / cover no-repeat;
    overflow: hidden;
}
.news-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 6, 14, .85)); transition: opacity .4s; }
.news-thumb.is-empty { background: radial-gradient(circle at 50% 40%, rgba(145, 80, 255, .35), transparent 60%), url("../img/bg-rift.jpg") center / cover; }
.news-thumb-mark { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.news-thumb-mark .ico { width: 54px; height: 54px; color: rgba(244, 223, 166, .55); filter: drop-shadow(0 0 12px rgba(145, 80, 255, .8)); }
.news-card:hover .news-thumb { background-size: cover; }
.news-thumb { transition: filter .5s; }
.news-card:hover .news-thumb { filter: brightness(1.15) saturate(1.1); }
.news-thumb .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.news-thumb .badge-pin { left: auto; right: 12px; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.news-body time { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; color: var(--text-faint); text-transform: uppercase; }
.news-body h3 { font-size: 1.25rem; margin: 10px 0; color: var(--gold-hi); transition: color .3s; }
.news-card:hover h3 { color: #fff; }
.news-body p { color: var(--text-dim); font-size: 1rem; flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--purple-hi); }
.read-more .ico { transition: transform .3s; }
.news-card:hover .read-more .ico { transform: translateX(5px); }
.news-card.is-featured { grid-column: span 2; grid-row: span 2; }
.news-card.is-featured .news-thumb { flex: 1; aspect-ratio: auto; min-height: 320px; }
.news-card.is-featured .news-body { flex: none; padding: 26px 30px 30px; }
.news-card.is-featured h3 { font-size: 1.8rem; }

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
    font-family: var(--font-head); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: #fff; background: rgba(60, 30, 90, .9); border: 1px solid rgba(195, 155, 255, .5);
}
.badge .ico { width: 11px; height: 11px; }
.badge-update { background: rgba(30, 70, 110, .92); border-color: rgba(140, 200, 255, .5); }
.badge-event { background: rgba(130, 25, 55, .92); border-color: rgba(255, 150, 180, .5); }
.badge-maintenance { background: rgba(110, 80, 20, .92); border-color: rgba(255, 210, 120, .5); }
.badge-pin { background: rgba(90, 67, 32, .95); border-color: var(--gold); color: var(--gold-hi); }

.news-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
    border: 1px solid var(--line); background: rgba(16, 10, 22, .8);
    font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
    transition: all .25s;
}
.chip:hover { color: var(--gold-hi); border-color: var(--gold); }
.chip.is-active { color: #1e1306; background: linear-gradient(180deg, #f5dc9a, #b88d45); border-color: var(--gold-hi); box-shadow: 0 0 16px rgba(214, 178, 110, .35); }

/* articol */
.article { max-width: 880px; margin: 0 auto; }
.article-cover { aspect-ratio: 21 / 9; background: center / cover no-repeat; margin: 8px 8px 0; }
.article-body { padding: 36px 44px 44px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.prose { font-size: 1.12rem; color: var(--text); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { margin: 1.2em auto; border: 1px solid var(--line); }
.prose a { color: var(--purple-hi); border-bottom: 1px solid rgba(195, 155, 255, .35); }
.prose blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 3px solid var(--gold); background: rgba(214, 178, 110, .06); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 2em 0; }

/* ---------------------------------------------------------------- caracteristici */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { padding: 36px 30px 32px; text-align: center; transition: transform .45s var(--ease), box-shadow .45s; }
.feature:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.65), 0 0 40px rgba(145, 80, 255, .22), 0 30px 60px rgba(0, 0, 0, .6); }
.medallion {
    position: relative; width: 82px; height: 82px; margin: 0 auto 22px;
    display: grid; place-items: center; border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #3a1c63, #12081f 70%);
    border: 2px solid var(--gold-lo);
    box-shadow: 0 0 0 4px rgba(10, 6, 14, .9), 0 0 0 5px var(--gold-lo), 0 0 30px rgba(145, 80, 255, .4);
    transition: transform .6s var(--ease), box-shadow .4s;
}
.medallion::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(214, 178, 110, .3); animation: spin 30s linear infinite; }
.medallion .ico { width: 34px; height: 34px; color: var(--gold-hi); filter: drop-shadow(0 0 8px rgba(195, 155, 255, .8)); }
.feature:hover .medallion { transform: rotateY(360deg); box-shadow: 0 0 0 4px rgba(10, 6, 14, .9), 0 0 0 5px var(--gold), 0 0 44px rgba(145, 80, 255, .7); }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--text-dim); font-size: 1.02rem; margin: 0; }

/* ---------------------------------------------------------------- info + top */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.split-3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px dashed rgba(214, 178, 110, .15); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { display: flex; align-items: center; gap: 10px; color: var(--text-dim); }
.info-list .k .ico { color: var(--purple-hi); }
.info-list .v { font-family: var(--font-head); font-weight: 700; color: var(--gold-hi); letter-spacing: .05em; }

.mini-rank { list-style: none; margin: 0; padding: 0; }
.mini-rank li { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-bottom: 1px solid rgba(214, 178, 110, .08); transition: background .25s; }
.mini-rank li:hover { background: rgba(145, 80, 255, .07); }
.mini-rank li:last-child { border-bottom: 0; }
.mini-rank .name { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-rank .sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: .88rem; color: var(--text-faint); }
.mini-rank .lvl { font-family: var(--font-head); font-weight: 700; color: var(--gold-hi); white-space: nowrap; }
.empty-note { color: var(--text-faint); font-style: italic; text-align: center; padding: 18px 0; margin: 0; }

.rank-badge {
    flex: none; width: 34px; height: 34px; display: grid; place-items: center;
    transform: rotate(45deg); border: 1px solid var(--line); background: rgba(30, 19, 41, .9);
    font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--text-dim);
}
.rank-badge span { transform: rotate(-45deg); }
.rank-badge.rank-1 { background: linear-gradient(135deg, #fff1c4, #c99d55 50%, #7a5a26); border-color: #fff1c4; color: #2a1a06; box-shadow: 0 0 16px rgba(244, 223, 166, .6); }
.rank-badge.rank-2 { background: linear-gradient(135deg, #f4f4f8, #a9abb8 50%, #5e606c); border-color: #eee; color: #1b1b22; box-shadow: 0 0 12px rgba(220, 220, 235, .4); }
.rank-badge.rank-3 { background: linear-gradient(135deg, #ffd0a8, #b06c3a 50%, #5c3215); border-color: #ffd0a8; color: #2a1406; box-shadow: 0 0 12px rgba(220, 140, 80, .4); }

/* ---------------------------------------------------------------- clase */
.classes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; perspective: 1000px; }
.class-card {
    --accent: 145, 80, 255;
    position: relative; padding: 40px 24px 30px; text-align: center; overflow: hidden;
    transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .4s;
}
.class-card::before { inset: 5px; }
.class-card .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(var(--accent), .35), transparent 65%); opacity: .6; transition: opacity .4s; pointer-events: none; }
.class-card:hover .glow { opacity: 1; }
.class-card:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.65), 0 0 50px rgba(var(--accent), .35), 0 30px 60px rgba(0, 0, 0, .6); }
.class-emblem {
    position: relative; width: 104px; height: 104px; margin: 0 auto 20px; display: grid; place-items: center;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(180deg, rgba(var(--accent), .55), rgba(10, 6, 14, .95));
    transform: translateZ(40px);
}
.class-emblem::before { content: ""; position: absolute; inset: 2px; clip-path: inherit; background: radial-gradient(circle at 50% 30%, rgba(var(--accent), .45), #0d0813 75%); }
.class-emblem .ico { position: relative; width: 48px; height: 48px; color: var(--gold-hi); filter: drop-shadow(0 0 10px rgba(var(--accent), 1)); }
.class-card h3 { position: relative; font-family: var(--font-display); font-size: 1.5rem; transform: translateZ(30px); }
.class-card p { position: relative; color: var(--text-dim); font-size: 1rem; margin: 0; transform: translateZ(20px); }
.class-card.cls-warrior { --accent: 208, 70, 108; }
.class-card.cls-ninja { --accent: 110, 200, 150; }
.class-card.cls-sura { --accent: 145, 80, 255; }
.class-card.cls-shaman { --accent: 240, 200, 110; }

.class-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); white-space: nowrap; }
.class-badge .ico { width: 18px; height: 18px; }
.class-badge.cls-warrior .ico { color: var(--crimson-hi); }
.class-badge.cls-ninja .ico { color: #7fd9a6; }
.class-badge.cls-sura .ico { color: var(--purple-hi); }
.class-badge.cls-shaman .ico { color: var(--gold-hi); }
.class-badge.cls-lycan .ico { color: #9fb6ff; }
.empire-badge { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--text-dim); }
.empire-badge i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--text-faint); }
.emp-red i { background: #e0414f; box-shadow: 0 0 8px #e0414f; }
.emp-yellow i { background: #f0c330; box-shadow: 0 0 8px #f0c330; }
.emp-blue i { background: #3f8cff; box-shadow: 0 0 8px #3f8cff; }

/* ---------------------------------------------------------------- CTA / discord */
.cta-banner {
    position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px;
    padding: 40px 48px;
    background: linear-gradient(110deg, rgba(88, 101, 242, .22), rgba(26, 10, 48, .9) 45%, rgba(142, 27, 58, .3)), url("../img/grain.png");
}
.cta-banner .cta-ico { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: rgba(88, 101, 242, .25); border: 1px solid rgba(160, 170, 255, .5); box-shadow: 0 0 30px rgba(88, 101, 242, .5); animation: floatY 4s ease-in-out infinite; }
.cta-banner .cta-ico .ico { width: 44px; height: 44px; color: #dfe2ff; }
.cta-banner h3 { font-size: 1.7rem; margin-bottom: 6px; }
.cta-banner p { color: var(--text-dim); margin: 0; }
.final-cta { text-align: center; padding: 70px 30px; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.final-cta p { color: var(--text-dim); max-width: 560px; margin: 0 auto 30px; font-size: 1.15rem; }

/* ---------------------------------------------------------------- page hero (pagini interioare) */
.page-hero { position: relative; padding: 70px 0 60px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 56px); text-align: center; overflow: hidden; }
.page-hero-glow { position: absolute; left: 50%; top: 40%; width: 900px; height: 420px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(145, 80, 255, .28), transparent 65%); pointer-events: none; }
.page-hero-inner { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 14px 0 0; }
.page-hero-sub { margin: 14px auto 0; max-width: 620px; color: var(--text-dim); font-size: 1.15rem; font-style: italic; }
.hero-medallion {
    display: inline-grid; place-items: center; width: 64px; height: 64px; transform: rotate(45deg);
    border: 1px solid var(--gold); background: radial-gradient(circle, #3a1c63, #12081f 70%);
    box-shadow: 0 0 0 4px rgba(10, 6, 14, .9), 0 0 0 5px rgba(214, 178, 110, .4), 0 0 34px rgba(145, 80, 255, .55);
    animation: medallionIn 1s var(--ease) both;
}
.hero-medallion .ico { width: 28px; height: 28px; transform: rotate(-45deg); color: var(--gold-hi); }
@keyframes medallionIn { from { transform: rotate(45deg) scale(0); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
.page-body { padding: 10px 0 100px; position: relative; }

/* ---------------------------------------------------------------- tabele */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th {
    padding: 14px 16px; text-align: left; white-space: nowrap;
    font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
    border-bottom: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(214, 178, 110, .1), transparent);
}
.table td { padding: 13px 16px; border-bottom: 1px solid rgba(214, 178, 110, .08); vertical-align: middle; }
.table tbody tr { transition: background .25s; }
.table tbody tr:hover { background: rgba(145, 80, 255, .07); }
.table tr.top-1 { background: linear-gradient(90deg, rgba(244, 223, 166, .1), transparent 60%); }
.table tr.top-2 { background: linear-gradient(90deg, rgba(220, 220, 235, .07), transparent 60%); }
.table tr.top-3 { background: linear-gradient(90deg, rgba(220, 140, 80, .07), transparent 60%); }
.table .name-cell { font-family: var(--font-head); font-weight: 700; color: var(--text); }
.table .num { font-family: var(--font-head); font-weight: 600; color: var(--gold-hi); white-space: nowrap; }
.table .right { text-align: right; }
.table-empty { padding: 40px 10px; text-align: center; color: var(--text-faint); font-style: italic; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.search-box { position: relative; display: flex; min-width: 260px; }
.search-box .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold-lo); pointer-events: none; }
.search-box input { padding-left: 42px !important; }
.select { appearance: none; -webkit-appearance: none; padding: 12px 40px 12px 14px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b26e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px !important; }

/* tab-uri */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 30px; }
.tab {
    position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px;
    font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--text-dim); border: 1px solid var(--line); background: rgba(16, 10, 22, .85);
    transition: all .3s var(--ease);
}
.tab:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.tab.is-active { color: var(--gold-hi); border-color: var(--gold); background: linear-gradient(180deg, rgba(145, 80, 255, .3), rgba(30, 15, 50, .9)); box-shadow: 0 0 22px rgba(145, 80, 255, .3), inset 0 -2px 0 var(--gold); }
.tab-panel { display: none; animation: fadeUp .5s var(--ease); }
.tab-panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* paginare */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: rgba(16, 10, 22, .85);
    font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--text-dim);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-hi); }
.pagination .current { border-color: var(--gold); color: #1e1306; background: linear-gradient(180deg, #f5dc9a, #b88d45); }
.pagination .dots { border: 0; background: none; }

/* ---------------------------------------------------------------- formulare */
.field { margin-bottom: 20px; }
.field > label, .label {
    display: block; margin-bottom: 8px;
    font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-ico { position: absolute; left: 14px; color: var(--gold-lo); pointer-events: none; transition: color .3s; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="url"], input[type="search"], input[type="datetime-local"], input[type="date"], select, textarea {
    width: 100%; padding: 13px 15px;
    font: inherit; font-size: 1.02rem; color: var(--text);
    background: rgba(8, 5, 12, .85);
    border: 1px solid rgba(214, 178, 110, .25);
    border-radius: 0; outline: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .55);
    transition: border-color .3s, box-shadow .3s;
}
.input-wrap .input-ico + input { padding-left: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--purple-hi); box-shadow: inset 0 2px 10px rgba(0, 0, 0, .55), 0 0 0 3px rgba(145, 80, 255, .2), 0 0 18px rgba(145, 80, 255, .25); }
.input-wrap:focus-within .input-ico { color: var(--purple-hi); }
input::placeholder, textarea::placeholder { color: var(--text-faint); font-style: italic; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select option { background: #120b18; color: var(--text); }
.pw-toggle { position: absolute; right: 10px; padding: 6px; color: var(--text-faint); }
.pw-toggle:hover { color: var(--gold-hi); }
.input-wrap input[type="password"], .input-wrap input.pw-shown { padding-right: 44px; }
.input-addon { position: absolute; right: 6px; }
.input-wrap:has(.input-addon) input { padding-right: 132px; }
.field-error { margin: 6px 0 0; font-size: .92rem; color: var(--err); }
.field-hint { margin: 6px 0 0; font-size: .9rem; color: var(--text-faint); }
.field.has-error input { border-color: var(--err); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.check { display: flex; align-items: flex-start; gap: 12px; color: var(--text-dim); font-size: 1rem; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 3px; border: 1px solid var(--gold-lo); background: rgba(8, 5, 12, .85); display: grid; place-items: center; }
.check input:checked { background: linear-gradient(180deg, #f5dc9a, #b88d45); border-color: var(--gold-hi); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid #1e1306; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 22px; border: 1px solid; font-size: 1rem; }
.alert .ico { margin-top: 3px; }
.alert-error { border-color: rgba(255, 111, 132, .5); background: rgba(120, 20, 40, .25); color: #ffc2cc; }
.alert-info { border-color: rgba(195, 155, 255, .45); background: rgba(80, 40, 140, .2); color: #e4d4ff; }
.alert-success { border-color: rgba(115, 215, 150, .45); background: rgba(30, 100, 60, .2); color: #c8f5d7; }
.alert-warn { border-color: rgba(255, 199, 111, .45); background: rgba(120, 80, 20, .2); color: #ffe6bd; }

.auth-wrap { max-width: 520px; margin: 0 auto; }
.auth-wrap.wide { max-width: 720px; }
.auth-card { padding: 42px 44px 36px; }
.auth-foot { text-align: center; margin-top: 24px; color: var(--text-dim); }
.captcha-q { display: inline-block; padding: 2px 10px; margin-left: 6px; border: 1px solid var(--line); font-family: var(--font-head); color: var(--gold-hi); letter-spacing: .08em; }

/* ---------------------------------------------------------------- cont */
.account-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; margin-bottom: 30px; }
.account-head h2 { margin: 0; font-size: 1.6rem; }
.account-head p { margin: 4px 0 0; color: var(--text-dim); }
.balance-card { display: flex; align-items: center; gap: 18px; }
.balance-amount { font-family: var(--font-display); font-size: 2rem; color: var(--gold-hi); line-height: 1; }
.balance-label { display: block; font-family: var(--font-head); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.balance-card .coin-ico { width: 46px; height: 46px; }
.chars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.char-card { padding: 26px 24px 22px; }
.char-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.char-top .class-emblem { width: 62px; height: 62px; margin: 0; transform: none; }
.char-top .class-emblem .ico { width: 30px; height: 30px; }
.char-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--gold-hi); }
.char-lvl { font-family: var(--font-head); font-size: .8rem; color: var(--text-dim); letter-spacing: .1em; }
.char-meta { list-style: none; padding: 0; margin: 0 0 18px; font-size: .98rem; }
.char-meta li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(214, 178, 110, .12); color: var(--text-dim); }
.char-meta li span:last-child { color: var(--text); text-align: right; }
.online-dot { display: inline-flex; align-items: center; gap: 6px; }
.online-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.online-dot.on { color: var(--ok); }
.online-dot.on::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.social-code { font-family: var(--font-head); letter-spacing: .25em; filter: blur(5px); transition: filter .3s; user-select: none; }
.social-code.is-shown { filter: none; user-select: text; }
.pill { display: inline-block; padding: 3px 10px; border: 1px solid; font-family: var(--font-head); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.pill-ok { color: var(--ok); border-color: rgba(115, 215, 150, .45); background: rgba(30, 100, 60, .2); }
.pill-err { color: var(--err); border-color: rgba(255, 111, 132, .45); background: rgba(120, 20, 40, .2); }
.pill-warn { color: var(--warn); border-color: rgba(255, 199, 111, .45); background: rgba(120, 80, 20, .2); }
.pill-muted { color: var(--text-faint); border-color: var(--line); }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; text-align: center; border: 1px solid var(--line); background: rgba(16, 10, 22, .7); font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); transition: all .3s var(--ease); }
.quick-link .ico { width: 30px; height: 30px; color: var(--purple-hi); transition: transform .4s var(--ease); }
.quick-link:hover { color: var(--gold-hi); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 0 20px rgba(145, 80, 255, .2); }
.quick-link:hover .ico { transform: scale(1.15) rotate(-6deg); }

/* ---------------------------------------------------------------- item shop */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.shop-side { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px 18px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 4px; text-align: left;
    font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--text-dim);
    border: 1px solid transparent; transition: all .25s var(--ease);
}
.cat-btn .ico { color: var(--gold-lo); transition: color .25s; }
.cat-btn .count { margin-left: auto; font-size: .7rem; color: var(--text-faint); }
.cat-btn:hover { color: var(--gold-hi); background: rgba(145, 80, 255, .08); }
.cat-btn.is-active { color: var(--gold-hi); border-color: var(--line-strong); background: linear-gradient(90deg, rgba(145, 80, 255, .28), rgba(145, 80, 255, .02)); box-shadow: inset 3px 0 0 var(--gold); }
.cat-btn.is-active .ico { color: var(--purple-hi); }
.shop-topbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; margin-bottom: 24px; }
.shop-note { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: .98rem; }
.shop-note .ico { color: var(--purple-hi); }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.item-card { display: flex; flex-direction: column; padding: 18px 16px 18px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.item-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: inset 0 0 0 1px rgba(0,0,0,.65), 0 0 36px rgba(145, 80, 255, .28), 0 26px 50px rgba(0, 0, 0, .6); }
.item-slot {
    position: relative; width: 112px; height: 112px; margin: 6px auto 16px; display: grid; place-items: center;
    background: radial-gradient(circle, rgba(145, 80, 255, .35), rgba(10, 6, 14, .9) 70%);
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 0 22px rgba(0, 0, 0, .8), 0 0 0 4px rgba(10, 6, 14, .9), 0 0 0 5px rgba(214, 178, 110, .25);
}
.item-slot::before { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(214, 178, 110, .15); transform: rotate(45deg) scale(.72); transition: transform .8s var(--ease); }
.item-card:hover .item-slot::before { transform: rotate(225deg) scale(.72); border-color: rgba(195, 155, 255, .5); }
.item-slot img { width: 76px; height: 76px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .8)); transition: transform .5s var(--ease); }
.item-card:hover .item-slot img { transform: scale(1.12) translateY(-3px); }
.item-count { position: absolute; right: 4px; bottom: 2px; font-family: var(--font-head); font-size: .75rem; font-weight: 700; color: #fff; text-shadow: 0 0 4px #000, 0 0 2px #000; }
.ribbon { position: absolute; top: 12px; left: -1px; z-index: 3; padding: 4px 12px 4px 10px; font-family: var(--font-head); font-size: .66rem; font-weight: 900; letter-spacing: .1em; color: #fff; background: linear-gradient(90deg, #b52a50, #7a1530); clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); }
.ribbon.ribbon-gold { top: 42px; color: #1e1306; background: linear-gradient(90deg, #f5dc9a, #b88d45); }
.item-name { font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--gold-hi); margin: 0 0 6px; line-height: 1.3; }
.item-desc { color: var(--text-dim); font-size: .95rem; line-height: 1.45; margin: 0 0 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--gold-hi); }
.price s { font-size: .85rem; color: var(--text-faint); font-weight: 600; }
.item-card .btn { width: 100%; }
.shop-section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--font-head); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.shop-section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.featured-strip { margin-bottom: 36px; }
.item-card.is-hidden { display: none; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 2, 7, .82); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-box { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 36px 34px 30px; transform: translateY(30px) scale(.96); transition: transform .45s var(--ease); }
.modal.is-open .modal-box { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.modal-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: center; margin-bottom: 22px; }
.modal-item .item-slot { width: 130px; height: 130px; margin: 0; }
.modal-item .item-slot img { width: 90px; height: 90px; }
.modal-item h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-item p { color: var(--text-dim); margin: 0; font-size: 1rem; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); }
.qty button { width: 42px; font-size: 1.3rem; color: var(--gold-hi); background: rgba(30, 19, 41, .9); }
.qty button:hover { background: rgba(145, 80, 255, .3); }
.qty input { width: 64px; text-align: center; border: 0 !important; box-shadow: none !important; font-family: var(--font-head); font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.buy-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy-total { text-align: right; }
.buy-total strong { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-hi); }
.buy-after { font-size: .92rem; color: var(--text-faint); }
.buy-after.is-bad { color: var(--err); }
.coin-burst { position: fixed; z-index: 9998; width: 22px; height: 22px; pointer-events: none; }

/* ---------------------------------------------------------------- donatii */
.steps { display: flex; justify-content: center; gap: 0; margin-bottom: 44px; counter-reset: step; }
.step { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(135deg, #f5dc9a, #b88d45 55%, #7a5a26); color: #1e1306; font-size: 1rem; filter: drop-shadow(0 0 10px rgba(145, 80, 255, .5)); }
.step + .step::after { content: none; }
.step-sep { width: 70px; height: 1px; margin: 0 18px; align-self: center; background: linear-gradient(90deg, var(--gold-lo), var(--purple-hi), var(--gold-lo)); }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; margin-bottom: 40px; }
.package { position: relative; display: block; }
.package input { position: absolute; opacity: 0; pointer-events: none; }
.package-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px 24px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.package:hover .package-card { transform: translateY(-4px); border-color: var(--line-strong); }
.package input:checked + .package-card { border-color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(0,0,0,.65), 0 0 0 1px var(--gold), 0 0 40px rgba(214, 178, 110, .35); transform: translateY(-4px); }
.package input:focus-visible + .package-card { outline: 2px solid var(--purple-hi); outline-offset: 3px; }
.package .coin-ico { width: 54px; height: 54px; margin-bottom: 4px; }
.package-coins { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-hi); line-height: 1; }
.package-coins small { display: block; margin-top: 4px; font-family: var(--font-head); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.package-price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); margin-top: 6px; }
.package-bonus { color: var(--ok); font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.package .ribbon { top: 10px; }
.package.is-popular .package-card { border-color: rgba(195, 155, 255, .5); }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.method { position: relative; display: block; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); background: rgba(16, 10, 22, .85); font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; color: var(--text-dim); transition: all .25s; }
.method-card .ico { width: 26px; height: 26px; color: var(--purple-hi); }
.method input:checked + .method-card { color: var(--gold-hi); border-color: var(--gold); background: linear-gradient(90deg, rgba(145, 80, 255, .25), rgba(16, 10, 22, .85)); box-shadow: 0 0 18px rgba(145, 80, 255, .25); }
.pay-info { display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; margin-bottom: 22px; border: 1px dashed var(--line-strong); background: rgba(214, 178, 110, .05); }
.pay-info.is-active { display: flex; }
.pay-info code { font-family: var(--font-head); font-size: 1.05rem; color: var(--gold-hi); word-break: break-all; }

/* ---------------------------------------------------------------- download */
.dl-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: stretch; margin-bottom: 30px; }
.dl-main { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.dl-main h2 { font-size: 2rem; }
.dl-facts { display: flex; flex-wrap: wrap; gap: 26px; margin: 10px 0 28px; }
.dl-fact span { display: block; font-family: var(--font-head); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.dl-fact strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-hi); }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.dl-art { position: relative; display: grid; place-items: center; padding: 30px; overflow: hidden; }
.dl-art img { width: 90%; animation: floatY 6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(145, 80, 255, .5)); }
.req-table td:first-child { color: var(--text-dim); }
.steps-list { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps-list li { position: relative; padding: 0 0 22px 62px; counter-increment: s; color: var(--text-dim); min-height: 44px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(135deg, #f5dc9a, #b88d45 55%, #7a5a26); font-family: var(--font-head); font-weight: 700; color: #1e1306; }
.steps-list li::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--gold-lo), transparent); }
.steps-list li:last-child::after { display: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; margin-top: 40px; padding: 30px 0 0; background: linear-gradient(180deg, transparent, rgba(5, 3, 8, .95) 30%); }
.footer-ornament { margin-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: 170px; margin-bottom: 16px; filter: drop-shadow(0 0 12px rgba(145, 80, 255, .35)); }
.footer-brand p { color: var(--text-dim); font-size: 1rem; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); transform: rotate(45deg); transition: all .3s var(--ease); }
.socials a .ico { transform: rotate(-45deg); }
.socials a:hover { border-color: var(--gold); color: #fff; background: rgba(145, 80, 255, .3); box-shadow: 0 0 16px rgba(145, 80, 255, .5); }
.footer-col h4 { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); transition: color .25s, transform .25s; }
.footer-col a:hover { color: var(--gold-hi); transform: translateX(4px); }
.footer-bottom { padding: 24px 24px 30px; border-top: 1px solid rgba(214, 178, 110, .12); text-align: center; color: var(--text-faint); font-size: .92rem; }
.footer-bottom p { margin: 0 0 6px; }
.disclaimer { font-size: .82rem; opacity: .75; max-width: 760px; margin: 0 auto !important; }

.discord-float {
    position: fixed; left: 20px; bottom: 20px; z-index: 90;
    display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px;
    border: 1px solid rgba(160, 170, 255, .45); border-radius: 999px;
    background: linear-gradient(90deg, rgba(88, 101, 242, .9), rgba(40, 20, 80, .92));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 20px rgba(88, 101, 242, .35);
    color: #fff; font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .08em;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.discord-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 30px rgba(88, 101, 242, .6); }
.df-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.df-icon .ico { width: 22px; height: 22px; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px;
    display: grid; place-items: center; transform: rotate(45deg) scale(0);
    border: 1px solid var(--gold); background: rgba(16, 10, 22, .92); color: var(--gold-hi);
    box-shadow: 0 0 16px rgba(145, 80, 255, .35); transition: transform .35s var(--ease);
}
.to-top .ico { transform: rotate(-45deg) rotate(180deg); }
.to-top.is-visible { transform: rotate(45deg) scale(1); }
.to-top:hover { background: rgba(145, 80, 255, .35); }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; top: 96px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 12px; width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px;
    background: rgba(16, 10, 22, .97); border: 1px solid var(--line-strong); border-left: 3px solid var(--purple-hi);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .7); font-size: 1rem; color: var(--text);
    animation: toastIn .55s var(--ease) both;
}
.toast > .ico { margin-top: 3px; color: var(--purple-hi); }
.toast span { flex: 1; }
.toast-success { border-left-color: var(--ok); }
.toast-success > .ico { color: var(--ok); }
.toast-error { border-left-color: var(--err); }
.toast-error > .ico { color: var(--err); }
.toast-close { color: var(--text-faint); padding: 2px; }
.toast-close:hover { color: var(--gold-hi); }
.toast.is-leaving { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

.enter-flash {
    position: fixed; inset: 0; z-index: 500; pointer-events: none;
    background: radial-gradient(circle at 50% 45%, #fff 0%, #e6d4ff 25%, #9150ff 60%, #1a0a30 100%);
    animation: enterFade 1.4s cubic-bezier(.3, 0, .2, 1) forwards;
}
@keyframes enterFade { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ---------------------------------------------------------------- reveal la scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.js-off .reveal, .no-js .reveal { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .2s; } .delay-3 { transition-delay: .3s; } .delay-4 { transition-delay: .4s; } .delay-5 { transition-delay: .5s; }

/* ---------------------------------------------------------------- pagina simpla (mentenanta/erori) */
.simple-page { display: grid; place-items: center; min-height: 100vh; padding: 30px; background: radial-gradient(ellipse at 50% 30%, #2a0f45, var(--bg) 70%); }
.simple-wrap { width: min(560px, 100%); text-align: center; }
.simple-logo { width: min(380px, 80%); margin: 0 auto 24px; filter: drop-shadow(0 0 30px rgba(145, 80, 255, .5)); animation: floatY 6s ease-in-out infinite; }
.simple-card { padding: 36px 32px; }
.simple-card h1 { font-size: 2rem; }
.simple-card p { color: var(--text-dim); }
.debug { text-align: left; white-space: pre-wrap; font-size: .8rem; color: var(--err); background: #000; padding: 12px; overflow: auto; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1520px) {
    .nav-link { padding: 10px 11px; }
    .nav-link .ico { display: none; }
}
@media (max-width: 1320px) {
    .nav-link { padding: 10px 8px; letter-spacing: .08em; font-size: .72rem; }
    .header-actions .btn-sm { padding: 9px 14px; letter-spacing: .1em; }
    .brand { width: 112px; }
}
@media (max-width: 1140px) {
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
        display: block; padding: 24px; overflow-y: auto;
        background: rgba(8, 5, 12, .98); backdrop-filter: blur(10px);
        transform: translateX(100%); transition: transform .45s var(--ease);
    }
    .nav-open .main-nav { transform: none; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .nav-link { padding: 16px 12px; font-size: .9rem; border-bottom: 1px solid rgba(214, 178, 110, .1); }
    .nav-link .ico { display: inline-block; opacity: .8; }
    .nav-link::after, .nav-link::before { display: none; }
    .nav-mobile-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
    .nav-toggle { display: block; }
    .hide-mobile { display: none !important; }
    .header-inner { justify-content: space-between; }
    .features-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card.is-featured { grid-column: span 2; grid-row: auto; }
    .news-card.is-featured .news-thumb { min-height: 260px; }
    .classes-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)::before { display: none; }
    .split, .split-3, .dl-hero { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-side { position: static; }
    .cat-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
    .cat-btn { width: auto; white-space: nowrap; margin: 0; }
    .cat-btn .count { display: none; }
    .cta-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 680px) {
    body { font-size: 17px; }
    .container { padding: 0 16px; }
    :root { --header-h: 72px; }
    .brand { width: 104px; }
    .user-name, .lang-switch { display: none; }
    .coin-pill { padding: 6px 10px; font-size: .78rem; }
    .section { padding: 70px 0; }
    .features-grid, .news-grid, .classes-grid { grid-template-columns: 1fr; }
    .news-card.is-featured { grid-column: auto; }
    .news-card.is-featured .news-link { flex-direction: column; }
    .news-card.is-featured .news-thumb { min-height: 0; aspect-ratio: 16 / 9; margin: 8px 8px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { padding: 18px 14px; gap: 12px; }
    .stat-ico { width: 40px; height: 40px; }
    .stat-num { font-size: 1.4rem; }
    .stat + .stat::before { display: none; }
    .cd-box { width: 72px; }
    .cd-num { font-size: 1.9rem; }
    .countdown-boxes { gap: 8px; }
    .form-row { grid-template-columns: 1fr; }
    .auth-card, .frame-pad { padding: 28px 20px; }
    .article-body { padding: 26px 20px 30px; }
    .account-head { grid-template-columns: 1fr; }
    .quick-links { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .modal-item { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .steps { flex-wrap: wrap; gap: 14px; }
    .step-sep { display: none; }
    .items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .item-slot { width: 90px; height: 90px; }
    .item-slot img { width: 60px; height: 60px; }
    .discord-float .df-text { display: none; }
    .discord-float { padding: 6px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-box { min-width: 0; }
    .hero { padding-bottom: 150px; }
    .hero-scenery { height: 170px; }
    .stats-bar { margin-top: -60px; }
}
@media (max-width: 400px) {
    .items-grid { grid-template-columns: 1fr; }
    .quick-links { grid-template-columns: 1fr; }
}

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