/* CS 1.6 Admin Panel - tema intunecata */
:root {
    --bg: #0b0d12;
    --bg-2: #11141b;
    --card: #161a23;
    --card-2: #1c212c;
    --line: #262c3a;
    --text: #e7e9ee;
    --muted: #8b93a7;
    /* culoarea de accent; owner-ul o poate schimba din Setari (vezi App\Support\Branding) */
    --gold: #f0b429;
    --gold-2: #ffd36b;
    --gold-3: #b7791f;
    --gold-rgb: 240,180,41;
    --on-gold: #1a1205;
    --green: #2fbf71;
    --red: #ef4b4b;
    --blue: #4c8dff;
    --purple: #9b6bff;
    --radius: 12px;
    --sidebar: 250px;
    --display: "Rajdhani", "Inter", system-ui, sans-serif;

    --topbar-bg: rgba(11,13,18,.85);
    --overlay: rgba(11,13,18,.72);
    --hero-1: #1a1f2b;
    --hero-2: #12151c;
    --row-hover: rgba(255,255,255,.02);
    --label: #c9cede;
    --btn-hover: #242a37;
    --chip-bg: rgba(0,0,0,.35);
    --alert-ok: #8ae6b4;
    --alert-err: #ff9c9c;
    --danger-text: #ff8a8a;
    --danger-text-2: #ffb0b0;
    --success-text: #6fe0a3;
    --success-text-2: #9df0c2;
    --shadow: 0 12px 30px rgba(0,0,0,.45);
    color-scheme: dark;
}

/* ---------- Tema luminoasa (butonul din bara de sus) ---------- */
:root[data-theme="light"] {
    --bg: #f3f4f7;
    --bg-2: #ffffff;
    --card: #ffffff;
    --card-2: #eef0f4;
    --line: #dfe3ea;
    --text: #1b1f29;
    --muted: #667085;
    --green: #1f9d5a;
    --red: #d63b3b;
    --topbar-bg: rgba(255,255,255,.85);
    --overlay: rgba(243,244,247,.75);
    --hero-1: #ffffff;
    --hero-2: #eceff5;
    --row-hover: rgba(0,0,0,.025);
    --label: #344054;
    --btn-hover: #e2e5eb;
    --chip-bg: rgba(0,0,0,.05);
    --alert-ok: #127a45;
    --alert-err: #b42318;
    --danger-text: #c0392b;
    --danger-text-2: #a5281b;
    --success-text: #127a45;
    --success-text-2: #0d5c34;
    --shadow: 0 12px 30px rgba(16,24,40,.12);
    color-scheme: light;
}
/* textul in culoarea de accent pe fundal alb: varianta mai inchisa, ca sa se citeasca */
:root[data-theme="light"] a,
:root[data-theme="light"] .gold,
:root[data-theme="light"] .nav a.active,
:root[data-theme="light"] .badge.gold,
:root[data-theme="light"] .avatar,
:root[data-theme="light"] .flags b { color: var(--gold-3); }
:root[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(16,24,40,.05); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: .02em; margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .85em; }
small, .muted { color: var(--muted); }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar);
    flex-shrink: 0;
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    padding: 1.25rem 1rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    scrollbar-width: none; /* meniul se deruleaza cu rotita, fara bara vizibila */
}
.sidebar::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1.25rem; }
.brand-logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-3));
    display: grid; place-items: center; color: var(--on-gold); font-weight: 800; font-family: var(--display);
    font-size: 1.2rem;
}
.brand b { font-family: var(--display); font-size: 1.25rem; letter-spacing: .05em; display: block; line-height: 1; }
.brand small { font-size: .75rem; }
/* numele lungi (ex: ROYAL.CSGAMING.PRO) incap intregi langa logo */
.brand b.is-long { font-size: 1rem; letter-spacing: .02em; }
.nav-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 1.1rem .6rem .4rem; }
.nav a {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem .7rem; border-radius: 8px; color: var(--text); margin-bottom: 2px;
}
.nav a svg { width: 18px; height: 18px; opacity: .7; flex-shrink: 0; }
.nav a:hover { background: var(--card); color: var(--text); }
.nav a.active { background: rgba(var(--gold-rgb),.12); color: var(--gold); }
.nav a.active svg { opacity: 1; }
.nav .badge { margin-left: auto; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; gap: 1rem; justify-content: space-between;
    padding: .9rem 1.75rem; border-bottom: 1px solid var(--line); background: var(--topbar-bg);
    backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.content { padding: 1.75rem; max-width: 1400px; width: 100%; margin: 0 auto; }
.footer { margin-top: auto; padding: 1.25rem 1.75rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: .25rem; cursor: pointer; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head p { margin: 0; color: var(--muted); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.section-title { display: flex; align-items: center; gap: .5rem; margin: 1.75rem 0 .9rem; font-size: 1.15rem; }
.section-title::before { content: ""; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }

.stat { position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin: .3rem 0 .15rem; word-break: break-word; }
.stat .hint { color: var(--muted); font-size: .8rem; }
.stat .icon {
    position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center; background: rgba(var(--gold-rgb),.1); color: var(--gold);
}
.stat .icon svg { width: 20px; height: 20px; }
.stat.green .icon { background: rgba(47,191,113,.12); color: var(--green); }
.stat.blue .icon { background: rgba(76,141,255,.12); color: var(--blue); }
.stat.red .icon { background: rgba(239,75,75,.12); color: var(--red); }
.stat.purple .icon { background: rgba(155,107,255,.12); color: var(--purple); }

.hero {
    position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line);
    background:
        radial-gradient(800px 300px at 90% -20%, rgba(var(--gold-rgb),.18), transparent 60%),
        linear-gradient(135deg, var(--hero-1), var(--hero-2));
    padding: 1.75rem; margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2.2rem; }
.hero .ip { display: inline-flex; align-items: center; gap: .5rem; background: var(--chip-bg); border: 1px solid var(--line); padding: .45rem .75rem; border-radius: 8px; }

.progress { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: .6rem; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; transition: width .4s; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600;
    padding: .18rem .55rem; border-radius: 99px; background: var(--card-2); color: var(--muted);
    border: 1px solid var(--line); white-space: nowrap;
}
.badge.green { color: var(--green); background: rgba(47,191,113,.1); border-color: rgba(47,191,113,.25); }
.badge.red { color: var(--red); background: rgba(239,75,75,.1); border-color: rgba(239,75,75,.25); }
.badge.gold { color: var(--gold); background: rgba(var(--gold-rgb),.1); border-color: rgba(var(--gold-rgb),.25); }
.badge.blue { color: var(--blue); background: rgba(76,141,255,.1); border-color: rgba(76,141,255,.25); }
.badge.purple { color: var(--purple); background: rgba(155,107,255,.1); border-color: rgba(155,107,255,.25); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: pulse 1.8s infinite; display: inline-block; }
.live-dot.off { background: var(--red); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--row-hover); }
td.actions { white-space: nowrap; text-align: right; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }

/* ---------- Forms ---------- */
label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; color: var(--label); }
.input, select, textarea {
    width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
    border-radius: 8px; padding: .6rem .75rem; font: inherit; outline: none; transition: border-color .15s;
}
.input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 1rem; }
.field .error { color: var(--red); font-size: .8rem; margin-top: .3rem; }
.field .help { color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1; min-width: 140px; }
.row > .shrink { flex: 0 0 auto; min-width: 0; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .85rem; cursor: pointer; margin: 0; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }

.flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem; }
.flags label {
    display: flex; align-items: center; gap: .55rem; margin: 0; padding: .45rem .6rem; border-radius: 8px;
    background: var(--bg); border: 1px solid var(--line); cursor: pointer; font-weight: 400;
}
.flags label:has(input:checked) { border-color: rgba(var(--gold-rgb),.5); background: rgba(var(--gold-rgb),.06); }
.flags b { font-family: "JetBrains Mono", monospace; color: var(--gold); width: 1ch; }
.flags input { accent-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    border: 1px solid var(--line); background: var(--card-2); color: var(--text);
    padding: .55rem .95rem; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--btn-hover); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-2); color: var(--on-gold); }
.btn-danger { background: rgba(239,75,75,.12); border-color: rgba(239,75,75,.35); color: var(--danger-text); }
.btn-danger:hover { background: rgba(239,75,75,.22); color: var(--danger-text-2); }
.btn-success { background: rgba(47,191,113,.12); border-color: rgba(47,191,113,.35); color: var(--success-text); }
.btn-success:hover { background: rgba(47,191,113,.22); color: var(--success-text-2); }
.btn-sm { padding: .32rem .6rem; font-size: .78rem; }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
form.inline { display: inline; }

/* ---------- Alerts ---------- */
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; border: 1px solid; display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: rgba(47,191,113,.08); border-color: rgba(47,191,113,.3); color: var(--alert-ok); }
.alert-error { background: rgba(239,75,75,.08); border-color: rgba(239,75,75,.3); color: var(--alert-err); }
.alert ul { margin: 0; padding-left: 1.1rem; }

