/* ============================= RUST STATS - VIEWS ============================= */

/* ------------------------------ 20. PROFILE ------------------------------- */

.profile-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 2fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 24px;
}
.profile-aside { display: flex; flex-direction: column; gap: 16px; }
.profile-main { display: flex; flex-direction: column; min-width: 0; }

.avatar-frame { position: relative; border-radius: var(--r); overflow: hidden; }
.avatar-frame img { display: block; border-radius: var(--r); border: 1px solid var(--line-2) !important; }
.avatar-glow {
    position: absolute; inset: 0;
    border-radius: var(--r);
    pointer-events: none;
    box-shadow: inset 0 0 60px -10px rgba(var(--accent-rgb), 0.4);
    background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 11, 0.85));
}

.profile-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.profile-uid {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--faint);
    margin: 3px 0 8px;
    word-break: break-all;
}
.profile-actions { display: flex; flex-direction: column; gap: 10px; }

/* weapon / signature loadout */
.weapon-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    overflow: hidden;
}
.weapon-card.hidden { display: none; }
.weapon-card-img {
    width: 84px; height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}
.weapon-card-content { position: relative; z-index: 2; }
.weapon-card-eyebrow {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 4px;
}
.weapon-card-title { font-family: var(--font-display); font-size: 22px; color: #fff; line-height: 1; }
.weapon-card-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.weapon-bg-icon {
    position: absolute;
    right: -18px; bottom: -18px;
    width: 130px;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
}

/* ---------------------------- 21. AI TERMINAL ----------------------------- */

.ai-terminal {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: var(--r);
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.03), transparent 30%),
        var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    min-height: 380px;
}
.ai-scan-bar {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
}
.ai-terminal.scanning .ai-scan-bar { opacity: 1; animation: scanMove 1.6s linear infinite; }
@keyframes scanMove { 0% { top: 0; } 100% { top: 100%; } }
.ai-terminal.scanning { border-color: rgba(var(--accent-rgb), 0.35); }

/* AI verdicts kill switch: frosted overlay while generation is disabled */
.ai-offline {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: rgba(11, 11, 12, 0.55);
    -webkit-backdrop-filter: blur(9px) saturate(0.7);
    backdrop-filter: blur(9px) saturate(0.7);
    border-radius: inherit;
    animation: aiOfflineIn 0.28s ease both;
}
.ai-offline.hidden { display: none; }
@keyframes aiOfflineIn { from { opacity: 0; } to { opacity: 1; } }
.ai-offline-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 330px;
    padding: 22px 24px;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.24);
    background: linear-gradient(180deg, rgba(26, 17, 13, 0.88), rgba(14, 14, 15, 0.92));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ai-offline-icon { color: var(--accent); display: flex; }
.ai-offline-icon svg { width: 30px; height: 30px; }
.ai-offline-title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1.1;
}
.ai-offline-sub { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.ai-offline-pill {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffb694;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    padding: 4px 9px;
    border-radius: 4px;
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.ai-header-left { display: flex; align-items: center; gap: 9px; }
.ai-header-title { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: #d3d3da; }
.ai-help {
    display: flex; align-items: center; gap: 5px;
    background: none; border: 0; cursor: pointer;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-left: 6px;
}
.ai-help span { color: var(--faint); text-decoration: underline dotted; text-underline-offset: 3px; }
.ai-help:hover span { color: var(--muted); }
.ai-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    color: var(--muted);
}

.ai-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.ai-initial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 6px;
    color: var(--faint);
    opacity: 0.7;
}
.ai-initial.hidden { display: none; }
.ai-results { display: flex; flex-direction: column; height: 100%; }
.ai-results.hidden { display: none; }
.ai-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.ai-role-block { min-width: 0; overflow: hidden; }
.ai-score-block { text-align: right; flex-shrink: 0; }
.ai-mini-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 4px;
}
.ai-verdict-box {
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.75;
    color: #c1c1cb;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px;
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
}
.ai-results-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.ai-metrics {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}
.toxicity-meter {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid var(--line);
}
.toxicity-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-analyze {
    margin-top: 18px;
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--accent), #b0331b);
    color: #fff;
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: all 0.24s ease;
}
.btn-analyze:hover { filter: brightness(1.12); box-shadow: 0 14px 44px -14px rgba(var(--accent-rgb), 0.9); transform: translateY(-1px); }
.btn-analyze:active { transform: translateY(0) scale(0.99); }

.ai-cooldown-msg {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--amber);
    margin-bottom: 8px;
}
.ai-cooldown-msg.hidden { display: none; }
.ai-bypass-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-decoration: none;
    padding: 8px 13px;
    border: 1px dashed rgba(var(--accent-rgb), 0.5);
    border-radius: var(--r-xs);
    background: rgba(var(--accent-rgb), 0.06);
}
.ai-bypass-link.hidden { display: none; }
.ai-bypass-link:hover { background: rgba(var(--accent-rgb), 0.14); }

/* Optional Cloudflare Turnstile widget, only present when the site key is set */
.ai-turnstile {
    display: flex;
    justify-content: center;
    margin: 12px 0 0;
}
.ai-turnstile.hidden { display: none; }

/* Cached verdict languages: a chip per language that already has a roast */
.ai-langs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
}
.ai-langs.hidden { display: none; }
.ai-langs-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--faint);
    margin-right: 2px;
}
.ai-lang-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    padding: 5px 8px;
    color: var(--amber);
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: var(--r-xs);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.ai-lang-chip:hover { background: rgba(234, 179, 8, 0.2); transform: translateY(-1px); }
.ai-lang-chip.is-active { background: var(--amber); border-color: var(--amber); color: #0b0b0c; }

/* Reminder that the verdict is written in the language selected in the header */
.ai-lang-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 10px 0 0;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
    color: var(--faint);
}
.ai-lang-note svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--amber);
    opacity: 0.9;
}
.ai-lang-note b { color: var(--amber); font-weight: 600; }

/* Out-of-scans offer: animated supporter / bypass panel inside the AI block */
.ai-upsell {
    position: absolute;
    inset: 0;
    z-index: 31;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow-y: auto;
    border-radius: inherit;
    background: rgba(9, 9, 10, 0.66);
    -webkit-backdrop-filter: blur(8px) saturate(0.75);
    backdrop-filter: blur(8px) saturate(0.75);
}
.ai-upsell.hidden { display: none; }
.ai-upsell.is-open { animation: aiUpsellFade 0.25s ease both; }
@keyframes aiUpsellFade { from { opacity: 0; } to { opacity: 1; } }

