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

:root {
    /* GTA Central Launcher palette */
    --bg: #0A0D18;
    --bg-soft: #12172A;
    --bg-card: #151C33;
    --bg-card-solid: #151C33;
    --surface: #12172A;
    --surface-light: #1A223B;
    --border: rgba(0, 0, 0, 0.85);
    --border-soft: rgba(148, 163, 184, 0.18);
    --border-hover: rgba(255, 209, 59, 0.45);
    --text: #FFFFFF;
    --text-muted: #94A3B8;
    --text-sub: #CBD5E1;
    --primary: #0060DF;
    --primary-dark: #004DB3;
    --primary-light: rgba(0, 96, 223, 0.18);
    --accent: #FFD13B;
    --accent-hover: #FACC15;
    --cyan: #00D2FF;
    --success: #22C55E;
    --danger: #EF4444;
    --warning: #FFD13B;
    --shadow: 3px 3px 0 #000000;
    --shadow-md: 5px 5px 0 #000000;
    --shadow-lg: 8px 8px 0 #000000;
    --shadow-hover: 5px 5px 0 #000000;
    --radius: 10px;
    --radius-sm: 6px;
    --font-heading: 'Space Grotesk', Inter, -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(255, 209, 59, 0.07) 1.2px, transparent 1.2px),
        linear-gradient(180deg, rgba(255, 126, 41, 0.06) 0%, rgba(0, 96, 223, 0.10) 40%, rgba(10, 13, 24, 0.98) 100%);
    background-size: 28px 28px, 100% 100%;
    background-attachment: fixed;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent); }

/* ============ GLASS / CARDS ============ */
.glass {
    background: var(--bg-card);
    border: 2px solid #000000;
    box-shadow: var(--shadow);
}

/* ============ AUTH (Login / Register) ============ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Ambient orbs — same as stats site */
.auth-body::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
    top: -120px; right: -100px;
    border-radius: 50%;
    animation: float 9s ease-in-out infinite;
    pointer-events: none;
}

.auth-body::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.14), transparent 70%);
    bottom: -100px; left: -80px;
    border-radius: 50%;
    animation: float 11s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-28px) scale(1.04); }
}

.auth-container {
    width: 100%;
    max-width: 420px;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 32px;
    border: 2.5px solid #000000;
    box-shadow: 8px 8px 0 #000000;
    animation: slideUp 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.auth-logo { text-align: center; margin-bottom: 28px; }

/* Logo gambar resmi (image/central-logo/logo.png) */
.auth-logo-img {
    display: block;
    width: auto;
    max-width: 120px;
    max-height: 120px;
    height: auto;
    margin: 0 auto 16px;
    object-fit: contain;
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.55));
    transition: transform 0.2s ease;
}

.auth-logo-img:hover {
    transform: scale(1.05);
}

/* Fallback kalau gambar gagal load */
.logo-circle {
    width: 72px; height: 72px;
    background: var(--accent);
    border-radius: 12px;
    border: 2.5px solid #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #000;
    margin: 0 auto 14px;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.15s ease;
    letter-spacing: 0.5px;
}

.logo-circle:hover { transform: rotate(-6deg) scale(1.05); }

.auth-logo h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.auth-logo p { color: var(--text-muted); font-size: 13px; }

/* Tombol auth — full width, sama style dashboard */
.btn-auth {
    width: 100%;
    padding: 14px 18px;
    font-size: 14.5px;
    font-weight: 700;
    margin-top: 8px;
    border-radius: 12px;
}

/* Forms */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.form-group input {
    padding: 13px 14px;
    border: 2px solid #000000;
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 2px 2px 0 #000000;
}

.form-group input::placeholder { color: #64748b; }

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-light);
    box-shadow: 3px 3px 0 #000000;
}

.form-group input:disabled {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Buttons — neo-brutalist (launcher style) */
.btn-primary {
    padding: 12px 18px;
    background: var(--primary);
    color: #FFFFFF;
    border: 2.5px solid #000000;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    font-family: var(--font-heading);
    margin-top: 4px;
    box-shadow: 3px 3px 0 #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000000;
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #000000;
}

.btn-secondary, .btn-danger {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0 #000000;
}

.btn-secondary {
    background: var(--surface-light);
    color: #FFFFFF;
}

.btn-secondary:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000000;
    background: #232C4A;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.32);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000000;
}

.btn-block {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    font-family: var(--font-heading);
}

.btn-block svg {
    width: 16px; height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a { font-weight: 600; color: var(--primary); }

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 16px;
    animation: slideUp 0.3s ease;
    border-left: none;
}

.alert-error {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

.alert-success {
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
}
/* ============ APP LAYOUT ============ */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    background: transparent;
    position: relative;
}

.app-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 90% 8%, rgba(0, 96, 223, 0.12), transparent),
        radial-gradient(ellipse 45% 30% at 8% 85%, rgba(255, 209, 59, 0.07), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #0E1424;
    border-right: 3px solid #000000;
    box-shadow: 4px 0 0 rgba(0, 0, 0, 0.45);
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0; left: 0;
    z-index: 20;
    transition: all 0.3s ease;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 8px 22px;
    margin-bottom: 12px;
    border-bottom: 2px solid #000000;
}

.sidebar-logo-img {
    display: block;
    max-width: 100px;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.55));
}

.sidebar-logo-img:hover { transform: scale(1.04); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.15s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.nav-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: inherit;
}

.nav-item .icon svg {
    width: 18px; height: 18px;
    stroke: currentColor;
}

.nav-item:hover {
    background: var(--surface-light);
    color: #fff;
    text-decoration: none;
    border-color: #000;
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0 #000000;
}

.nav-item.logout {
    margin-top: 12px;
    color: var(--danger);
    border-top: 2px solid #000000;
    padding-top: 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-radius: var(--radius-sm);
    border: 2px solid #000;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.topbar {
    background: #0E1424;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #000000;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h2 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #000;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12.5px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    font-family: var(--font-heading);
}

.coin-badge:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000;
}

.page-content { padding: 24px 28px; }

.section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    letter-spacing: 0.02em;
}

/* ============ STATS CARDS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2.5px solid #000000;
    box-shadow: 4px 4px 0 #000000;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    animation: slideUp 0.4s ease both;
}

.stat-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000000;
}

.stat-icon {
    width: 46px; height: 46px;
    background: var(--primary);
    border-radius: 10px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.stat-icon svg { width: 20px; height: 20px; stroke: currentColor; }

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #0f172a;
    transform: rotate(-6deg) scale(1.05);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-admin { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }
.badge-helper { background: rgba(96, 165, 250, 0.15); color: var(--cyan); border: 1px solid rgba(96, 165, 250, 0.25); }
.badge-player { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(34, 211, 238, 0.25); }
.badge-civil { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; border: 1px solid rgba(129, 140, 248, 0.25); }
.badge-banned { background: rgba(248, 113, 113, 0.15); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }
.badge-tempban { background: rgba(251, 146, 60, 0.15); color: var(--primary); border: 1px solid rgba(251, 146, 60, 0.3); }
.badge-tempban-expired { background: rgba(148, 163, 184, 0.15); color: #94a3b8; opacity: 0.8; }
.badge-owned { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.badge-rental { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

/* ============ CHARACTERS ============ */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.character-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 18px;
    border: 2px solid #000000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.4s ease both;
}

