/* Mafia Pilot — component styles (TGMHub dark navy theme) */

/* ── Members list ── */
.faction-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; }
.faction-header h3 { font-size: 14px; font-weight: 700; color: var(--text-2); }
.faction-header span { font-size: 12px; color: var(--text-3); font-weight: 500; }
.member-row {
    display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-sm); margin-bottom: 10px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.member-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.13); }
.member-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.member-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.member-name { font-size: 15px; font-weight: 600; color: var(--text); }
.member-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.member-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.member-arrow { font-size: 18px; color: rgba(255,255,255,0.18); line-height: 1; }
.member-actions { display: flex; gap: 4px; flex-shrink: 0; }
.chip-count { font-size: 11px; opacity: .7; margin-left: 2px; }

/* ── Member detail ── */
.back-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 16px; text-decoration: none; opacity: .9; }
.back-btn:hover { color: var(--gold); opacity: 1; transform: translateX(-2px); }
.hero-section { text-align: center; padding: 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm), var(--glow); margin-bottom: 20px; }
.hero-avatar { width: 72px; height: 72px; border-radius: 36px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #fff; margin: 0 auto 12px; }
.hero-name { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.hero-badges { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.detail-value { font-size: 20px; font-weight: 800; color: var(--text); }
.detail-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.score-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.score-big { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.score-breakdown { display: flex; justify-content: center; gap: 24px; }
.score-item { text-align: center; }
.score-item-num { font-size: 18px; font-weight: 700; }
.score-item-label { font-size: 11px; color: var(--text-3); }
.note-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.note-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.note-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.note-date { font-size: 11px; color: var(--text-3); }
.note-content { font-size: 14px; color: var(--text-2); line-height: 1.5; white-space: pre-wrap; }
.note-actions { display: flex; gap: 6px; margin-top: 8px; }
.legend-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.legend-title { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.legend-items { display: flex; gap: 16px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }

/* ── Events ── */
.event-row {
    display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-sm); margin-bottom: 10px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.event-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.13); }
.event-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.event-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.event-info { flex: 1; min-width: 0; }
.event-type-label { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.event-meta { font-size: 12px; color: var(--text-3); }
.event-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.event-arrow { font-size: 18px; color: rgba(255,255,255,0.18); line-height: 1; }
.event-type-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: rgba(255,255,255,0.03); border: 2px solid var(--border-strong);
    border-radius: 12px; cursor: pointer; transition: all .15s; margin-bottom: 10px;
}
.event-type-card.selected { border-color: var(--green-border); background: var(--green-soft); }
.event-type-card:hover { border-color: rgba(255,255,255,0.3); }
.event-type-emoji { font-size: 26px; }
.event-type-name { font-size: 14px; font-weight: 600; color: var(--text); }
.event-type-desc { font-size: 12px; color: var(--text-3); }
.event-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm), var(--glow); margin-bottom: 20px; }
.event-hero-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.event-hero-title { font-size: 18px; font-weight: 700; color: var(--text); }
.event-hero-meta { font-size: 13px; color: var(--text-3); }
.event-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.event-stat { text-align: center; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.event-stat-value { font-size: 16px; font-weight: 700; color: var(--text); }
.event-stat-label { font-size: 11px; color: var(--text-3); }
.division-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.division-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.division-name { font-size: 15px; font-weight: 600; color: var(--text); }
.division-meta { font-size: 12px; color: var(--text-3); }
.add-division-form { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.add-division-form h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.participant-row {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-sm); margin-bottom: 8px;
}
.participant-name { font-size: 14px; font-weight: 600; min-width: 130px; color: var(--text); }
.kill-input { width: 48px; padding: 6px 4px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 13px; text-align: center; background: var(--surface-2); color: var(--text); }
.kill-input:focus { outline: none; border-color: var(--green-border); background: var(--surface-3); box-shadow: 0 0 0 3px rgba(34,197,94,0.12); }
.kill-label { font-size: 10px; color: var(--text-3); text-align: center; }
.kill-group { display: flex; flex-direction: column; align-items: center; }
.total-points { font-size: 14px; font-weight: 700; color: var(--text); min-width: 40px; text-align: center; }
.record-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.record-row { display: flex; align-items: center; gap: 12px; }
.record-name { font-size: 15px; font-weight: 600; min-width: 100px; color: var(--text); }
.record-stats { display: flex; gap: 16px; align-items: center; flex: 1; flex-wrap: wrap; }
.record-stat { text-align: center; }
.record-stat-value { font-size: 16px; font-weight: 700; }
.record-stat-label { font-size: 10px; color: var(--text-3); }
.fine-badge { background: rgba(239,68,68,0.14); color: #f87171; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }

/* ── Star-Up Calculator ── */
.star-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.building-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px 16px;
    box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s;
}
.building-card:hover { border-color: rgba(255,255,255,0.13); transform: translateY(-1px); }
.building-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.building-name { font-size: 13.5px; font-weight: 650; color: var(--text); }
.building-level-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 24px; padding: 0 8px; border-radius: 7px;
    background: rgba(38,114,255,0.15); color: #7ab0ff;
    font-size: 13px; font-weight: 800;
}
.auto-badge {
    padding: 2px 8px; border-radius: 999px;
    background: rgba(251,191,36,0.12); color: #fbbf24;
    font-size: 10.5px; font-weight: 700;
    border: 1px solid rgba(251,191,36,0.3);
}
.star-pills { display: flex; gap: 3px; flex-wrap: wrap; }
.star-pill {
    width: 26px; height: 26px; border-radius: 7px;
    border: 1px solid var(--border-strong);
    background: rgba(255,255,255,0.04);
    color: var(--text-2); font-size: 11px; font-weight: 650;
    cursor: pointer; transition: all .1s; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.star-pill:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }
.star-pill.filled { background: rgba(38,114,255,0.22); border-color: rgba(38,114,255,0.4); color: #9dc2ff; }
.star-pill.active {
    background: var(--green-soft); border-color: var(--green-border);
    color: var(--text); font-weight: 800;
    box-shadow: 0 0 0 1px rgba(34,197,94,0.2);
}

/* ── Troop plan lines ── */
.calc-line {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.calc-line:last-child { border-bottom: none; }
.calc-line-troop { display: flex; align-items: center; gap: 10px; min-width: 170px; flex: 1; }
.calc-line-qty { display: flex; align-items: center; gap: 6px; }
.calc-line-modes { display: flex; gap: 6px; }
.chip-sm { padding: 4px 12px; font-size: 12px; min-height: 30px; }

/* ── GW Rewards Planner ── */
.gw-profilebar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 16px;
    box-shadow: var(--shadow-sm), var(--glow);
    margin-bottom: 14px;
}
.gw-pb-field { display: flex; align-items: center; gap: 8px; }
.gw-pb-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }
.gw-pb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gw-pb-active { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.gw-pb-active b { color: var(--text); }
.gw-pb-dirty { color: var(--gold); font-weight: 600; }
.gw-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.gw-search {
    flex: 1; min-width: 200px; padding: 10px 14px;
    border: 1px solid var(--border-strong); border-radius: 12px;
    font-size: 14px; background: var(--surface-2); color: var(--text);
}
.gw-search:focus { outline: none; border-color: var(--green-border); box-shadow: 0 0 0 3px rgba(34,197,94,0.13); }
.gw-search::placeholder { color: rgba(234,240,255,0.32); }
.gw-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.gw-tip {
    background: rgba(38,114,255,0.08); border: 1px solid rgba(38,114,255,0.25);
    border-radius: 12px; padding: 10px 16px; font-size: 13px; color: var(--text-2);
    margin-bottom: 14px;
}
.gw-obj {
    background: linear-gradient(180deg, rgba(38,114,255,0.06), rgba(15,26,43,0.4));
    border: 1px solid rgba(38,114,255,0.22);
    border-radius: var(--radius); padding: 16px 18px;
    margin-bottom: 16px;
}
.gw-obj-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gw-obj-title { font-size: 14px; font-weight: 750; }
.gw-obj-sub { font-size: 12px; color: var(--text-3); }
.gw-obj-inputs { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.gw-obj-field { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.gw-obj-field input { width: 240px; padding: 10px 12px; font-size: 14px; font-weight: 650; letter-spacing: normal; text-transform: none; }
.gw-obj-field input:focus { border-color: var(--green-border); box-shadow: 0 0 0 3px rgba(34,197,94,0.13); }
.gw-obj-status { display: flex; flex-direction: column; gap: 6px; }
.gw-obj-line {
    font-size: 13px; color: var(--text-2);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px;
}
.gw-obj-line b { font-weight: 800; }
.gw-obj-line.ok { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); color: #a7f3d0; }
.gw-obj-line.ok b { color: #4ade80; }
.gw-obj-line.warn { border-color: rgba(255,209,102,0.35); background: rgba(255,209,102,0.08); color: #fde68a; }
.gw-obj-line.warn b { color: var(--gold); }
.gw-obj-line.bad { border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); color: #fecaca; }
.gw-obj-line.bad b { color: #f87171; }
.gw-obj-line.idle { color: var(--text-3); font-style: italic; border-style: dashed; }
.gw-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm), var(--glow);
    overflow: hidden; margin-bottom: 16px;
}
.gw-table-header {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 18px; background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3);
}
.gw-col-item { flex: 1; min-width: 0; }
.gw-col-qty { width: 208px; }
.gw-col-total { width: 110px; text-align: right; }
.gw-row {
    display: flex; align-items: center; gap: 16px;
    padding: 9px 18px; border-bottom: 1px solid var(--border);
    transition: background 0.1s ease;
}
.gw-row:last-child { border-bottom: none; }
.gw-row:hover { background: rgba(255,255,255,0.03); }
.gw-row.selected { background: rgba(34,197,94,0.07); box-shadow: inset 3px 0 0 var(--green); }
.gw-row-main {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
    background: none; border: none; color: var(--text); cursor: pointer;
    text-align: left; padding: 2px 0;
}
.gw-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; background: var(--surface-2); padding: 3px; object-fit: contain; }
.gw-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-cat {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-3); background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    padding: 2px 8px; border-radius: 999px; flex-shrink: 0;
}
.gw-check { color: #4ade80; font-weight: 800; margin-left: auto; flex-shrink: 0; }
.gw-qty { width: 208px; display: flex; flex-direction: column; gap: 3px; }
.gw-stepper { display: flex; gap: 4px; align-items: center; }
.gw-step {
    width: 28px; height: 30px; flex-shrink: 0; line-height: 1;
    border-radius: 8px; border: 1px solid var(--border-strong);
    background: var(--surface-2); color: var(--text-2);
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: all 0.12s ease;
}
.gw-step:hover { border-color: var(--green-border); color: var(--text); background: rgba(34,197,94,0.12); }
.gw-step:active { transform: scale(0.94); }
.gw-qty-input { flex: 1; min-width: 0; padding: 6px 6px; font-size: 13px; text-align: center; width: auto; }
.gw-max-btn {
    height: 30px; padding: 0 9px; flex-shrink: 0;
    border-radius: 8px; border: 1px solid var(--green-border);
    background: rgba(34,197,94,0.12); color: #4ade80;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; cursor: pointer;
    transition: all 0.12s ease;
}
.gw-max-btn:hover { background: rgba(34,197,94,0.24); box-shadow: 0 0 10px rgba(34,197,94,0.25); }
.gw-max-btn:active { transform: scale(0.96); }
.gw-max-hint { font-size: 10px; color: var(--text-3); text-align: center; opacity: 0; transition: opacity 0.12s; }
.gw-qty:hover .gw-max-hint, .gw-qty:focus-within .gw-max-hint { opacity: 1; }
.gw-total { width: 110px; text-align: right; font-weight: 700; color: var(--text-3); font-size: 13.5px; }
.gw-total.on { color: #4ade80; }
.gw-footer {
    position: sticky; bottom: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: rgba(15,26,43,0.92); backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong); border-radius: 14px;
    padding: 14px 20px; box-shadow: var(--shadow-md);
    z-index: 40;
}
.gw-footer-meta { min-width: 0; }
.gw-footer-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gw-footer-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.gw-footer-count { font-size: 12px; color: var(--text-3); }
.gw-footer-breakdown { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.gw-bd-chip {
    font-size: 11px; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 3px 10px; border-radius: 999px;
}
.gw-bd-chip b { color: var(--gold); font-weight: 800; }
.gw-bd-chip.muted { color: var(--text-3); font-style: italic; }
.gw-footer-right { display: flex; align-items: center; gap: 14px; }
.gw-copy-btn { padding: 8px 14px; font-size: 13px; }
.gw-footer-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Kingpin winners & ease-of-use ── */
.btn-gold {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(251,191,36,0.14); color: var(--gold);
    border: 1px solid rgba(251,191,36,0.35); border-radius: 10px;
    padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.btn-gold:hover { background: rgba(251,191,36,0.22); }
.podium-slot {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 16px; padding: 14px; min-width: 0;
}
.podium-first { border: 2px solid rgba(251,191,36,0.6); background: rgba(251,191,36,0.05); }
.podium-name { font-size: 13px; font-weight: 700; margin: 4px 0 2px; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-points { font-size: 20px; font-weight: 800; }
.podium-pts-label { font-size: 10px; color: var(--text-3); margin-bottom: 6px; }
.podium-kills { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.podium-reward { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 8px; }
.winner-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 10px 12px; margin-bottom: 6px;
}
.winner-rank { width: 28px; text-align: center; font-size: 14px; font-weight: 800; color: var(--text-3); }
.winner-name { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-kills { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.winner-kill-badge { padding: 1px 6px; border-radius: 4px; font-size: 9.5px; font-weight: 800; }
.winner-points { font-size: 15px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.winner-reward { min-width: 96px; text-align: right; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.kill-stepper {
    display: inline-flex; align-items: center; gap: 2px;
    border: 1px solid var(--border); border-radius: 9px; padding: 3px 4px;
    background: var(--surface-2);
}
.kill-step-btn {
    width: 22px; height: 22px; border-radius: 6px; border: none;
    background: rgba(255,255,255,0.06); color: var(--text);
    font-size: 13px; font-weight: 800; cursor: pointer; line-height: 1;
}
.kill-step-btn:hover { background: rgba(255,255,255,0.14); }
.kill-step-input {
    width: 46px; border: none; background: transparent; text-align: center;
    font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums;
    color: var(--text); -moz-appearance: textfield;
}
.kill-step-input::-webkit-outer-spin-button, .kill-step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kill-step-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(38,114,255,0.35); border-radius: 4px; }
.kill-step-label { font-size: 9px; font-weight: 800; margin-left: 2px; }
.member-select-row {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 9px 12px; margin-bottom: 5px;
    cursor: pointer; text-align: left; color: var(--text);
    transition: border-color 0.12s, background 0.12s;
}
.member-select-row:hover { border-color: var(--border-strong); }
.member-select-row.on { border-color: var(--accent); background: rgba(38,114,255,0.08); }
.member-select-checkbox {
    width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
    border: 2px solid var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff;
}
.member-select-row.on .member-select-checkbox { background: var(--accent); border-color: var(--accent); }
.closed-lb-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.045); font-size: 13px;
}
.closed-lb-row:last-child { border-bottom: none; }
.closed-lb-row.winner { border-left: 3px solid var(--gold); background: rgba(251,191,36,0.04); }
.closed-lb-rank { width: 34px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.closed-lb-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.closed-lb-pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.closed-lb-reward { font-size: 12px; font-weight: 800; color: var(--gold); background: rgba(251,191,36,0.12); padding: 3px 8px; border-radius: 6px; }
.member-avatar-sm {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 800; color: #fff;
}
.donation-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.donation-table th {
    text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em;
    background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
}
.donation-table td { padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,0.045); vertical-align: middle; }
.donation-table tbody tr { transition: background 0.12s; }
.donation-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.donation-table tbody tr.row-done { background: rgba(34,197,94,0.045); }
.donation-table tbody tr:last-child td { border-bottom: none; }
.th-sub { display: block; font-size: 9px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text-3); margin-top: 1px; }
.chip-missing {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35);
    color: #fca5a5; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 650;
}
.tab-count.warn { background: rgba(248,113,113,0.18); color: #fca5a5; }
.btn-ghost.all-on { color: #4ade80; }
.stat-inactive { opacity: .8; border-style: dashed; border-color: rgba(255,255,255,0.12); }
.chip-disabled { opacity: .5; cursor: not-allowed; border-style: dashed; }
.chip-disabled:hover { background: rgba(255,255,255,0.04); border-color: var(--border-strong); transform: none; }
.rank-group-row td {
    background: rgba(255,255,255,0.035);
    padding: 6px 14px !important;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.rank-group-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; color: #fff; letter-spacing: 0.03em;
}
.rank-group-role { color: var(--text-2); font-weight: 650; margin-left: 8px; text-transform: capitalize; }
.rank-group-count { color: var(--text-3); margin-left: 8px; font-size: 11.5px; }
.rank-group-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 6px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-top: 6px;
}
.rank-group-header:first-of-type { margin-top: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; color: var(--text-2); flex-wrap: wrap; }
.stat-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
    box-shadow: var(--shadow-sm), var(--glow);
}
.stat-card .stat-emoji { font-size: 20px; margin-bottom: 6px; }
.stat-card .stat-value { font-size: 20px; }
.stat-card .stat-value.muted { color: var(--text-3); }
.stat-card .stat-flow { display: flex; gap: 10px; margin-top: 6px; font-size: 10.5px; font-weight: 650; }
.stat-card .stat-flow .in { color: #4ade80; }
.stat-card .stat-flow .out { color: #f87171; }
.stat-card .stat-sub { font-size: 11px; color: var(--text-3); }
.stat-card .stat-sub .missing { color: #f87171; font-weight: 700; }
.stat-card .stat-sub .ok { color: #4ade80; font-weight: 700; }
.resource-input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 900px) { .form-grid-2 { grid-template-columns: 1fr; } }
.progress { width: 100%; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #fbbf24); transition: width 0.3s ease; }
.progress-bar.done { background: linear-gradient(90deg, #22c55e, #4ade80); }
.badge-open { background: rgba(34,197,94,0.14); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.badge-closed { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; margin-right: 5px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.donation-cycle-card {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px 18px; margin-bottom: 10px;
    text-decoration: none; color: inherit;
    box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.donation-cycle-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: rgba(38,114,255,0.4); }
.donation-cycle-card.open { border-left: 3px solid rgba(34,197,94,0.7); }
.dcc-main { flex: 1; min-width: 240px; }
.dcc-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dcc-name { font-weight: 700; font-size: 14.5px; }
.dcc-date { font-size: 11.5px; color: var(--text-3); }
.dcc-meta { display: flex; gap: 14px; margin-top: 5px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.dcc-pct { font-weight: 800; color: var(--gold); }
.dcc-pct.done { color: #4ade80; }
.dcc-resources { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 420px; }
.dcc-res {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 999px; padding: 3px 10px; font-size: 11.5px;
}
.dcc-res-nums { color: var(--gold); font-weight: 700; }
.dcc-res-nums.ok { color: #4ade80; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tab {
    padding: 9px 18px; font-size: 13px; font-weight: 650; color: var(--text-2);
    background: transparent; border: none; border-bottom: 2px solid transparent;
    cursor: pointer; transition: all 0.12s ease; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,0.08); font-size: 10.5px; font-weight: 700; margin-left: 4px; }
.tab.active .tab-count { background: rgba(38,114,255,0.25); color: #93c5fd; }
.member-list { display: flex; flex-direction: column; gap: 10px; }
.member-row {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px 16px;
    box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.member-row.done { border-color: rgba(34,197,94,0.4); background: linear-gradient(180deg, rgba(34,197,94,0.06), var(--surface)); }
.mr-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mr-identity { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.mr-name { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-influence { font-size: 11.5px; color: var(--text-3); }
.mr-progress-wrap { display: flex; align-items: center; gap: 8px; }
.mr-progress-text { font-size: 11px; font-weight: 700; color: var(--text-2); min-width: 30px; text-align: right; }
.mr-toggle-all.all-on { color: #4ade80; border-color: rgba(34,197,94,0.4); }
.mr-resources { display: flex; gap: 8px; flex-wrap: wrap; }
.donation-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
    color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: all 0.12s ease;
}
.donation-chip:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
.donation-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.donation-chip.on {
    background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.45); color: #4ade80;
    box-shadow: 0 0 10px rgba(34,197,94,0.15);
}
.dc-state { font-size: 11px; }
.save-bar {
    position: sticky; bottom: 12px; z-index: 40;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    background: rgba(15,26,43,0.94); backdrop-filter: blur(12px);
    border: 1px solid var(--green-border); border-radius: 14px;
    padding: 12px 20px; box-shadow: var(--shadow-md), 0 0 20px rgba(34,197,94,0.15);
}
.save-bar-text { font-size: 13px; font-weight: 650; color: #4ade80; }
.txn-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 10px 16px; margin-bottom: 8px;
    transition: border-color .12s;
}
.txn-row:hover { border-color: rgba(255,255,255,0.15); }
.txn-emoji { font-size: 19px; }
.txn-body { flex: 1; min-width: 0; }
.txn-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.txn-type { font-size: 12.5px; font-weight: 700; }
.txn-type.in { color: #4ade80; }
.txn-type.out { color: #f87171; }
.txn-member { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.txn-cycle { font-size: 10.5px; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.txn-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.txn-amount { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.txn-amount.in { color: #4ade80; }
.txn-amount.out { color: #f87171; }

/* ── FAB ── */
.fab {
    position: fixed; bottom: 28px; right: 28px;
    width: 54px; height: 54px; border-radius: 27px;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: #fff; border: none;
    font-size: 26px; font-weight: 300; cursor: pointer; z-index: 40;
    box-shadow: 0 8px 24px rgba(38,114,255,0.45);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fab:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(38,114,255,0.55); }

/* ── Modal ── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(3, 7, 15, 0.62);
    backdrop-filter: blur(4px);
    z-index: 200; align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 22px 22px 0 0;
    width: 100%; max-width: 620px; max-height: 88vh;
    overflow-y: auto; padding: 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
    animation: sheet-up 0.22s ease;
}
@keyframes sheet-up {
    from { transform: translateY(24px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-handle {
    width: 38px; height: 4.5px; background: rgba(255,255,255,0.16); border-radius: 3px;
    margin: 12px auto 10px;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 24px 14px;
}
.modal-header h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.modal-close {
    font-size: 20px; color: var(--text-3); cursor: pointer;
    background: var(--surface-2); border: none; border-radius: 50%;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    transition: all 0.12s;
}
.modal-close:hover { background: var(--surface-3); color: var(--text); }
.modal-body { padding: 0 24px 40px; }
.modal-sheet--winners { max-width: 780px; }
.modal-sheet--winners .modal-body { overflow-y: auto; max-height: calc(88vh - 90px); }

/* ── Score Badge ── */
.score-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; padding: 3px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}
.score-positive { background: rgba(34,197,94,0.16); color: #4ade80; }
.score-negative { background: rgba(239,68,68,0.16); color: #f87171; }
.score-neutral { background: var(--surface-2); color: var(--text-2); }

/* ── Rank Bar ── */
.rank-bar-bg { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.rank-bar { height: 100%; border-radius: 3px; }

/* ── Leader Row ── */
.leader-row { display: flex; align-items: center; gap: 12px; }
.leader-avatar {
    width: 44px; height: 44px; border-radius: 22px;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    display: flex; align-items: center;
    justify-content: center; color: #fff; font-weight: 800; font-size: 18px;
}
.leader-badge {
    background: rgba(255,209,102,0.14); padding: 5px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: #FFD166;
}

/* ── Empty State ── */
.empty-state { text-align: center; padding: 56px 40px; }
.empty-emoji {
    width: 64px; height: 64px; border-radius: 20px;
    background: var(--surface-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto 16px;
}
.empty-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.empty-text { font-size: 13.5px; color: var(--text-3); margin-bottom: 20px; }

/* ── Auth Pages ── */
.auth-container {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(38,114,255,0.10), transparent), linear-gradient(180deg, #0B1220 0%, #0F1A2B 100%);
    padding: 20px;
}
.auth-card {
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 20px; padding: 44px 40px;
    width: 100%; max-width: 400px;
    box-shadow: var(--shadow-md), var(--glow);
}
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-bottom: 4px; }
.auth-subtitle { font-size: 13.5px; color: var(--text-3); text-align: center; margin-bottom: 30px; }
.auth-brand { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-bottom: 10px; }
.auth-brand .brand-dot {
    display: inline-flex; width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: #fff; align-items: center; justify-content: center;
    font-size: 15px; margin-right: 8px; vertical-align: -7px;
}
.auth-brand span.accent { color: var(--gold); }
.pending-icon { font-size: 56px; margin-bottom: 16px; text-align: center; }
.pending-text { font-size: 14px; color: var(--text-2); margin-bottom: 24px; line-height: 1.6; text-align: center; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-3); }
.auth-footer a { color: var(--text); font-weight: 600; }
.auth-footer a:hover { color: var(--gold); }

/* ── Alert ── */
.alert {
    padding: 12px 16px; border-radius: 12px; margin-bottom: 18px;
    font-size: 13px; font-weight: 500;
    border: 1px solid transparent;
}
.alert-success { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.alert-error { background: rgba(239,68,68,0.12); color: #f87171; border-color: rgba(239,68,68,0.3); }
.alert-warning { background: rgba(255,209,102,0.12); color: #FFD166; border-color: rgba(255,209,102,0.3); }

/* ── Responsive ── */
.mobile-menu { display: none; }
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5); }
    .sidebar.collapsed { width: 264px; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .main.collapsed { margin-left: 0; }
    .mobile-menu { display: flex; }
    .collapse-btn { display: none; }
    .content { padding: 18px 16px 96px; }
    .topbar { padding: 0 16px; }
    .quick-nav { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .fab { bottom: 20px; right: 20px; }
}

/* ── Hell Event Planner ── */
.muted { color: var(--text-3); }

.hell-enforcers { display: flex; gap: 10px; margin-bottom: 14px; }
.hell-enforcer {
    flex: 1; padding: 14px 16px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-2); font-size: 16px; font-weight: 800; cursor: pointer;
    transition: all 0.15s; text-align: center;
}
.hell-enforcer:hover { border-color: var(--border-strong); }
.hell-enforcer.active {
    background: var(--accent-soft); border-color: var(--accent);
    color: var(--text); box-shadow: 0 0 0 1px var(--accent), var(--glow);
}

.hell-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
    box-shadow: var(--shadow-sm), var(--glow);
}
.hell-card-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }

.hell-upgrade-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.hell-stage {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 10px 12px; text-align: center;
}
.hell-stage.current { border-color: var(--gold); background: rgba(255,209,102,0.07); }
.hell-stage.done { border-color: var(--green-border); background: var(--green-soft); }
.hell-stage-name { font-size: 13px; font-weight: 800; }
.hell-stage-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.hell-upgrade-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hell-upgrade-sum { font-size: 13px; color: var(--text-2); }
.hell-upgrade-sum .hell-ok { color: var(--green); }

.hell-inline-field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.hell-inline-field > span { white-space: nowrap; }

.hell-tasks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.hell-objective { border-color: var(--border-strong); }
.hell-objective.done { border-color: var(--green-border); box-shadow: 0 0 0 1px var(--green-border), var(--glow); }
.hell-obj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.hell-obj-title { font-size: 17px; font-weight: 800; }
.hell-obj-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.hell-obj-pts { font-size: 18px; font-weight: 800; color: var(--accent); text-align: right; white-space: nowrap; }
.hell-obj-pts span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.hell-progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.hell-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #5b9bff); transition: width 0.25s ease; }
.hell-objective.done .hell-progress-fill { background: linear-gradient(90deg, var(--green), #4ade80); }
.hell-obj-status { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.hell-obj-status.ok { color: var(--green); font-weight: 700; }

.hell-speed { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.hell-speed-hint { font-size: 11px; color: var(--text-3); align-self: center; }

.hell-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hell-presets-label { font-size: 12px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.hell-line {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 8px 10px; margin-bottom: 8px;
}
.hell-line-build { flex: 1; min-width: 180px; }
.hell-line-troop { flex: 1; min-width: 200px; }
.hell-mini { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.hell-line-pts {
    font-size: 12px; font-weight: 800; color: var(--green);
    background: var(--green-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.hell-addline {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    border: 1px dashed var(--border-strong); border-radius: 12px; padding: 10px; margin-top: 12px;
}

.hell-summary {
    margin-top: 14px; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
}
.hell-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; color: var(--text-2); }
.hell-sum-row b { color: var(--text); text-align: right; }
.hell-warn { margin-top: 8px; font-size: 12px; color: var(--gold); }

.hell-tabs { display: flex; gap: 8px; margin-bottom: 14px; }

.hell-bulk { margin-bottom: 14px; }
.hell-bulk-title { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.hell-bulk-ta { width: 100%; min-height: 120px; font-family: ui-monospace, monospace; font-size: 12px; resize: vertical; }
.hell-bulk-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }

.hell-levels-wrap { overflow-x: auto; max-height: 60vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
.hell-levels { width: 100%; border-collapse: collapse; font-size: 13px; }
.hell-levels th {
    position: sticky; top: 0; background: var(--surface-3); color: var(--text-2);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 8px 10px; text-align: left; z-index: 1;
}
.hell-levels td { padding: 4px 6px; border-top: 1px solid var(--border); }
.hell-levels .form-input { width: 100%; min-width: 90px; padding: 6px 8px; }
.hell-lv-num { font-weight: 800; color: var(--text-3); text-align: center; white-space: nowrap; }

.hell-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }

.hell-building {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 10px 14px; margin-bottom: 8px;
}
.hell-building-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hell-building-name { font-size: 14px; font-weight: 800; }
.hell-building-icon { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.hell-building-icon.placeholder { display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hell-building-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Hell Event — narrow D/H/M/S time inputs in the levels editor */
.hell-time-d { min-width: 58px !important; }

/* Hell Event — enforcer avatars */
.hell-enforcer { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hell-enforcer-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border); background: var(--surface-2);
}
.hell-enforcer.active .hell-enforcer-avatar { border-color: var(--gold); box-shadow: 0 0 10px rgba(255,209,102,.35); }
.hell-enforcer-avatar.placeholder {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; color: var(--text-3);
}
.hell-enforcer-name { line-height: 1.15; }
.hell-upgrade-title { display: flex; align-items: center; gap: 10px; }
.hell-enforcer-avatar.sm { width: 28px; height: 28px; border-radius: 8px; border-width: 1px; }

/* Hell Event — kingpin energy + challenge counts */
.hell-energy {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px;
}
.hell-energy-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 800; color: var(--text-2); white-space: nowrap;
}
.hell-energy-ic { font-size: 14px; line-height: 1; }
.hell-energy-levels { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hell-energy-field { display: flex; align-items: center; gap: 5px; }
.hell-energy-field span { font-size: 12px; font-weight: 700; color: var(--text-3); }
.hell-line-ch {
    font-size: 12px; font-weight: 700; color: var(--gold);
    background: rgba(255,209,102,.08); border: 1px solid rgba(255,209,102,.25);
    border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}

/* Hell Event — tier progress dots + totals chips */
.hell-stage-progress { display: flex; justify-content: center; gap: 4px; margin-top: 7px; }
.hell-stage-progress .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.hell-stage-progress .dot.on { background: var(--gold); box-shadow: 0 0 5px rgba(255,209,102,.6); }

.hell-totals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.hell-total-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.hell-total-chip b { color: var(--text); }

/* Hell Event — energy pot icon (real asset) */
.hell-energy-ic-img { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; display: inline-block; }
.hell-energy-ic-img.sm { width: 13px; height: 13px; vertical-align: -2px; }
.hell-energy-title .hell-energy-ic-img { width: 17px; height: 17px; vertical-align: -3px; }
.hell-ic { font-size: 13px; line-height: 1; }

/* Hell Event — add-line zone (visually separated from added rows) */
.hell-addline {
    position: relative;
    background: rgba(38, 114, 255, 0.045);
    border: 1.5px dashed rgba(38, 114, 255, 0.45) !important;
    padding: 26px 10px 10px;
}
.hell-addline::before {
    content: '➕ Add line';
    position: absolute; top: 7px; left: 10px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
    color: var(--text-3);
}

/* Hell Event — gold coin icon */
.hell-gold-ic { width: 15px; height: 15px; object-fit: contain; vertical-align: -2px; display: inline-block; }

/* ── Tools list page ── */
.tools-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tool-card { align-items: flex-start; text-align: left; padding: 16px; gap: 4px; }
.tool-card .quick-icon { margin-bottom: 10px; }
.tool-card .quick-label { font-weight: 800; font-size: 14px; color: var(--text); }
.tool-desc { font-size: 11.5px; line-height: 1.45; color: var(--text-3); margin-top: 4px; flex: 1; }
.tool-arrow {
    margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
    color: var(--primary); opacity: 0; transform: translateX(-4px); transition: all 0.15s ease;
}
.tool-card:hover .tool-arrow { opacity: 1; transform: translateX(0); }
.tool-card:hover .quick-icon { transform: scale(1.06); }

/* ── Tools / Settings list pages — v2: 3-per-row, big icon left ── */
.tools-grid { grid-template-columns: repeat(3, 1fr); }
.settings-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.tool-card { flex-direction: row; align-items: center; text-align: left; padding: 18px; gap: 14px; }
.tool-icon { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.tool-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tool-card .quick-label { margin-bottom: 2px; }
.tool-card .quick-icon { margin-bottom: 0; flex-shrink: 0; }
@media (max-width: 1100px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: 1fr; }
}

/* ── Tools list page — v3: 2-per-row, bigger icons ── */
.tools-grid { grid-template-columns: repeat(2, 1fr); }
.tool-card { padding: 22px; gap: 18px; }
.tool-icon { width: 84px; height: 84px; border-radius: 18px; }
.tool-desc { font-size: 12.5px; line-height: 1.55; }
.tool-card .quick-label { font-size: 15px; }
@media (max-width: 760px) {
    .tools-grid { grid-template-columns: 1fr; }
}

/* ── Dashboard — Mission Control ── */
.mc-hero {
    display: flex; align-items: center; gap: 22px; padding: 26px 28px; margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(38, 114, 255, 0.16), rgba(11, 18, 32, 0.35) 60%), var(--surface);
    border: 1px solid rgba(38, 114, 255, 0.28); border-radius: var(--radius);
    box-shadow: var(--shadow-sm), var(--glow);
}
.mc-hero-avatar { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255, 209, 102, 0.55); box-shadow: var(--shadow-md); }
.mc-hero-title { font-size: 22px; font-weight: 800; }
.mc-hero-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.mc-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mc-chip {
    display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
}
.mc-chip b { color: var(--text); }
.mc-tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 22px; }
.mc-tool {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; text-align: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: all 0.15s ease; text-decoration: none;
}
.mc-tool:hover { transform: translateY(-2px); border-color: rgba(38, 114, 255, 0.5); box-shadow: var(--shadow-md); }
.mc-tool img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.mc-tool span { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.mc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 24px; }
@media (max-width: 900px) {
    .mc-grid { grid-template-columns: 1fr; }
    .mc-tools { grid-template-columns: repeat(3, 1fr); }
    .mc-hero { flex-direction: column; text-align: center; padding: 22px 18px; }
    .mc-chips { justify-content: center; }
}

/* ── Auth — split panel revamp ── */
.auth-body { min-height: 100vh; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-split {
    display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 960px; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md), var(--glow);
}
.auth-brand-panel {
    background: linear-gradient(150deg, rgba(38, 114, 255, 0.22), rgba(11, 18, 32, 0.5) 60%), var(--surface);
    padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.auth-brand-row { display: flex; align-items: center; gap: 16px; }
.auth-brand-avatar { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; border: 2px solid rgba(255, 209, 102, 0.55); box-shadow: var(--shadow-md); }
.auth-brand-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.auth-brand-title .accent { color: var(--gold); }
.auth-brand-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.auth-brand-tag { font-size: 14.5px; font-weight: 600; color: var(--text-2); line-height: 1.5; }
.auth-features { display: flex; flex-direction: column; gap: 10px; }
.auth-feature { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.auth-feature span { color: var(--text-2); }
.auth-form-panel { background: var(--surface); padding: 44px 40px; display: flex; align-items: center; }
.auth-form-panel .auth-card { width: 100%; }
@media (max-width: 760px) {
    .auth-split { grid-template-columns: 1fr; max-width: 440px; }
    .auth-brand-panel { padding: 28px 24px; }
    .auth-form-panel { padding: 28px 24px; }
}

/* Auth split — neutralize the old standalone card inside the form panel */
.auth-form-panel .auth-card { background: transparent; border: none; box-shadow: none; padding: 0; max-width: none; }