.ai-upsell-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 22px 20px 18px;
    border-radius: 12px;
    border: 1px solid rgba(234, 179, 8, 0.35);
    background:
        radial-gradient(120% 90% at 50% -20%, rgba(var(--accent-rgb), 0.18), transparent 60%),
        linear-gradient(180deg, rgba(28, 20, 14, 0.96), rgba(13, 13, 14, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: aiUpsellPop 0.4s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes aiUpsellPop {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
.ai-upsell-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.7), rgba(234, 179, 8, 0.15), rgba(var(--accent-rgb), 0.7));
    background-size: 220% 220%;
    -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, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: aiUpsellGlow 5s linear infinite;
    pointer-events: none;
}
@keyframes aiUpsellGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ai-upsell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--amber);
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    animation: aiUpsellPulse 2.4s ease-in-out infinite;
}
.ai-upsell-icon svg { width: 22px; height: 22px; }
@keyframes aiUpsellPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
    50% { box-shadow: 0 0 22px 0 rgba(234, 179, 8, 0.25); }
}

.ai-upsell-title {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.03em;
    line-height: 1.05;
    color: #fff;
}
.ai-upsell-sub { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.ai-upsell-perks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: 2px 0 4px;
    text-align: left;
}
.ai-upsell-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #cfcfd6;
    padding: 6px 9px;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: aiPerkIn 0.4s ease both;
}
.ai-upsell-perks li:nth-child(2) { animation-delay: 0.08s; }
.ai-upsell-perks li:nth-child(3) { animation-delay: 0.16s; }
.ai-upsell-perks li svg { width: 14px; height: 14px; color: var(--amber); flex-shrink: 0; }
@keyframes aiPerkIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: none; }
}

.ai-upsell-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
    padding: 11px 14px;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.05em;
    color: #1a0d05;
    cursor: pointer;
    border: 0;
    border-radius: var(--r-xs);
    background: linear-gradient(135deg, var(--amber), var(--accent));
    box-shadow: 0 12px 30px -12px rgba(var(--accent-rgb), 0.8);
    transition: transform 0.18s ease, filter 0.18s ease;
}
.ai-upsell-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ai-upsell-cta svg { width: 16px; height: 16px; }

.ai-upsell-bypass {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    border: 1px dashed rgba(var(--accent-rgb), 0.5);
    border-radius: var(--r-xs);
    background: rgba(var(--accent-rgb), 0.06);
}
.ai-upsell-bypass:hover { background: rgba(var(--accent-rgb), 0.14); }
.ai-upsell-bypass svg { width: 14px; height: 14px; }

.ai-upsell-dismiss {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--faint);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 2px 4px;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}
.ai-upsell-dismiss:hover { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .ai-upsell,
    .ai-upsell-card,
    .ai-upsell-icon,
    .ai-upsell-card::before,
    .ai-upsell-perks li { animation: none; }
}

/* ---------------------------- 22. TRUST FACTOR ---------------------------- */

.trust-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.tf-panel {
    position: relative;
    padding: 16px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: all 0.3s ease;
}
.tf-panel-inner { position: relative; z-index: 2; display: flex; gap: 14px; align-items: flex-start; }
.tf-icon { margin-top: 2px; }
.tf-title { font-family: var(--font-display); font-size: 20px; color: #fff; line-height: 1; margin: 0 0 5px; }
.tf-desc { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.tf-glow { position: absolute; inset: 0; opacity: 0.14; background: transparent; pointer-events: none; }

.mini-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color 0.24s ease;
}
.mini-stat:hover { border-color: var(--line-2); }
.mini-stat-left {
    display: flex; align-items: center; gap: 11px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.mini-stat-left i { color: var(--faint); }
.mini-stat-right { text-align: right; }
.mini-stat-val { font-family: var(--font-display); font-size: 19px; color: #fff; line-height: 1.1; }
.mini-stat-sub { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }

/* ---------------------------- 23. STAT PANELS ----------------------------- */

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.stat-panel {
    padding: 22px;
    border-radius: var(--r);
    background: linear-gradient(180deg, var(--surface), rgba(18, 18, 25, 0.6));
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.panel-title {
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: 0.03em;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.panel-title::before {
    content: '';
    width: 4px; height: 18px;
    border-radius: 3px;
    background: currentColor;
    opacity: 0.85;
}
.panel-title.accent { color: var(--accent); }
.panel-title.green  { color: var(--green); }
.panel-title.amber  { color: var(--amber); }
.panel-title.blue   { color: var(--blue); }

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left 0.2s ease, background 0.2s ease;
}
.data-row:last-child { border-bottom: 0; }
.data-row:hover { padding-left: 8px; }
.data-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.data-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: #e6e6ec;
    font-variant-numeric: tabular-nums;
}

/* PVE tiles */
.pve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pve-tile {
    padding: 20px 14px;
    text-align: center;
    border-radius: var(--r);
    background: linear-gradient(180deg, var(--surface), rgba(18, 18, 25, 0.55));
    border: 1px solid var(--line);
    transition: transform 0.24s ease, border-color 0.24s ease;
}
.pve-tile:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.35); }
.pve-tile .data-label { display: block; margin-bottom: 8px; }
.pve-value { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.nature-row {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    padding-top: 4px;
}

/* ---------------------------- 24. ACHIEVEMENTS ---------------------------- */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.ach-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: all 0.24s ease;
}
.ach-card.unlocked { border-color: rgba(245, 185, 66, 0.3); background: linear-gradient(135deg, rgba(245, 185, 66, 0.06), var(--surface)); }
.ach-card.unlocked:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(245, 185, 66, 0.5); }
.ach-card.locked { opacity: 0.55; }
.ach-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}
.ach-card.unlocked .ach-icon { background: rgba(245, 185, 66, 0.12); border-color: rgba(245, 185, 66, 0.3); }
.ach-icon img { width: 34px; height: 34px; object-fit: contain; }
.ach-info { min-width: 0; }
.ach-name { font-family: var(--font-display); font-size: 17px; color: #fff; line-height: 1.1; }
.ach-desc { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.ach-date { font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); margin-top: 5px; }

/* ---------------------------- 25. LEADERBOARD ----------------------------- */

/* --- toolbar: sort control + player search --- */
.lb-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.seg-control {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.lb-filter-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s ease;
}
.lb-filter-btn:hover { color: #fff; }
.lb-filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #a8321a);
    box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), 0.8);
}

/* --- board scope switch: last 30 days / all time / supporters --- */
.lb-toolbar .lb-sort.hidden { display: none; }

.lb-scope-note {
    margin: -6px 0 16px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.5;
}
.lb-scope-note.hidden { display: none; }

/* --- supporters board --- */
.lb-supporters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}
.lb-supporters.hidden { display: none; }
.lb-sup-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 200, 87, 0.22);
    background: linear-gradient(180deg, rgba(30, 24, 12, 0.55), rgba(17, 17, 19, 0.75));
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lb-sup-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 87, 0.85), transparent);
    opacity: 0.75;
}
.lb-sup-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 200, 87, 0.5);
    box-shadow: 0 20px 44px -18px rgba(255, 200, 87, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lb-sup-rank {
    position: absolute;
    top: 9px;
    left: 11px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--faint);
}
.lb-sup-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 200, 87, 0.35);
    box-shadow: 0 0 22px -6px rgba(255, 200, 87, 0.35);
}
.lb-sup-name {
    max-width: 100%;
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-sup-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    min-height: 18px;
}
.lb-sup-stats {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    justify-content: center;
}
.lb-sup-stats span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}
.lb-sup-stats b {
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.02em;
}
.lb-sup-card .lb-vac {
    position: absolute;
    top: 9px;
    right: 9px;
}