.character-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.char-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 12px;
}

.skin-wrapper {
    width: 64px; height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-light);
    border: 2px solid rgba(34, 211, 238, 0.2);
    flex-shrink: 0;
    position: relative;
}

.skin-wrapper .skin-img {
    width: 100%;
    height: 200%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.skin-custom {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    letter-spacing: 1px;
}

.char-title h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.char-details { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.detail-row .label { color: var(--text-muted); font-weight: 500; }
.detail-row .value { color: var(--text); font-weight: 600; }

.char-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============ SETTINGS ============ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.settings-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 22px;
    border: 2px solid #000000;
    box-shadow: var(--shadow);
    animation: slideUp 0.4s ease both;
}

.settings-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ============ EMPTY STATE ============ */
.empty-state {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 50px 24px;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    font-size: 14px;
}

/* ============ CHARACTER DETAIL ============ */
.detail-topbar { margin-bottom: 20px; }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(34, 211, 238, 0.2);
    transition: all 0.25s ease;
}

.btn-back:hover {
    background: rgba(34, 211, 238, 0.2);
    text-decoration: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.detail-skin-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 24px;
    border: 2px solid #000000;
    text-align: center;
}

.detail-skin-wrapper {
    width: 140px; height: 180px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--primary-light);
    border: 2px solid rgba(34, 211, 238, 0.2);
}

.detail-skin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.detail-char-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.vip-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.vip-none {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

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

.detail-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 20px;
    border: 2px solid #000000;
    margin-bottom: 14px;
}

.detail-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.info-value { font-size: 13.5px; font-weight: 600; color: var(--text); }

.money-value { color: var(--success); }
.bank-value { color: var(--cyan); }
.salary-value { color: var(--warning); }

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.property-item {
    background: rgba(2, 6, 23, 0.5);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    border: 2px solid #000000;
}

.property-count {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.property-label {
    font-size: 11px;
    color: var(--text-muted);
}

.vehicles-section { margin-top: 8px; }

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.vehicle-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.vehicle-image-wrapper {
    position: relative;
    height: 140px;
    background: rgba(2, 6, 23, 0.6);
    overflow: hidden;
}

.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-type-badge {
    position: absolute;
    top: 10px; right: 10px;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 700;
}

.vehicle-info { padding: 14px; }

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vehicle-model { font-size: 14px; font-weight: 700; }

.vehicle-plate {
    font-size: 11px;
    font-family: monospace;
    background: rgba(2, 6, 23, 0.6);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-muted);
}

.vehicle-stats { display: flex; flex-direction: column; gap: 8px; }

.vehicle-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.stat-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.stat-on { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.stat-off { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }

.vehicle-bar {
    display: grid;
    grid-template-columns: 50px 1fr 48px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.bar-wrapper {
    height: 6px;
    background: rgba(2, 6, 23, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.bar-value { font-size: 11px; color: var(--text-muted); text-align: right; }

/* ============ ADMIN PANEL ============ */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.contributor-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 2px solid #000000;
    overflow: hidden;
}

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

.contributor-header h4 { font-size: 15px; font-weight: 700; }
.contributor-note { font-size: 12px; color: var(--text-muted); }

.table-wrapper { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table thead {
    background: rgba(2, 6, 23, 0.5);
}

.admin-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--text);
}

.admin-table tr:hover td {
    background: rgba(0, 96, 223, 0.06);
}

.rank-1 td { background: rgba(251, 191, 36, 0.06); }
.rank-2 td { background: rgba(148, 163, 184, 0.06); }
.rank-3 td { background: rgba(180, 83, 9, 0.06); }

.col-rank { font-weight: 700; width: 40px; }
.col-user { font-weight: 600; }
.col-accept { color: var(--success); }
.col-denied { color: var(--danger); }
.col-sub { color: var(--text-muted); }
.col-score .score-pill {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.page-btn {
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.page-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #0f172a;
    border: none;
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.page-numbers { display: flex; gap: 4px; }
.page-ellipsis { color: var(--text-muted); padding: 7px 4px; }

/* ============ DONATION ============ */
.donation-hero {
    background: linear-gradient(135deg, rgba(0, 96, 223, 0.18), rgba(0, 96, 223, 0.16));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.donation-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
    border-radius: 50%;
}

.donation-hero h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--cyan), #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donation-hero-desc,
.donation-hero-note {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 6px;
    max-width: 800px;
}

.donation-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 96, 223, 0.18);
}

.donation-section-title svg { color: var(--primary); flex-shrink: 0; }

.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.vip-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2.5px solid #000000;
    box-shadow: 4px 4px 0 #000000;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.vip-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000000;
}

.vip-popular {
    border-color: var(--accent);
    box-shadow: 4px 4px 0 #000000, 0 0 0 2px rgba(255, 209, 59, 0.25);
}

.vip-ribbon {
    position: absolute;
    top: 34px;
    right: -34px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 6px 40px;
    transform: rotate(45deg);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.vip-header {
    padding: 22px 18px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* Foto paket VIP memakai bingkai yang sama dengan gambar pada konfirmasi pembelian. */
.vip-avatar-img {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    margin: 0 auto 12px;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    box-sizing: border-box;
    background: transparent;
    border: 2px solid #000000;
    box-shadow: 0 8px 24px #0002;
    line-height: 0;
}

.vip-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: inherit;
    filter: none;
}

.vip-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: normal;
}

.vip-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.vip-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.vip-price-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.vip-price-period {
    font-size: 12px;
    color: var(--text-muted);
}

.vip-coins-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.vip-benefits { padding: 16px 18px; flex: 1; }

.vip-benefits-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.vip-benefits-list { list-style: none; }

.vip-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 6px;
}

.check-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--success);
}

.vip-select-btn {
    margin: 0 18px 18px;
    padding: 12px 16px;
    background: var(--accent);
    color: #000000;
    border: 2.5px solid #000000;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    font-family: var(--font-heading);
    box-shadow: 3px 3px 0 #000000;
}

.vip-select-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000000;
    background: var(--accent-hover);
}

.vip-select-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #000000;
}

/* Central Coin */
.coin-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 22px;
    border: 2px solid #000000;
    margin-bottom: 20px;
}

.coin-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.coin-desc code {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    font-size: 12.5px;
}

.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.coin-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    border: 2.5px solid #000000;
    box-shadow: 3px 3px 0 #000000;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.coin-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000000;
    background: var(--surface-light);
}

.coin-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 5px;
}

.coin-amount strong { font-size: 18px; font-weight: 800; }

