/* CS2 Armory — Industrial, Tactical, Premium */

:root {
    --cs-gold: #CFB53B;
    --cs-gold-dim: #a8912e;
    --cs-amber: #F59E0B;
    --cs-red: #DC2626;
    --cs-blue: #3B82F6;
    --cs-bg: #0a0a0f;
    --cs-bg2: #141420;
    --cs-card: #1a1a2a;
    --cs-border: #2a2a3e;
    --cs-border-light: #333350;
    --cs-text: #f0f0f0;
    --cs-muted: #8888a0;
    --cs-glow: rgba(207, 181, 59, 0.15);

    --rarity-consumer: #B0C3D9;
    --rarity-milspec: #4B69FF;
    --rarity-restricted: #8847FF;
    --rarity-classified: #D32CE6;
    --rarity-covert: #EB4B4B;
    --rarity-special: #E4AE39;
    --rarity-glove: #E4AE39;
    --rarity-base: #B0C3D9;
    --rarity-default: #B0C3D9;
    --rarity-high: #4B69FF;
    --rarity-distinguished: #4B69FF;
    --rarity-remarkable: #8847FF;
    --rarity-exceptional: #8847FF;
    --rarity-exotic: #D32CE6;
    --rarity-superior: #D32CE6;
    --rarity-extraordinary: #EB4B4B;
    --rarity-master: #EB4B4B;
    --rarity-contraband: #E4AE39;
    --rarity-rare: #E4AE39;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    background: var(--cs-bg);
    color: var(--cs-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ===== LAYOUT ===== */
.cs-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.cs-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--cs-bg2);
    border-right: 1px solid var(--cs-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    overflow-y: auto;
}

.cs-sidebar-logo {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--cs-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-sidebar-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cs-gold), var(--cs-amber));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-sidebar-logo-icon svg {
    width: 20px;
    height: 20px;
    color: #0a0a0f;
}

.cs-sidebar-logo-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--cs-gold), var(--cs-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cs-sidebar-logo-sub {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cs-muted);
    margin-top: -1px;
}

.cs-sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 12px;
    font-weight: 600;
    color: var(--cs-muted);
    border: none;
    background: none;
    text-align: left;
    width: 100%;
}

.cs-nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--cs-text);
}

.cs-nav-item.active {
    background: rgba(207, 181, 59, 0.1);
    color: var(--cs-gold);
    border: 1px solid rgba(207, 181, 59, 0.15);
}

.cs-nav-item-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cs-nav-item-label {
    white-space: nowrap;
}

.cs-sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid var(--cs-border);
}

.cs-sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cs-sidebar-user:hover {
    background: rgba(255,255,255,0.04);
}

.cs-sidebar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--cs-gold), var(--cs-amber));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #0a0a0f;
    flex-shrink: 0;
}

.cs-sidebar-username {
    font-size: 11px;
    font-weight: 700;
    color: var(--cs-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-sidebar-usercredits {
    font-size: 10px;
    font-weight: 600;
    color: var(--cs-gold);
}

/* Main content area */
.cs-main {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
}

/* Global Stats Bar */
.cs-statsbar {
    background: var(--cs-bg2);
    border-bottom: 1px solid var(--cs-border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 30;
}

.cs-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--cs-muted);
    white-space: nowrap;
}

.cs-stat-value {
    font-weight: 700;
    color: var(--cs-text);
    font-variant-numeric: tabular-nums;
}

.cs-stat-value.gold {
    color: var(--cs-gold);
}

.cs-stat-value.amber {
    color: var(--cs-amber);
}

.cs-stat-value.red {
    color: var(--cs-red);
}

.cs-stat-value.blue {
    color: var(--cs-blue);
}

.cs-stat-divider {
    width: 1px;
    height: 16px;
    background: var(--cs-border);
}

/* Content area */
.cs-content {
    padding: 20px 24px;
    flex: 1;
}

/* ===== JACKPOT CARD ===== */
.cs-jackpot {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cs-jackpot.active {
    border-color: rgba(207, 181, 59, 0.3);
    animation: pulseJackpot 2s infinite ease-in-out !important;
}

@keyframes pulseJackpot {
    0%, 100% { box-shadow: 0 0 15px -5px rgba(207, 181, 59, 0.15); }
    50% { box-shadow: 0 0 25px 0px rgba(207, 181, 59, 0.3); }
}

.cs-jackpot-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cs-gold);
    white-space: nowrap;
}

.cs-jackpot-bar {
    flex: 1;
    height: 4px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
    min-width: 100px;
}

.cs-jackpot-fill {
    height: 100%;
    background: linear-gradient(to right, var(--cs-gold), var(--cs-amber));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.cs-jackpot-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--cs-amber);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cs-jackpot-timer {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--cs-amber);
    font-variant-numeric: tabular-nums;
}

/* ===== VIEWS ===== */
.cs-view {
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-scale-up {
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== CASE STATION ===== */
.cs-case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cs-case-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-case-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--cs-border);
    display: none;
}

.cs-case-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--cs-text);
    display: none;
}

.cs-case-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--cs-gold);
}

.cs-case-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s ease;
    border-radius: 8px;
    font-size: 11px;
}

.cs-btn:active {
    transform: scale(0.97);
}

.cs-btn-secondary {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--cs-border);
    color: var(--cs-muted);
    padding: 0 14px;
    height: 32px;
    font-size: 10px;
    font-weight: 700;
}

.cs-btn-secondary:hover {
    border-color: var(--cs-border-light);
    color: var(--cs-text);
}

.cs-btn-gold {
    background: linear-gradient(135deg, var(--cs-gold-dim), #b8860b);
    color: #0a0a0f;
    font-weight: 800;
    padding: 0 20px;
    height: 40px;
    font-size: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(207, 181, 59, 0.2);
}

.cs-btn-gold:hover {
    opacity: 0.9;
}

.cs-btn-gold:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.cs-btn-blue {
    background: var(--cs-blue);
    color: white;
    font-weight: 700;
    padding: 0 16px;
    height: 32px;
    font-size: 10px;
}

.cs-btn-blue:hover {
    opacity: 0.9;
}

.cs-btn-green {
    background: #10B981;
    color: #0a0a0f;
    font-weight: 700;
    padding: 0 16px;
    height: 32px;
    font-size: 10px;
}

.cs-btn-green:hover {
    opacity: 0.9;
}

.cs-btn-red {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #EF4444;
    font-weight: 700;
    padding: 0 12px;
    height: 32px;
    font-size: 10px;
}

.cs-btn-red:hover {
    background: #DC2626;
    color: white;
}

/* Inline case selector */
.cs-inline-case-selector {
    margin: 0 0 12px 0;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
}

/* Unbox result card */
.cs-unbox-card {
    margin-top: 8px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(0,0,0,0.4);
    border: 2px solid var(--cs-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.cs-unbox-card img {
    max-height: 120px;
    object-fit: contain;
}

/* Case drawer */
.cs-case-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 4px;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cs-border) transparent;
}
.cs-case-tabs::-webkit-scrollbar { width: 4px; }
.cs-case-tabs::-webkit-scrollbar-track { background: transparent; }
.cs-case-tabs::-webkit-scrollbar-thumb { background: var(--cs-border); border-radius: 4px; }

/* Case browser modal */
.cs-case-modal {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
}
.cs-case-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.cs-case-modal-content {
    position: relative; z-index: 1;
    background: var(--cs-bg); border: 1px solid var(--cs-border); border-radius: 16px;
    padding: 20px; width: 90%; max-width: 900px; max-height: 85vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Favourites bar */
#case-favourites-container {
    display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 10px;
    border-bottom: 1px solid var(--cs-border); margin-bottom: 10px;
}
.cs-fav-chip {
    display: flex; align-items: center; gap: 4px;
    background: rgba(207,181,59,0.1); border: 1px solid rgba(207,181,59,0.3);
    border-radius: 20px; padding: 3px 10px 3px 6px; cursor: pointer;
    font-size: 10px; font-weight: 700; color: var(--cs-gold);
    transition: all 0.2s;
}
.cs-fav-chip:hover { background: rgba(207,181,59,0.2); }

/* Favourite star on case tab */
.cs-fav-star {
    position: absolute; top: 2px; left: 2px; z-index: 6;
    font-size: 12px; cursor: pointer; line-height: 1; padding: 1px;
    opacity: 0.5; transition: opacity 0.15s;
}
.cs-case-tab:hover .cs-fav-star { opacity: 1; }
.cs-fav-star.active { opacity: 1; color: #FFD700; }

.cs-case-tab {
    position: relative;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 130px;
}

.cs-case-tab:hover {
    border-color: var(--cs-border-light);
    background: #1e1e30;
}

.cs-case-tab.active {
    border-color: var(--cs-gold);
    background: rgba(207, 181, 59, 0.06);
    box-shadow: 0 0 12px -4px rgba(207, 181, 59, 0.15);
}

.cs-case-own-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--cs-gold);
    color: #0a0a0f;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 6px;
    line-height: 1.4;
    z-index: 5;
    box-shadow: 0 0 8px rgba(207, 181, 59, 0.4);
}