.lb-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    flex: 0 1 300px;
    min-width: 200px;
}
.lb-search-icon {
    position: absolute;
    left: 13px;
    width: 15px;
    height: 15px;
    color: var(--faint);
    pointer-events: none;
}
.lb-search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 10px 38px 10px 34px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lb-search-input:focus {
    border-color: var(--line-warm);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.lb-search-input::placeholder {
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}
.lb-search-clear {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.lb-search-clear:hover { background: rgba(var(--accent-rgb), 0.18); color: #fff; }
.lb-search-clear.hidden { display: none; }

/* --- top 3 podium --- */
.lb-podium {
    display: grid;
    grid-template-columns: 1fr 1.14fr 1fr;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}
.lb-podium.hidden { display: none; }
.lb-pod-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 16px 18px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.lb-pod-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.lb-pod-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.lb-pod-card.p1 {
    padding-top: 34px;
    padding-bottom: 24px;
    border-color: rgba(245, 185, 66, 0.35);
    box-shadow: 0 24px 60px -30px rgba(245, 185, 66, 0.5);
}
.lb-pod-card.p1::before { background: linear-gradient(90deg, transparent, #f5b942, transparent); }
.lb-pod-card.p2 { border-color: rgba(215, 221, 230, 0.25); }
.lb-pod-card.p2::before { background: linear-gradient(90deg, transparent, #d7dde6, transparent); }
.lb-pod-card.p3 { border-color: rgba(231, 154, 92, 0.28); }
.lb-pod-card.p3::before { background: linear-gradient(90deg, transparent, #e79a5c, transparent); }

.lb-pod-rank {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.lb-pod-card.p1 .lb-pod-rank { color: #ffd76b; }
.lb-pod-card.p2 .lb-pod-rank { color: #d7dde6; }
.lb-pod-card.p3 .lb-pod-rank { color: #e79a5c; }

.lb-pod-avatar-wrap { position: relative; width: 72px; height: 72px; }
.lb-pod-card.p1 .lb-pod-avatar-wrap { width: 96px; height: 96px; }
.lb-pod-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid var(--line-2);
    background: var(--elev);
}
.lb-pod-card.p1 .lb-pod-avatar { border-color: #f5b942; box-shadow: 0 0 28px -6px rgba(245, 185, 66, 0.7); }
.lb-pod-card.p2 .lb-pod-avatar { border-color: #d7dde6; }
.lb-pod-card.p3 .lb-pod-avatar { border-color: #e79a5c; }
.lb-pod-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    color: #ffd76b;
    filter: drop-shadow(0 0 8px rgba(245, 185, 66, 0.9));
}
.lb-pod-name {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-pod-card.p1 .lb-pod-name { font-size: 24px; }
.lb-pod-badges { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; min-height: 18px; }
.lb-pod-badges:empty { display: none; }
.lb-pod-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.lb-pod-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lb-pod-stat span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.lb-pod-stat b { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.lb-pod-stat.on b { color: var(--accent); }
.lb-pod-stat.on span { color: var(--accent-2); }

/* --- role tags --- */
.lb-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 5px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    white-space: nowrap;
}
.lb-tag svg { width: 10px; height: 10px; }
.lb-tag-dev { background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.5); color: #c9b6ff; }
.lb-tag-vip { background: rgba(245, 185, 66, 0.16); border-color: rgba(245, 185, 66, 0.5); color: #ffd76b; }
.lb-tag-custom { background: rgba(var(--accent-rgb), 0.14); border-color: rgba(var(--accent-rgb), 0.45); color: #ffb694; }

/* --- VAC / game-ban marker (leaderboard) --- */
.lb-vac {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 5px;
    color: #ff9a9a;
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(239, 68, 68, 0.42);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.13);
    white-space: nowrap;
}
.lb-vac svg { width: 10px; height: 10px; }
.lb-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lb-name-row .lb-player-name { flex: 1 1 auto; min-width: 0; }
.lb-pod-name-row { display: flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; min-width: 0; }
.lb-pod-name-row .lb-pod-name { min-width: 0; }
.lb-pod-card.p1 .lb-vac { font-size: 9px; }

/* --- table --- */
.leaderboard-container {
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
}
.leaderboard-container.hidden { display: none; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table thead th {
    text-align: left;
    padding: 15px 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--line);
}
.lb-table tbody td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb-row { cursor: pointer; transition: background 0.2s ease; }
.lb-row:hover { background: rgba(var(--accent-rgb), 0.06); }
.lb-row:last-child td { border-bottom: 0; }
.lb-rank {
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--muted);
    width: 58px;
}
.lb-rank.rank-1 { color: #ffd76b; text-shadow: 0 0 18px rgba(255, 215, 107, 0.5); }
.lb-rank.rank-2 { color: #d7dde6; text-shadow: 0 0 18px rgba(215, 221, 230, 0.4); }
.lb-rank.rank-3 { color: #e79a5c; text-shadow: 0 0 18px rgba(231, 154, 92, 0.4); }

.lb-player-cell { display: flex; align-items: center; gap: 13px; min-width: 0; }
.lb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line-2);
    background: var(--elev);
    flex-shrink: 0;
}
.lb-player-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lb-player-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}
.lb-row:hover .lb-player-name { color: var(--accent); }
.lb-player-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.lb-player-badges:empty { display: none; }

.lb-metric { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.lb-v { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.lb-metric.on .lb-v { color: var(--accent); font-weight: 700; }
.lb-bar { display: block; width: 64px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.lb-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

.lb-msg { padding: 44px 20px; color: var(--faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }

/* --- empty (filter) state --- */
.lb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.lb-empty.hidden { display: none; }

/* --- loading skeleton --- */
.lb-skeleton { display: flex; align-items: center; gap: 13px; }

/* On phones the real leaderboard rows are cards — match them with the skeleton rows. */
@media (max-width: 700px) {
    .lb-table tbody > tr.lb-skeleton-row {
        padding: 14px;
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: var(--r-sm);
        background: var(--surface);
    }
}

/* -------------------------- 26. SESSION / PROMO --------------------------- */

.server-card, .promo-banner {
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    padding: 20px;
}
.server-card { margin-bottom: 18px; }

.promo-slot-container {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: stretch;
    text-decoration: none;
    border-radius: var(--r-sm);
    overflow: hidden;
}
.promo-image-placeholder {
    position: relative;
    width: 220px;
    min-height: 130px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), var(--surface-2));
    border: 1px dashed rgba(var(--accent-rgb), 0.4);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.promo-icon-plus { color: rgba(var(--accent-rgb), 0.6); width: 34px; height: 34px; }
.promo-img-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4)); pointer-events: none; }
.promo-image-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-image-placeholder img.hidden { display: none; }

.promo-info-content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.promo-header-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.promo-title { font-family: var(--font-display); font-size: 28px; color: #fff; margin: 0; }
.promo-desc { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 0; }
.promo-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--green);
    background: rgba(155, 197, 61, 0.12);
    border: 1px solid rgba(155, 197, 61, 0.35);
    padding: 3px 9px;
    border-radius: 999px;
}
.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    padding: 7px 13px;
    border-radius: var(--r-xs);
}
.promo-corner-mark {
    position: absolute;
    top: 0; right: 0;
    width: 46px; height: 46px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    border-top-right-radius: var(--r-sm);
    opacity: 0.5;
    pointer-events: none;
}

.server-details-content { display: flex; flex-direction: column; gap: 16px; transition: filter 0.4s ease, opacity 0.4s ease; }
.server-details-content.blurred { filter: blur(7px); opacity: 0.35; pointer-events: none; }

.connect-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.connect-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 540px;
    padding: 9px 12px;
    border-radius: var(--r-xs);
    background: #0a0a0d;
    border: 1px solid var(--line);
}
.connect-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); flex-shrink: 0; }
.connect-input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    color: #cfcfd8;
    font-family: var(--font-mono);
    font-size: 12px;
}
.connect-copy { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 3px; flex-shrink: 0; transition: color 0.2s ease; }
.connect-copy:hover { color: #fff; }
.connect-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.connect-pill {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
    padding: 6px 11px;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.connect-pill.online { color: var(--green); border-color: rgba(155, 197, 61, 0.35); }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec-card {
    padding: 16px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: border-color 0.24s ease, transform 0.24s ease;
}
.spec-card:hover { border-color: rgba(var(--accent-rgb), 0.3); transform: translateY(-2px); }
.spec-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.spec-val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.spec-desc { font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0; }

.server-details-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    pointer-events: none;
}
.server-details-overlay.hidden { display: none; }
.server-details-hint {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 22px;
    border-radius: var(--r);
    background: rgba(10, 10, 14, 0.86);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}
.server-details-hint .spec-label { margin-bottom: 8px; }

.promo-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}
.promo-banner-title { font-family: var(--font-display); font-size: 30px; color: #fff; letter-spacing: 0.03em; margin: 0; }
.promo-banner-desc { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 5px 0 0; max-width: 620px; }
.promo-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #b0331b);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: all 0.24s ease;
    flex-shrink: 0;
}
.promo-banner-cta:hover { filter: brightness(1.12); box-shadow: 0 16px 44px -16px rgba(var(--accent-rgb), 0.9); transform: translateY(-1px); }

/* ---------------------------- 27. NEWS / WIPES ---------------------------- */

.wipe-card {
    position: relative;
    margin-bottom: 26px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
}
.wipe-card-bg {
    position: absolute; inset: 0;
    opacity: 0.5;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255, 255, 255, 0.03) 39px, rgba(255, 255, 255, 0.03) 40px);
    pointer-events: none;
}
.wipe-card-inner { position: relative; padding: 22px; }
.wipe-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.wipe-head-left { display: flex; align-items: center; gap: 14px; }
.wipe-icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    flex-shrink: 0;
    border-radius: var(--r-xs);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.wipe-title { font-family: var(--font-display); font-size: 24px; color: #fff; letter-spacing: 0.03em; line-height: 1.1; }
.wipe-hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.wipe-target { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

.wipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wipe-cell {
    padding: 18px 10px;
    text-align: center;
    border-radius: var(--r-sm);
    background: #0f0f14;
    border: 1px solid var(--line);
}
.wipe-num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.wipe-num.accent { color: var(--accent); text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.4); }
.wipe-unit { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 7px; }

.wipe-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.wipe-progress-track { flex: 1; height: 4px; border-radius: 999px; background: #1a1a22; overflow: hidden; }
.wipe-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.wipe-progress-pct { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.feed-head-left { display: flex; align-items: center; gap: 9px; }
.feed-title { font-family: var(--font-display); font-size: 21px; color: #fff; letter-spacing: 0.03em; }
.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: all 0.22s ease;
}
.btn-refresh:hover { color: #fff; border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.08); }

.loading-state {
    text-align: center;
    padding: 80px 0;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.1em;
    color: var(--faint);
    opacity: 0.7;
}

/* ------------------------ 28. FRIENDS / INVENTORY ------------------------- */

.player-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line-2);
}
.player-bar.hidden { display: none; }
.player-bar-id { display: flex; align-items: center; gap: 13px; }
.player-bar-avatar { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); }
.player-bar-name { font-family: var(--font-display); font-size: 20px; color: #fff; line-height: 1.1; }
.player-bar-uid { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.player-bar-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.btn-subtle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    color: #e4e4e7;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-subtle:hover { background: rgba(255, 255, 255, 0.08); }
.btn-steam-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(23, 26, 33, 0.8);
    border: 1px solid var(--line);
    color: var(--steam);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-steam-mini:hover { background: #2a475e; border-color: var(--steam); color: #fff; }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 22px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line-2);
}
.toolbar-hint {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}
.toolbar-input-row { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; }
.toolbar-input {
    flex: 1;
    padding: 11px 14px;
    border-radius: var(--r-xs);
    background: #0a0a0d;
    border: 1px solid var(--line);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s ease;
}
.toolbar-input:focus { border-color: rgba(var(--accent-rgb), 0.6); }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: var(--r-xs);
    background: linear-gradient(135deg, var(--accent), #b0331b);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 12px 30px -12px rgba(var(--accent-rgb), 0.9); }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
}
.filter-bar.hidden { display: none; }
.filter-search { position: relative; flex: 1; max-width: 420px; min-width: 200px; }
.filter-input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border-radius: var(--r-xs);
    background: #0a0a0d;
    border: 1px solid var(--line);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s ease;
}
.filter-input:focus { border-color: rgba(var(--accent-rgb), 0.6); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-stats { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.inv-note {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--faint);
    margin-top: 18px;
    padding-bottom: 16px;
}
.inv-note.hidden { display: none; }

/* ------------------------- 29. PLAYER COMPARISON -------------------------- */

.cmp-pickers {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 16px;
    margin-bottom: 20px;
}
.cmp-picker { position: relative; display: flex; flex-direction: column; gap: 9px; }
.cmp-picker-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
}
.cmp-search { position: relative; display: flex; align-items: center; }
.cmp-search-icon { position: absolute; left: 14px; width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.cmp-search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 12px 38px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cmp-search-input:focus { border-color: var(--line-warm); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
.cmp-search-input::placeholder { color: var(--faint); }
.cmp-search-clear {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.cmp-search-clear:hover { background: rgba(var(--accent-rgb), 0.18); color: #fff; }
.cmp-search-clear.hidden { display: none; }

.cmp-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--elev);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.85);
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}
.cmp-results.hidden { display: none; }
.cmp-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}
.cmp-result-item:hover { background: rgba(var(--accent-rgb), 0.1); }
.cmp-result-item img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.cmp-result-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-result-meta { font-family: var(--font-mono); font-size: 10px; color: var(--faint); white-space: nowrap; }
.cmp-result-msg { padding: 14px; text-align: center; color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.cmp-selected.hidden { display: none; }
.cmp-sel-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
}
.cmp-sel-card img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.cmp-sel-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmp-sel-name { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-sel-id { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }

.cmp-vs {
    align-self: center;
    padding-top: 22px;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
}

.cmp-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 46px 20px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-align: center;
}
.cmp-hint.hidden { display: none; }

.cmp-result.hidden { display: none; }
.cmp-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: start; }
.cmp-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px; }
.cmp-card-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 14px;
}
.cmp-radar-wrap { display: flex; justify-content: center; }
#cmp-radar { width: 100%; max-width: 340px; height: auto; }
.cmp-legend { display: flex; justify-content: center; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.cmp-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.cmp-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.cmp-dot-a { background: var(--accent); }
.cmp-dot-b { background: var(--blue); }

.cmp-rows { display: flex; flex-direction: column; }
.cmp-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-row-val { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: right; }
.cmp-row-val.b { text-align: left; }
.cmp-row-val.win { font-weight: 700; }
.cmp-row-val.a.win { color: var(--accent); }
.cmp-row-val.b.win { color: var(--blue); }
.cmp-row-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    text-align: center;
}

/* ------------------------ 30. PUBLIC PROFILE PAGE ------------------------- */

.pf-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    position: relative;
    overflow-x: hidden;
}
.pf-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(1000px 520px at 12% -12%, rgba(var(--accent-rgb), 0.16), transparent 60%),
                radial-gradient(900px 480px at 100% 0%, rgba(78, 168, 255, 0.09), transparent 55%),
                linear-gradient(180deg, var(--bg), var(--bg-2));
}
.pf-bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

.pf-header {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; max-width: 1360px; margin: 0 auto; padding: 20px 24px;
}
.pf-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; color: #fff; letter-spacing: 0.06em; text-decoration: none; }
.pf-brand-ico { width: 22px; height: 22px; color: var(--accent); }
.pf-header-right { display: flex; align-items: center; gap: 14px; }
.pf-lang-select {
    appearance: none; -webkit-appearance: none;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text);
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    padding: 8px 32px 8px 14px; border-radius: 999px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.pf-lang-select:hover { border-color: var(--line-2); color: #fff; background: rgba(255, 255, 255, 0.06); }
.pf-lang-select:focus { outline: none; }
.pf-lang-select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14); }
.pf-lang-select option { background: #111; color: #fff; padding: 8px; }
.pf-open { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; text-decoration: none; transition: all 0.2s ease; }
.pf-open:hover { border-color: var(--accent); color: #fff; }

.pf-main { position: relative; z-index: 2; width: 100%; max-width: 1360px; flex: 1 0 auto; margin: 0 auto; padding: 8px 24px 60px; }

/* ---------- states ---------- */
.pf-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 90px 20px; color: var(--muted);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.pf-state-ico { width: 34px; height: 34px; color: var(--faint); }

#pf-content { animation: pfContentIn 0.3s ease both; }
@keyframes pfContentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- loading skeleton ---------- */
.pf-loading-skel { display: block; }
.pf-skel-hero .pf-hero-left { flex: 1 1 auto; }
.pf-skel-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.pf-skel-avatar { width: 128px; height: 128px; border-radius: 22px; flex-shrink: 0; }
.pf-skel-name { width: 220px; max-width: 55vw; height: 34px; border-radius: 7px; margin-bottom: 10px; }
.pf-skel-badges { display: flex; gap: 7px; margin-bottom: 10px; }
.pf-skel-pill { width: 92px; height: 20px; border-radius: 6px; }
.pf-skel-id { width: 150px; height: 12px; }
.pf-skel-rank-label { width: 46px; height: 15px; }
.pf-skel-rank { width: 104px; height: 40px; border-radius: 7px; }
.pf-skel-updated { width: 176px; height: 17px; }
.pf-skel-btn { width: 118px; height: 37px; border-radius: 999px; }
.pf-skel-btn.ghost { width: 132px; }
.pf-skel-kpi { min-height: 118px; border-radius: var(--r); }
.pf-skel-kpi .skel-title { height: 26px; }
.pf-skel-panel { min-height: 190px; border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; justify-content: center; }

/* ---------- HERO ---------- */
.pf-hero {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background:
        radial-gradient(120% 150% at 0% 0%, rgba(var(--accent-rgb), 0.10), transparent 52%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
    overflow: hidden;
}
.pf-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 7px);
    opacity: 0.7;
}
.pf-hero-left { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; min-width: 0; }
.pf-avatar-frame {
    position: relative; width: 128px; height: 128px; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--line-2); flex-shrink: 0; background: var(--elev);
    box-shadow: 0 0 48px -12px rgba(var(--accent-rgb), 0.55);
}
.pf-avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-hero-info { min-width: 0; }
.pf-name { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 44px); line-height: 1; color: #fff; margin: 0 0 12px; word-break: break-word; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.pf-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 6px; }
.pf-badge.dev { background: rgba(139, 92, 246, 0.18); color: #c9b6ff; border: 1px solid rgba(139, 92, 246, 0.5); }
.pf-badge.vip { background: rgba(245, 185, 66, 0.18); color: #ffd76b; border: 1px solid rgba(245, 185, 66, 0.5); }
.pf-badge.custom { background: rgba(var(--accent-rgb), 0.16); color: #ffb694; border: 1px solid rgba(var(--accent-rgb), 0.45); }
.pf-hero-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pf-id { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
.pf-steam {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    padding: 4px 10px; border-radius: 999px; text-decoration: none;
    color: var(--steam); border: 1px solid rgba(102, 192, 244, 0.35); background: rgba(102, 192, 244, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}
.pf-steam:hover { background: rgba(102, 192, 244, 0.16); color: #d6ecff; }
.pf-steam svg { width: 12px; height: 12px; }

.pf-hero-right { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.pf-rank-box { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pf-rank-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--faint); text-transform: uppercase; }
.pf-rank-val { font-family: var(--font-display); font-size: clamp(38px, 5vw, 56px); line-height: 1; color: var(--accent); text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.45); }
.pf-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.pf-updated { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pf-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), #a8321a); color: #fff; cursor: pointer; text-decoration: none;
    transition: all 0.2s ease;
}
.pf-btn:hover { box-shadow: 0 10px 26px -10px rgba(var(--accent-rgb), 0.9); }
.pf-btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.pf-btn.ghost:hover { border-color: var(--accent); color: #fff; box-shadow: none; }
.pf-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.pf-btn svg { width: 15px; height: 15px; }

/* ---------- KPI ribbon ---------- */
.pf-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pf-kpi {
    position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px;
    border: 1px solid var(--line); border-radius: var(--r);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006));
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.pf-kpi:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pf-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-kpi-ico {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
    color: var(--accent-2); background: rgba(var(--accent-rgb), 0.10); border: 1px solid var(--line-warm);
}
.pf-kpi-ico svg { width: 17px; height: 17px; }
.pf-kpi-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.pf-kpi-value { font-family: var(--font-display); font-size: 32px; line-height: 1; color: #fff; }
.pf-kpi-value small { font-size: 15px; color: var(--muted); margin-left: 2px; }
.pf-kpi.accent { border-color: rgba(var(--accent-rgb), 0.38); }
.pf-kpi.accent .pf-kpi-value { color: var(--accent); }
.pf-kpi-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.pf-kpi-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- section headings ---------- */
.pf-section { margin-top: 32px; }
.pf-sec-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.pf-sec-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.pf-sec-ico { width: 18px; height: 18px; color: var(--accent); flex: none; }
.pf-section-title { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0; }

.pf-panel {
    border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
}

/* ---------- COMBAT ---------- */
.pf-combat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.pf-kd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pf-kd-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.pf-kd-value { font-family: var(--font-display); font-size: clamp(40px, 6vw, 58px); line-height: 0.9; color: var(--accent); text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.4); }
.pf-duel { display: flex; flex-direction: column; gap: 14px; }
.pf-duel-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pf-duel-row b { font-family: var(--font-display); font-size: 17px; letter-spacing: 0; color: #fff; }
.pf-bar { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 6px; }
.pf-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.6s ease; }
.pf-bar.deaths i { background: linear-gradient(90deg, #7a3b34, #ff4438); }
.pf-bar.hs i { background: linear-gradient(90deg, #8a5a1e, #f5b942); }

.pf-dials { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; place-items: center; align-content: center; }
.pf-ring {
    --p: 0; --ring: var(--accent);
    position: relative; width: 138px; height: 138px; border-radius: 50%;
    background: conic-gradient(var(--ring) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0);
    display: grid; place-items: center;
}
.pf-ring::before {
    content: ''; position: absolute; inset: 10px; border-radius: 50%;
    background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.pf-ring-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.pf-ring-val { font-family: var(--font-display); font-size: 25px; line-height: 1; color: #fff; }
.pf-ring-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.pf-ring.gold { --ring: var(--accent-2); }

/* ---------- SURVIVAL ---------- */
.pf-survival { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 18px; align-items: stretch; }
.pf-hours { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pf-hours-value { font-family: var(--font-display); font-size: clamp(36px, 5vw, 52px); line-height: 0.9; color: var(--accent); }
.pf-hours-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.pf-stack { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.pf-stack span { height: 100%; display: block; }
.pf-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 18px; }
.pf-leg { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pf-leg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pf-leg span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-leg b { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: #fff; }
.pf-legend-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pf-legend-total span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.pf-legend-total b { font-family: var(--font-display); font-size: 24px; color: #fff; }

/* ---------- PVE ---------- */
.pf-pve { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; }
.pf-donut {
    --p1: 0; --p2: 0; --c1: var(--accent); --c2: var(--green); --c3: var(--blue);
    position: relative; width: 156px; height: 156px; border-radius: 50%;
    background: conic-gradient(
        var(--c1) 0 calc(var(--p1) * 1%),
        var(--c2) 0 calc((var(--p1) + var(--p2)) * 1%),
        var(--c3) 0 100%
    );
    display: grid; place-items: center;
}
.pf-donut::before { content: ''; position: absolute; inset: 20px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.pf-donut-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.pf-donut-val { font-family: var(--font-display); font-size: 28px; line-height: 1; color: #fff; }
.pf-donut-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.pf-pve-legend { display: flex; flex-direction: column; gap: 12px; }

/* ---------- MISC ---------- */
.pf-misc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pf-tile {
    display: flex; align-items: center; gap: 15px; padding: 18px;
    border: 1px solid var(--line); border-radius: var(--r);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.pf-tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pf-tile-ico {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none;
    color: var(--accent-2); background: rgba(var(--accent-rgb), 0.1); border: 1px solid var(--line-warm);
}
.pf-tile-ico svg { width: 22px; height: 22px; }
.pf-tile-val { font-family: var(--font-display); font-size: 26px; line-height: 1; color: #fff; }
.pf-tile-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }

.pf-footer { position: relative; z-index: 2; text-align: center; padding: 30px 20px 40px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--faint); }

.pf-toast {
    position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
    padding: 12px 20px; border-radius: 999px;
    background: var(--surface-3); border: 1px solid var(--line-2); color: #fff;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 50;
}
.pf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .pf-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-combat { grid-template-columns: 1fr; }
    .pf-survival { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .pf-header { flex-wrap: wrap; padding: 16px 18px; }
    .pf-main { padding: 8px 18px 46px; }
    .pf-skel-name { height: 28px; width: 170px; }
    .pf-skel-hero-right { align-items: stretch; }
    .pf-skel-btn { flex: 1 1 auto; }
    .pf-hero { flex-direction: column; align-items: stretch; padding: 20px; }
    .pf-hero-left { gap: 16px; }
    .pf-avatar-frame { width: 88px; height: 88px; border-radius: 18px; }
    .pf-skel-avatar { width: 88px; height: 88px; }
    .pf-name { font-size: 30px; }
    .pf-hero-right { align-items: flex-start; }
    .pf-rank-box { align-items: flex-start; }
    .pf-meta { align-items: flex-start; }
    .pf-actions { justify-content: flex-start; }
    .pf-pve { grid-template-columns: 1fr; justify-items: start; }
    .pf-misc { grid-template-columns: 1fr; }
    .pf-legend { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .pf-ribbon { grid-template-columns: 1fr; }
    .pf-dials { grid-template-columns: 1fr; }
    .pf-ring { width: 150px; height: 150px; }
}

/* ------------------------ 31. DEVELOPER QUICK-EDIT ------------------------ */

.dev-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    color: var(--accent);
    cursor: pointer;
    opacity: 0.85;
    transform-origin: center;
    transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px -10px rgba(0, 0, 0, 0.9);
}
.dev-edit-btn:hover {
    opacity: 1;
    background: rgba(10, 10, 10, 0.85);
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 16px -4px rgba(var(--accent-rgb), 0.5);
}
.dev-edit-btn:active { transform: scale(0.96); }
.dev-edit-btn:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(var(--accent-rgb), 0.45);
}
.dev-edit-btn > i,
.dev-edit-btn > svg {
    width: 17px;
    height: 17px;
    transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1), color 0.18s ease, filter 0.18s ease;
}
.dev-edit-btn:hover > i,
.dev-edit-btn:hover > svg {
    transform: rotate(90deg);
    color: #ffb694;
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.65));
}
.dev-edit-btn:active > i,
.dev-edit-btn:active > svg {
    transform: rotate(90deg) scale(0.9);
}
.dev-edit-btn.hidden { display: none; }

.qe-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.02));
}
.qe-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(var(--accent-rgb), 0.5);
}
.qe-hero-name {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    line-height: 1.1;
}
.qe-hero-id {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}
.qe-field { margin-bottom: 16px; }
.qe-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}
.qe-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}
.qe-seg-btn {
    padding: 9px 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.qe-seg-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.qe-seg-btn.is-active {
    background: var(--accent);
    color: #000;
    font-weight: 800;
}
.qe-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.qe-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.15s ease, color 0.15s ease;
}
.qe-chip .qe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c, #ffb694);
    box-shadow: 0 0 10px -1px var(--c, #ffb694);
}
.qe-chip:hover { transform: translateY(-1px); color: #fff; }
.qe-chip.is-active {
    border-color: var(--c, var(--accent));
    color: var(--c, #fff);
    background: rgba(255, 255, 255, 0.07);
}
.qe-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 16px;
}
.qe-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
}
.qe-switch input { display: none; }
.qe-track {
    position: relative;
    width: 38px;
    height: 21px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.18s ease;
}
.qe-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s ease;
}
.qe-switch input:checked + .qe-track { background: var(--accent); }
.qe-switch input:checked + .qe-track::after { transform: translateX(17px); }
.qe-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #151515;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 10px 12px;
    resize: vertical;
    outline: none;
}
.qe-textarea:focus { border-color: var(--accent); }
.qe-status {
    min-height: 18px;
    font-size: 12px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.5);
}
.qe-status.ok { color: #4caf50; }
.qe-status.err { color: #ff5c5c; }
.qe-save {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: 0;
    padding: 13px;
    border-radius: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.qe-save:hover:not(:disabled) { filter: brightness(1.1); }
.qe-save:disabled { opacity: 0.5; cursor: default; }

/* ---- quick-edit preview ---- */
.qe-preview { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }

/* ---------------------- 32. SUPPORTER GOLD NICKNAME ----------------------- */

.supporter-name {
    background: linear-gradient(100deg,
        #d98f22 0%,
        #ffc857 16%,
        #fff3cd 32%,
        #ffc857 48%,
        #cf8a1e 64%,
        #ffdf9a 82%,
        #ffc857 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    animation: supporterShimmer 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 200, 87, 0.3));
    will-change: background-position;
}
@keyframes supporterShimmer {
    from { background-position: 0% 50%; }
    to { background-position: 250% 50%; }
}
.lb-row:hover .supporter-name,
.lb-pod-card:hover .supporter-name { filter: drop-shadow(0 0 15px rgba(255, 200, 87, 0.55)); }
@media (prefers-reduced-motion: reduce) {
    .supporter-name { animation: none; }
    .skel::after { animation: none; }
}

/* --- soft golden halo around supporter cards (podium + supporters board) --- */
.lb-pod-card.supporter-card,
.lb-sup-card {
    border-color: rgba(255, 200, 87, 0.3);
    animation: supporterHalo 7s ease-in-out infinite;
}
@keyframes supporterHalo {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.1),
                    0 14px 38px -18px rgba(255, 200, 87, 0.4),
                    0 0 20px rgba(255, 200, 87, 0.1);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.16),
                    0 16px 44px -16px rgba(255, 200, 87, 0.52),
                    0 0 32px rgba(255, 200, 87, 0.19);
    }
}
.lb-pod-card.supporter-card:hover,
.lb-sup-card:hover { border-color: rgba(255, 200, 87, 0.45); }

/* --- subtle gold edge on supporter rows in the ranking table --- */
.lb-row.supporter-row {
    background: linear-gradient(90deg, rgba(255, 200, 87, 0.055), rgba(255, 200, 87, 0) 62%);
}
.lb-row.supporter-row > td:first-child { box-shadow: inset 3px 0 0 rgba(255, 200, 87, 0.4); }

/* --- gold link used inside the supporter perks modal --- */
.vip-link {
    color: #ffc857;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.vip-link:hover { color: #ffe1a1; }

/* ------------------------ 33. SUPPORTER PACK MODAL ------------------------ */

.vip-hero {
    text-align: center;
    padding: 2px 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.vip-hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.32);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.vip-hero-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 54px;
    line-height: 1;
    color: var(--amber);
    text-shadow: 0 0 34px rgba(245, 185, 66, 0.28);
}
.vip-hero-price .vip-per { font-size: 12px; }
.vip-hero-sub { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* live preview: the gold nickname + the SUPPORTER badge exactly as they appear on the site */
.vip-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px dashed rgba(245, 185, 66, 0.26);
    border-radius: var(--r-sm);
    background: radial-gradient(120% 100% at 50% 0%, rgba(245, 185, 66, 0.075), transparent 72%);
}
.vip-preview-label {
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
}
.vip-preview-name {
    font-family: var(--font-display);
    font-size: 30px;
    letter-spacing: 0.04em;
    line-height: 1;
}
.vip-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffc857;
    border: 1px solid rgba(255, 200, 87, 0.5);
    background: rgba(255, 200, 87, 0.1);
    padding: 4px 9px;
    border-radius: 5px;
    animation: vipChipPulse 3.6s ease-in-out infinite;
}
@keyframes vipChipPulse {
    0%, 100% { box-shadow: 0 0 11px rgba(255, 200, 87, 0.16); }
    50% { box-shadow: 0 0 22px rgba(255, 200, 87, 0.34); }
}

/* perk rows: icon chip + title + one-line description */
.vip-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.vip-perk {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.018);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.vip-perk:hover { border-color: rgba(245, 185, 66, 0.3); background: rgba(245, 185, 66, 0.045); }
.vip-perk-ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--amber);
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.22);
}
.vip-perk-ico svg { width: 15px; height: 15px; }
.vip-perk-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vip-perk-txt b {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}
.vip-perk-txt small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.vip-note {
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--faint);
}

/* footer of the supporters modal: log in / perks already active */
.vip-login {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(245, 185, 66, 0.22);
}
.vip-login-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.02);
}
.vip-login-card.is-active { border-color: rgba(155, 197, 61, 0.35); background: rgba(155, 197, 61, 0.06); }
.vip-login-ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--amber);
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.22);
}
.vip-login-card.is-active .vip-login-ico { color: #9bc53d; background: rgba(155, 197, 61, 0.12); border-color: rgba(155, 197, 61, 0.3); }
.vip-login-ico svg { width: 15px; height: 15px; }
.vip-login-main { min-width: 0; }
.vip-login-card b {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}
.vip-login-card p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.vip-login-who { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.vip-login-who img, .vip-login-who .vip-login-ava {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--amber);
    background: rgba(245, 185, 66, 0.15);
}
.vip-login-who span { font-size: 11.5px; color: var(--text); }
.vip-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    padding: 9px 14px;
    border: 1px solid rgba(245, 185, 66, 0.5);
    border-radius: var(--r-sm);
    background: rgba(245, 185, 66, 0.1);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.vip-login-btn:hover { background: rgba(245, 185, 66, 0.18); border-color: var(--amber); }
.vip-login-btn svg { width: 14px; height: 14px; }
.vip-login-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vip-login-out {
    background: transparent;
    border-color: var(--line);
    color: var(--muted);
}
.vip-login-out:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--faint); color: var(--text); }