.coin-price {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 10px;
}

.coin-select-btn {
    width: 100%;
    padding: 9px 12px;
    background: var(--accent);
    color: #000000;
    border: 2.5px solid #000000;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    font-family: var(--font-heading);
    box-shadow: 2px 2px 0 #000000;
}

.coin-select-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000000;
    background: var(--accent-hover);
}

.coin-select-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #000000;
}

/* ============ MAPPING ============ */
.mapping-wrapper {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
    transition: grid-template-columns 0.35s ease;
}

.mapping-wrapper.has-result {
    display: block;
    grid-template-columns: unset;
    gap: 0;
}

.mapping-wrapper.has-result .mapping-rules-simple {
    display: none !important;
}

.mapping-wrapper.has-result .mapping-main {
    width: 100%;
    max-width: 100%;
}

.mapping-rules-simple {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 18px;
    border: 2px solid #000000;
    position: sticky;
    top: 80px;
}

.rules-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 13px;
    gap: 10px;
}

.rules-label { color: var(--text-muted); font-weight: 500; }
.rules-value { color: var(--text); font-weight: 700; }

.rules-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.rules-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 11.5px;
    color: var(--warning);
    line-height: 1.5;
}

.mapping-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.mapping-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    background: rgba(2, 6, 23, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mapping-upload-zone:hover,
.mapping-upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.upload-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.upload-content p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.upload-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.upload-loading { padding: 8px 0; }

.spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(34, 211, 238, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 0.8s linear infinite;
}

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

.upload-loading p {
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 600;
}

.mapping-result-simple {
    width: 100%;
    max-width: 420px;          /* box compact, tidak mentok kanan */
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 24px 28px;
    border: 2px solid #000000;
    animation: slideUp 0.3s ease;
    box-sizing: border-box;
}

.mapping-result-simple .result-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.mapping-reset-btn {
    width: auto;
    min-width: 110px;
    padding: 12px 18px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    font-family: inherit;
}

.mapping-reset-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
}

.result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.result-filename {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.result-filename span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-reset-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    font-family: inherit;
    white-space: nowrap;
}

.result-reset-link:hover { color: var(--danger); }

.result-lines {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    max-width: 100%;
}

.result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

.result-line:last-child { border-bottom: none; }

.result-line-label {
    color: var(--text-muted);
    font-weight: 500;
}

.result-line-value {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
}

.result-line-value strong { font-size: 16px; font-weight: 800; }

.result-line-price {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

.result-line-total {
    padding: 14px 0 4px;
    border-top: 2px solid rgba(34, 211, 238, 0.2);
    border-bottom: none;
    margin-top: 6px;
}

.result-line-total .result-line-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
}

.result-line-total .result-line-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.result-warning-simple {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 4px solid var(--warning);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mapping-select-btn {
    width: auto;
    min-width: 160px;
    padding: 12px 20px;
    background: var(--accent);
    color: #000000;
    border: 2.5px solid #000000;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    font-family: var(--font-heading);
    margin-top: 4px;
    box-shadow: 3px 3px 0 #000000;
}

.mapping-select-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000000;
    background: var(--accent-hover);
}

.mapping-select-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #000000;
}

.upload-error-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 12px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 12px;
    border-left: none;
    color: #fca5a5;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
    max-width: 100%;
}

.upload-error-box svg { flex-shrink: 0; margin-top: 2px; color: var(--danger); }
.upload-error-box span { flex: 1; }

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: var(--bg-card);
    border: 2.5px solid #000000;
    border-radius: var(--radius);
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 8px 8px 0 #000000;
    animation: slideUp 0.3s ease;
}

.modal-icon {
    width: 56px; height: 56px;
    background: rgba(248, 113, 113, 0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    margin: 0 auto 16px;
}

.modal-card h3 {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-desc {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .sidebar {
        width: 68px;
        padding: 18px 8px;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;
        gap: 0;
    }

    .nav-item > span:not(.icon) { display: none; }

    .sidebar-logo-img {
        max-width: 40px;
        max-height: 40px;
    }

    .main-content { margin-left: 68px; }

    .topbar { padding: 12px 16px; }
    .page-content { padding: 16px; }
    .topbar h2 { font-size: 14px; }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .mapping-wrapper,
    .mapping-wrapper.has-result {
        grid-template-columns: 1fr;
    }

    .mapping-rules-simple { position: static; }

    .mapping-wrapper.has-result {
        display: flex !important;
        flex-direction: column !important;
    }

    .mapping-wrapper.has-result .mapping-rules-simple { display: none !important; }
}

@media (max-width: 640px) {
    .donation-hero { padding: 20px; }
    .donation-hero h2 { font-size: 18px; }
    .vip-grid { grid-template-columns: 1fr; }
    .coin-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============ CUSTOM MODEL SKIN ============ */
.skin-wrapper-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.skin-info-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 18px;
    border: 2px solid #000000;
    position: sticky;
    top: 80px;
}

.skin-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    gap: 10px;
}

.skin-info-label { color: var(--text-muted); font-weight: 500; }
.skin-info-value { color: var(--text); font-weight: 700; }
.skin-price { color: var(--primary); }

.skin-info-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.skin-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.skin-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.skin-upload-slot {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    background: rgba(2, 6, 23, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-upload-slot:hover,
.skin-upload-slot.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.skin-upload-slot.has-file {
    border-style: solid;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.06);
    cursor: default;
}

.skin-slot-icon {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.skin-slot-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.skin-slot-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.skin-slot-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.skin-slot-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--success);
    width: 100%;
}

.skin-slot-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
    max-width: 100%;
}

.skin-slot-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    font-family: inherit;
    padding: 4px;
}

.skin-slot-clear:hover { color: var(--danger); }

.skin-summary {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 2px solid #000000;
    max-width: 420px;
    animation: slideUp 0.3s ease;
}

.skin-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.skin-summary-row strong {
    color: var(--text);
    font-weight: 600;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.skin-summary-total {
    border-bottom: none;
    border-top: 2px solid rgba(34, 211, 238, 0.2);
    margin-top: 6px;
    padding-top: 14px;
}

.skin-summary-total span {
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    font-size: 12px;
}

.skin-summary-total strong {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .skin-wrapper-box {
        grid-template-columns: 1fr;
    }
    .skin-info-card { position: static; }
    .skin-upload-grid { grid-template-columns: 1fr; }
}

.skin-base-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 6px !important;
}
.skin-base-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: rgba(2, 6, 23, 0.6);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: textfield;
}
.skin-base-input::-webkit-outer-spin-button,
.skin-base-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.skin-base-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 96, 223, 0.18);
}
.skin-info-note code {
    background: var(--primary-light);
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* Skin confirm modal */
.skin-confirm-icon {
    background: rgba(0, 96, 223, 0.16) !important;
    color: var(--primary) !important;
}
.skin-confirm-details {
    background: rgba(2, 6, 23, 0.5);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 2px solid #000000;
}
.skin-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text-muted);
}
.skin-confirm-row:last-child { border-bottom: none; }
.skin-confirm-row strong {
    color: var(--text);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}