.console {
    background: #05070a; border: 1px solid var(--line); border-radius: 10px; padding: 1rem;
    font-family: "JetBrains Mono", monospace; font-size: .8rem; color: #9fe8b9; white-space: pre-wrap;
    max-height: 380px; overflow: auto; margin: 0;
}

/* ---------- Maps ---------- */
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.map-card {
    position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--hero-1), var(--hero-2));
    padding: 1rem; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between;
}
.map-card.current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.map-card.inactive { opacity: .45; }
.map-card .name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; word-break: break-all; }
.map-card .prefix { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.map-card .tools { display: flex; gap: .3rem; margin-top: .75rem; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .4rem .8rem; border-radius: 8px; color: var(--muted); border: 1px solid transparent; }
.tabs a.active, .tabs a:hover { color: var(--text); background: var(--card); border-color: var(--line); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.avatar {
    width: 34px; height: 34px; border-radius: 8px; background: var(--card-2); display: grid; place-items: center;
    font-weight: 700; color: var(--gold); font-family: var(--display); flex-shrink: 0; text-transform: uppercase;
}
.who { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.who div { min-width: 0; }
.who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.drop { position: relative; display: inline-block; }
details.drop summary { list-style: none; }
details.drop summary::-webkit-details-marker { display: none; }
details.drop .menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 260px;
    background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: .75rem;
    box-shadow: var(--shadow); text-align: left; white-space: normal;
}
.pagination { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: 1rem; }
.pagination a, .pagination span { padding: .35rem .7rem; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.pagination .active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: 100%; max-width: 400px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.text-right { text-align: right; }
.gold { color: var(--gold); } .green { color: var(--green); } .red { color: var(--red); }
.nowrap { white-space: nowrap; }
.cell-clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
    body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
    .menu-btn { display: inline-flex; }
    .topbar { padding: .75rem 1rem; }
    .content { padding: 1rem; }
    .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .span-2 { grid-column: auto; }
    .hero h1 { font-size: 1.6rem; }
    .footer { padding: 1rem; }
}
@media (max-width: 520px) {
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .stat .value { font-size: 1.7rem; }
}
@media (max-width: 520px) { .hide-sm { display: none; } }

/* ---------- Loading page ---------- */
.loader {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center;
    background: radial-gradient(600px 300px at 50% 40%, rgba(var(--gold-rgb),.08), transparent 70%), var(--bg);
    transition: opacity .35s ease, visibility .35s ease;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader.soft { background: var(--overlay); backdrop-filter: blur(3px); }
.loader-box { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.loader-ring { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.loader-ring::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--line); border-top-color: var(--gold);
    animation: spin .9s linear infinite;
}
.loader-ring .brand-logo { width: 46px; height: 46px; font-size: 1.4rem; animation: breathe 1.8s ease-in-out infinite; }
.loader-text { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.loader-text b { color: var(--text); display: block; text-align: center; font-size: 1.1rem; letter-spacing: .08em; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(.9); opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
    .loader-ring::before, .loader-ring .brand-logo { animation: none; }
}

/* ---------- Shop ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.product {
    position: relative; display: flex; flex-direction: column; gap: .75rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem;
    border-top: 3px solid var(--accent, var(--gold));
}
.product.popular { box-shadow: 0 0 0 1px var(--accent, var(--gold)) inset, 0 10px 30px rgba(0,0,0,.35); }
.product .ribbon {
    position: absolute; top: -11px; right: 1rem; background: var(--accent, var(--gold)); color: var(--on-gold);
    font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em;
}
.product .p-name { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--accent, var(--gold)); line-height: 1.1; }
.product .p-price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.product .p-price small { font-size: .9rem; color: var(--muted); font-family: "Inter", sans-serif; font-weight: 500; }
.product ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.product li { padding: .35rem 0 .35rem 1.4rem; position: relative; color: var(--label); font-size: .9rem; }
.product li::before { content: "✓"; position: absolute; left: 0; color: var(--accent, var(--gold)); font-weight: 700; }
.accent-gold { --accent: var(--gold); } .accent-purple { --accent: var(--purple); } .accent-blue { --accent: var(--blue); }
.accent-green { --accent: var(--green); } .accent-red { --accent: var(--red); }
.currency-switch { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.currency-switch a { padding: .35rem .8rem; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: .85rem; }
.currency-switch a.active { background: var(--gold); color: var(--on-gold); }
.pay-options { display: grid; gap: .5rem; }
.pay-options label {
    display: flex; align-items: center; gap: .65rem; margin: 0; padding: .8rem 1rem; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--line); cursor: pointer; font-weight: 500;
}
.pay-options label:has(input:checked) { border-color: var(--gold); background: rgba(var(--gold-rgb),.06); }
.pay-options input { accent-color: var(--gold); }
.status-big { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }

/* ---------- Branding ---------- */
.brand-img { background: none; object-fit: contain; padding: 0; }
.color-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.color-presets label { margin: 0; cursor: pointer; }
.color-presets input { position: absolute; opacity: 0; pointer-events: none; }
.color-presets span {
    display: block; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line);
    background: var(--swatch); transition: transform .1s;
}
.color-presets input:checked + span { border-color: var(--text); transform: scale(1.1); }
.color-presets input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
input[type="color"].input { padding: .2rem; height: 40px; cursor: pointer; }
.logo-preview { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); }

/* ---------- Comutator tema ---------- */
.theme-toggle { padding: .4rem; }
.theme-toggle .theme-icon-dark { display: none; }
:root[data-theme="light"] .theme-toggle .theme-icon-light { display: none; }
:root[data-theme="light"] .theme-toggle .theme-icon-dark { display: inline-flex; }

/* ---------- Toast-uri ---------- */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast {
    display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem .8rem 1rem;
    background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green);
    border-radius: 10px; box-shadow: var(--shadow);
    animation: toast-in .25s ease-out, toast-out .35s ease-in 6s forwards;
}
.toast-error { border-left-color: var(--red); animation: toast-in .25s ease-out, toast-out .35s ease-in 10s forwards; }
.toast:hover { animation-play-state: paused; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.toast-error .toast-dot { background: var(--red); }
.toast-text { flex: 1; }
.toast-close { background: none; border: 0; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.toast-close:hover { color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- Stari goale ---------- */
.empty::before {
    content: ""; display: block; width: 38px; height: 38px; margin: 0 auto .6rem;
    background: var(--muted); opacity: .55;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M22 12h-6l-2 3h-4l-2-3H2%27/%3E%3Cpath d=%27M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z%27/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M22 12h-6l-2 3h-4l-2-3H2%27/%3E%3Cpath d=%27M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.empty .btn { margin-top: .75rem; }

/* ---------- Imagini harti ---------- */
.map-card.has-image {
    background:
        linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.8)),
        var(--map-image) center / cover;
    color: #fff;
}
.map-card.has-image .muted, .map-card.has-image .prefix { color: rgba(255,255,255,.75); }
.hero.has-image {
    background:
        linear-gradient(90deg, var(--hero-2) 25%, color-mix(in srgb, var(--hero-2) 55%, transparent)),
        var(--hero-image) center / cover;
}


/* ---------- Tabele pe telefon: fiecare rand devine un card ---------- */
@media (max-width: 640px) {
    .table-wrap { margin: 0; padding: 0; overflow: visible; }
    .table-wrap table:not(.no-stack) thead { display: none; }
    .table-wrap table:not(.no-stack),
    .table-wrap table:not(.no-stack) tbody,
    .table-wrap table:not(.no-stack) tr,
    .table-wrap table:not(.no-stack) td { display: block; width: 100%; }
    .table-wrap table:not(.no-stack) tr { padding: .65rem 0; border-bottom: 1px solid var(--line); }
    .table-wrap table:not(.no-stack) tr:last-child { border-bottom: 0; }
    .table-wrap table:not(.no-stack) td {
        display: flex; justify-content: space-between; align-items: center; gap: 1rem;
        border: 0; padding: .3rem 0; text-align: right; white-space: normal;
    }
    .table-wrap table:not(.no-stack) td::before {
        content: attr(data-label); color: var(--muted); font-size: .7rem; text-transform: uppercase;
        letter-spacing: .06em; text-align: left; flex-shrink: 0;
    }
    .table-wrap table:not(.no-stack) td[data-label=""]::before { display: none; }
    .table-wrap table:not(.no-stack) td.empty { display: block; text-align: center; }
    .table-wrap table:not(.no-stack) td.empty::before { content: ""; }
    .toasts { right: 1rem; left: 1rem; bottom: 1rem; max-width: none; }
}

/* ---------- Meniuri (Suspenda, + Zile, Ban...) pe telefon: panou jos, pe toata latimea ---------- */
@media (max-width: 640px) {
    details.drop { position: static; }
    details.drop[open] .menu {
        position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; z-index: 60;
        min-width: 0 !important; width: auto; max-height: calc(100vh - 32px); overflow-y: auto;
        box-shadow: 0 0 0 100vmax rgba(0,0,0,.55), var(--shadow);
        animation: sheet-up .18s ease-out;
    }
    details.drop .menu .btn { width: 100%; justify-content: center; margin: .2rem 0; }
    details.drop .menu form.inline { display: block; }
    .table-wrap table:not(.no-stack) td.actions { flex-wrap: wrap; justify-content: flex-end; white-space: normal; gap: .4rem; }
    /* celulele cu mai multe valori (ex: "1 zi" + "expira peste...") raman grupate in dreapta */
    .table-wrap table:not(.no-stack) td { justify-content: flex-end; flex-wrap: wrap; column-gap: .5rem; row-gap: .15rem; }
    .table-wrap table:not(.no-stack) td::before { margin-right: auto; }
    .table-wrap table:not(.no-stack) td.mono::before { font-family: "Inter", system-ui, sans-serif; font-size: .7rem; }
    /* textul lung (ex: payload-ul din jurnalul firewall) se rupe pe mai multe randuri, nu iese din ecran */
    .table-wrap table:not(.no-stack) td.cell-clip { max-width: none; white-space: normal; overflow-wrap: anywhere; text-align: left; }
    .page-head form.row.shrink { min-width: 0 !important; width: 100%; }
    .input, select, textarea { font-size: 16px; } /* iOS nu mai face zoom la focus */
}
@keyframes sheet-up { from { transform: translateY(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { details.drop[open] .menu { animation: none; } }

/* ---------- Pagina Staff ---------- */
.staff-week { min-width: 150px; }
.staff-week .progress { margin-top: .35rem; height: 6px; }
.staff-top { font-size: 1.5rem; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.staff-top > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-table tbody tr { transition: background .15s; }
.staff-row-online { background: linear-gradient(90deg, rgba(47,191,113,.07), transparent 60%); }
.staff-table .badge + .badge { margin-left: .25rem; }
@media (max-width: 640px) {
    .staff-week { min-width: 0; }
    .staff-week .progress { width: 120px; }
}

/* ---------- Oferta de abonament (shop) ---------- */
.sub-offer {
    position: relative; overflow: hidden; align-self: flex-start;
    display: inline-flex; align-items: center; gap: .5rem; flex-wrap: nowrap; line-height: 1.35;
    padding: .45rem .8rem; border-radius: 10px; font-size: .85rem; color: var(--text);
    background: linear-gradient(135deg, rgba(var(--gold-rgb), .16), rgba(47, 191, 113, .1));
    border: 1px solid rgba(var(--gold-rgb), .45);
    box-shadow: 0 0 0 0 rgba(var(--gold-rgb), .35);
    animation: sub-glow 2.6s ease-in-out infinite;
}
.sub-offer svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; animation: sub-spin 4s linear infinite; }
.sub-offer b { color: var(--gold); }
.sub-offer em, .sub-save {
    font-style: normal; font-weight: 700; font-size: .72rem; letter-spacing: .04em;
    padding: .12rem .45rem; border-radius: 99px; background: var(--green); color: #06210f;
}
.sub-save { margin-left: .4rem; vertical-align: middle; }
/* luminita care trece peste eticheta */
.sub-offer::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: skewX(-20deg); animation: sub-shine 3.2s ease-in-out infinite;
}
.pay-options label.plan-monthly { border-color: rgba(var(--gold-rgb), .45); background: linear-gradient(135deg, rgba(var(--gold-rgb), .08), transparent 70%); }
@keyframes sub-glow { 50% { box-shadow: 0 0 18px 0 rgba(var(--gold-rgb), .28); } }
@keyframes sub-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes sub-spin { 0%, 70% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .sub-offer, .sub-offer svg, .sub-offer::after { animation: none; }
}

/* ---------- Banlist: durata si timpul ramas ---------- */
.ban-time { min-width: 150px; }
.ban-len { display: inline-block; font-weight: 600; font-size: .85rem; }
.ban-len.perm {
    color: var(--red); padding: .1rem .55rem; border-radius: 99px;
    background: rgba(239, 75, 75, .1); border: 1px solid rgba(239, 75, 75, .35); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
}
.ban-left { font-size: .75rem; margin-top: .2rem; }
.ban-left b { color: var(--gold); font-variant-numeric: tabular-nums; }
.ban-progress { height: 5px; margin-top: .35rem; max-width: 170px; }
.ban-progress > span { background: linear-gradient(90deg, var(--red), var(--gold)); }
.ban-reason { display: inline-block; padding: .15rem .55rem; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); font-size: .82rem; }
.ban-avatar { position: relative; }
.ban-avatar.on { color: var(--red); background: rgba(239, 75, 75, .1); }
.banlist tr.ban-ended td { opacity: .55; }
.banlist tr.ban-ended:hover td { opacity: 1; }
.status-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: .35rem; vertical-align: middle; }
@media (max-width: 640px) {
    .ban-time { min-width: 0; text-align: right; }
    .ban-progress { margin-left: auto; width: 120px; }
}

/* ---------- Termeni si conditii (shop) ---------- */
.terms-box { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; background: var(--card-2); }
.terms-box-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .8rem; }
.terms-box-head > svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(var(--gold-rgb), .12); color: var(--gold); flex-shrink: 0; }
.terms-points { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.terms-points li { display: flex; gap: .6rem; align-items: flex-start; font-size: .87rem; color: var(--muted); line-height: 1.45; }
.terms-points li b { color: var(--text); }
.terms-points li svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: .1rem; }
.terms-points li[hidden] { display: none; }
.terms-link { font-size: .78rem; margin-left: .6rem; }
.terms-link:hover { color: var(--text); }
.terms-accept { margin-top: 1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); align-items: flex-start; gap: .6rem; transition: border-color .2s, background .2s; font-size: .88rem; line-height: 1.45; }
.terms-accept input { margin-top: .2rem; flex-shrink: 0; }
.terms-accept a { color: var(--gold); text-decoration: underline; }
.terms-accept:has(input:checked), .terms-accept.accepted { border-color: rgba(47, 191, 113, .5); background: rgba(47, 191, 113, .06); }
.terms-accept.has-error { border-color: rgba(239, 75, 75, .6); }
.pay-locked-hint { font-size: .8rem; text-align: center; margin: .5rem 0 0; }
.pay-locked-hint[hidden] { display: none; }
button[data-pay-button]:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }

/* documentul (fereastra si pagina) */
.terms-doc { line-height: 1.7; color: var(--muted); font-size: .94rem; }
.terms-doc h3 { color: var(--text); font-size: 1.1rem; margin: 1.6rem 0 .5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.terms-doc h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.terms-doc p { margin: 0 0 .7rem; }
.terms-doc ul { margin: 0 0 .7rem; padding-left: 1.2rem; }
.terms-doc li { margin-bottom: .35rem; }
.terms-doc li::marker { color: var(--gold); }
.terms-page { max-width: 820px; padding: 2rem 2.2rem; }

.terms-dialog {
    width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 820px); padding: 0; border: 1px solid var(--line);
    border-radius: 16px; background: var(--card); color: var(--text); box-shadow: var(--shadow);
}
.terms-dialog[open] { display: flex; flex-direction: column; animation: terms-in .18s ease-out; }
.terms-dialog::backdrop { background: rgba(5, 6, 9, .7); backdrop-filter: blur(3px); }
.terms-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.terms-dialog-head h2 { margin: 0; font-size: 1.3rem; }
.terms-dialog-body { overflow-y: auto; padding: 1.3rem 1.5rem; flex: 1; }
.terms-dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.3rem; border-top: 1px solid var(--line); background: var(--card-2); }
.terms-dialog-foot span { font-size: .8rem; }
@keyframes terms-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .terms-dialog[open] { animation: none; } }
@media (max-width: 640px) {
    .terms-page { padding: 1.3rem 1.1rem; }
    .terms-dialog { max-height: 92vh; }
    .terms-dialog-foot { flex-direction: column; align-items: stretch; text-align: center; }
    .terms-link { display: block; margin: .5rem 0 0; }
}
@media print {
    .sidebar, .topbar, .footer, .page-head .btn-group { display: none !important; }
    .terms-page { border: 0; max-width: none; padding: 0; }
    .terms-doc, .terms-doc h3 { color: #000; }
}

/* ---------- Lista cu bife verzi: <ul class="checks"> ---------- */
.checks { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.checks li::before {
    content: "✓"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(47, 191, 113, .12); color: var(--green); font-size: .72rem; font-weight: 700; margin-top: .12rem;
}

/* ---------- Avatare jucatori (poza Steam sau initiala colorata) ---------- */
.p-avatar {
    --size: 36px;
    position: relative; width: var(--size); height: var(--size); border-radius: 22%; flex-shrink: 0;
    display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: calc(var(--size) * .44);
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4);
    background: linear-gradient(135deg, hsl(var(--hue, 40) 65% 50%), hsl(calc(var(--hue, 40) + 45) 60% 32%));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.25);
}
/* poza Steam: colturi rotunjite si un contur fin, ca pozele inchise sa nu se piarda pe fundal */
.p-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.p-avatar.has-img { background: var(--card-2); }
.p-avatar.has-img::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
/* avatarul are mereu marimea lui fixa, si in .row (unde copiii primesc flex:1 si min-width:140px) */
.row > .p-avatar, .p-avatar { flex: 0 0 auto; min-width: 0; }
.p-avatar.sm { --size: 28px; }
.p-avatar.md { --size: 46px; }
.p-avatar.lg { --size: 84px; }
.p-avatar.xl { --size: 112px; }
.p-avatar-online {
    position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; z-index: 1;
    background: var(--green); border: 2.5px solid var(--card); animation: pulse 1.8s infinite;
}
.player-badges { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.player-badges:empty { display: none; }
.player-badges .badge svg { width: 12px; height: 12px; }

/* ---------- Jucatori online: tabela de scor ---------- */
.scoreboard { padding: 0; overflow: hidden; }
.sb-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.4rem 1.4rem 1.2rem;
    background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); border-bottom: 1px solid var(--line);
}
.sb-head.has-image {
    background: linear-gradient(90deg, rgba(11,13,18,.92) 20%, rgba(11,13,18,.45)), var(--map-image) center / cover;
    color: #fff; min-height: 130px;
}
.sb-map { font-family: var(--display); font-size: 1.9rem; font-weight: 700; margin-top: .5rem; line-height: 1; }
.sb-count { text-align: right; font-family: var(--display); min-width: 130px; }
.sb-count b { font-size: 2.2rem; color: var(--gold); line-height: 1; }
.sb-count > span { font-size: 1.1rem; opacity: .75; }
.sb-count .progress { margin-top: .45rem; background: rgba(255,255,255,.12); }
.sb-cols, .sb-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 62px 62px 62px 56px 112px; align-items: center; gap: .75rem; padding: 0 1.2rem; }
.sb-cols { padding-top: .8rem; padding-bottom: .5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.sb-cols span:nth-child(n+3) { text-align: right; }
.sb-list { list-style: none; margin: 0; padding: 0 0 .5rem; }
.sb-row { padding-top: .7rem; padding-bottom: .7rem; border-top: 1px solid var(--line); transition: background .15s; }
.sb-row:hover { background: var(--row-hover); }
.sb-row.is-lead { background: linear-gradient(90deg, rgba(var(--gold-rgb),.1), transparent 70%); box-shadow: inset 3px 0 0 var(--gold); }
.sb-row .who b { font-size: .98rem; }
.sb-pos { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--muted); text-align: center; }
.sb-row.is-lead .sb-pos { color: var(--gold); }
.sb-score { text-align: right; font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.sb-time { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-time .progress { display: block; height: 5px; margin-top: .35rem; }
.sb-num { text-align: right; font-family: var(--display); font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.sb-num.sb-score { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.sb-kd.is-good { color: var(--green); }
.sb-ping.ping-good { color: var(--green); }
.sb-ping.ping-ok { color: var(--gold); }
.sb-ping.ping-bad { color: var(--red); }

/* echipele: scorul meciului, etichete si bara colorata pe rand */
.sb-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.sb-team { padding: 1rem 1.4rem; text-align: center; }
.sb-team small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.sb-team b { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1.05; }
.sb-team span { font-size: .8rem; color: var(--muted); }
.sb-team.team-ct { background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 14%, transparent), transparent); }
.sb-team.team-t { background: linear-gradient(270deg, color-mix(in srgb, var(--red) 14%, transparent), transparent); }
.sb-team.team-ct small, .sb-team.team-ct b { color: var(--blue); }
.sb-team.team-t small, .sb-team.team-t b { color: var(--red); }
.sb-vs { font-family: var(--display); font-weight: 700; color: var(--muted); padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; }
.team-chip, .dead-chip { display: inline-flex; align-items: center; padding: .05rem .45rem; border-radius: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.team-chip.team-ct { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.team-chip.team-t { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.team-chip.team-spec { background: var(--card-2); color: var(--muted); }
.dead-chip { background: var(--card-2); color: var(--muted); text-transform: uppercase; }
.sb-row.team-ct:not(.is-lead):not(.is-staff) { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--blue) 60%, transparent); }
.sb-row.team-t:not(.is-lead):not(.is-staff) { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--red) 60%, transparent); }
.sb-row.is-dead .who, .sb-row.is-dead .sb-num { opacity: .55; }
.sb-row[hidden] { display: none; }

/* bara de filtre / cautare / sortare */
.sb-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); }
.sb-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.sb-filters button { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.sb-filters button span { font-size: .72rem; padding: 0 .4rem; border-radius: 99px; background: var(--card-2); }
.sb-filters button:hover { color: var(--text); }
.sb-filters button.is-active { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.sb-filters button.is-active span { background: rgba(0,0,0,.18); }
.sb-filters button.team-ct.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.sb-filters button.team-t.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.sb-tools { display: flex; gap: .5rem; flex: 1 1 280px; justify-content: flex-end; }
.sb-tools .input { width: auto; min-width: 0; margin: 0; }
.sb-tools input { flex: 1 1 160px; max-width: 240px; }
.alert-info { background: rgba(var(--gold-rgb),.07); border-color: rgba(var(--gold-rgb),.3); color: var(--text); }

/* ---------- Top jucatori: podium (locul 1 la mijloc, mai inalt) ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; margin: 1.2rem 0 1.4rem; }
.podium-place {
    --medal: var(--gold);
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
    padding: 1.9rem 1rem 1.2rem; min-width: 0;
    background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--medal) 18%, transparent), transparent 70%), var(--card);
    border: 1px solid color-mix(in srgb, var(--medal) 40%, var(--line)); border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease;
}
.podium-place:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.podium-place.place-1 { grid-area: 1 / 2; padding-top: 2.4rem; padding-bottom: 1.6rem; }
.podium-place.place-2 { grid-area: 1 / 1; }
.podium-place.place-3 { grid-area: 1 / 3; }
.podium-place.place-2 { --medal: #c3cad6; }
.podium-place.place-3 { --medal: #d08a4a; }
.podium-place .p-avatar {
    border-radius: 50%; margin-bottom: .35rem;
    box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--medal), 0 10px 30px color-mix(in srgb, var(--medal) 35%, transparent);
}
.podium-place .p-avatar.has-img::after { box-shadow: none; }
.podium-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.1rem; margin-top: .3rem; }
.podium-place .player-badges { justify-content: center; }
.podium-medal {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .75rem; border-radius: 99px; font-family: var(--display); font-weight: 700; font-size: .9rem;
    background: var(--medal); color: #1a1205; box-shadow: 0 4px 14px color-mix(in srgb, var(--medal) 45%, transparent);
}
.podium-medal svg { width: 14px; height: 14px; }
.podium-hours { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--medal); line-height: 1; margin-top: .35rem; }
.podium-hours small { font-size: .9rem; opacity: .75; margin-left: 1px; }
.place-1 .podium-hours { font-size: 2.1rem; }
.podium-meta { font-size: .78rem; color: var(--muted); }
.steam-link {
    margin-top: .45rem; font-size: .75rem; font-weight: 600; padding: .25rem .7rem; border-radius: 99px;
    border: 1px solid var(--line); color: var(--muted); background: var(--card-2);
}
.steam-link:hover { color: var(--text); border-color: var(--medal); }

/* ---------- Top jucatori: lista de la locul 4 ---------- */
.rank-card { padding: 0; overflow: hidden; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-row {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 80px minmax(140px, 200px); align-items: center; gap: .9rem;
    padding: .85rem 1.2rem; border-top: 1px solid var(--line); transition: background .15s;
}
.rank-row:first-child { border-top: 0; }
.rank-row:hover { background: var(--row-hover); }
.rank-pos { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--muted); text-align: center; }
.rank-meta { display: block; color: var(--muted); font-size: .76rem; margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-sessions { text-align: center; line-height: 1.1; }
.rank-sessions small, .rank-hours small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.rank-sessions small { display: block; }
.rank-hours { text-align: right; }
.rank-hours b { font-family: var(--display); font-size: 1.15rem; }
.rank-hours .progress { margin-top: .35rem; height: 6px; }
.rank-card + .pagination, .podium + .pagination { margin-top: 1rem; }

@media (max-width: 760px) {
    .podium { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 1.4rem; }
    .podium-place.place-1, .podium-place.place-2, .podium-place.place-3 { grid-area: auto; }
    .rank-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .rank-sessions { display: none; }
    .rank-hours { min-width: 90px; }
}
@media (max-width: 640px) {
    .sb-head { flex-direction: column; align-items: flex-start; }
    .sb-count { text-align: left; width: 100%; }
    .sb-cols { display: none; }
    .sb-row {
        grid-template-columns: 26px repeat(4, minmax(0, 1fr)); row-gap: .5rem; padding: .7rem .9rem;
        grid-template-areas: "pos who who who score" ". deaths kd ping time";
    }
    .sb-pos { grid-area: pos; }
    .sb-row .who { grid-area: who; }
    .sb-score { grid-area: score; }
    .sb-deaths { grid-area: deaths; }
    .sb-kd { grid-area: kd; }
    .sb-ping { grid-area: ping; }
    .sb-time { grid-area: time; }
    .sb-deaths, .sb-kd, .sb-ping, .sb-time { text-align: left; font-size: .9rem; }
    .sb-deaths::before, .sb-kd::before, .sb-ping::before, .sb-time::before {
        content: attr(data-label); display: block; font-family: var(--font, inherit); font-size: .62rem; font-weight: 600;
        text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
    }
    .sb-time { font-size: .8rem; }
    .sb-match .sb-team { padding: .8rem .6rem; }
    .sb-team b { font-size: 2rem; }
    .sb-tools { flex-basis: 100%; }
    .sb-tools input { max-width: none; }
    .rank-row { padding: .75rem .9rem; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .podium-place, .sb-row, .rank-row { transition: none; }
    .p-avatar-online { animation: none; }
}

/* ---------- Inel colorat dupa grad in jurul avatarului (staff) ---------- */
.p-avatar[class*="ring-"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ring, var(--gold)), 0 4px 14px color-mix(in srgb, var(--ring, var(--gold)) 30%, transparent); }
.p-avatar.ring-gold { --ring: var(--gold); }
.p-avatar.ring-red { --ring: var(--red); }
.p-avatar.ring-green { --ring: var(--green); }
.p-avatar.ring-blue { --ring: var(--blue); }
.p-avatar.ring-purple { --ring: var(--purple); }

/* ---------- Dashboard: jucatori conectati (carduri) ---------- */
.live-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.live-players > .empty { grid-column: 1 / -1; }
.live-player {
    display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; min-width: 0;
    background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
    transition: transform .15s ease, border-color .15s ease;
    animation: row-in .35s ease both;
}
.live-player:hover { transform: translateY(-2px); border-color: rgba(var(--gold-rgb),.35); }
.live-player.is-lead { background: linear-gradient(120deg, rgba(var(--gold-rgb),.14), var(--card-2) 65%); border-color: rgba(var(--gold-rgb),.4); }
.live-player-info { flex: 1; min-width: 0; }
.live-player-info > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-player-score { text-align: right; line-height: 1.1; flex-shrink: 0; }
.live-player-score b { display: block; font-family: var(--display); font-size: 1.4rem; }
.live-player.is-lead .live-player-score b { color: var(--gold); }
.live-player-score small { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }

/* ---------- Dashboard: top jucatori (mini clasament) ---------- */
.mini-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mini-rank-row { --medal: var(--muted); display: flex; align-items: center; gap: .65rem; padding: .55rem .5rem; border-radius: 10px; transition: background .15s; }
.mini-rank-row:hover { background: var(--row-hover); }
.mini-rank-row.place-1 { --medal: var(--gold); }
.mini-rank-row.place-2 { --medal: #c3cad6; }
.mini-rank-row.place-3 { --medal: #d08a4a; }
.mini-rank-pos {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    font-family: var(--display); font-weight: 700; font-size: .85rem;
    color: var(--medal); border: 1.5px solid color-mix(in srgb, var(--medal) 60%, transparent);
}
.mini-rank-row.place-1 .mini-rank-pos, .mini-rank-row.place-2 .mini-rank-pos, .mini-rank-row.place-3 .mini-rank-pos { background: var(--medal); color: #1a1205; border-color: transparent; }
.mini-rank-row.place-1 .p-avatar, .mini-rank-row.place-2 .p-avatar, .mini-rank-row.place-3 .p-avatar { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--medal); }
.mini-rank-info { flex: 1; min-width: 0; }
.mini-rank-info > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.mini-rank-info .progress { display: block; height: 4px; margin-top: .35rem; }
.mini-rank-hours { font-family: var(--display); font-weight: 700; color: var(--medal); flex-shrink: 0; }
.mini-rank-row:not(.place-1):not(.place-2):not(.place-3) .mini-rank-hours { color: var(--text); }

/* ---------- Jucatori online: rezumat + randuri staff + animatie ---------- */
.sb-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--line); }
.sb-summary span { display: block; font-size: .78rem; color: var(--gold); font-weight: 600; }
.sb-summary > div { padding: .8rem 1.2rem; min-width: 0; }
.sb-summary > div + div { border-left: 1px solid var(--line); }
.sb-summary small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.sb-summary b { display: block; font-family: var(--display); font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-row { animation: row-in .35s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
.sb-row.is-staff:not(.is-lead) { box-shadow: inset 3px 0 0 var(--staff-color, var(--gold)); }
.sb-row.staff-red { --staff-color: var(--red); }
.sb-row.staff-green { --staff-color: var(--green); }
.sb-row.staff-blue { --staff-color: var(--blue); }
.sb-row.staff-purple { --staff-color: var(--purple); }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 900px) { .live-players { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .sb-summary { grid-template-columns: 1fr; }
    .sb-summary > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .live-player, .sb-row { animation: none; } }

/* ---------- Text doar pentru cititoarele de ecran ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Chatbot AI (bula din colt) ---------- */
body:has(.chatbot) .toasts { bottom: 5.5rem; }
.chatbot { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 250; }
.chatbot-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-3)); color: var(--on-gold);
    box-shadow: 0 10px 28px rgba(var(--gold-rgb), .35), 0 2px 6px rgba(0,0,0,.3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.chatbot-toggle:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(var(--gold-rgb), .45); }
.chatbot-toggle svg { width: 24px; height: 24px; }
.chatbot-icon-close, .chatbot.is-open .chatbot-icon-open { display: none; }
.chatbot.is-open .chatbot-icon-close { display: block; }
.chatbot-window {
    position: absolute; right: 0; bottom: calc(100% + .75rem); width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 7rem));
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
    animation: chat-in .22s ease-out;
}
.chatbot-window[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.chatbot-head {
    display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), .16), transparent 70%), var(--card-2); border-bottom: 1px solid var(--line);
}
.chatbot-head > div { flex: 1; min-width: 0; }
.chatbot-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatbot-head small { color: var(--muted); font-size: .75rem; }
.chatbot-avatar {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-3)); color: var(--on-gold); font-family: var(--display); font-weight: 700;
}
.chatbot-clear { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: .25rem .55rem; font-size: .75rem; cursor: pointer; }
.chatbot-clear:hover { color: var(--text); border-color: var(--gold); }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; scroll-behavior: smooth; }
.chat-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; animation: row-in .2s ease both; }
.chat-msg.bot { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--gold), var(--gold-3)); color: var(--on-gold); border-bottom-right-radius: 4px; }
.chat-msg.error { border-color: rgba(239,75,75,.4); color: var(--danger-text); }
.chat-msg a { color: var(--gold); text-decoration: underline; }
.chat-li { display: block; padding-left: .9rem; position: relative; }
.chat-li::before { content: "•"; position: absolute; left: 0; color: var(--gold); }
.chat-msg.typing { display: flex; gap: .3rem; padding: .75rem .9rem; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chatbot-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chatbot-suggestions[hidden] { display: none; }
.chatbot-suggestions button {
    background: var(--card-2); border: 1px solid var(--line); color: var(--text); border-radius: 99px;
    padding: .3rem .7rem; font-size: .78rem; cursor: pointer; transition: border-color .15s;
}
.chatbot-suggestions button:hover { border-color: var(--gold); }
.chatbot-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.chatbot-form input {
    flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text);
    border-radius: 10px; padding: .6rem .8rem; font: inherit; font-size: .9rem;
}
.chatbot-form input:focus { outline: none; border-color: var(--gold); }
.chatbot-form .btn { padding: .55rem .7rem; }
.chatbot-form .btn svg { width: 18px; height: 18px; }
.chatbot-note { margin: 0; padding: 0 .9rem .6rem; font-size: .68rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
    .chatbot { right: 1rem; bottom: 1rem; }
    .chatbot-window { position: fixed; inset: auto .5rem 5.25rem; width: auto; height: min(70vh, calc(100vh - 7rem)); }
    body:has(.chatbot) .toasts { bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) { .chatbot-window, .chat-msg, .chat-msg.typing span { animation: none; } }
/* robotelul si mesajul de bun venit */
.chatbot-toggle { position: relative; }
.chatbot-toggle .chatbot-icon-open { width: 30px; height: 30px; }
.chatbot:not(.is-open) .chatbot-toggle { animation: robot-float 3.2s ease-in-out infinite; }
.chatbot:not(.is-open) .chatbot-toggle:hover { animation: none; }
.robot-eyes { transform-box: fill-box; transform-origin: center; animation: robot-blink 4.5s infinite; }
.robot-antenna { animation: robot-antenna 2.2s ease-in-out infinite; }
@keyframes robot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes robot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes robot-antenna { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.chatbot-ping {
    position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--green); border: 2px solid var(--card); display: none;
}
.chatbot.has-teaser .chatbot-ping { display: block; animation: robot-ping 1.6s ease-out infinite; }
@keyframes robot-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.chatbot-avatar svg { width: 22px; height: 22px; }
.chatbot-status { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: .2rem; vertical-align: 1px; }
.chatbot-teaser {
    position: absolute; right: 0; bottom: calc(100% + .8rem); width: max-content; max-width: min(270px, calc(100vw - 2.5rem));
    background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow);
    animation: teaser-in .35s cubic-bezier(.2, .9, .3, 1.3) both;
}
.chatbot-teaser[hidden] { display: none; }
.chatbot-teaser::after {
    content: ""; position: absolute; right: 20px; bottom: -7px; width: 12px; height: 12px; background: var(--card);
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}
@keyframes teaser-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.chatbot-teaser-body {
    display: flex; gap: .55rem; align-items: flex-start; padding: .8rem 2rem .8rem .9rem; background: none; border: 0;
    color: var(--text); font: inherit; font-size: .88rem; line-height: 1.45; text-align: left; cursor: pointer;
}
.chatbot-teaser-wave { font-size: 1.15rem; line-height: 1.2; display: inline-block; transform-origin: 70% 70%; animation: teaser-wave 1.8s ease-in-out 2; }
@keyframes teaser-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.chatbot-teaser-close {
    position: absolute; top: .35rem; right: .4rem; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer;
    background: none; color: var(--muted); font-size: 1.1rem; line-height: 1;
}
.chatbot-teaser-close:hover { color: var(--text); background: var(--card-2); }
/* roboțelul "doarme" cand pagina nu e atinsa: mai mic, aproape transparent, cu ochii inchisi */
.chatbot-toggle { transition: transform .2s ease, box-shadow .2s ease, opacity .6s ease, scale .6s ease; }
.chatbot.is-asleep .chatbot-toggle { opacity: var(--chat-sleep-opacity, .28); scale: .78; animation: none; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.chatbot.is-asleep .robot-eyes { animation: none; transform: scaleY(.15); }
.chatbot.is-asleep .robot-antenna { animation: none; opacity: .4; }
.chatbot.is-asleep .chatbot-toggle:hover, .chatbot.is-asleep .chatbot-toggle:focus-visible { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) {
    .chatbot:not(.is-open) .chatbot-toggle, .robot-eyes, .robot-antenna, .chatbot.has-teaser .chatbot-ping, .chatbot-teaser, .chatbot-teaser-wave { animation: none; }
}

/* chatbot personalizat din AdminCP: marime, pozitie, poza, fara animatii, ascuns pe telefon */
.chatbot .chatbot-toggle { width: var(--chat-size, 56px); height: var(--chat-size, 56px); }
.chatbot.icon-bubble .chatbot-toggle .chatbot-icon-open { width: 26px; height: 26px; }
.chatbot-toggle img.chatbot-icon-open { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chatbot.icon-custom .chatbot-toggle, .chatbot.icon-logo .chatbot-toggle { padding: 3px; overflow: visible; }
.chatbot-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chatbot.is-left { right: auto; left: 1.25rem; }
.chatbot.is-left .chatbot-window, .chatbot.is-left .chatbot-teaser { right: auto; left: 0; }
.chatbot.is-left .chatbot-teaser { border-radius: 16px 16px 16px 4px; }
.chatbot.is-left .chatbot-teaser::after { right: auto; left: 20px; }
.chatbot.is-left .chatbot-ping { right: auto; left: 2px; }
.chatbot.no-motion .chatbot-toggle, .chatbot.no-motion .robot-eyes, .chatbot.no-motion .robot-antenna,
.chatbot.no-motion .chatbot-teaser-wave, .chatbot.no-motion .chatbot-ping { animation: none !important; }
@media (max-width: 640px) {
    .chatbot.is-left { left: 1rem; }
    .chatbot.hide-on-mobile { display: none; }
}

/* AdminCP → Chatbot AI: previzualizarea bulei */
.chat-icon-choices { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.chat-preview-card { align-self: start; position: sticky; top: 1rem; }
.chat-preview {
    position: relative; height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
    background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 14px 14px, var(--card-2);
}
.chat-preview-head {
    position: absolute; top: .8rem; left: .8rem; right: .8rem; display: flex; gap: .6rem; align-items: center;
    padding: .55rem .7rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.chat-preview-head b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-preview-head small { color: var(--muted); font-size: .72rem; }
.chat-preview-head > div { min-width: 0; }
.chat-preview-avatar {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
    background: linear-gradient(135deg, var(--gold), var(--gold-3)); color: var(--on-gold);
}
.chat-preview-avatar svg { width: 21px; height: 21px; }
.chat-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-preview-button {
    position: absolute; right: 1rem; bottom: 1rem; width: var(--chat-size, 56px); height: var(--chat-size, 56px); border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--gold), var(--gold-3)); color: var(--on-gold);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--gold) 35%, transparent), 0 2px 6px rgba(0,0,0,.3);
    transition: width .2s ease, height .2s ease;
}
.chat-preview-button svg { width: 55%; height: 55%; }
.chat-preview-button img { width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; object-fit: cover; }
.chat-preview-teaser {
    position: absolute; right: 1rem; bottom: calc(1rem + var(--chat-size, 56px) + .7rem); max-width: 80%;
    padding: .6rem .8rem; font-size: .8rem; line-height: 1.4; background: var(--card); border: 1px solid var(--line);
    border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow);
}
.chat-preview.is-left .chat-preview-button, .chat-preview.is-left .chat-preview-teaser { right: auto; left: 1rem; }
.chat-preview.is-left .chat-preview-teaser { border-radius: 14px 14px 14px 4px; }
@media (max-width: 760px) { .chat-preview-card { position: static; } }