/* Spinner */
.cs-spinner-container {
    margin-bottom: 16px;
}

.cs-spinner-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cs-spinner-label span {
    font-size: 9px;
    color: var(--cs-muted);
    font-weight: 500;
}

.cs-spinner-label .cs-selector-hint {
    color: var(--cs-red);
    font-weight: 700;
}

.cs-spinner-viewport {
    position: relative;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    overflow: hidden;
    height: 120px;
}

.cs-spinner-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--cs-red);
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}

.cs-spinner-track {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    height: 100%;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

/* Spinner cards */
.spinner-card {
    flex-shrink: 0;
    width: 130px;
    height: 100px;
    background: linear-gradient(180deg, rgba(26,26,42,0.9), rgba(10,10,15,0.95));
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
}

.spinner-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rarity-consumer);
}

.spinner-card.rarity-consumer::after { background: var(--rarity-consumer); }
.spinner-card.rarity-milspec::after { background: var(--rarity-milspec); }
.spinner-card.rarity-restricted::after { background: var(--rarity-restricted); }
.spinner-card.rarity-classified::after { background: var(--rarity-classified); }
.spinner-card.rarity-covert::after { background: var(--rarity-covert); }
.spinner-card.rarity-special::after { background: var(--rarity-special); }
.spinner-card.rarity-base::after { background: var(--rarity-base); }
.spinner-card.rarity-default::after { background: var(--rarity-default); }
.spinner-card.rarity-high::after { background: var(--rarity-high); }
.spinner-card.rarity-distinguished::after { background: var(--rarity-distinguished); }
.spinner-card.rarity-remarkable::after { background: var(--rarity-remarkable); }
.spinner-card.rarity-exceptional::after { background: var(--rarity-exceptional); }
.spinner-card.rarity-exotic::after { background: var(--rarity-exotic); }
.spinner-card.rarity-superior::after { background: var(--rarity-superior); }
.spinner-card.rarity-extraordinary::after { background: var(--rarity-extraordinary); }
.spinner-card.rarity-master::after { background: var(--rarity-master); }
.spinner-card.rarity-contraband::after { background: var(--rarity-contraband); }
.spinner-card.rarity-rare::after { background: var(--rarity-rare); }

/* Drop rate chips */
#drop-chips-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.cs-drop-chip {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
}
.cs-drop-chip.cc-consumer { color: var(--rarity-consumer); border-color: var(--rarity-consumer)33; background: var(--rarity-consumer)11; }
.cs-drop-chip.cc-milspec { color: var(--rarity-milspec); border-color: var(--rarity-milspec)33; background: var(--rarity-milspec)11; }
.cs-drop-chip.cc-restricted { color: var(--rarity-restricted); border-color: var(--rarity-restricted)33; background: var(--rarity-restricted)11; }
.cs-drop-chip.cc-classified { color: var(--rarity-classified); border-color: var(--rarity-classified)33; background: var(--rarity-classified)11; }
.cs-drop-chip.cc-covert { color: var(--rarity-covert); border-color: var(--rarity-covert)33; background: var(--rarity-covert)11; }
.cs-drop-chip.cc-special { color: var(--rarity-special); border-color: var(--rarity-special)33; background: var(--rarity-special)11; }
.cs-drop-chip.cc-base { color: var(--rarity-base); border-color: var(--rarity-base)33; background: var(--rarity-base)11; }
.cs-drop-chip.cc-default { color: var(--rarity-default); border-color: var(--rarity-default)33; background: var(--rarity-default)11; }
.cs-drop-chip.cc-high { color: var(--rarity-high); border-color: var(--rarity-high)33; background: var(--rarity-high)11; }
.cs-drop-chip.cc-distinguished { color: var(--rarity-distinguished); border-color: var(--rarity-distinguished)33; background: var(--rarity-distinguished)11; }
.cs-drop-chip.cc-remarkable { color: var(--rarity-remarkable); border-color: var(--rarity-remarkable)33; background: var(--rarity-remarkable)11; }
.cs-drop-chip.cc-exceptional { color: var(--rarity-exceptional); border-color: var(--rarity-exceptional)33; background: var(--rarity-exceptional)11; }
.cs-drop-chip.cc-exotic { color: var(--rarity-exotic); border-color: var(--rarity-exotic)33; background: var(--rarity-exotic)11; }
.cs-drop-chip.cc-superior { color: var(--rarity-superior); border-color: var(--rarity-superior)33; background: var(--rarity-superior)11; }
.cs-drop-chip.cc-extraordinary { color: var(--rarity-extraordinary); border-color: var(--rarity-extraordinary)33; background: var(--rarity-extraordinary)11; }
.cs-drop-chip.cc-master { color: var(--rarity-master); border-color: var(--rarity-master)33; background: var(--rarity-master)11; }
.cs-drop-chip.cc-contraband { color: var(--rarity-contraband); border-color: var(--rarity-contraband)33; background: var(--rarity-contraband)11; }
.cs-drop-chip.cc-rare { color: var(--rarity-rare); border-color: var(--rarity-rare)33; background: var(--rarity-rare)11; }