@media (max-width: 640px) {
    .vip-perks { grid-template-columns: 1fr; }
}

/* ---------------------- 34. RAID COST CALCULATOR -------------------------- */
.raid-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
}

.raid-cost {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    padding: 22px;
    margin-bottom: 26px;
}
.raid-cost::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.raid-cost-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.raid-cost-hero-left { margin-right: auto; min-width: 0; }
.raid-cost-structure {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
}
.raid-cost-hp {
    display: block;
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--faint);
}
.raid-cost-hero-right { text-align: right; }
.raid-cost-amount {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--accent-2);
}
.raid-cost-sulfur b {
    display: block;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
}
.raid-cost-sulfur small {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
}

.raid-section-title {
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
}
.raid-table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
}
.raid-table { width: 100%; border-collapse: collapse; }
.raid-table thead th {
    text-align: left;
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--line);
}
.raid-table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.raid-row:last-child td { border-bottom: 0; }
.raid-row.is-chosen { background: rgba(var(--accent-rgb), 0.07); }
.raid-method-cell { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.raid-method-name { font-weight: 700; font-size: 14px; color: var(--text); }
.raid-best {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(245, 185, 66, 0.5);
    background: rgba(245, 185, 66, 0.14);
    color: #ffd76b;
}
.raid-num-val { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.raid-num-val small { margin-left: 3px; font-size: 10px; color: var(--faint); }
.raid-sulfur-val { font-family: var(--font-mono); font-size: 14px; color: var(--amber); }
.raid-row.is-chosen .raid-sulfur-val { color: var(--accent); font-weight: 700; }
.raid-note {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.8;
    color: var(--faint);
}
.raid-note span { display: block; }

/* --- my rank: pinned viewer row above the ranking table --- */
.lb-myrank { margin-bottom: 18px; }
.lb-myrank.hidden { display: none; }
.lb-myrank-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.lb-myrank-ico { width: 13px; height: 13px; color: var(--accent); }
.lb-myrank-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}
.lb-myrank-empty {
    padding: 16px 18px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--faint);
}
.lb-myrank .lb-rank { color: var(--accent); }
.lb-myrank-row { background: rgba(var(--accent-rgb), 0.05); }