.skin-confirm-price strong {
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}
.skin-confirm-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.skin-confirm-card .modal-actions {
    gap: 10px;
}
.skin-confirm-card .btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #0f172a;
    border: none;
}

.skin-success-icon {
    background: rgba(52, 211, 153, 0.15) !important;
    color: #34d399 !important;
}

/* ============ MY SKINS ============ */
/* Layout sama dengan characters-grid / character-card */
.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.skin-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 18px;
    border: 2px solid #000000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.4s ease both;
    display: flex;
    flex-direction: column;
}

.skin-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.skin-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 12px;
}

.skin-preview {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary-light);
    border: 2px solid rgba(34, 211, 238, 0.2);
    flex-shrink: 0;
    position: relative;
}

.skin-preview-img {
    width: 100%;
    height: 200%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.skin-cs-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #0f172a;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.skin-card-title h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    word-break: break-all;
}

.badge-skin-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-skin-expired {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.skin-card-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
    flex: 1;
}

.skin-file-status {
    font-size: 12px;
    word-break: break-all;
}

.skin-file-status.file-ok {
    color: #34d399;
}

.skin-file-status.file-missing {
    color: #f87171;
}

.skin-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skin-card-actions .btn-primary,
.skin-card-actions .btn-secondary,
.skin-card-actions .btn-danger {
    margin-top: 0;
}

.my-skins-empty .empty-icon {
    color: var(--text-muted);
    margin-bottom: 12px;
    opacity: 0.7;
}

.my-skins-empty .empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.my-skins-empty .empty-desc {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 360px;
    margin: 0 auto;
}

/* ============ TOPBAR BADGES (Saldo + Coin) ============ */
.topbar-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.saldo-badge {
    background: rgba(52, 211, 153, 0.12) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
}
.saldo-badge:hover {
    background: rgba(52, 211, 153, 0.2) !important;
}

/* ============ TOPUP / DONATION PAGE ============ */
.topup-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 960px) {
    .topup-layout { grid-template-columns: 1fr; }
}

.topup-form-card,
.topup-history-card {
    background: rgba(15, 23, 42, 0.65);
    border: 2px solid #000000;
    border-radius: var(--radius);
    padding: 22px;
}

.qris-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    min-height: 200px;
}
.qris-img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 8px;
}
.qris-fallback {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}
.qris-fallback code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.donation-info-box {
    display: flex;
    gap: 12px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.donation-info-box svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}
.donation-info-box strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 13.5px;
}
.donation-info-box p { margin: 0; }

.amount-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid #000000;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.amount-input-wrap:focus-within {
    border-color: var(--primary);
}
.amount-prefix {
    padding: 0 4px 0 14px;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}
.amount-input-wrap input {
    border: none !important;
    background: transparent !important;
    flex: 1;
    padding: 11px 12px 11px 6px !important;
    font-size: 15px !important;
    font-weight: 600;
    color: var(--text);
    outline: none;
}

.file-drop {
    position: relative;
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.4);
    min-height: 120px;
    transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover { border-color: var(--primary); }
.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 13.5px;
    pointer-events: none;
}
.file-drop-inner svg { color: var(--primary); opacity: 0.7; }
.file-drop-inner small { font-size: 11.5px; opacity: 0.7; }

.file-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-height: 120px;
}
.file-preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    object-fit: contain;
}
.file-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(248, 113, 113, 0.9);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topup-success-box {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 12px;
    animation: slideUp 0.3s ease;
}
.topup-success-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.topup-success-box strong {
    display: block;
    color: #34d399;
    margin-bottom: 4px;
    font-size: 14px;
}
.topup-success-box p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* History list */
.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-history svg { opacity: 0.4; margin-bottom: 12px; }
.empty-history p { margin: 0; font-size: 14px; }

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid #000000;
    border-radius: 12px;
    transition: border-color 0.2s;
}
.history-item:hover { border-color: rgba(34, 211, 238, 0.3); }
.history-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.history-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.history-item.status-pending .history-status-icon {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}
.history-item.status-accepted .history-status-icon {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}
.history-item.status-rejected .history-status-icon {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}
.history-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.history-status-text {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
}
.history-sub {
    font-size: 12.5px;
    color: var(--text-muted);
}
.history-reason {
    font-size: 12px;
    color: #f87171;
    margin-top: 2px;
}
.history-detail-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid #000000;
    background: rgba(34, 211, 238, 0.08);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.history-detail-btn:hover {
    background: rgba(34, 211, 238, 0.18);
    transform: scale(1.05);
}

/* Detail modal */
.detail-modal-card { max-width: 440px; }
.detail-proof-box {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}
.detail-proof-box img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
    object-fit: contain;
}
.detail-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
}
.detail-row span { color: var(--text-muted); }
.detail-row strong { color: var(--text); text-align: right; }

/* Admin donation tables */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--radius);
    background: rgba(0, 96, 223, 0.18);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}
.admin-don-table-wrap {
    overflow-x: auto;
    border: 2px solid #000000;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.5);
}
.admin-don-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.admin-don-table th {
    text-align: left;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.admin-don-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.admin-don-table tr:last-child td { border-bottom: none; }
.admin-don-table tr:hover td { background: rgba(0, 96, 223, 0.06); }

.don-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-sm.btn-secondary {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.2);
}
.btn-sm.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.22);
}
.btn-sm.btn-success {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
}
.btn-sm.btn-success:hover {
    background: rgba(52, 211, 153, 0.22);
}
.btn-sm.btn-danger {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
}
.btn-sm.btn-danger:hover {
    background: rgba(248, 113, 113, 0.22);
}

.badge-accepted {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}
.badge-rejected {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

/* form-group di topup (dark theme override jika perlu) */
.topup-form-card .form-group {
    margin-bottom: 14px;
}
.topup-form-card .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.topup-form-card .form-group > input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 2px solid #000000;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.topup-form-card .form-group > input[type="text"]:focus {
    border-color: var(--primary);
}