/* ---------- Shop: sectiuni (grade / skinuri arme / modele player) ---------- */
.shop-tabs a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.shop-tabs a svg { width: 16px; height: 16px; }
.shop-tab-count { font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.shop-tabs a.active .shop-tab-count { background: rgba(var(--gold-rgb), .15); color: var(--gold); }
/* skinuri arme pe categorii (pusti, lunete, pistoale...) */
.weapon-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.weapon-chips a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--label); font-size: .85rem; text-decoration: none; }
.weapon-chips a:hover { border-color: var(--muted); }
.weapon-chips a.active { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.weapon-chips span { font-size: .7rem; color: var(--muted); }
@media (max-width: 640px) {
    /* pe telefon filele stau pe un rand si se deruleaza orizontal */
    .shop-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .shop-tabs a { flex: 0 0 auto; }
}

/* ---------- Shop: efecte "cel mai vandut", reduceri, cupon ---------- */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --spin: 360deg; } }
@keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 0 1px var(--accent, var(--gold)) inset, 0 10px 30px rgba(0,0,0,.35), 0 0 0 rgba(var(--gold-rgb), 0); }
    50% { box-shadow: 0 0 0 1px var(--accent, var(--gold)) inset, 0 10px 30px rgba(0,0,0,.35), 0 0 28px rgba(var(--gold-rgb), .28); } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes badge-pop { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.08); } }