/* Drop rates (old, kept for reference) */
.cs-drop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cs-drop-header h4 {
    font-size: 9px;
    font-weight: 700;
    color: var(--cs-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
    background: rgba(255,255,255,0.02);
}

.cs-drop-rarity {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-drop-skins {
    font-size: 9px;
    color: var(--cs-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-drop-pct {
    font-size: 13px;
    font-weight: 800;
    color: var(--cs-text);
}

/* ===== INVENTORY / MARKET ===== */
.cs-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.cs-search {
    position: relative;
    flex: 1;
    min-width: 160px;
}

.cs-search input {
    width: 100%;
    height: 36px;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    padding: 0 12px 0 34px;
    font-size: 12px;
    color: var(--cs-text);
    outline: none;
    transition: border-color 0.15s;
}

.cs-search input:focus {
    border-color: var(--cs-gold);
}

.cs-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--cs-muted);
}

.cs-input {
    height: 36px;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 11px;
    color: var(--cs-text);
    outline: none;
    transition: border-color 0.15s;
}
.cs-input:focus {
    border-color: var(--cs-gold);
}

.w-32 { width: 8rem; }

.cs-select {
    height: 36px;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 11px;
    color: var(--cs-text);
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.cs-select:focus {
    border-color: var(--cs-gold);
}

/* Skin cards */
.cs-skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.cs-skin-card {
    position: relative;
    border: 1px solid var(--cs-border);
    border-bottom-width: 3px;
    background: var(--cs-card);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.cs-skin-card:hover {
    transform: translateY(-3px);
    border-color: var(--cs-border-light);
    background: #1e1e30;
}

.border-rarity-consumer { border-bottom-color: var(--rarity-consumer) !important; }
.border-rarity-milspec { border-bottom-color: var(--rarity-milspec) !important; }
.border-rarity-restricted { border-bottom-color: var(--rarity-restricted) !important; }
.border-rarity-classified { border-bottom-color: var(--rarity-classified) !important; }
.border-rarity-covert { border-bottom-color: var(--rarity-covert) !important; }
.border-rarity-special { border-bottom-color: var(--rarity-special) !important; }
.border-rarity-base { border-bottom-color: var(--rarity-base) !important; }
.border-rarity-default { border-bottom-color: var(--rarity-default) !important; }
.border-rarity-high { border-bottom-color: var(--rarity-high) !important; }
.border-rarity-distinguished { border-bottom-color: var(--rarity-distinguished) !important; }
.border-rarity-remarkable { border-bottom-color: var(--rarity-remarkable) !important; }
.border-rarity-exceptional { border-bottom-color: var(--rarity-exceptional) !important; }
.border-rarity-exotic { border-bottom-color: var(--rarity-exotic) !important; }
.border-rarity-superior { border-bottom-color: var(--rarity-superior) !important; }
.border-rarity-extraordinary { border-bottom-color: var(--rarity-extraordinary) !important; }
.border-rarity-master { border-bottom-color: var(--rarity-master) !important; }
.border-rarity-contraband { border-bottom-color: var(--rarity-contraband) !important; }
.border-rarity-rare { border-bottom-color: var(--rarity-rare) !important; }

.text-rarity-consumer { color: var(--rarity-consumer); }
.text-rarity-milspec { color: var(--rarity-milspec); }
.text-rarity-restricted { color: var(--rarity-restricted); }
.text-rarity-classified { color: var(--rarity-classified); }
.text-rarity-covert { color: var(--rarity-covert); }
.text-rarity-special { color: var(--rarity-special); }
.text-rarity-base { color: var(--rarity-base); }
.text-rarity-default { color: var(--rarity-default); }
.text-rarity-high { color: var(--rarity-high); }
.text-rarity-distinguished { color: var(--rarity-distinguished); }
.text-rarity-remarkable { color: var(--rarity-remarkable); }
.text-rarity-exceptional { color: var(--rarity-exceptional); }
.text-rarity-exotic { color: var(--rarity-exotic); }
.text-rarity-superior { color: var(--rarity-superior); }
.text-rarity-extraordinary { color: var(--rarity-extraordinary); }
.text-rarity-master { color: var(--rarity-master); }
.text-rarity-contraband { color: var(--rarity-contraband); }
.text-rarity-rare { color: var(--rarity-rare); }

.bg-glow-consumer, .bg-glow-base, .bg-glow-default { background: rgba(176,195,217,0.04); border-color: rgba(176,195,217,0.15); }

.bg-glow-milspec, .bg-glow-high, .bg-glow-distinguished { background: rgba(75,105,255,0.04); border-color: rgba(75,105,255,0.15); }

.bg-glow-restricted, .bg-glow-remarkable, .bg-glow-exceptional { background: rgba(136,71,255,0.04); border-color: rgba(136,71,255,0.15); }

.bg-glow-classified, .bg-glow-exotic, .bg-glow-superior { background: rgba(211,44,230,0.04); border-color: rgba(211,44,230,0.15); }

.bg-glow-covert, .bg-glow-extraordinary, .bg-glow-master { background: rgba(235,75,75,0.04); border-color: rgba(235,75,75,0.15); }

.bg-glow-special, .bg-glow-contraband, .bg-glow-rare { background: rgba(228,174,57,0.04); border-color: rgba(228,174,57,0.15); }

/* Market listings */
.cs-market-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-market-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    transition: all 0.15s;
    gap: 12px;
}

.cs-market-item:hover {
    background: rgba(255,255,255,0.04);
}

.cs-market-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.cs-market-item-info {
    min-width: 0;
}

.cs-market-item-info h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-market-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.cs-market-item-meta span {
    font-size: 10px;
    color: var(--cs-muted);
}

.cs-market-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cs-market-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--cs-gold);
    white-space: nowrap;
}

/* ===== CREW / REFERRAL ===== */
.cs-referral-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.cs-referral-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cs-referral-text {
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-referral-text strong {
    color: var(--cs-text);
}

.cs-referral-em {
    color: var(--cs-gold);
    font-weight: 700;
}

.cs-referral-input-group {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    padding: 2px;
    flex: 1;
    max-width: 320px;
}

.cs-referral-input-group input {
    background: transparent;
    border: none;
    color: var(--cs-muted);
    font-size: 11px;
    font-family: monospace;
    padding: 8px 12px;
    flex: 1;
    outline: none;
}

/* Stats cards */
.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.cs-stat-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    padding: 16px;
}

.cs-stat-card-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--cs-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.cs-stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--cs-text);
    font-variant-numeric: tabular-nums;
}

/* ===== TOAST ===== */
@keyframes slideUpToast {
    0% { transform: translate(-50%, 24px); opacity: 0; }
    15%, 85% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 24px); opacity: 0; }
}

.cs-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    visibility: hidden;
}

.cs-toast.show {
    opacity: 1;
    visibility: visible;
    animation: slideUpToast 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cs-toast.success {
    background: #10B981;
    color: #0a0a0f;
    border: 1px solid rgba(16,185,129,0.2);
}

.cs-toast.error {
    background: #DC2626;
    color: white;
    border: 1px solid rgba(220,38,38,0.2);
}

.cs-toast.show {
    animation: slideUpToast 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== HYPE ALERTS ===== */
@keyframes alertFadeIn {
    0% { transform: translateX(50px) scale(0.9); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

.cs-hype-alert {
    animation: alertFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    width: 100%;
    max-width: 360px;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-left-width: 4px;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* ===== MODALS ===== */
.cs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 50;
}

.cs-modal {
    position: fixed;
    inset: 0;
    z-index: 51;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cs-modal-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 52;
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cs-border);
}

.cs-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: none;
    border: none;
    color: var(--cs-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.cs-modal-close:hover {
    background: rgba(255,255,255,0.06);
    color: var(--cs-text);
}

.cs-modal-body {
    padding: 20px;
}

/* ===== PROFILE MODAL ===== */
.cs-profile-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--cs-gold), var(--cs-amber), #DC2626);
    border-radius: 14px 14px 0 0;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.cs-profile-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cs-profile-content {
    padding: 24px 24px 20px;
}

.cs-profile-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.cs-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    border: 4px solid var(--cs-bg);
    background: linear-gradient(135deg, var(--cs-gold), var(--cs-amber));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #0a0a0f;
    flex-shrink: 0;
    margin-top: -40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.cs-profile-name {
    font-size: 24px;
    font-weight: 800;
}

.cs-profile-bio {
    font-size: 13px;
    color: var(--cs-muted);
    font-style: italic;
    margin-top: 4px;
    line-height: 1.4;
}

.cs-profile-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--cs-muted);
    margin-top: 6px;
}

/* Full-page profile banner — no fixed height, theme shows through card */
.cs-profile-banner-full {
    height: auto !important;
    min-height: 0 !important;
}
.cs-profile-banner-full .cs-profile-top {
    margin-bottom: 0;
}
.cs-profile-banner-full .cs-profile-avatar {
    margin-top: 0;
}
.cs-profile-banner-full .cs-profile-top .flex-1 {
    padding-top: 0;
}

/* ===== ADMIN PANEL ===== */
.cs-admin {
    margin-top: 20px;
}

.cs-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cs-admin-title {
    font-size: 16px;
    font-weight: 700;
    border-left: 3px solid var(--cs-gold);
    padding-left: 12px;
}

.cs-admin-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--cs-border);
    margin-bottom: 20px;
}

.cs-admin-tab {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--cs-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.cs-admin-tab.active {
    background: rgba(207, 181, 59, 0.15);
    color: var(--cs-gold);
}

/* ===== LOGGED OUT SPLASH ===== */
.cs-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    max-width: 520px;
    margin: 0 auto;
}

.cs-splash-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--cs-gold), var(--cs-amber));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 16px 48px rgba(207, 181, 59, 0.2);
    animation: pulseSplash 2s ease-in-out infinite;
}