/* ============ SKIN APPROVE STATUS ============ */
.badge-skin-review {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.badge-skin-reject {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(248, 113, 113, 0.14);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.btn-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-warning:hover {
    background: rgba(251, 191, 36, 0.22);
    transform: translateY(-1px);
}
.btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.skin-rules-warning {
    display: flex;
    gap: 10px;
    margin: 12px 0 8px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 10px;
    text-align: left;
}
.skin-rules-warning svg {
    flex-shrink: 0;
    color: #fbbf24;
    margin-top: 2px;
}
.skin-rules-warning strong {
    display: block;
    color: #fbbf24;
    font-size: 13px;
    margin-bottom: 3px;
}
.skin-rules-warning p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* SKIN APPROVE */
.badge-skin-review{display:inline-block;padding:4px 10px;border-radius:20px;font-size:11.5px;font-weight:700;background:rgba(251,191,36,0.14);color:#fbbf24;border:1px solid rgba(251,191,36,0.25)}
.badge-skin-reject{display:inline-block;padding:4px 10px;border-radius:20px;font-size:11.5px;font-weight:700;background:rgba(248,113,113,0.14);color:#f87171;border:1px solid rgba(248,113,113,0.25)}
.btn-warning{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:10px;font-size:13.5px;font-weight:600;border:1px solid rgba(251,191,36,0.3);background:rgba(251,191,36,0.12);color:#fbbf24;cursor:pointer;transition:all .2s;font-family:inherit}
.btn-warning:hover{background:rgba(251,191,36,0.22)}
.skin-rules-warning{display:flex;gap:10px;margin:12px 0 8px;padding:12px;background:rgba(251,191,36,0.08);border:1px solid rgba(251,191,36,0.22);border-radius:10px;text-align:left}
.skin-rules-warning svg{flex-shrink:0;color:#fbbf24;margin-top:2px}
.skin-rules-warning strong{display:block;color:#fbbf24;font-size:13px;margin-bottom:3px}
.skin-rules-warning p{margin:0;font-size:12.5px;color:var(--text-muted);line-height:1.5}

/* MODEL 3D PREVIEW */
.skin-3d-badge{background:rgba(34,211,238,0.2)!important;color:var(--primary)!important}
.skin-file-badge{position:absolute;bottom:6px;left:6px;font-size:9px;font-weight:700;padding:2px 6px;border-radius:6px;background:rgba(15,23,42,0.85);color:#94a3b8;letter-spacing:.02em}
.skin-preview{position:relative}
.skin-model-files{font-size:12px;color:var(--text-muted)}
.model-preview-card{max-width:820px;width:100%;padding:0;overflow:hidden}
.model-preview-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}
.model-preview-header h3{margin:0;font-size:16px;font-weight:700}
.model-preview-close{width:36px;height:36px;border:none;border-radius:10px;background:rgba(148,163,184,0.12);color:var(--text);font-size:22px;cursor:pointer;line-height:1}
.model-preview-close:hover{background:rgba(248,113,113,0.2);color:#f87171}
.model-preview-body{padding:16px 20px 20px}
.model-canvas-wrap{position:relative;border-radius:14px;overflow:hidden;border:2px solid #000;background:#0f172a;min-height:380px}
.model-canvas-wrap canvas{display:block;width:100%;height:380px}
.model-loading,.model-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:rgba(15,23,42,0.85);color:var(--text-muted);font-size:13.5px;z-index:2}
.model-error{color:#f87171;padding:20px;text-align:center}
.model-spinner{width:36px;height:36px;border:3px solid rgba(34,211,238,0.2);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.model-hint{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-size:11px;color:#64748b;background:rgba(15,23,42,0.7);padding:4px 10px;border-radius:20px;pointer-events:none;z-index:1}
.model-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
@media(max-width:600px){.model-stats{grid-template-columns:repeat(2,1fr)}}
.model-stat{background:rgba(15,23,42,0.55);border:2px solid #000;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.model-stat span{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.model-stat strong{font-size:15px;color:var(--text);font-weight:700}

.skin-thumb-canvas{display:none;width:100%;height:100%;border-radius:12px;background:#0f172a}
.skin-preview-3d{overflow:hidden}
.skin-preview-3d .skin-preview-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:12px}
.skin-preview-3d[data-loaded="1"] .skin-thumb-canvas{display:block}
.skin-preview-3d[data-loaded="1"] .skin-preview-fallback{display:none!important}

.skin-thumb-canvas{display:none;width:100%;height:100%;border-radius:12px;background:#0f172a}
.skin-preview-3d{overflow:hidden}
.skin-preview-3d .skin-preview-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:12px}
.skin-preview-3d[data-loaded="1"] .skin-thumb-canvas{display:block}
.skin-preview-3d[data-loaded="1"] .skin-preview-fallback{display:none!important}

/* ===== My Skins 3D thumb (jangan ganggu characters) ===== */
.skin-preview-3d {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}
.skin-preview-3d .skin-thumb-canvas {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #0f172a;
}
.skin-preview-3d .skin-preview-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.skin-preview-3d[data-loaded="1"] .skin-thumb-canvas { display: block; }
.skin-preview-3d[data-loaded="1"] .skin-preview-fallback { display: none !important; }

/* ===== Characters / Detail 3D only ===== */
.char-skin-3d {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
    border-radius: inherit;
}
.char-skin-3d .char-skin-canvas {
    display: none;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 2;
}
.char-skin-3d .char-skin-cs {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
}
.char-skin-3d.ready .char-skin-canvas { display: block !important; }
.char-skin-3d.ready .char-skin-cs { display: none !important; }
.detail-skin-wrapper .char-skin-3d {
    min-height: 180px;
    border-radius: var(--radius);
}


/* Characters 3D badge — samakan UI My Skins, pojok kanan bawah */
.skin-wrapper .char-skin-3d {
    position: relative;
}
.skin-wrapper .char-skin-3d .skin-cs-badge.skin-3d-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    left: auto;
    z-index: 10;
    display: inline-block;
    background: rgba(34, 211, 238, 0.2) !important;
    color: var(--primary, var(--primary)) !important;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    pointer-events: none;
}

/* Sidebar Admin folder group */
.nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}
button.nav-item.nav-group-toggle {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}
button.nav-item.nav-group-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(3px);
}
button.nav-item.nav-group-toggle.active-group {
    background: rgba(34, 211, 238, 0.08);
    color: var(--text-muted);
}
button.nav-item.nav-group-toggle.active-group:hover {
    color: var(--primary);
}
.nav-group-toggle .nav-group-label {
    flex: 1;
    color: inherit;
}
.nav-group-chevron {
    margin-left: auto;
    display: flex;
    align-items: center;
    opacity: 0.65;
    color: inherit;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.nav-group-chevron svg {
    stroke: currentColor;
}
.nav-group.open .nav-group-chevron {
    transform: rotate(180deg);
}
.nav-sub {
    display: none !important;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 6px 10px;
    margin-left: 12px;
    border-left: 2px solid rgba(34, 211, 238, 0.18);
}
.nav-group.open > .nav-sub {
    display: flex !important;
}
.nav-sub-item {
    padding-left: 12px !important;
    font-size: 13.5px;
    color: var(--text-muted);
}
.nav-sub-item .icon {
    width: 20px;
    height: 20px;
}
.nav-sub-item.active {
    color: var(--primary);
}
@media (max-width: 900px) {
    .nav-sub {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    .nav-group-toggle .nav-group-label,
    .nav-group-chevron {
        /* keep visible when labels hidden on mobile if needed */
    }
}

/* Unified page header title */
.page-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.page-header-title .page-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 96, 223, 0.16);
    color: var(--primary, var(--primary));
    flex-shrink: 0;
}
.page-header-title .page-header-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}
.page-header-title .page-header-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(0, 96, 223, 0.18);
    color: var(--primary, var(--primary));
    font-size: 13px;
    font-weight: 700;
}

/* Panel background music mute button */
.panel-music-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    border: 1px solid rgba(148,163,184,0.25);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.panel-music-btn:hover {
    background: rgba(34, 211, 238, 0.2);
    color: var(--primary);
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-2px);
}
.panel-music-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}
.panel-music-btn.is-playing {
    border-color: rgba(34, 211, 238, 0.35);
    color: var(--primary);
}
@media (max-width: 900px) {
    .panel-music-btn {
        left: 12px;
        bottom: 12px;
        width: 42px;
        height: 42px;
    }
}


/* ============================================================
   MOBILE / ANDROID EXPERIENCE
   Desktop styles above intentionally remain unchanged.
   ============================================================ */
@media (max-width: 640px) {
    html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
    body { font-size: 14px; overflow-x: hidden; }
    body.mobile-nav-open { overflow: hidden; }
    .app-wrapper { min-width: 0; width: 100%; overflow-x: clip; }
    .sidebar {
        width: min( min(84vw, 300px), 300px);
        max-width: 300px;
        height: 100dvh;
        padding: 16px 12px calc(20px + env(safe-area-inset-bottom));
        left: 0;
        top: 0;
        transform: translateX(-105%);
        visibility: hidden;
        z-index: 1002;
        overflow-y: auto;
        overscroll-behavior: contain;
        transition: transform .25s ease, visibility .25s ease;
        box-shadow: 20px 0 55px rgba(0,0,0,.35);
    }
    .sidebar.mobile-open { transform: translateX(0); visibility: visible; }
    .sidebar-logo { padding: 8px 8px 18px; }
    .sidebar-logo-img { max-width: 76px; max-height: 76px; }
    .nav-item { justify-content: flex-start; gap: 12px; padding: 12px 14px; min-height: 46px; border-radius: 12px; }
    .nav-item > span:not(.icon) { display: inline; }
    .nav-item .icon { flex: 0 0 20px; display: inline-flex; align-items: center; justify-content: center; }
    .nav-group .nav-sub { margin-left: 28px; }
    .mobile-nav-overlay {
        position: fixed; inset: 0; z-index: 1001;
        background: rgba(2, 6, 23, .72);
        backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
        opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
    }
    .mobile-nav-overlay.visible { opacity: 1; visibility: visible; }
    .main-content { margin-left: 0 !important; width: 100%; min-width: 0; }
    .topbar {
        position: sticky; top: 0; z-index: 50;
        padding: 11px 13px; min-height: 62px; gap: 10px;
        justify-content: flex-start; flex-wrap: wrap;
        padding-top: max(11px, env(safe-area-inset-top));
        background: rgba(2, 6, 23, .94);
    }
    .mobile-menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 42px; height: 42px; flex: 0 0 42px;
        color: var(--text); background: rgba(0,96,223,.12);
        border: 1px solid rgba(34,211,238,.25); border-radius: 12px;
        font-size: 21px; cursor: pointer; touch-action: manipulation;
    }
    .topbar h2 { font-size: 14px; line-height: 1.35; flex: 1 1 calc(100% - 60px); min-width: 0; overflow-wrap: anywhere; }
    .topbar-badges { width: 100%; display: flex; gap: 7px; flex-wrap: wrap; padding-left: 52px; }
    .coin-badge { font-size: 11px; padding: 6px 9px; max-width: 100%; }
    .page-content { padding: 14px 12px calc(28px + env(safe-area-inset-bottom)); min-width: 0; }
    .section-title { font-size: 15px; margin-bottom: 14px; }
    .stats-grid, .vip-grid, .coin-grid, .stats-grid, .detail-layout,
    .skin-wrapper-box, .topup-layout, .mapping-wrapper,
    .mapping-wrapper.has-result { grid-template-columns: minmax(0, 1fr) !important; }
    .stats-grid { gap: 11px; }
    .stat-card, .glass, .auth-card { border-radius: var(--radius); }
    .stat-card { padding: 16px; min-width: 0; }
    .donation-hero { padding: 18px 16px; border-radius: var(--radius); }
    .donation-hero h2 { font-size: 18px; line-height: 1.35; }
    .skin-info-card { position: static; padding: 15px; }
    .mapping-rules-simple { position: static; }
    .mapping-wrapper.has-result { display: flex !important; flex-direction: column !important; }
    .mapping-wrapper.has-result .mapping-rules-simple { display: none !important; }

    /* Forms and actions are easier to use with a thumb */
    input, select, textarea, button { max-width: 100%; }
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    select, textarea { font-size: 16px !important; }
    button, .btn, .btn-auth, input[type="submit"] { min-height: 42px; touch-action: manipulation; }
    .form-group input, .form-group select, .form-group textarea { width: 100%; }
    .auth-body { min-height: 100dvh; padding: 16px 12px; align-items: center; }
    .auth-container { max-width: 440px; }
    .auth-card { padding: 26px 18px; }
    .auth-logo { margin-bottom: 22px; }
    .auth-logo-img { max-width: 92px; max-height: 92px; }
    .auth-logo h1 { font-size: 22px; }

    /* Wide tables scroll inside their own area instead of breaking the page */
    .table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
    .admin-table { min-width: 560px; }
    .admin-table th, .admin-table td { padding: 10px 11px; white-space: nowrap; }
    img, video, canvas, iframe { max-width: 100%; }
    pre, code { overflow-wrap: anywhere; }
    .modal, .modal-content, .dialog, .popup { max-width: calc(100vw - 24px); }
    .panel-music-btn { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (min-width: 641px) {
    .mobile-menu-toggle, .mobile-nav-overlay { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar, .mobile-nav-overlay, .auth-card { transition: none !important; animation: none !important; }
}

/* ============================================================
   SERVER STATUS (Dashboard)
   ============================================================ */
.server-status-section {
    margin-top: 28px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 2px solid #000000;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.45s ease both;
}

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

.ss-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ss-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ss-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.ss-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
    margin: 2px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ss-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.ss-copy-btn:hover,
.ss-copy-btn:focus {
    background: rgba(34, 211, 238, 0.22);
    border-color: rgba(34, 211, 238, 0.45);
    outline: none;
    transform: translateY(-1px);
}

.ss-copy-btn:active {
    transform: scale(0.96);
}

.ss-copy-btn.copied {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.35);
    color: var(--success);
}

.ss-copy-btn svg {
    display: block;
}

.ss-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ss-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.ss-badge-online {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.ss-badge-offline {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.ss-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    animation: ssPulse 2s ease-in-out infinite;
}

.ss-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
    animation: none;
}

@keyframes ssPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.ss-query-time {
    font-size: 11px;
    color: var(--text-muted);
}

.ss-offline-box {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.ss-offline-hint {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.7;
}

/* Info grid */
.ss-info-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px 20px;
}

.ss-info-card {
    background: rgba(2, 6, 23, 0.45);
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 14px 16px;
}

.ss-info-main {
    grid-row: span 1;
}

.ss-hostname {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ss-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 12px;
}

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

.ss-meta strong {
    color: var(--text);
    font-weight: 600;
    margin-right: 4px;
}

.ss-meta-lock {
    color: var(--warning);
}

.ss-capacity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ss-progress {
    height: 6px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 99px;
    overflow: hidden;
}

.ss-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    transition: width 0.5s ease;
}

.ss-stat-mini-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.ss-stat-mini-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.ss-stat-mini-max {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.ss-val-primary { color: var(--primary); }
.ss-val-ok { color: var(--success); }
.ss-val-warn { color: var(--warning); }
.ss-val-bad { color: var(--danger); }
.ss-val-muted { color: var(--text); font-size: 13px; font-weight: 600; word-break: break-all; }

/* Rules strip */
.ss-rules-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 16px;
}

.ss-rule-item {
    background: rgba(2, 6, 23, 0.4);
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.ss-rule-label {
    color: var(--text-muted);
    font-weight: 500;
}

.ss-rule-value {
    color: var(--text);
    font-weight: 600;
}

/* Players box */
.ss-players-box {
    border-top: 1px solid var(--border);
}

.ss-players-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.ss-players-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
}

.ss-players-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 8px;
}

.ss-page-info {
    font-size: 12px;
    color: var(--text-muted);
}

.ss-players-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.ss-players-empty-hint {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.75;
}

.ss-table-wrap {
    overflow-x: auto;
}

.ss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ss-table thead tr {
    background: rgba(2, 6, 23, 0.35);
}

.ss-table th {
    text-align: left;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border);
}

.ss-th-id { width: 60px; }
.ss-th-right { text-align: right !important; }

.ss-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--text);
}

.ss-table tbody tr:hover {
    background: rgba(0, 96, 223, 0.06);
}

.ss-td-id {
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
    font-size: 12px;
}

.ss-td-name { font-weight: 600; }
.ss-td-right { text-align: right; }
.ss-td-score { color: var(--primary); font-family: ui-monospace, monospace; }

.ss-ping-ok { color: var(--success); }
.ss-ping-warn { color: var(--warning); }
.ss-ping-bad { color: var(--danger); }
.ss-ping-na { color: var(--text-muted); }

/* Pagination */
.ss-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.ss-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary);
    border: 1px solid rgba(34, 211, 238, 0.2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ss-page-btn:hover {
    background: rgba(34, 211, 238, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

.ss-page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.ss-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ss-page-num {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ss-page-num:hover {
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary);
    text-decoration: none;
}

.ss-page-num.active {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.ss-page-num.dots {
    pointer-events: none;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 900px) {
    .ss-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ss-info-main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .ss-info-grid {
        grid-template-columns: 1fr;
        padding: 12px 14px;
    }
    .ss-header {
        padding: 14px;
    }
    .ss-rules-strip {
        padding: 0 14px 12px;
    }
    .ss-players-header {
        padding: 12px 14px;
    }
    .ss-table th,
    .ss-table td {
        padding: 8px 12px;
    }
}


/* Dashboard mobile / Android friendly */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .stat-card {
        padding: 14px 12px !important;
        gap: 10px !important;
        min-width: 0;
    }
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }
    .stat-label {
        font-size: 11px !important;
    }
    .stat-value {
        font-size: 14px !important;
        word-break: break-word;
    }
    .page-header-title {
        font-size: 17px;
    }
    .server-status-section {
        margin-top: 18px;
        border-radius: var(--radius);
    }
    .ss-title {
        font-size: 15px;
    }
    .ss-subtitle {
        font-size: 11px;
    }
    .ss-copy-btn {
        width: 32px;
        height: 32px; /* easier tap on Android */
    }
    .ss-info-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        padding: 12px 12px !important;
    }
    .ss-info-main {
        grid-column: 1 / -1 !important;
    }
    .ss-stat-mini-value {
        font-size: 17px;
    }
    .ss-hostname {
        font-size: 14px;
    }
    .ss-rules-strip {
        gap: 6px;
        padding: 0 12px 12px !important;
    }
    .ss-rule-item {
        padding: 5px 10px;
        font-size: 11px;
    }
    .ss-table {
        font-size: 12px;
    }
    .ss-table th,
    .ss-table td {
        padding: 8px 10px !important;
    }
    .ss-pagination {
        gap: 6px;
        padding: 12px !important;
    }
    .ss-page-btn {
        padding: 8px 12px;
        min-height: 36px;
    }
    .ss-page-num {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Staff account lookup and server log center */
.staff-page-head{display:flex;align-items:center;justify-content:space-between;margin:4px 0 22px;padding:22px 24px;border:2px solid #000;border-radius:18px;background:var(--bg-card);}.staff-eyebrow{display:block;color:var(--primary);font-size:10px;font-weight:800;letter-spacing:1.5px;margin-bottom:6px}.staff-page-head h2{font-size:23px;margin:0 0 5px}.staff-page-head p,.staff-muted{color:var(--text-muted);font-size:13px;margin:0}.staff-head-icon{width:54px;height:54px;border-radius:var(--radius);display:grid;place-items:center;background:rgba(0,96,223,.16);color:var(--primary);font-size:30px}.lookup-search-card{display:flex;gap:12px;padding:16px;background:var(--bg-card);border:2px solid #000;border-radius:var(--radius);margin-bottom:18px}.lookup-input-wrap{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0 14px;border:2px solid #000;border-radius:10px;background:rgba(2,6,23,.28);color:var(--text-muted);font-size:21px}.lookup-input-wrap input{width:100%;background:transparent;border:0;outline:0;color:var(--text);padding:12px 0;font:inherit;font-size:14px}.staff-panel{background:var(--bg-card);border:2px solid #000;border-radius:var(--radius);padding:20px;margin:16px 0}.staff-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.staff-panel-head h3{font-size:17px;margin:0}.staff-panel-head small{font-size:12px;color:var(--text-muted)}.staff-status{font-size:9px;font-weight:800;letter-spacing:1px;color:#4ade80;background:rgba(34,197,94,.1);padding:7px 10px;border-radius:20px}.staff-info-grid{padding:4px 0}.staff-character-list,.staff-log-list{display:flex;flex-direction:column;gap:9px}.staff-character-row,.staff-log-row{display:flex;align-items:center;gap:13px;padding:13px;border:2px solid #000;border-radius:13px;background:rgba(2,6,23,.18);transition:border-color .18s,transform .18s}.staff-character-row:hover,.staff-log-row:hover{border-color:rgba(255,209,59,.40);transform:translateY(-1px)}.staff-file-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px;background:rgba(0,96,223,.16);color:var(--cyan);font-size:12px;font-weight:800}.staff-character-meta,.staff-log-meta{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.staff-character-meta strong,.staff-log-meta strong{font-size:13px;overflow-wrap:anywhere}.staff-character-meta small,.staff-log-meta span{font-size:11px;color:var(--text-muted)}.staff-character-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.btn-sm{font-size:11px!important;padding:8px 10px!important}.staff-empty{text-align:center;padding:42px 18px;border:1px dashed var(--border);border-radius:var(--radius);background:var(--bg-card);margin:16px 0}.staff-empty-icon{margin:0 auto 12px;width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:rgba(0,96,223,.12);color:var(--primary);font-size:24px}.staff-empty h3{margin:0 0 7px;font-size:16px}.staff-empty p{color:var(--text-muted);font-size:12px;margin:0}.staff-chatlog-modal{max-width:470px!important}.staff-chatlog-modal .modal-icon{background:rgba(0,96,223,.16);color:var(--cyan)}.staff-chatlog-list{max-height:330px;overflow:auto;display:flex;flex-direction:column;gap:8px;margin:14px 0}.staff-chatlog-item{display:flex;align-items:center;gap:11px;padding:11px;border:2px solid #000;border-radius:11px;text-decoration:none;color:var(--text);background:rgba(2,6,23,.2);transition:.15s}.staff-chatlog-item:hover{border-color:var(--cyan);background:rgba(0,96,223,.12)}.staff-chatlog-label{flex:1;font-size:12px;overflow-wrap:anywhere}.staff-download-icon{font-size:20px;color:var(--cyan)}.staff-error{padding:12px 14px;border:1px solid rgba(239,68,68,.2);border-radius:10px;background:rgba(239,68,68,.1);color:#f87171;font-size:12px;margin:12px 0}.logs-summary{display:flex;align-items:center;gap:14px;padding:17px 19px;border:2px solid #000;border-radius:15px;background:var(--bg-card);margin-bottom:16px}.logs-summary-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:rgba(0,96,223,.14);color:var(--primary);font-size:23px}.logs-summary div:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1}.logs-summary strong{font-size:12px;letter-spacing:.8px}.logs-summary span{font-size:11px;color:var(--text-muted)}.logs-summary-refresh{font-size:22px;color:var(--text-muted)}.log-icon{background:rgba(0,96,223,.12);color:var(--primary)}.staff-log-meta span i{font-style:normal;margin:0 5px;color:var(--text-muted)}.staff-download-btn{display:flex;align-items:center;gap:7px;text-decoration:none;font-size:11px!important;padding:9px 13px!important;white-space:nowrap}.staff-download-btn span{font-size:17px;line-height:10px}@media(max-width:640px){.lookup-search-card{flex-direction:column}.lookup-search-card .btn-primary{width:100%}.staff-character-row,.staff-log-row{align-items:flex-start;flex-wrap:wrap}.staff-character-actions{width:100%;justify-content:stretch}.staff-character-actions>*{flex:1;text-align:center}.staff-download-btn{margin-left:auto}.staff-page-head{padding:18px}.staff-page-head h2{font-size:20px}}


/* ============================================================
   GTA CENTRAL LAUNCHER THEME OVERRIDES
   ============================================================ */
.admin-don-table-wrap,
.staff-panel,
.detail-card,
.char-card,
.skin-card,
.topup-form-card,
.lookup-search-card,
.empty-history {
    border: 2.5px solid #000000 !important;
    box-shadow: 4px 4px 0 #000000 !important;
    background: var(--bg-card) !important;
    border-radius: var(--radius) !important;
}

.admin-don-table th {
    background: var(--surface-light) !important;
    color: var(--accent) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px !important;
    border-bottom: 2px solid #000 !important;
}

.admin-don-table td {
    border-bottom: 1px solid rgba(0,0,0,0.35) !important;
}

.admin-don-table tr:hover td {
    background: rgba(0, 96, 223, 0.08) !important;
}

.page-header-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.page-header-title .page-header-icon {
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: var(--primary) !important;
    color: #fff !important;
}

.page-header-title .page-header-count {
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: var(--accent) !important;
    color: #000 !important;
}

.staff-page-head {
    background: var(--bg-card) !important;
    border: 2.5px solid #000 !important;
    box-shadow: 4px 4px 0 #000 !important;
}

.staff-eyebrow {
    color: var(--accent) !important;
}

.staff-head-icon {
    background: var(--primary) !important;
    color: #fff !important;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

.staff-character-row,
.staff-log-row {
    border: 2px solid #000 !important;
    box-shadow: 2px 2px 0 #000 !important;
    background: var(--surface) !important;
}

.staff-character-row:hover,
.staff-log-row:hover {
    border-color: var(--accent) !important;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000 !important;
}

.staff-file-icon {
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    background: var(--primary) !important;
    color: #fff !important;
}

.staff-chatlog-item {
    border: 2px solid #000 !important;
    box-shadow: 2px 2px 0 #000 !important;
}

.staff-chatlog-item:hover {
    border-color: var(--accent) !important;
    background: rgba(255, 209, 59, 0.08) !important;
}

.btn-sm {
    border: 2px solid #000 !important;
    box-shadow: 2px 2px 0 #000 !important;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 11px !important;
}

.btn-sm.btn-primary,
.btn-sm.btn-success {
    background: var(--primary) !important;
    color: #fff !important;
}

.btn-sm.btn-success {
    background: var(--success) !important;
    color: #000 !important;
}

.btn-sm:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000 !important;
}

.nav-group-toggle.active-group,
.nav-group.open > .nav-group-toggle {
    background: var(--surface-light) !important;
    border: 2px solid #000 !important;
    color: #fff !important;
}

.nav-sub-item.active {
    background: var(--primary) !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    box-shadow: 2px 2px 0 #000 !important;
}

.info-item, .detail-info-grid .info-item {
    border-bottom-color: rgba(0,0,0,0.25) !important;
}

.money-value { color: var(--accent) !important; }
.bank-value { color: var(--cyan) !important; }
.salary-value { color: var(--success) !important; }

.alert {
    border: 2px solid #000 !important;
    box-shadow: 3px 3px 0 #000 !important;
    border-radius: var(--radius-sm) !important;
}

/* Gold accent utility */
.badge-gold, .ready-badge {
    background: var(--accent);
    color: #000;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    font-weight: 800;
    font-family: var(--font-heading);
}


/* Gold action buttons (select / buy) — launcher style */
.btn-gold,
.btn-select,
.mapping-reset-btn {
    background: var(--accent) !important;
    color: #000 !important;
    border: 2.5px solid #000 !important;
    box-shadow: 3px 3px 0 #000 !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
.btn-gold:hover,
.btn-select:hover,
.mapping-reset-btn:hover {
    background: var(--accent-hover) !important;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000 !important;
}
.coin-card {
    border: 2.5px solid #000 !important;
    box-shadow: 4px 4px 0 #000 !important;
}
.coin-amount { color: var(--accent) !important; }