/* -------- 35. RAID PICKER, RAID PLAN & COOKIE NOTICE -------- */
.raid-targets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.raid-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--muted);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.raid-tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.raid-tile.active {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}
.raid-art {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
.raid-tile-name { font-size: 12px; font-weight: 700; line-height: 1.25; color: inherit; }
.raid-tile-hp { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--faint); }

.raid-bar {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.raid-bar-group { display: flex; flex-direction: column; gap: 8px; }
.raid-bar-methods { flex: 1 1 320px; min-width: 0; }
.raid-stepper { display: flex; align-items: center; }
.raid-stepper button {
    width: 38px;
    height: 40px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}
.raid-stepper button:first-child { border-radius: 8px 0 0 8px; }
.raid-stepper button:last-child { border-radius: 0 8px 8px 0; }
.raid-stepper button:hover { background: rgba(var(--accent-rgb), 0.14); color: #fff; }
.raid-qty-val {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 40px;
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    background: var(--elev);
    font-family: var(--font-mono);
    font-size: 16px;
    color: #fff;
}
.raid-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.raid-chip {
    padding: 9px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.raid-chip:hover { color: #fff; background: var(--elev); }
.raid-chip.active { border-color: var(--accent); color: #fff; background: rgba(var(--accent-rgb), 0.14); }
.raid-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.14);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.16s ease;
}
.raid-add:hover { background: rgba(var(--accent-rgb), 0.26); }
.raid-add svg { width: 15px; height: 15px; }

.raid-cost-art {
    flex: 0 0 auto;
    width: 58px;
}
.raid-cost-art svg { width: 100%; height: auto; }
.raid-save {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border: 1px solid rgba(245, 185, 66, 0.45);
    border-radius: 999px;
    background: rgba(245, 185, 66, 0.12);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #ffd76b;
}

.raid-plan {
    margin-top: 30px;
    padding: 18px 20px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}
.raid-plan .raid-section-title { margin-bottom: 14px; }
.raid-plan-list { display: flex; flex-direction: column; gap: 10px; }
.raid-plan-empty {
    max-width: 60ch;
    padding: 14px 0 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.7;
    color: var(--faint);
}
.raid-plan-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--elev);
}
.raid-plan-thumb { width: 40px; flex-shrink: 0; }
.raid-plan-thumb svg { width: 100%; height: auto; }
.raid-plan-meta { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.raid-plan-name { font-size: 13.5px; font-weight: 700; color: #fff; }
.raid-plan-what { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.raid-plan-fix {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid rgba(245, 185, 66, 0.45);
    border-radius: 999px;
    background: rgba(245, 185, 66, 0.12);
    color: #ffd76b;
    font-family: var(--font-mono);
    font-size: 10.5px;
    cursor: pointer;
}
.raid-plan-fix svg { width: 13px; height: 13px; }
.raid-plan-fix:hover { background: rgba(245, 185, 66, 0.22); }
.raid-plan-drop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: transparent;
    color: var(--faint);
    cursor: pointer;
}
.raid-plan-drop:hover { color: #fff; border-color: rgba(var(--accent-rgb), 0.5); }
.raid-plan-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.raid-plan-total { display: flex; flex-direction: column; gap: 4px; }
.raid-plan-total:empty { display: none; }
.raid-plan-sum { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.raid-plan-grand {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.raid-plan-grand b {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--accent);
}
.raid-plan-clear {
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}
.raid-plan-clear:hover { color: #fff; border-color: rgba(var(--accent-rgb), 0.5); }

/* --- cookie notice (first visit, bottom-right) --- */
.cookie-note {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: min(340px, calc(100vw - 32px));
    padding: 16px 18px 14px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgba(18, 18, 21, 0.96);
    box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(18px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-note.hidden { display: none; }
.cookie-note.show { opacity: 1; transform: translateY(0); }
.cookie-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.cookie-ico { width: 15px; height: 15px; color: var(--accent); }
.cookie-text { margin-bottom: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.cookie-btn {
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.14);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}
.cookie-btn:hover { background: rgba(var(--accent-rgb), 0.26); }

/* ========================= UTILITIES & RESPONSIVE ========================= */