/* cel mai vandut: contur care se roteste + stralucire */
.product.popular { animation: glow-pulse 3.2s ease-in-out infinite; }
.product.popular::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--spin), transparent 0 55%, var(--accent, var(--gold)) 72%, #fff 78%, var(--accent, var(--gold)) 84%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: spin-border 4s linear infinite;
}
.product .ribbon { overflow: hidden; z-index: 3; box-shadow: 0 4px 14px rgba(var(--gold-rgb), .35); }
.product.popular .ribbon::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: shine 2.8s ease-in-out infinite;
}

/* reducere: eticheta -X%, pret taiat, economie, numaratoare */
.product.on-sale { border-top-color: var(--red); }
.product.on-sale:not(.popular) { box-shadow: 0 0 0 1px rgba(239,68,68,.35) inset, 0 10px 30px rgba(239,68,68,.12); }
.sale-badge {
    position: absolute; top: -12px; left: 1rem; z-index: 3; overflow: hidden;
    background: linear-gradient(135deg, #ff4d4d, #ff8a00); color: #fff; font-weight: 800; font-size: .85rem;
    padding: .25rem .65rem; border-radius: 10px; box-shadow: 0 6px 18px rgba(255,77,77,.45); animation: badge-pop 1.8s ease-in-out infinite;
}
.sale-badge::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shine 2.2s ease-in-out infinite; }
.p-price .p-old { display: block; margin-bottom: .25rem; line-height: 1.2; font-size: .95rem; color: var(--muted); font-family: "Inter", sans-serif; font-weight: 500; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.p-price .p-new { color: #ff5a5a; text-shadow: 0 0 18px rgba(255,90,90,.35); }
.sale-pill { display: inline-block; vertical-align: middle; margin-left: .4rem; font-size: .8rem; font-family: "Inter", sans-serif; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff4d4d, #ff8a00); padding: .15rem .5rem; border-radius: 8px; }
.sale-save { margin-top: -.4rem; font-size: .8rem; font-weight: 600; color: var(--green); }
.sale-timer { font-size: .8rem; color: #ffb4a8; background: rgba(255,77,77,.1); border: 1px solid rgba(255,77,77,.3); padding: .3rem .6rem; border-radius: 8px; }
.sale-timer b { font-variant-numeric: tabular-nums; color: #fff; }

/* ---------- Cupon: banner promovat / aplicat + campul "ai un cod?" ---------- */
.coupon-banner {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; border-radius: 16px;
    background: linear-gradient(110deg, #ff7a1a 0%, var(--gold) 55%, var(--gold-2) 100%); color: #1a1205;
    box-shadow: 0 14px 34px -20px rgba(255,122,26,.8);
}
/* lumina care trece peste banner */
.coupon-banner::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%);
    transform: translateX(-100%); animation: coupon-shine 3.6s ease-in-out infinite;
}
@keyframes coupon-shine { 55%, 100% { transform: translateX(100%); } }
/* crestaturile de bilet, pe linia punctata dupa procent */
.coupon-pct {
    position: relative; font-family: var(--display); font-size: 3rem; line-height: .9; font-weight: 700; letter-spacing: -.01em;
    padding-right: 1.2rem; border-right: 2px dashed rgba(26,18,5,.35);
}
.coupon-pct small { display: block; color: inherit; opacity: .75; font-family: "Inter", sans-serif; font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-top: .3rem; }
.coupon-text { flex: 1; min-width: 190px; display: flex; flex-direction: column; gap: .15rem; }
.coupon-text b { font-size: 1.08rem; }
.coupon-text span { font-size: .84rem; opacity: .8; }
.coupon-urgency {
    align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem;
    font-style: normal; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
    background: rgba(26,18,5,.85); color: #ffd36b;
}
.coupon-urgency .live-dot { background: #ff5a5a; box-shadow: 0 0 0 0 rgba(255,90,90,.6); }
.coupon-code {
    display: flex; align-items: center; gap: .4rem; border-radius: 12px; padding: .35rem .35rem .35rem .5rem;
    background: #11141b; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.coupon-code b, .coupon-code-value {
    font-family: "JetBrains Mono", monospace; font-weight: 700; letter-spacing: .14em; color: var(--gold-2); font-size: 1rem;
    padding: .2rem .5rem; margin-right: .2rem;
}
.coupon-code-value { background: none; border: 1px dashed rgba(255,211,107,.45); border-radius: 8px; cursor: copy; }
.coupon-code-value:hover { border-color: var(--gold-2); }
.coupon-code svg { width: 18px; height: 18px; color: #6be3a2; margin-left: .3rem; }
.coupon-code .btn { background: var(--gold); color: #1a1205; border-color: transparent; }
.coupon-code .btn.ghost { background: transparent; color: #fff; border: 1px solid #333a49; }
.coupon-code .btn.ghost:hover { border-color: #5a6275; }

.coupon-banner.applied { background: linear-gradient(110deg, #1d8a50, #2fbf71 60%, #6be3a2); color: #fff; box-shadow: 0 14px 34px -22px rgba(47,191,113,.9); }
.coupon-banner.applied::after { display: none; }
.coupon-banner.applied .coupon-pct { border-right-color: rgba(255,255,255,.35); }
.coupon-banner.applied .coupon-code { background: rgba(0,0,0,.25); }
.coupon-banner.applied .coupon-code b { color: #fff; }

.coupon-form {
    display: flex; align-items: center; gap: .8rem 1rem; flex-wrap: wrap; padding: .8rem 1rem; border-radius: 16px;
    background: linear-gradient(110deg, rgba(255,122,26,.1), rgba(var(--gold-rgb),.1)); border: 1px solid rgba(var(--gold-rgb),.35);
}
.coupon-form-label { flex: 1; min-width: 200px; display: flex; align-items: center; gap: .75rem; margin: 0; cursor: pointer; }
.coupon-form-label b { display: block; font-size: .95rem; }
.coupon-form-label small { display: block; color: var(--muted); font-size: .8rem; }
.coupon-form-icon {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, #ff7a1a, var(--gold)); color: #1a1205;
}
.coupon-form-icon svg { width: 20px; height: 20px; }
.coupon-form-field { display: flex; gap: .5rem; }
.coupon-form-field .input { width: 190px; text-transform: uppercase; font-family: "JetBrains Mono", monospace; letter-spacing: .1em; }
.coupon-form.is-bad { border-color: rgba(239,75,75,.55); }
.coupon-form.is-bad .input { border-color: var(--red); }
.coupon-bad { flex-basis: 100%; margin: 0; color: var(--red); font-size: .82rem; }

@media (max-width: 640px) {
    .coupon-banner { gap: .9rem; padding: 1rem; }
    .coupon-pct { font-size: 2.5rem; }
    .coupon-code { width: 100%; }
    .coupon-code b, .coupon-code-value { margin-right: auto; }
    .coupon-form-field { width: 100%; }
    .coupon-form-field .input { flex: 1; width: auto; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .product.popular, .product.popular::before, .product.popular .ribbon::after, .sale-badge, .sale-badge::after, .coupon-banner::after { animation: none; }
}

/* comanda skin: pe cate luni */
.months-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.months-picker a { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2, var(--card)); color: var(--label); text-decoration: none; }
.months-picker a:hover { border-color: var(--muted); }
.months-picker .months-saving { align-self: flex-start; padding: .05rem .35rem; border-radius: 6px; font-weight: 700; font-size: .72rem; color: #04130a; background: var(--green); }
.months-picker a.active { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.months-picker a.active b { color: var(--gold); }
.months-picker span { font-size: .85rem; color: var(--muted); }

/* ---------- Top jucatori: campionul lunii (premiu /top15) ---------- */
@keyframes champ-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes champ-float { 0%, 100% { transform: translate(-50%, 0) rotate(-12deg); } 50% { transform: translate(-50%, -6px) rotate(-6deg); } }
@keyframes champ-ring { 0%, 100% { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(var(--gold-rgb), .45); } 50% { box-shadow: 0 0 0 3px #fff3c4, 0 0 44px rgba(var(--gold-rgb), .75); } }
@keyframes champ-spark { 0% { transform: translateY(0) scale(0); opacity: 0; } 20% { opacity: 1; transform: translateY(-10px) scale(1); } 100% { transform: translateY(-90px) scale(.3); opacity: 0; } }
@keyframes champ-gift { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
@keyframes race-fill { from { width: 0; } }

.champ-card {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 1.6rem 1.8rem;
    display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
    background: radial-gradient(circle at 18% 30%, rgba(var(--gold-rgb), .32), transparent 55%),
                linear-gradient(135deg, #2a1f06 0%, #15110a 45%, #0d0f16 100%);
    border: 1px solid rgba(var(--gold-rgb), .45);
    box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.champ-rays {
    position: absolute; left: 18%; top: 45%; width: 900px; height: 900px; z-index: -1; opacity: .18;
    background: repeating-conic-gradient(from 0deg, rgba(var(--gold-rgb), .9) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%);
    transform: translate(-50%, -50%); animation: champ-spin 40s linear infinite;
}
.champ-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.champ-sparks i {
    position: absolute; bottom: 10%; left: calc(6% + var(--i) * 7.5%); width: 6px; height: 6px; border-radius: 50%;
    background: radial-gradient(circle, #fff6d0, var(--gold) 60%, transparent 70%);
    animation: champ-spark 3.2s ease-out infinite; animation-delay: calc(var(--i) * -.27s);
}
.champ-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
    background: rgba(var(--gold-rgb), .12); border: 1px solid rgba(var(--gold-rgb), .35); padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.champ-player { display: flex; align-items: center; gap: 1.2rem; }
.champ-avatar { position: relative; flex-shrink: 0; }
.champ-avatar .p-avatar { animation: champ-ring 2.6s ease-in-out infinite; }
.champ-crown { position: absolute; left: 50%; top: -30px; font-size: 2.2rem; z-index: 2; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); animation: champ-float 3s ease-in-out infinite; }
.champ-name {
    margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; word-break: break-word;
    background: linear-gradient(90deg, #fff1b8, var(--gold) 45%, #fff1b8); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 12px rgba(var(--gold-rgb), .35));
}
.champ-sub { color: #d8c690; font-size: .9rem; margin-top: .25rem; }
.champ-stats { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.champ-stats div { min-width: 92px; padding: .55rem .8rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.champ-stats b { display: block; font-family: var(--display); font-size: 1.35rem; color: #fff; line-height: 1.1; }
.champ-stats span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.champ-prize {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; min-width: 210px; padding: 1.2rem 1.4rem;
    border-radius: 16px; background: linear-gradient(160deg, rgba(var(--gold-rgb), .22), rgba(var(--gold-rgb), .05));
    border: 1px dashed rgba(var(--gold-rgb), .6);
}
.champ-gift { font-size: 2.6rem; line-height: 1; animation: champ-gift 2.4s ease-in-out infinite; }
.champ-prize-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.champ-prize-name { font-family: var(--display); font-size: 1.3rem; color: var(--gold); }
.champ-prize-time { font-size: .78rem; color: #cbbd8f; }

.champ-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; margin-top: 1rem; }
.champ-row > :only-child { grid-column: 1 / -1; }
.champ-race-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.champ-race-head h3, .champ-hall h3 { margin: 0; }
.champ-hall h3 { margin-bottom: .6rem; }
.champ-pill { font-size: .75rem; font-weight: 700; color: var(--gold); background: rgba(var(--gold-rgb), .12); border: 1px solid rgba(var(--gold-rgb), .3); padding: .2rem .6rem; border-radius: 999px; }
.race-line { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.race-line:last-of-type { border-bottom: 0; }
.race-pos { width: 1.6rem; text-align: center; font-size: 1.2rem; }
.race-info { flex: 1; min-width: 0; }
.race-name { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.race-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-name span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.race-bar { height: 6px; margin-top: .35rem; border-radius: 99px; background: var(--card-2, rgba(255,255,255,.06)); overflow: hidden; }
.race-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b8860b, var(--gold), #fff1b8); animation: race-fill 1.2s ease-out; }
.race-line.place-2 .race-bar i { background: linear-gradient(90deg, #8a94a6, #d5dbe5); }
.race-line.place-3 .race-bar i { background: linear-gradient(90deg, #8a5a2b, #d49a5c); }
.champ-note { font-size: .78rem; margin: .6rem 0 0; }
.hall-line { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hall-line:last-child { border-bottom: 0; }
.hall-line div { display: flex; flex-direction: column; min-width: 0; }
.hall-line span { font-size: .78rem; color: var(--muted); }

:root[data-theme="light"] .champ-card { background: radial-gradient(circle at 18% 30%, rgba(var(--gold-rgb), .35), transparent 55%), linear-gradient(135deg, #fff6dc, #fffaf0 55%, #f4f6fb); }
:root[data-theme="light"] .champ-stats b { color: #2a2008; }
:root[data-theme="light"] .champ-sub, :root[data-theme="light"] .champ-prize-time { color: #7a6a3a; }

@media (max-width: 760px) {
    .champ-card { grid-template-columns: 1fr; padding: 1.4rem 1.1rem; text-align: left; }
    .champ-prize { min-width: 0; }
    .champ-row { grid-template-columns: 1fr; }
    .champ-rays { left: 50%; top: 30%; }
}
@media (max-width: 420px) {
    .champ-player { flex-direction: column; align-items: flex-start; }
    .champ-stats div { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .champ-rays, .champ-sparks i, .champ-crown, .champ-gift, .champ-avatar .p-avatar, .race-bar i { animation: none; }
    .champ-sparks { display: none; }
}

/* campionul lunii: premiul in dreapta (skin 3D / VIP GOLD) */
.champ-prize-3d { width: 280px; padding: .9rem; gap: .35rem; }
.champ-prize-3d .skin-preview { margin: .2rem 0; background: radial-gradient(ellipse at 50% 40%, rgba(var(--gold-rgb), .22), rgba(0,0,0,.25) 70%); border: 1px solid rgba(var(--gold-rgb), .25); }

@keyframes vip-shine { 0% { transform: translateX(-160%) skewX(-22deg); } 55%, 100% { transform: translateX(320%) skewX(-22deg); } }
@keyframes vip-glow { 0%, 100% { text-shadow: 0 0 10px rgba(var(--gold-rgb), .5), 0 2px 0 #7a5400; } 50% { text-shadow: 0 0 26px rgba(255,214,102,.95), 0 2px 0 #7a5400; } }
.champ-vip {
    position: relative; overflow: hidden; width: 280px; padding: 1.2rem 1.3rem; border-radius: 18px;
    display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center;
    background: linear-gradient(145deg, #4a3500 0%, #a87a12 28%, #f6d77a 50%, #b8860b 72%, #3d2b00 100%);
    border: 1px solid #ffe08a; box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 0 4px rgba(var(--gold-rgb), .15), inset 0 1px 0 rgba(255,255,255,.55);
}
.champ-vip::before { content: ""; position: absolute; inset: 6px; border-radius: 13px; border: 1px solid rgba(255,255,255,.35); pointer-events: none; }
.champ-vip-shine { position: absolute; top: -20%; bottom: -20%; left: 0; width: 35%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: vip-shine 3.4s ease-in-out infinite; }
.champ-vip .champ-prize-label { color: #3a2a00; font-weight: 800; }
.champ-vip-badge {
    font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: .04em; color: #fff7d6;
    padding: .5rem 1rem; border-radius: 12px; background: rgba(40,28,0,.55); border: 1px solid rgba(255,230,150,.6);
    animation: vip-glow 2.4s ease-in-out infinite;
}
.champ-vip-badge span { color: #ffd34d; }
.champ-vip-perks { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: .25rem; }
.champ-vip-perks li { font-size: .82rem; font-weight: 600; color: #2a1d00; background: rgba(255,248,220,.55); border-radius: 8px; padding: .3rem .5rem; }
.champ-vip-perks li::before { content: "✦ "; color: #8a5a00; }
.champ-vip .champ-prize-time { color: #3a2a00; font-weight: 600; }
@media (max-width: 760px) { .champ-prize-3d, .champ-vip { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .champ-vip-shine, .champ-vip-badge { animation: none; } }

/* ---------- Aplicatia pe telefon (PWA) ---------- */
[data-pwa-install][hidden], .pwa-hint[hidden] { display: none; }
.pwa-hint {
    position: fixed; top: 4.25rem; right: 1rem; z-index: 310; width: min(340px, calc(100vw - 2rem));
    padding: 1rem 1.1rem; box-shadow: var(--shadow); font-size: .9rem;
}
.pwa-hint .toast-close { position: absolute; top: .55rem; right: .6rem; }
.pwa-hint ol { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.5; }
.pwa-hint ol b { color: var(--text); }
.push-box [hidden] { display: none; }
.push-box + form .check { margin-bottom: .45rem; }
.coupon-applied-chip {
    display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 12px;
    background: rgba(47,191,113,.1); border: 1px solid rgba(47,191,113,.45); font-size: .88rem;
}
.coupon-applied-chip svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.coupon-applied-chip b { font-family: "JetBrains Mono", monospace; letter-spacing: .12em; color: var(--green); }
.coupon-applied-chip span { color: var(--muted); white-space: nowrap; }
.coupon-applied-chip a { margin-left: auto; font-size: .82rem; }
.field .coupon-form-field .input { flex: 1; width: auto; min-width: 0; }

/* ---------- Profil de jucator ---------- */
.profile-head { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 200px; }
.profile-id h1 { overflow-wrap: anywhere; }
.profile-ban { display: flex; justify-content: space-between; gap: .3rem 1rem; flex-wrap: wrap; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.profile-ban:first-of-type { border-top: 0; }

/* ---------- Statistici vanzari ---------- */
.stats-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5rem; height: 220px; margin-bottom: .75rem; }
.stats-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; min-width: 0; height: 100%; }
.stats-bar span { width: 100%; max-width: 44px; min-height: 2px; flex: 0 1 auto; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gold), var(--gold-3)); }
.stats-bar b { font-size: .72rem; }
.stats-bar small { font-size: .68rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
    .stats-bars { gap: .2rem; }
    .stats-bar b { display: none; }
    .stats-bar small { writing-mode: vertical-rl; transform: rotate(180deg); }
}

/* ---------- Module (AdminCP) ---------- */
.modules-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.module-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); margin: 0; cursor: pointer; }
.module-text b { display: block; font-size: .92rem; }
.module-text small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; pointer-events: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--gold); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold-2); outline-offset: 2px; }
@media (max-width: 760px) { .modules-list { grid-template-columns: minmax(0, 1fr); } }