@keyframes pulseSplash {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cs-splash-icon svg {
    width: 36px;
    height: 36px;
    color: #0a0a0f;
}

.cs-splash h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, var(--cs-gold), var(--cs-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cs-splash p {
    font-size: 14px;
    color: var(--cs-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===== SCROLL CONTAINER ===== */
.cs-scroll {
    max-height: 450px;
    overflow-y: auto;
}

/* ===== BADGE ===== */
.cs-badge {
    display: inline-flex;
    align-items: center;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-badge-green {
    background: rgba(16,185,129,0.15);
    color: #10B981;
    border: 1px solid rgba(16,185,129,0.2);
}

/* ===== TIMELINE (Pedigree) ===== */
.cs-timeline {
    position: relative;
}

.cs-timeline-line {
    position: relative;
}

.cs-timeline-line::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--cs-border);
}

.cs-timeline-entry {
    position: relative;
    display: flex;
    gap: 10px;
    padding-bottom: 14px;
}

.cs-timeline-entry:last-child {
    padding-bottom: 0;
}

.cs-timeline-dot {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 1;
}

.cs-timeline-content {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.cs-timeline-title {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

.cs-timeline-user {
    font-size: 11px;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.3;
    margin-top: 1px;
}

.cs-timeline-date {
    font-size: 9px;
    color: var(--cs-muted);
    margin-top: 1px;
}

/* ===== LOADING ===== */
.cs-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cs-border);
    border-top-color: var(--cs-gold);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.cs-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
.cs-skeleton-card {
    height: 80px;
    border: 1px solid var(--cs-border);
}
.cs-skeleton-sm {
    height: 16px;
    width: 60%;
    margin-bottom: 6px;
}
.cs-skeleton-xs {
    height: 12px;
    width: 40%;
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.cs-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 39;
    backdrop-filter: blur(2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cs-sidebar {
        display: none;
        z-index: 40;
        width: 280px;
    }
    .cs-sidebar.open {
        display: flex;
    }
    .cs-sidebar-overlay.active {
        display: block;
    }
    .cs-main {
        margin-left: 0;
    }
    .cs-content {
        padding: 12px;
    }
    .cs-statsbar {
        padding: 6px 12px;
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cs-statsbar::-webkit-scrollbar { display: none; }
    .cs-stat-item {
        font-size: 9px;
        flex-shrink: 0;
        gap: 4px;
    }
    .cs-stat-value { font-size: 10px; }
    .cs-stat-divider { flex-shrink: 0; }
    #header-actions {
        flex-shrink: 0;
        position: sticky;
        right: 0;
        background: var(--cs-bg2);
        padding-left: 8px;
    }

    /* Jackpot bar */
    .cs-jackpot {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }
    .cs-jackpot-bar { min-width: 60px; }
    .cs-jackpot-label { font-size: 8px; }

    /* Case header */
    .cs-case-header { flex-direction: column; align-items: stretch; gap: 10px; }
    .cs-case-info { gap: 10px; }
    .cs-case-name { font-size: 13px; }
    .cs-case-actions { justify-content: flex-end; }
    .cs-case-tab { min-width: 100px; padding: 8px 10px; }

    /* Case open controls */
    #view-station .flex.gap-2.mb-4 { flex-direction: column; }
    #btn-open-case, #btn-buy-case { height: 44px; font-size: 13px; flex: none !important; width: 100%; }
    #view-station .flex.gap-2.mb-4 > div:first-child { width: 100%; justify-content: center; height: 44px; }
    #view-station .flex.gap-2.mb-4 > div:first-child button { width: 44px; height: 44px; font-size: 18px; }
    #btn-qty-down, #btn-qty-up { width: 44px; height: 44px; font-size: 18px; }

    /* Drop rates grid */
    .cs-drop-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }

    /* Controls (inventory/market) */
    .cs-controls { flex-direction: column; }
    .cs-search { min-width: 0; }
    .cs-search input { height: 40px; font-size: 13px; }
    .cs-select { height: 40px; font-size: 12px; width: 100%; }
    .cs-input { height: 40px; font-size: 12px; width: 100% !important; }

    /* Inventory grid */
    .cs-skin-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
    .cs-skin-card { padding: 8px; }
    .cs-scroll { max-height: 60vh; }

    /* Market items */
    .cs-market-item { flex-direction: column; align-items: stretch; gap: 8px; }
    .cs-market-item-right { justify-content: flex-end; }
    .cs-market-item-left { gap: 8px; }
    .cs-market-item-info h4 { font-size: 11px; }
    .cs-market-price { font-size: 13px; }

    /* Crew / Squad */
    #view-crew .grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .cs-referral-input-group { max-width: 100%; }
    .cs-referral-card .flex.gap-2 { flex-direction: column; }
    .cs-referral-card .flex.gap-2 button { width: 100%; }
    #btn-copy-ref { width: 100%; justify-content: center; }
    #referral-link-input { font-size: 10px; }

    /* My Cases */
    #my-cases-container { grid-template-columns: repeat(2, 1fr) !important; }

    /* Admin panel */
    .cs-admin-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2px;
        padding: 3px;
    }
    .cs-admin-tabs::-webkit-scrollbar { display: none; }
    .cs-admin-tab { padding: 8px 14px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
    .cs-admin .flex.gap-3 { flex-direction: column; }
    .cs-admin .flex.gap-3 input,
    .cs-admin .flex.gap-3 select,
    .cs-admin .flex.gap-3 button { width: 100%; }
    #admin-selected-user .grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
    #admin-user-inventory { grid-template-columns: repeat(2, 1fr) !important; }
    #admin-skins-preview { grid-template-columns: repeat(2, 1fr) !important; }
    .cs-admin-header { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Full page profile */
    #view-profile .cs-profile-top { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    #view-profile .cs-profile-top .flex.items-center { justify-content: center; }
    #view-profile .cs-profile-banner-full .p-6 { padding: 16px; }
    #fp-avatar { width: 64px; height: 64px; font-size: 24px; }
    #view-profile .cs-profile-top .flex.items-center.gap-3 { flex-wrap: wrap; justify-content: center; }
    #view-profile .cs-profile-top .flex-shrink-0.flex.items-center.gap-2 { flex-direction: row; justify-content: center; width: 100%; }
    #view-profile .cs-profile-top h2.text-2xl { font-size: 18px; }
    .cs-profile-banner-full .grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; gap: 6px; }
    .cs-profile-stat-value { font-size: 16px; }
    .cs-profile-stat-label { font-size: 7px; }

    /* Profile tabs */
    #view-profile .flex.gap-2.mb-4 { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    #view-profile .flex.gap-2.mb-4::-webkit-scrollbar { display: none; }
    #view-profile .profile-tab-fp { white-space: nowrap; flex-shrink: 0; font-size: 11px; padding: 6px 12px; }
    #fp-inventory-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }

    /* Profile modal */
    .cs-profile-content { padding: 16px; }
    .cs-profile-top { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    .cs-profile-avatar { width: 64px; height: 64px; font-size: 22px; margin-top: -32px; }
    .cs-profile-name { font-size: 18px; }
    .cs-profile-meta { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .cs-profile-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .cs-profile-stat { padding: 8px 4px; }
    .cs-profile-stat-value { font-size: 18px; }

    /* Modals */
    .cs-modal { padding: 8px; align-items: flex-end; }
    .cs-modal-card { max-height: 85vh; border-radius: 14px 14px 0 0; }
    .cs-modal-header { padding: 12px 16px; }
    .cs-modal-body { padding: 16px; }
    .cs-modal-close { width: 36px; height: 36px; font-size: 18px; }

    /* Chat */
    #view-chat .flex.items-center.justify-between { flex-direction: column; align-items: flex-start; gap: 8px; }
    #chat-room-tabs { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    #chat-room-tabs::-webkit-scrollbar { display: none; }
    #chat-input { height: 40px; font-size: 13px; }
    #btn-chat-send { height: 40px; padding: 0 16px; white-space: nowrap; }

    /* Find Users */
    #view-find-users .flex.gap-3.mb-6 { flex-direction: column; }
    #view-find-users .flex.gap-3.mb-6 button { width: 100%; }
    #find-users-input { height: 44px; font-size: 14px; }
    #btn-find-users { height: 44px; }

    /* Logged out splash */
    .cs-splash { padding: 48px 20px; }
    .cs-splash h1 { font-size: 28px; }
    .cs-splash p { font-size: 13px; }

    /* Toast */
    .cs-toast { font-size: 11px; padding: 8px 16px; max-width: 90vw; white-space: normal; }

    /* Item detail modal */
    #view-market .grid.grid-cols-1.md\\:grid-cols-2,
    .cs-modal-body .grid.grid-cols-1.md\\:grid-cols-2 { grid-template-columns: 1fr !important; }

    /* Buttons - touch friendly min 44px height */
    .cs-btn { min-height: 36px; }
    .cs-btn-secondary { min-height: 36px; }
    .cs-btn-gold { min-height: 44px; }
    .cs-btn-blue,
    .cs-btn-green,
    .cs-btn-red { min-height: 40px; }

    /* About/Case contents modal */
    .cs-rarity-group { margin-bottom: 12px; }
    .cs-skin-grid-small { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 4px; }

    /* Hype alerts on mobile */
    #live-hype-container { right: 8px; left: 8px; max-width: none; }
    .cs-hype-alert { max-width: none; font-size: 11px; padding: 10px; }
}

/* Small phones */
@media (max-width: 420px) {
    .cs-skin-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-drop-grid { grid-template-columns: repeat(2, 1fr); }
    #my-cases-container { grid-template-columns: 1fr !important; }
    #admin-user-inventory { grid-template-columns: 1fr 1fr !important; }
    #fp-inventory-grid { grid-template-columns: 1fr 1fr !important; }
    .cs-case-tab { min-width: 80px; padding: 6px 8px; }
    .cs-splash { padding: 32px 16px; }
    .cs-splash h1 { font-size: 24px; }
    .cs-stat-item { font-size: 8px; }
    .cs-stat-value { font-size: 9px; }
    .cs-stat-divider { display: none; }
}

/* ===== EMPTY STATE ===== */
.cs-empty {
    grid-column: 1 / -1;
    padding: 48px 0;
    text-align: center;
    color: var(--cs-muted);
    font-size: 13px;
}

/* ===== CASE CONTENTS MODAL ===== */
.cs-rarity-group {
    margin-bottom: 16px;
}

.cs-rarity-group:last-child {
    margin-bottom: 0;
}

.cs-rarity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cs-rarity-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-rarity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cs-rarity-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-rarity-count {
    font-size: 10px;
    color: var(--cs-muted);
}

.cs-rarity-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-text);
}

.cs-skin-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
}

.cs-skin-mini {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--cs-border);
    border-radius: 6px;
    padding: 6px;
    text-align: center;
}

.cs-skin-mini-name {
    font-size: 9px;
    font-weight: 600;
    color: var(--cs-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Profile tabs inside modal */
.cs-profile-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--cs-border);
    margin-bottom: 12px;
}

.cs-profile-tab,
.profile-tab {
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    background: none;
    color: var(--cs-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.cs-profile-tab.active,
.profile-tab.active {
    background: rgba(207, 181, 59, 0.12);
    color: var(--cs-gold);
}

/* Stats row for profile */
.cs-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.cs-profile-stat {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
}

.cs-profile-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--cs-text);
}

.cs-profile-stat-label {
    font-size: 9px;
    color: var(--cs-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 3px;
}

/* Utility classes for multi-result modal */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gap-3 { gap: 0.75rem; }
.max-h-96 { max-height: 24rem; }
.overflow-y-auto { overflow-y: auto; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-\[11px\] { font-size: 11px; }
.text-\[9px\] { font-size: 9px; }
.text-\[8px\] { font-size: 8px; }
.text-\[10px\] { font-size: 10px; }

/* Multi-spinner rows */
.cs-spinner-viewport.multi {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: auto;
    padding: 6px;
    min-height: 0;
}
.spinner-row {
    position: relative;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--cs-border);
    border-radius: 6px;
}
.spinner-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--cs-red);
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}
.spinner-track-multi {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    height: 100%;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
}
.spinner-card.mini {
    width: 90px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    border-radius: 4px;
}

/* ===== PROFILE CUSTOMIZATION THEMES ===== */

/* Shared: theme border accent on content left */
.theme-ocean .cs-profile-content,
.theme-neon .cs-profile-content,
.theme-forest .cs-profile-content,
.theme-lava .cs-profile-content,
.theme-royal .cs-profile-content,
.theme-obsidian .cs-profile-content,
.theme-blood-tiger .cs-profile-content,
.theme-arctic .cs-profile-content,
.theme-crimson-web .cs-profile-content,
.theme-fade .cs-profile-content,
.theme-slaughter .cs-profile-content,
.theme-case-hardened .cs-profile-content,
.theme-doppler .cs-profile-content,
.theme-gamma-doppler .cs-profile-content {
    border-left: 3px solid rgba(255,255,255,0.08);
    padding-left: 21px;
}

/* Ocean — calm deep blues */
.theme-ocean .cs-profile-banner {
    background: linear-gradient(135deg, #0077be, #00bcd4, #003b6f) !important;
}
.theme-ocean .cs-profile-content {
    background: linear-gradient(180deg, rgba(0,119,190,0.15), rgba(0,50,100,0.06));
}
.theme-ocean .cs-profile-avatar {
    border-color: #00e5ff !important;
    box-shadow: 0 0 20px rgba(0,229,255,0.3);
}
.theme-ocean .cs-profile-stats .cs-profile-stat {
    border-color: rgba(0,229,255,0.2);
}

/* Neon — vibrant cyberpunk */
.theme-neon .cs-profile-banner {
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ff00ff) !important;
}
.theme-neon .cs-profile-content {
    background: linear-gradient(180deg, rgba(255,0,255,0.12), rgba(0,255,255,0.08));
}
.theme-neon .cs-profile-avatar {
    border-color: #ff00ff !important;
    box-shadow: 0 0 24px rgba(255,0,255,0.35);
}
.theme-neon .cs-profile-top {
    filter: drop-shadow(0 0 6px rgba(255,0,255,0.15));
}
.theme-neon .cs-profile-stats .cs-profile-stat {
    border-color: rgba(255,0,255,0.2);
}

/* Forest — nature greens */
.theme-forest .cs-profile-banner {
    background: linear-gradient(135deg, #1b5e20, #4caf50, #0d3310) !important;
}
.theme-forest .cs-profile-content {
    background: linear-gradient(180deg, rgba(76,175,80,0.14), rgba(27,94,32,0.06));
}
.theme-forest .cs-profile-avatar {
    border-color: #66bb6a !important;
    box-shadow: 0 0 20px rgba(102,187,106,0.3);
}
.theme-forest .cs-profile-stats .cs-profile-stat {
    border-color: rgba(76,175,80,0.2);
}

/* Lava — molten fire */
.theme-lava .cs-profile-banner {
    background: linear-gradient(135deg, #ff4500, #ff8c00, #8b0000) !important;
}
.theme-lava .cs-profile-content {
    background: linear-gradient(180deg, rgba(255,69,0,0.18), rgba(220,20,60,0.08));
}
.theme-lava .cs-profile-avatar {
    border-color: #ff6a00 !important;
    box-shadow: 0 0 24px rgba(255,106,0,0.35);
}
.theme-lava .cs-profile-stats .cs-profile-stat {
    border-color: rgba(255,69,0,0.25);
}

/* Royal — deep purple royalty */
.theme-royal .cs-profile-banner {
    background: linear-gradient(135deg, #4a148c, #9c27b0, #2a0060) !important;
}
.theme-royal .cs-profile-content {
    background: linear-gradient(180deg, rgba(74,20,140,0.16), rgba(156,39,176,0.06));
}
.theme-royal .cs-profile-avatar {
    border-color: #ce93d8 !important;
    box-shadow: 0 0 24px rgba(206,147,216,0.3);
}
.theme-royal .cs-profile-stats .cs-profile-stat {
    border-color: rgba(156,39,176,0.2);
}

/* Obsidian — dark and sleek */
.theme-obsidian .cs-profile-banner {
    background: linear-gradient(135deg, #0d0d1a, #2a2a5e, #0d0d1a) !important;
}
.theme-obsidian .cs-profile-content {
    background: linear-gradient(180deg, rgba(13,13,26,0.35), rgba(42,42,94,0.12));
}
.theme-obsidian .cs-profile-avatar {
    border-color: #5c5cae !important;
    box-shadow: 0 0 20px rgba(92,92,174,0.3);
}
.theme-obsidian .cs-profile-stats .cs-profile-stat {
    border-color: rgba(92,92,174,0.25);
}

/* Blood Tiger — aggressive red-orange */
.theme-blood-tiger .cs-profile-banner {
    background: linear-gradient(135deg, #5a0000, #ff4500, #2a0000) !important;
}
.theme-blood-tiger .cs-profile-content {
    background: linear-gradient(180deg, rgba(139,0,0,0.2), rgba(255,69,0,0.1));
}
.theme-blood-tiger .cs-profile-avatar {
    border-color: #ff4500 !important;
    box-shadow: 0 0 24px rgba(255,69,0,0.35);
}
.theme-blood-tiger .cs-profile-stats .cs-profile-stat {
    border-color: rgba(255,69,0,0.25);
}

/* Arctic — icy cool */
.theme-arctic .cs-profile-banner {
    background: linear-gradient(135deg, #b2ebf2, #4dd0e1, #006064) !important;
}
.theme-arctic .cs-profile-content {
    background: linear-gradient(180deg, rgba(178,235,242,0.14), rgba(0,131,143,0.06));
}
.theme-arctic .cs-profile-avatar {
    border-color: #80deea !important;
    box-shadow: 0 0 20px rgba(128,222,234,0.3);
}
.theme-arctic .cs-profile-stats .cs-profile-stat {
    border-color: rgba(77,208,225,0.2);
}

/* Crimson Web — dark blood web */
.theme-crimson-web .cs-profile-banner {
    background: linear-gradient(135deg, #1a0000, #8b0000, #1a0000) !important;
}
.theme-crimson-web .cs-profile-content {
    background: radial-gradient(circle at 50% 0%, rgba(139,0,0,0.18), transparent 70%);
}
.theme-crimson-web .cs-profile-avatar {
    border-color: #b71c1c !important;
    box-shadow: 0 0 20px rgba(183,28,28,0.35);
}
.theme-crimson-web .cs-profile-stats .cs-profile-stat {
    border-color: rgba(139,0,0,0.3);
}

/* Fade — rainbow pastel */
.theme-fade .cs-profile-banner {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff) !important;
    background-size: 200% 200% !important;
    animation: shimmerOil 8s ease infinite;
}
.theme-fade .cs-profile-content {
    background: linear-gradient(180deg, rgba(255,107,107,0.12), rgba(77,150,255,0.1));
}
.theme-fade .cs-profile-avatar {
    border-color: #ffd93d !important;
    box-shadow: 0 0 20px rgba(255,217,61,0.3);
}
.theme-fade .cs-profile-stats .cs-profile-stat {
    border-color: rgba(255,107,107,0.2);
}

/* Slaughter — clean white/red */
.theme-slaughter .cs-profile-banner {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0, #b71c1c) !important;
}
.theme-slaughter .cs-profile-content {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(183,28,28,0.04));
}
.theme-slaughter .cs-profile-avatar {
    border-color: #dc2626 !important;
    box-shadow: 0 0 20px rgba(220,38,38,0.3);
}
.theme-slaughter .cs-profile-name {
    color: #ef4444;
}
.theme-slaughter .cs-profile-stats .cs-profile-stat {
    border-color: rgba(220,38,38,0.15);
}

/* Case Hardened — animated oil-slick */
.theme-case-hardened .cs-profile-banner {
    background: linear-gradient(135deg, #3a3a3a, #8b6914, #4b0082, #2f4f4f) !important;
    background-size: 300% 300% !important;
    animation: shimmerOil 5s ease infinite;
}
.theme-case-hardened .cs-profile-content {
    background: linear-gradient(180deg, rgba(139,105,20,0.1), rgba(75,0,130,0.06));
}
.theme-case-hardened .cs-profile-avatar {
    border-color: #b8860b !important;
    box-shadow: 0 0 20px rgba(184,134,11,0.3);
}
.theme-case-hardened .cs-profile-stats .cs-profile-stat {
    border-color: rgba(139,105,20,0.2);
}

/* Doppler — deep blue animated */
.theme-doppler .cs-profile-banner {
    background: linear-gradient(135deg, #000428, #004e92, #000d1a, #0088cc) !important;
    background-size: 400% 400% !important;
    animation: shimmerOil 7s ease infinite;
}
.theme-doppler .cs-profile-content {
    background: linear-gradient(180deg, rgba(0,78,146,0.12), rgba(0,4,40,0.08));
}
.theme-doppler .cs-profile-avatar {
    border-color: #0099ff !important;
    box-shadow: 0 0 20px rgba(0,153,255,0.3);
}
.theme-doppler .cs-profile-stats .cs-profile-stat {
    border-color: rgba(0,78,146,0.25);
}

/* Gamma Doppler — green animated */
.theme-gamma-doppler .cs-profile-banner {
    background: linear-gradient(135deg, #001a00, #00ff41, #002200, #00cc33) !important;
    background-size: 400% 400% !important;
    animation: shimmerOil 7s ease infinite;
}
.theme-gamma-doppler .cs-profile-content {
    background: linear-gradient(180deg, rgba(0,255,65,0.1), rgba(0,34,0,0.08));
}
.theme-gamma-doppler .cs-profile-avatar {
    border-color: #00ff41 !important;
    box-shadow: 0 0 20px rgba(0,255,65,0.3);
}
.theme-gamma-doppler .cs-profile-stats .cs-profile-stat {
    border-color: rgba(0,255,65,0.2);
}

@keyframes shimmerOil {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== PROFILE EFFECTS ===== */
.effect-sparkle .cs-profile-name::after {
    content: " ✨";
}
.effect-sparkle .cs-profile-name {
    text-shadow: 0 0 12px rgba(255,215,0,0.3);
}
.effect-sparkle .cs-profile-avatar {
    animation: sparklePulse 2s ease-in-out infinite;
}
@keyframes sparklePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.3), 0 0 16px rgba(255,215,0,0.1); }
    50% { box-shadow: 0 0 24px rgba(255,215,0,0.5), 0 0 48px rgba(255,215,0,0.2); }
}

.effect-glow-border .cs-profile-top {
    filter: drop-shadow(0 0 20px rgba(207,181,59,0.5));
}
.effect-glow-border .cs-profile-banner {
    box-shadow: inset 0 0 40px rgba(207,181,59,0.15);
}
.effect-glow-border .cs-profile-content {
    box-shadow: inset 0 2px 20px rgba(207,181,59,0.06);
}

.effect-particles .cs-profile-content {
    position: relative;
    overflow: hidden;
}
.effect-particles .cs-profile-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(207,181,59,0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.05) 0%, transparent 30%);
    pointer-events: none;
}
.effect-particles .cs-profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.effect-rainbow-name .cs-profile-name {
    background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowShift 3s linear infinite;
}
.effect-rainbow-name .cs-profile-banner {
    box-shadow: inset 0 0 40px rgba(255,0,0,0.08);
}
@keyframes rainbowShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.effect-pulse-ring .cs-profile-avatar {
    animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(207,181,59,0.5); }
    50% { box-shadow: 0 0 0 20px rgba(207,181,59,0); }
}
.effect-pulse-ring .cs-profile-content {
    box-shadow: inset 0 0 30px rgba(207,181,59,0.04);
}

.effect-floating-gems .cs-profile-content {
    position: relative;
}
.effect-floating-gems .cs-profile-content::after {
    content: "💎✨💎✨💎";
    position: absolute;
    top: 10px; right: 15px;
    font-size: 22px;
    opacity: 0.45;
    animation: floatGems 5s ease-in-out infinite;
    letter-spacing: 6px;
}
.effect-floating-gems .cs-profile-banner::after {
    content: "✨💎✨";
    position: absolute;
    bottom: 8px; left: 20px;
    font-size: 14px;
    opacity: 0.3;
    animation: floatGems 4s ease-in-out infinite reverse;
    letter-spacing: 4px;
}
@keyframes floatGems {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(8deg); }
}

.effect-fire-trail .cs-profile-avatar {
    box-shadow: 0 0 30px rgba(255,69,0,0.5), 0 0 60px rgba(255,165,0,0.25);
    animation: firePulse 1s ease-in-out infinite;
}
.effect-fire-trail .cs-profile-banner {
    box-shadow: inset 0 -20px 40px rgba(255,69,0,0.15);
}
@keyframes firePulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255,69,0,0.5), 0 0 60px rgba(255,165,0,0.25); }
    50% { box-shadow: 0 0 50px rgba(255,69,0,0.7), 0 0 80px rgba(255,165,0,0.35); }
}

