
:root {
    --bg:        #060608;
    --bg2:       #0d0d12;
    --bg3:       #13131a;
    --surface:   #16161e;
    --surface2:  #1c1c27;
    --border:    #2a2a3a;
    --border2:   #3a3a50;

    --primary:   #8b5cf6;
    --primary2:  #6d28d9;
    --primary3:  #a78bfa;
    --glow:      rgba(139, 92, 246, 0.35);

    --gold:      #f0b429;
    --gold2:     #fcd34d;
    --gold-glow: rgba(240, 180, 41, 0.25);

    --danger:    #ef4444;
    --success:   #10b981;
    --warning:   #f59e0b;
    --info:      #3b82f6;

    --text:      #e8e8f0;
    --text2:     #9090a8;
    --text3:     #5a5a72;

    --radius:    14px;
    --radius-sm: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================== BACKGROUND ===================== */

.bg-gradient-mesh {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(109, 40, 217, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(6, 6, 8, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary3);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle var(--dur) var(--delay) infinite ease-in-out;
}

@keyframes floatParticle {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    20%  { opacity: 0.4; }
    80%  { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
}

/* ===================== UTILS ===================== */

.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease-out both; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================== NAVBAR ===================== */

nav {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 0 2.5rem;
    background: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(139, 92, 246, 0.15);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-family: 'Cinzel', serif; font-size: 1.2rem; letter-spacing: 2px; line-height: 1; }
.logo-dusk { color: var(--text); font-weight: 900; }
.logo-veil { color: var(--primary3); font-weight: 700; }
.logo-smp  { color: var(--text3); font-size: 0.75rem; margin-left: 4px; vertical-align: middle; letter-spacing: 3px; }

.nav-items { display: flex; align-items: center; gap: 16px; }

.user-info { display: flex; align-items: center; gap: 12px; }

.user-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem; font-weight: 700;
    color: white;
    box-shadow: 0 0 12px var(--glow);
}

.nav-username { font-size: 0.9rem; color: var(--text); font-weight: 500; }

.coin-badge {
    display: flex; align-items: center; gap: 6px;
    background: rgba(240, 180, 41, 0.1);
    color: var(--gold);
    border: 1px solid rgba(240, 180, 41, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600; font-size: 0.85rem;
}

.coin-icon { font-size: 0.7rem; }

.btn-nav-cmd, .btn-logout {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    position: relative;
}

.btn-nav-cmd {
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    border: none;
    color: white;
    box-shadow: 0 0 16px var(--glow);
}

.btn-nav-cmd:hover { box-shadow: 0 0 24px var(--glow); transform: translateY(-1px); }

.pending-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text2);
}

.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

/* ===================== AUTH SECTION ===================== */

#auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.auth-deco-left, .auth-deco-right {
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.auth-deco-left {
    top: -60px; left: -80px;
    background: rgba(109, 40, 217, 0.3);
}

.auth-deco-right {
    bottom: -60px; right: -80px;
    background: rgba(139, 92, 246, 0.2);
}

.auth-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.1),
        0 32px 64px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.auth-logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-emblem {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 20px var(--primary));
    animation: emblemPulse 3s ease-in-out infinite;
}

@keyframes emblemPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)); }
    50%       { filter: drop-shadow(0 0 36px rgba(139, 92, 246, 1)); }
}

.auth-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--text);
    line-height: 1;
}

.auth-title span { color: var(--primary3); }

.auth-subtitle {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text3);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Tabs */
.tabs {
    position: relative;
    display: flex;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.75rem;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 9px;
    border: none;
    background: transparent;
    color: var(--text3);
    cursor: pointer;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s;
    z-index: 1;
    position: relative;
}

.tab-btn.active { color: var(--text); background: var(--surface2); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* Input Groups */
.input-group { margin-bottom: 1.25rem; }
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text3);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s;
}

input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    background: var(--bg2);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

