/* BUNDLE CORE DESIGN SYSTEM - V7.0 (ULTRA-LONG EDITION) 
    Designed for the Deep Sea Aesthetic
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Color Palette */
    --bg-black: #020202;
    --bg-deep: #08080a;
    --bg-card: #0e0f12;
    --blurple: #5865f2;
    --blurple-hover: #4752c4;
    --blurple-glow: rgba(88, 101, 242, 0.4);
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --text-muted: #3f3f46;
    
    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Borders & Glass */
    --border: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.02);
    
    /* Transitions */
    --t-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: all 0.2s ease;
}

/* 1. Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.8;
}

/* Custom Scrollbar Logic */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { 
    background: var(--bg-card); 
    border-radius: 10px;
    border: 2px solid var(--bg-black);
}
::-webkit-scrollbar-thumb:hover { background: var(--blurple); }

/* 2. Typographic Identity (NO LOGO IMAGES) */
.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 20%, var(--blurple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    cursor: default;
    user-select: none;
}

/* 3. Global Layout & Containment */
.container { max-width: 1400px; margin: 0 auto; padding: 0 60px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }

header {
    height: 110px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 2, 2, 0.85);
    backdrop-filter: blur(40px);
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* 4. The Card Component */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    transition: var(--t-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: translateX(-100%);
    transition: 0.8s;
}

.card:hover {
    border-color: var(--glass-border);
    transform: translateY(-8px);
    background: var(--bg-deep);
}

.card:hover::before { transform: translateX(100%); }

/* 5. Buttons & Interactions */
.btn-primary {
    background: var(--blurple);
    color: white;
    padding: 18px 42px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    transition: var(--t-smooth);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 0 var(--blurple-glow);
}

.btn-primary:hover {
    background: var(--blurple-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px var(--blurple-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    transition: var(--t-fast);
}

.btn-secondary:hover { background: var(--border); }

/* 6. Dashboard Grid Architecture */
.grid-main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    padding: 100px 0;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--blurple);
    margin-bottom: 35px;
    display: block;
}

/* 7. Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeInUp 1s var(--t-smooth) forwards; }

/* 8. Utility */
.hidden { display: none !important; }

/* 9. Admin Lockdown */
body.admin-mode { display: none; }
body.admin-mode.unlocked { display: block; }

/* Responsive Overrides */
@media (max-width: 1000px) {
    .grid-main { grid-template-columns: 1fr; }
    .container { padding: 0 30px; }
}