.effect-scanlines .cs-profile-content {
    position: relative;
}
.effect-scanlines .cs-profile-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
}
.effect-scanlines .cs-profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.03) 3px,
        rgba(255,255,255,0.03) 6px
    );
    pointer-events: none;
}

/* ===== PROFILE BACKGROUNDS ===== */
.bg-default-dark .cs-profile-content {
    background: var(--cs-bg2);
}

.bg-carbon .cs-profile-content {
    background: repeating-linear-gradient(
        45deg,
        #1a1a1a,
        #1a1a1a 10px,
        #222222 10px,
        #222222 20px
    );
    position: relative;
}
.bg-carbon .cs-profile-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 60%);
    pointer-events: none;
}

.bg-stars .cs-profile-content {
    background: #0a0a1a;
    position: relative;
}
.bg-stars .cs-profile-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 25%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 38% 55%, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 22% 75%, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 65% 82%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 88% 12%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 45% 50%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 5% 60%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 92% 70%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 48% 90%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 30% 40%, rgba(255,255,255,0.5), transparent);
    background-size: 250px 250px;
    pointer-events: none;
}

.bg-hearts .cs-profile-content {
    position: relative;
}
.bg-hearts .cs-profile-content::before {
    content: "❤❤❤❤❤❤❤❤❤❤";
    position: absolute;
    top: 8px; right: 10px;
    font-size: 24px;
    opacity: 0.15;
    letter-spacing: 6px;
    transform: rotate(-8deg);
    pointer-events: none;
}
.bg-hearts .cs-profile-content::after {
    content: "❤❤❤❤❤❤❤❤";
    position: absolute;
    bottom: 8px; left: 10px;
    font-size: 18px;
    opacity: 0.1;
    letter-spacing: 8px;
    transform: rotate(5deg);
    pointer-events: none;
}