input:focus + .input-icon, .input-wrap:focus-within .input-icon { color: var(--primary3); }

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    color: #6ee7b7;
}

.security-notice span { font-size: 1rem; }

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 13px;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary2) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(109, 40, 217, 0.55);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ===================== STORE SECTION ===================== */

#store-section { position: relative; z-index: 1; }

.store-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Admin Notice */
.admin-notice-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1.25rem;
    margin-bottom: 2rem;
    color: #fca5a5;
    font-size: 0.875rem;
    font-weight: 500;
}

.notice-icon { font-size: 1.1rem; }

/* Hero Banner */
.store-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--surface2) 0%, var(--bg3) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    margin-bottom: 3.5rem;
    overflow: hidden;
    position: relative;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.store-hero-title {
    font-family: 'Cinzel', serif;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--text), var(--primary3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-hero-sub {
    margin-top: 0.5rem;
    color: var(--text2);
    font-size: 0.9rem;
}

.store-hero-deco {
    font-size: 5rem;
    opacity: 0.08;
    font-family: 'Cinzel', serif;
    line-height: 1;
}

/* Category */
.category-section { margin-bottom: 3rem; }

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.category-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
}

.category-icon { font-size: 1.2rem; }

.category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border2), transparent);
    margin-left: 8px;
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(139,92,246,0) 0%, rgba(139,92,246,0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(139,92,246,0.1);
}

.card:hover::before { opacity: 1; }

.card.card-coming-soon {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(1);
}

.card-img {
    height: 110px;
    background: linear-gradient(135deg, var(--bg3), var(--surface2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--surface) 100%);
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.card-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text3);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 1rem;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--border);
    color: var(--text3);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-buy {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text2);
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px var(--glow);
}

.btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================== ADMIN DASHBOARD ===================== */

#admin-dashboard { position: relative; z-index: 1; }

.admin-dashboard-header {
    margin-bottom: 2.5rem;
}

.admin-dashboard-title {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--surface2) 0%, var(--bg3) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.admin-dashboard-title::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--danger), transparent);
}

.admin-dashboard-title span {
    font-size: 2.5rem;
    opacity: 0.9;
}

.admin-dashboard-title h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--text), var(--danger));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-dashboard-title p {
    color: var(--text2);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.stat-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--glow);
}

.stat-info { flex: 1; }

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text3);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 1.5rem 2rem;
}

.quick-action-btn {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s;
    color: var(--text);
    text-align: left;
}

.quick-action-btn:hover {
    background: var(--surface2);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.quick-action-btn.danger:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

.quick-action-btn span {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    border-radius: 10px;
    flex-shrink: 0;
}

.quick-action-btn.danger span {
    background: linear-gradient(135deg, #dc2626, var(--danger));
}

.quick-action-btn strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.quick-action-btn small {
    font-size: 0.75rem;
    color: var(--text3);
}

/* Server Status */
.server-status {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-metrics {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.metric-value.good { color: var(--success); }
.metric-value.warning { color: var(--warning); }
.metric-value.danger { color: var(--danger); }

/* ===================== PANELS ===================== */

.panel-container {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface2), var(--surface));
    flex-wrap: wrap;
    gap: 12px;
}

.panel-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.panel-icon { font-size: 1.5rem; }

.panel-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary3);
}

.panel-sub { font-size: 0.8rem; color: var(--text3); margin-top: 2px; }

/* Admin Controls */
.admin-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border);
}

.control-group { flex: 1; min-width: 180px; }
.control-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.control-group--btn { display: flex; align-items: flex-end; }

.btn-success {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35); }

/* Table */
.table-wrapper { overflow-x: auto; padding: 0 2rem 2rem; }

table { width: 100%; border-collapse: collapse; min-width: 560px; }

