:root {
    --accent: #00a3ff;
    --accent2: #7b5cff;
    --gold: #f5c451;
    --success: #2ee59d;
    --danger: #ff4d6d;
    --bg: #05070f;
    --card: rgba(14, 20, 38, 0.72);
    --line: rgba(255, 255, 255, 0.08);
    --text: #eef4ff;
    --muted: rgba(220, 230, 255, 0.6);
    --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh; background: var(--bg); color: var(--text);
    font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none !important; }

/* ============ SFONDO ============ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: drift 18s ease-in-out infinite alternate; }
.o1 { width: 520px; height: 520px; background: var(--accent); top: -160px; left: -120px; }
.o2 { width: 480px; height: 480px; background: var(--accent2); bottom: -180px; right: -120px; animation-delay: -6s; }
.o3 { width: 300px; height: 300px; background: #ff2e88; top: 40%; left: 55%; opacity: 0.18; animation-delay: -12s; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }
.grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* ============ NAV ============ */
.nav {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
    padding: 14px clamp(16px, 4vw, 56px); background: rgba(5, 7, 15, 0.7); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; object-fit: contain; }
.nav-brand b { display: block; font-family: 'Rajdhani', sans-serif; font-size: 20px; letter-spacing: 3px; line-height: 1; }
.nav-brand small { font-size: 10px; letter-spacing: 6px; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-cta { color: #fff !important; background: linear-gradient(110deg, var(--accent), var(--accent2)); box-shadow: 0 6px 24px rgba(0, 163, 255, 0.3); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger i { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ============ SEZIONI ============ */
main { padding: 0 clamp(16px, 4vw, 56px); }
section { max-width: 1180px; margin: 0 auto; padding: 80px 0 20px; }
.kicker { font-size: 12px; letter-spacing: 5px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
h2 { font-family: 'Rajdhani', sans-serif; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin: 8px 0 28px; text-transform: uppercase; }

.hero { min-height: calc(100vh - 80px); display: grid; place-items: center; text-align: center; padding-top: 40px; }
.hero-logo { width: clamp(120px, 20vw, 190px); filter: drop-shadow(0 0 40px rgba(0, 163, 255, 0.45)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero h1 {
    font-family: 'Rajdhani', sans-serif; font-size: clamp(48px, 10vw, 110px); line-height: 0.95; letter-spacing: 0.06em; margin-top: 18px;
    background: linear-gradient(100deg, #fff 30%, var(--accent) 60%, var(--accent2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { letter-spacing: 12px; color: var(--muted); font-weight: 700; font-size: clamp(12px, 2vw, 16px); }
.hero p.tag { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: clamp(15px, 2vw, 18px); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.live {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 10px 18px; border-radius: 99px;
    background: var(--card); border: 1px solid var(--line); font-weight: 600;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); animation: pulse 1.6s infinite; }
.dot.off { background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: none; }
@keyframes pulse { 50% { opacity: 0.35; } }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
    padding: 14px 26px; border-radius: 14px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 17px;
    letter-spacing: 2px; text-transform: uppercase; color: #fff; transition: transform 0.18s, box-shadow 0.25s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: wait; transform: none; }
.btn.primary { background: linear-gradient(110deg, var(--accent), var(--accent2)); box-shadow: 0 10px 34px rgba(0, 163, 255, 0.35); }
.btn.ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.btn.full { width: 100%; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    backdrop-filter: blur(10px); transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 163, 255, 0.35); }
.stat-card small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.stat-card b { display: block; font-family: 'Rajdhani', sans-serif; font-size: 44px; line-height: 1.1; margin-top: 6px; }
.stat-card b em { font-style: normal; font-size: 22px; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 6px; transition: width 1s ease; }
.names { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.names span { padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); font-size: 13px; }

.text h3 { font-family: 'Rajdhani', sans-serif; font-size: 24px; margin: 28px 0 8px; color: #fff; }
.text h3:first-child { margin-top: 0; }
.text p { color: var(--muted); margin-bottom: 10px; }
.text ul { list-style: none; display: grid; gap: 8px; margin-bottom: 8px; }
.text li { position: relative; padding-left: 26px; color: var(--muted); }
.text li::before { content: ''; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

.rules { display: grid; gap: 12px; }
.rule { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rule summary { cursor: pointer; padding: 18px 22px; font-family: 'Rajdhani', sans-serif; font-size: 21px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rule summary::-webkit-details-marker { display: none; }
.rule summary::after { content: '+'; font-size: 26px; color: var(--accent); transition: transform 0.25s; }
.rule[open] summary::after { transform: rotate(45deg); }
.rule .text { padding: 0 22px 18px; }

.team { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.member { text-align: center; }
.avatar {
    width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center;
    font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; color: #fff;
}
.member b { display: block; font-size: 17px; }
.role-tag { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.member p { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ============ ACCEDI ============ */
.auth { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 60px 0; }
.auth .card { width: min(440px, 100%); padding: 34px; }
.auth h2 { margin-bottom: 8px; }
.auth .hint { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth code { color: var(--accent); background: rgba(0, 163, 255, 0.1); padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.field input {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); outline: none;
    background: rgba(255, 255, 255, 0.04); color: #fff; font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.15); }
.err { color: var(--danger); font-size: 14px; min-height: 22px; margin-bottom: 8px; }

/* ============ PROFILO ============ */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.profile-head h2 { margin: 6px 0 0; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.badge { padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.badge.on { color: var(--success); border-color: rgba(46, 229, 157, 0.4); }
.chars { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.char-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.char-top .avatar { margin: 0; width: 64px; height: 64px; background: linear-gradient(140deg, var(--accent), var(--accent2)); }
.char-top b { display: block; font-family: 'Rajdhani', sans-serif; font-size: 26px; line-height: 1.1; }
.char-top span { color: var(--muted); font-size: 14px; }
.wealth { font-family: 'Rajdhani', sans-serif; font-size: 34px; font-weight: 700; color: var(--success); margin-bottom: 14px; }
.wealth small { display: block; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 3px; color: var(--muted); font-weight: 700; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.kv small { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kv b { font-size: 16px; }
.kv .gold { color: var(--gold); }
.soon { margin-top: 16px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.15); color: var(--muted); font-size: 13px; text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* ============ VARIE ============ */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 40px clamp(16px, 4vw, 56px); margin-top: 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 16px; }
.socials a:hover { color: #fff; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); padding: 14px 22px; border-radius: 12px; background: #111a30; border: 1px solid var(--line); font-weight: 600; transition: transform 0.35s; z-index: 50; }
#toast.show { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
    .burger { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px 16px 18px; background: rgba(5, 7, 15, 0.97); border-bottom: 1px solid var(--line); display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; }
    section { padding-top: 60px; }
    .kv { grid-template-columns: 1fr 1fr; }
}

/* ============ v1.1: negozio, 360, staff ============ */
.nav-gold { color: var(--gold) !important; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.btn.xs { padding: 6px 10px; font-size: 12px; letter-spacing: 1px; border-radius: 9px; }
.btn.gold { color: #2a1a00; background: linear-gradient(110deg, #ffe08a, var(--gold) 45%, #ff9d2e); box-shadow: 0 8px 26px rgba(245, 196, 81, 0.3); }
.btn.danger { background: linear-gradient(110deg, #ff4d6d, #c9184a); }
.btn.ghost.xs:hover, .btn.danger.xs:hover { transform: none; filter: brightness(1.15); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 600; text-decoration: underline; }
.hint.small { font-size: 13px; color: var(--muted); margin-top: 10px; }
.center { text-align: center; margin-top: 18px; }
.muted { color: var(--muted); }
code { color: var(--accent); background: rgba(0, 163, 255, 0.1); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

.v360 { position: relative; margin-top: 16px; height: 420px; border-radius: 14px; overflow: hidden; cursor: grab; touch-action: pan-y;
    background: radial-gradient(circle at 50% 35%, rgba(0, 163, 255, 0.18), rgba(255, 255, 255, 0.02) 70%); border: 1px solid var(--line); user-select: none; }
.v360:active { cursor: grabbing; }
.v360-img { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; aspect-ratio: 360 / 640; background-repeat: no-repeat; background-color: transparent; }
.v360-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none; padding: 0 12px; }
.v360.none { cursor: default; display: grid; place-items: center; height: 120px; }
.v360.none .v360-hint { position: static; font-size: 13px; }

.char-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.pill { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; font-weight: 600; transition: all 0.2s; }
.pill:hover { color: #fff; }
.pill.on { color: #fff; border-color: var(--accent); background: rgba(0, 163, 255, 0.15); }
.coin-box { text-align: right; padding: 16px 22px; border-radius: 16px; border: 1px solid rgba(245, 196, 81, 0.35); background: rgba(245, 196, 81, 0.08); }
.coin-box small { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.coin-box b { font-family: 'Rajdhani', sans-serif; font-size: 44px; line-height: 1; color: var(--gold); }
.notice { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(245, 196, 81, 0.35); background: rgba(245, 196, 81, 0.07); margin-bottom: 18px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 20px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 12px 16px; font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: #fff; border-bottom-color: var(--accent); }

.shop-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 14px; }
.pkg { position: relative; display: flex; flex-direction: column; padding: 16px; }
.pkg.featured { border-color: rgba(245, 196, 81, 0.5); box-shadow: 0 0 30px rgba(245, 196, 81, 0.12); }
.pkg-img { height: 150px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; font-size: 46px; margin-bottom: 12px; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; }
.pkg-badge { position: absolute; top: 24px; right: 24px; padding: 4px 10px; border-radius: 99px; background: var(--danger); font-size: 12px; font-weight: 800; }
.pkg-name { font-family: 'Rajdhani', sans-serif; font-size: 22px; line-height: 1.1; }
.pkg-desc { color: var(--muted); font-size: 13px; margin-top: 6px; }
.pkg-rewards { list-style: none; margin: 10px 0 14px; display: grid; gap: 4px; font-size: 13px; }
.pkg-rewards li::before { content: '✓ '; color: var(--success); font-weight: 800; }
.pkg-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price b { font-family: 'Rajdhani', sans-serif; font-size: 26px; color: var(--gold); }
.price s { color: var(--muted); margin-right: 6px; }
.price small { color: var(--muted); font-size: 12px; }
.coins .coin-pack { position: relative; text-align: center; display: grid; gap: 12px; }
.coin-amount { font-family: 'Rajdhani', sans-serif; font-size: 54px; font-weight: 700; color: var(--gold); line-height: 1; }
.coin-amount small { display: block; font-size: 13px; letter-spacing: 3px; color: var(--muted); }
.coin-price b { font-size: 22px; }
.coin-price s { color: var(--muted); margin-right: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.table tr.faded td { opacity: 0.45; }
.card:has(.table) { overflow-x: auto; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn { margin-left: 4px; }
.mini-badge { font-size: 11px; font-weight: 800; margin-left: 6px; text-transform: uppercase; }
.state { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.06); }
.state.started { color: var(--success); background: rgba(46, 229, 157, 0.12); }
.state.stopped { color: var(--danger); background: rgba(255, 77, 109, 0.12); }
.search { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: #fff; font: inherit; margin-bottom: 14px; outline: none; }
.search:focus { border-color: var(--accent); }

.terminal { height: 60vh; overflow-y: auto; background: #03050b; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
    font-family: Consolas, 'Courier New', monospace; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.terminal div { color: #cfd8ea; }
.terminal i { color: #4b5873; font-style: normal; }
.terminal em { color: var(--accent); font-style: normal; }
.terminal .err { color: #ff8095; }
.terminal .wrn { color: #ffd479; }
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 16px; border-radius: 14px; border: 1px solid var(--line); background: #03050b; }
.cmd span { color: var(--accent); font-weight: 800; font-family: Consolas, monospace; }
.cmd input { flex: 1; background: none; border: 0; outline: none; color: #fff; font: 14px Consolas, monospace; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.modal-box { width: min(460px, 100%); }
.modal-box h3 { font-family: 'Rajdhani', sans-serif; font-size: 26px; margin-bottom: 8px; }
.modal-box textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: #fff; font: inherit; outline: none; resize: vertical; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

@media (max-width: 820px) {
    .coin-box { text-align: left; }
    .terminal { height: 55vh; font-size: 12px; }
    .table { font-size: 13px; }
}

/* ============ profilo: informazioni a sinistra, personaggio 360 a destra ============ */
.chars { grid-template-columns: 1fr; }
.char-card { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: stretch; padding: 28px; }
.char-card .v360 { margin-top: 0; height: auto; min-height: 520px; }
.char-card .v360.none { height: auto; min-height: 520px; }
.char-top { margin-bottom: 22px; }
.slot-tag { display: block; font-size: 11px; letter-spacing: 3px; color: var(--accent); font-weight: 800; margin-bottom: 2px; }
.char-top b { font-size: 32px; }
.job-chip { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #cfeaff !important;
    background: rgba(0, 163, 255, 0.12); border: 1px solid rgba(0, 163, 255, 0.35); }
.block-title { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: 800; color: var(--muted);
    display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.block-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.char-info .wealth { margin-bottom: 12px; }
.char-info .kv { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

@media (max-width: 900px) {
    .char-card { grid-template-columns: 1fr; padding: 20px; }
    .char-card .v360 { order: -1; min-height: 420px; }
    .char-card .v360.none { min-height: 120px; }
    .char-top b { font-size: 26px; }
}

/* ============ staff: gestione giocatore, ruoli ============ */
.field select { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0b1122; color: #fff; font: inherit; outline: none; }
.field select:focus { border-color: var(--accent); }
.modal-box.wide { width: min(720px, 100%); max-height: 90vh; overflow-y: auto; }
.btn-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-grid:empty::after { content: 'Nessuna azione permessa'; color: var(--muted); font-size: 13px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head b { font-family: 'Rajdhani', sans-serif; font-size: 22px; }
.role-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.role-row > div { flex: 1; }
.role-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.on-dot { color: var(--success); font-weight: 700; margin-left: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.field input[type=color] { padding: 4px; height: 48px; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 20px; }
.check { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: 14px; color: #dfe7f7; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check.all { padding: 12px 14px; border-radius: 12px; background: rgba(0, 163, 255, 0.08); border: 1px solid rgba(0, 163, 255, 0.3); margin: 6px 0 4px; }
@media (max-width: 900px) { .two-cols { grid-template-columns: 1fr; } }

/* ============ riavvio ============ */
.restart-live, .restart-next { text-align: center; padding: 10px 0; }
.restart-live small, .restart-next small { font-size: 11px; letter-spacing: 3px; font-weight: 800; color: var(--danger); }
.restart-next small { color: var(--muted); }
.big-count { font-family: 'Rajdhani', sans-serif; font-size: 56px; font-weight: 700; line-height: 1.1; color: #fff; text-shadow: 0 0 30px rgba(255, 77, 109, 0.4); margin: 6px 0 10px; }
.big-count.small-count { font-size: 40px; text-shadow: none; color: var(--accent); }