.bg-circuit .cs-profile-content {
    background: #0a1a0a;
    position: relative;
}
.bg-circuit .cs-profile-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(0,255,65,0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0,255,65,0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}
.bg-circuit .cs-profile-content::after {
    content: "⚡";
    position: absolute;
    top: 12px; left: 16px;
    font-size: 20px;
    opacity: 0.15;
    animation: pulseOpacity 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulseOpacity {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.25; }
}

.bg-diamond .cs-profile-content {
    background: #1a1a1a;
    position: relative;
}
.bg-diamond .cs-profile-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 20px 20px;
    pointer-events: none;
}
.bg-diamond .cs-profile-content::after {
    content: "💎";
    position: absolute;
    top: 12px; right: 16px;
    font-size: 16px;
    opacity: 0.15;
    pointer-events: none;
}

.bg-hex .cs-profile-content {
    background: #0a0a0f;
    position: relative;
}
.bg-hex .cs-profile-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0L40 11.5v23L20 46 0 34.5v-23z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 40px 35px;
    pointer-events: none;
}

.bg-mosaic .cs-profile-content {
    background: #0f0f1a;
    position: relative;
}
.bg-mosaic .cs-profile-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(0deg, rgba(207,181,59,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(207,181,59,0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* ===== FULL PAGE PROFILE TABS ===== */
.profile-tab-fp {
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--cs-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.profile-tab-fp:hover {
    color: var(--cs-text);
}
.profile-tab-fp.active {
    color: var(--cs-gold);
    border-bottom-color: var(--cs-gold);
}

.profile-container {
    position: relative;
    z-index: 100;
}

/* ===== ADMIN PANEL OVERHAUL ===== */
.cs-admin-tabs {
    gap: 2px;
    padding: 3px;
}
.cs-admin-tab {
    padding: 8px 16px;
    font-size: 11px;
    border-radius: 6px;
}
.cs-admin-tab.active {
    background: linear-gradient(135deg, rgba(207,181,59,0.18), rgba(245,158,11,0.08));
    box-shadow: inset 0 1px 0 rgba(207,181,59,0.15);
}

.cs-admin-card {
    border-color: rgba(42,42,62,0.6);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-admin-card:hover {
    border-color: rgba(207,181,59,0.12);
    box-shadow: 0 0 20px -8px rgba(207,181,59,0.06);
}

.cs-admin-subcard {
    border-color: rgba(42,42,62,0.4);
    transition: border-color 0.2s;
}
.cs-admin-subcard:hover {
    border-color: rgba(207,181,59,0.08);
}

.cs-admin-stat {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(42,42,62,0.5);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: border-color 0.2s;
}
.cs-admin-stat:hover {
    border-color: rgba(207,181,59,0.1);
}

/* Category rate cards */
.admin-category-card {
    transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-category-card:hover {
    border-color: rgba(207,181,59,0.1) !important;
    box-shadow: 0 0 16px -8px rgba(207,181,59,0.08);
}

input[type="number"].admin-cat-rate-input {
    -moz-appearance: textfield;
}
input[type="number"].admin-cat-rate-input::-webkit-outer-spin-button,
input[type="number"].admin-cat-rate-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== AVATAR FRAMES ===== */
.af-bronze .cs-profile-avatar { border-color: #cd7f32 !important; }
.af-silver .cs-profile-avatar { border-color: #c0c0c0 !important; }
.af-gold .cs-profile-avatar { border-color: #ffd700 !important; box-shadow: 0 0 20px rgba(255,215,0,0.3); }
.af-crimson .cs-profile-avatar { border-color: #dc143c !important; }
.af-neon .cs-profile-avatar { border-color: #ff00ff !important; box-shadow: 0 0 20px rgba(255,0,255,0.3); }
.af-diamond .cs-profile-avatar { border-color: #b9f2ff !important; box-shadow: 0 0 24px rgba(185,242,255,0.3), inset 0 0 12px rgba(185,242,255,0.15); }
.af-skull .cs-profile-avatar { border-color: #8b0000 !important; filter: drop-shadow(0 0 6px rgba(139,0,0,0.4)); }
.af-dragon .cs-profile-avatar { border-color: #ff4500 !important; box-shadow: 0 0 30px rgba(255,69,0,0.3), 0 0 60px rgba(255,69,0,0.1); }

/* ===== AVATAR EFFECTS ===== */
.ae-glow .cs-profile-avatar { animation: aeGlow 2s ease-in-out infinite; }
@keyframes aeGlow { 0%, 100% { box-shadow: 0 0 8px rgba(207,181,59,0.3); } 50% { box-shadow: 0 0 24px rgba(207,181,59,0.6); } }

.ae-pulse .cs-profile-avatar { animation: aePulse 1.5s ease-in-out infinite; }
@keyframes aePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.ae-spin .cs-profile-avatar { animation: aeSpin 4s linear infinite; }
@keyframes aeSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ae-sparkle .cs-profile-avatar { animation: aeSparkle 2s ease-in-out infinite; }
@keyframes aeSparkle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3) drop-shadow(0 0 8px rgba(255,215,0,0.5)); } }

.ae-fire .cs-profile-avatar { box-shadow: 0 0 30px rgba(255,69,0,0.5), 0 0 60px rgba(255,165,0,0.2); animation: aeFire 0.8s ease-in-out infinite; }
@keyframes aeFire { 0%, 100% { box-shadow: 0 0 30px rgba(255,69,0,0.5), 0 0 60px rgba(255,165,0,0.2); } 50% { box-shadow: 0 0 50px rgba(255,69,0,0.7), 0 0 80px rgba(255,165,0,0.3); } }

.ae-float .cs-profile-avatar { animation: aeFloat 3s ease-in-out infinite; }
@keyframes aeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.ae-rainbow .cs-profile-avatar { border-color: transparent !important; animation: aeRainbow 3s linear infinite; }
@keyframes aeRainbow { 0% { border-color: #ff0000; } 17% { border-color: #ff8800; } 33% { border-color: #ffff00; } 50% { border-color: #00ff00; } 67% { border-color: #0088ff; } 83% { border-color: #8800ff; } 100% { border-color: #ff0000; } }

.ae-energy .cs-profile-avatar { animation: aeEnergy 1.2s ease-in-out infinite; }
@keyframes aeEnergy { 0%, 100% { box-shadow: 0 0 5px rgba(0,200,255,0.3), 0 0 10px rgba(0,200,255,0.1); } 50% { box-shadow: 0 0 30px rgba(0,200,255,0.6), 0 0 60px rgba(0,200,255,0.2), 0 0 90px rgba(0,200,255,0.1); } }

/* ===== CHAT BUBBLES ===== */
.cb-dark { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 4px 8px; margin: -4px -8px; }
.cb-gold { background: rgba(207,181,59,0.08); border: 1px solid rgba(207,181,59,0.15); border-radius: 8px; padding: 3px 7px; margin: -4px -8px; }
.cb-neon { background: rgba(255,0,255,0.06); border: 1px solid rgba(255,0,255,0.15); border-radius: 8px; padding: 3px 7px; margin: -4px -8px; box-shadow: 0 0 12px rgba(255,0,255,0.06); }
.cb-skull { background: rgba(139,0,0,0.08); border: 1px solid rgba(139,0,0,0.15); border-radius: 4px 12px 4px 12px; padding: 3px 7px; margin: -4px -8px; }
.cb-royal { background: linear-gradient(135deg, rgba(74,20,140,0.1), rgba(156,39,176,0.06)); border: 1px solid rgba(156,39,176,0.15); border-radius: 8px; padding: 3px 7px; margin: -4px -8px; }
.cb-blood { background: rgba(220,20,60,0.06); border: 1px solid rgba(220,20,60,0.15); border-radius: 8px; padding: 3px 7px; margin: -4px -8px; position: relative; overflow: hidden; }
.cb-blood::before { content: ""; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; background: radial-gradient(circle, rgba(220,20,60,0.2) 0%, transparent 70%); pointer-events: none; }
.cb-diamond { background: linear-gradient(135deg, rgba(185,242,255,0.08), rgba(255,255,255,0.04)); border: 1px solid rgba(185,242,255,0.2); border-radius: 12px 4px 12px 4px; padding: 3px 7px; margin: -4px -8px; box-shadow: 0 0 16px rgba(185,242,255,0.06); }

/* ===== CHAT BADGES ===== */
.chat-badge { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; background-size: contain; background-repeat: no-repeat; background-position: center; }
.chat-badge.cbg-vip { background: linear-gradient(135deg, #ffd700, #ff8c00); border: 1px solid rgba(255,215,0,0.3); }
.chat-badge.cbg-skull { background: #8b0000; border: 1px solid rgba(139,0,0,0.3); }
.chat-badge.cbg-crown { background: linear-gradient(135deg, #ffd700, #b8860b); border: 1px solid rgba(255,215,0,0.3); clip-path: polygon(25% 0%, 75% 0%, 100% 70%, 70% 100%, 30% 100%, 0% 70%); }
.chat-badge.cbg-star { background: linear-gradient(135deg, #ffff00, #ff8c00); border: 1px solid rgba(255,255,0,0.3); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.chat-badge.cbg-diamond { background: linear-gradient(135deg, #b9f2ff, #87ceeb); border: 1px solid rgba(185,242,255,0.3); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.chat-badge.cbg-flame { background: linear-gradient(135deg, #ff4500, #ff8c00); border: 1px solid rgba(255,69,0,0.3); }
.chat-badge.cbg-heart { background: #ff1493; border: 1px solid rgba(255,20,147,0.3); clip-path: path('M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'); }
.chat-badge.cbg-ace { background: linear-gradient(135deg, #ff0000, #ff4500, #ffd700); border: 1px solid rgba(255,0,0,0.3); animation: badgeAce 1.5s ease-in-out infinite; }
@keyframes badgeAce { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }

/* ===== PROFILE BADGES ===== */
.profile-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 700; padding: 2px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.profile-badge.pb-veteran { background: linear-gradient(135deg, rgba(75,105,255,0.15), rgba(75,105,255,0.05)); border: 1px solid rgba(75,105,255,0.2); color: #4B69FF; }
.profile-badge.pb-collector { background: linear-gradient(135deg, rgba(136,71,255,0.15), rgba(136,71,255,0.05)); border: 1px solid rgba(136,71,255,0.2); color: #8847FF; }
.profile-badge.pb-mogul { background: linear-gradient(135deg, rgba(207,181,59,0.15), rgba(245,158,11,0.05)); border: 1px solid rgba(207,181,59,0.2); color: #CFB53B; }
.profile-badge.pb-knife-king { background: linear-gradient(135deg, rgba(255,69,0,0.15), rgba(255,0,0,0.05)); border: 1px solid rgba(255,69,0,0.2); color: #ff4500; animation: badgePulse 2s ease-in-out infinite; }
.profile-badge.pb-jackpot { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(255,215,0,0.05)); border: 1px solid rgba(245,158,11,0.2); color: #F59E0B; }
.profile-badge.pb-legend { background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,69,0,0.05)); border: 1px solid rgba(255,215,0,0.2); color: #ffd700; animation: badgePulse 1.5s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.3); } 50% { box-shadow: 0 0 8px 2px rgba(255,215,0,0.1); } }

/* ===== SHOP CARD INLINE PREVIEW ===== */
.shop-card-preview { border-radius: 8px; overflow: hidden; margin-bottom: 6px; min-height: 36px; }
.shop-card-preview .cs-profile-banner { height: 20px; border-radius: 6px 6px 0 0; }
.shop-card-preview .cs-profile-banner::before { display: none; }
.shop-card-preview .cs-profile-content { padding: 4px 6px 6px; min-height: 6px; }
.shop-card-preview .cs-profile-avatar { width: 22px; height: 22px; border-radius: 5px; font-size: 8px; margin-top: -10px; border-width: 2px; }
.shop-card-preview .cs-profile-name { font-size: 9px; }
.shop-card-preview .cs-profile-top { gap: 4px; margin-bottom: 0; }
.shop-card-preview .effect-pulse-ring .cs-profile-avatar,
.shop-card-preview .effect-sparkle .cs-profile-avatar,
.shop-card-preview .effect-fire-trail .cs-profile-avatar { animation-duration: 1s !important; }

/* ===== LIVE TICKER ===== */
.cs-ticker {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(207,181,59,0.06), rgba(245,158,11,0.04), rgba(207,181,59,0.06));
    border-bottom: 1px solid rgba(207,181,59,0.08);
    height: 28px;
    display: flex;
    align-items: center;
    position: relative;
}
.cs-ticker-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
    padding-left: 100%;
}
.cs-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--cs-muted);
    flex-shrink: 0;
}
.cs-ticker-item .ticker-skin {
    color: var(--cs-text);
    font-weight: 600;
}
.cs-ticker-item .ticker-rarity-rare { color: var(--rarity-covert); }
.cs-ticker-item .ticker-rarity-special { color: var(--rarity-special); }
.cs-ticker-item .ticker-rarity-milspec { color: var(--rarity-milspec); }
.cs-ticker-item .ticker-happy-hour { color: #fbbf24; font-weight: 800; font-size: 13px; text-shadow: 0 0 12px rgba(251,191,36,0.6); }
.cs-ticker-item .ticker-giveaway { color: #a78bfa; font-weight: 700; font-size: 12px; text-shadow: 0 0 8px rgba(167,139,250,0.4); }
.cs-ticker-item .ticker-jackpot { color: #ef4444; font-weight: 700; }
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}