th, td {
    text-align: left;
    padding: 1rem 0.875rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

th {
    color: var(--text3);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding-top: 1.25rem;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-admin  { background: rgba(139,92,246,0.2); color: var(--primary3); }
.status-member { background: rgba(255,255,255,0.07); color: var(--text3); }

/* Edit btn in table */
.btn-tbl-edit {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tbl-edit:hover { border-color: var(--primary); color: var(--primary3); }

/* Command panel specifics */
.command-text {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    max-width: 360px;
    overflow-x: auto;
    white-space: nowrap;
}

.command-text code {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--primary3);
}

.command-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-pending  { background: rgba(240, 180, 41, 0.15); color: var(--gold2); }
.status-executed { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.status-failed   { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.btn-execute {
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    margin-right: 6px;
    transition: all 0.2s;
}

.btn-execute:hover { box-shadow: 0 2px 10px var(--glow); }

.btn-copy {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text2);
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.2s;
}

.btn-copy:hover { border-color: var(--primary); color: var(--primary3); }

.cmd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 1.5rem 2rem 0;
}

.btn-sm {
    width: auto !important;
    padding: 9px 18px !important;
    font-size: 0.78rem !important;
}

.btn-secondary {
    padding: 10px 16px;
    background: var(--bg3);
    border: 1px solid var(--border2);
    color: var(--text2);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary3); }

/* Info Box */
.info-box {
    margin: 1.5rem 2rem 2rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.info-box p { color: var(--text2); font-size: 0.83rem; margin: 0.4rem 0; }
.info-box strong { color: #6ee7b7; }

/* ===================== MODAL ===================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,92,246,0.1);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary3);
    letter-spacing: 1px;
}

.modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}

.modal-close:hover { background: var(--danger); border-color: var(--danger); color: white; }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.skill-list { display: flex; flex-direction: column; gap: 10px; }

.skill-option {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-option:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
    transform: translateX(4px);
    box-shadow: 4px 0 0 var(--primary);
}

.skill-name { font-weight: 600; font-size: 0.9rem; }
.skill-price { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* ===================== TOAST ===================== */

#toast-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    min-width: 260px;
    max-width: 360px;
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: all;
    font-size: 0.875rem;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--primary3); }

@keyframes toastIn {
    from { transform: translateX(calc(100% + 24px)); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    nav { padding: 0 1rem; }
    .nav-inner { height: auto; padding: 0.75rem 0; flex-wrap: wrap; gap: 10px; }
    .store-inner { padding: 1.5rem 1rem; }
    .store-hero { padding: 1.75rem; }
    .store-hero-title { font-size: 1.5rem; }
    .admin-dashboard-title { padding: 1.5rem; }
    .admin-dashboard-title h2 { font-size: 1.3rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .quick-actions { padding: 1.25rem; }
    .server-metrics { width: 100%; justify-content: space-around; }
    .admin-controls { padding: 1.25rem; }
    .table-wrapper { padding: 0 1rem 1.5rem; }
    .cmd-actions { padding: 1.25rem 1rem 0; }
    .info-box { margin: 1rem 1rem 1.5rem; }
}

@media (max-width: 480px) {
    .auth-card { padding: 1.75rem; }
    .grid-container { grid-template-columns: 1fr 1fr; gap: 12px; }
    .card-img { height: 80px; font-size: 1.8rem; }
    .card-title { font-size: 0.85rem; }
    .user-info { gap: 8px; }
    .nav-username { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .server-status { flex-direction: column; align-items: flex-start; }
}

.cf-turnstile-wrapper {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    transition: border-color 0.2s;
}

.cf-turnstile-wrapper:hover {
    border-color: var(--primary);
}

.cf-turnstile {
    display: flex;
    justify-content: center;
}

/* Turnstile iframe styling override */
.cf-turnstile iframe {
    border-radius: 6px !important;
}

/* Jika Turnstile belum load, tampilkan placeholder */
.cf-turnstile:not(:has(iframe))::before {
    content: '🔒 Memuat verifikasi keamanan...';
    color: var(--text3);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
}