/* Root Variables for CTG Premium Design */
:root {
    --bg-main: #06070a;
    --bg-surface: #101218;
    --bg-surface-hover: #151820;
    
    --text-main: #f8fafc;
    --text-muted: #8b95a5;
    
    --accent-purple: #8b5cf6;
    --accent-purple-hover: #7c3aed;
    --accent-silver: #a8b2c1;
    --accent-neon: #a78bfa;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
    
    --easing-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin-border {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.05), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(168, 178, 193, 0.03), transparent 30%);
}

.dashboard-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 24px;
}

/* Floating Sidebar */
.sidebar {
    width: 280px;
    background: rgba(16, 18, 24, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(255,255,255,0.03);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 30px 40px;
    cursor: pointer;
    transition: transform 0.3s var(--easing-spring);
}
.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent-purple), #5b21b6);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: #fff;
    position: relative;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.logo-icon::after {
    content: ''; position: absolute; inset: -2px; border-radius: 16px;
    border: 1px solid var(--accent-purple);
    animation: pulseBorder 3s infinite;
}

@keyframes pulseBorder {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.logo h2 { font-size: 22px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.logo span { color: var(--accent-purple); }

.nav-links { list-style: none; flex: 1; padding: 0 16px; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: #64748b; font-weight: 800; margin: 24px 16px 12px; }
.nav-links li { margin-bottom: 8px; }
.nav-links a {
    display: flex; align-items: center; gap: 14px; padding: 14px 20px;
    color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 600;
    border-radius: 14px; transition: var(--transition-smooth);
    position: relative; overflow: hidden;
}
.nav-links a i { font-size: 18px; width: 24px; text-align: center; transition: transform 0.3s var(--easing-spring); }

.nav-links a:hover { color: var(--text-main); background: rgba(255,255,255,0.03); transform: translateX(5px) scale(1.02); }
.nav-links a:hover i { transform: scale(1.2); color: var(--accent-purple); }

.nav-links li.active a {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
    color: var(--text-main);
    box-shadow: inset 3px 0 0 var(--accent-purple);
}
.nav-links li.active a i { color: var(--accent-purple); text-shadow: 0 0 10px rgba(139,92,246,0.5); }

/* Main Content Floating */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

/* Floating Top Header */
.top-header {
    height: 76px;
    background: rgba(16, 18, 24, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.03);
}

.header-actions { display: flex; gap: 16px; align-items: center; }
.action-btn {
    width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,0.03);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
    cursor: pointer; transition: transform 0.3s var(--easing-spring), background 0.3s;
    position: relative; border: 1px solid transparent;
}
.action-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-main); transform: scale(1.1); border-color: rgba(255,255,255,0.05); }

.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: #ef4444; color: white; font-size: 10px; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-surface);
}

.avatar-btn {
    padding: 0; overflow: hidden; border: 2px solid transparent;
}
.avatar-btn:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139,92,246,0.3);
}

/* Scrollable Content Wrapper */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 10px 40px 40px;
}
.content-wrapper::-webkit-scrollbar { width: 8px; }
.content-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.content-wrapper::-webkit-scrollbar-track { background: transparent; }

.content-wrapper > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.page-header { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; }
.page-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-spacing: -1px; background: linear-gradient(to right, #fff, #a8b2c1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-header p { color: var(--text-muted); font-size: 15px; }

/* Interactive Mouse-Tracking Cards */
.glow-card {
    background: transparent;
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.glow-card:hover {
    transform: scale(1.015);
    box-shadow: 0 18px 50px rgba(0,0,0,0.65), 0 0 25px rgba(139,92,246,0.12);
}

/* THE SNAKE — large centered rotating element, clipped by overflow:hidden */
.glow-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    /* Comet effect: bright head, fading tail */
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 270deg,
        rgba(139, 92, 246, 0.4) 300deg,
        #8b5cf6 325deg,
        #38bdf8 335deg,
        rgba(56, 189, 248, 0.2) 345deg,
        transparent 360deg
    );
    animation: snake-rotate 2.5s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
    pointer-events: none;
}

/* SOLID BACKGROUND — inset 2px so the snake is visible as a 2px ring */
.glow-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0d0f14;
    border-radius: 22px;
    z-index: 1;
    pointer-events: none;
}

.glow-card:hover::before { opacity: 1; }

@keyframes snake-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

/* Catch-all: any direct child of glow-card that isn't card-content also floats above the ::after bg */
.glow-card > *:not(style) {
    position: relative;
    z-index: 2;
}

/* ── Pause all expensive bg effects while modal is open ── */
body.modal-open .glow-card::before,
body.modal-open .glow-card::after,
body.modal-open .bg-blob,
body.modal-open .partners-grid,
body.modal-open .scroll-text-content,
body.modal-open .logo-icon::after {
    animation-play-state: paused !important;
    transition: none !important;
}

/* Grid */
.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 24px; }
.section-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.5px; }

/* Buttons */
.btn-primary {
    background: rgba(255,255,255,0.03);
    color: var(--text-main); border: 1px solid rgba(255,255,255,0.05); 
    padding: 12px 24px; border-radius: 14px;
    font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px;
    transition: all 0.3s var(--easing-spring);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-primary:hover { 
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255,255,255,0.15); 
    background: rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4); 
}
.btn-purple {
    background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
    border: none;
}
.btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}
.btn-danger { border-color: rgba(239, 68, 68, 0.4); color: #ef4444; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.1); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2); }

/* Inputs */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; padding: 16px 20px; color: white;
    font-size: 15px; outline: none; transition: all 0.3s var(--easing-spring);
    width: 100%;
}
.form-input:focus { border-color: var(--accent-purple); background: rgba(0,0,0,0.4); box-shadow: 0 0 15px rgba(139,92,246,0.2); }

.input-with-icon {
    position: relative;
    display: flex; align-items: center;
}
.input-with-icon i {
    position: absolute; left: 20px; color: var(--text-muted); font-size: 16px; transition: color 0.3s;
}
.input-with-icon .form-input {
    padding-left: 50px;
}
.input-with-icon .form-input:focus + i, .input-with-icon:focus-within i {
    color: var(--accent-purple);
}

.custom-select {
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; padding: 16px 20px; color: white;
    font-size: 15px; outline: none; transition: all 0.3s var(--easing-spring);
    width: 100%; cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b95a5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 20px center;
}
.custom-select:focus { border-color: var(--accent-purple); box-shadow: 0 0 15px rgba(139,92,246,0.2); }

/* Role Pill Selector */
.role-pill-select { display: flex; cursor: pointer; }
.role-pill-select input[type="radio"] { display: none; }
.role-pill-select span {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 10px 14px; border-radius: 12px;
    font-size: 13px; font-weight: 700;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    transition: all 0.25s var(--easing-spring);
}
.role-pill-select:hover span {
    background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff;
}
.role-pill-select input:checked ~ span {
    background: color-mix(in srgb, var(--rc, #8b5cf6) 15%, transparent);
    border-color: var(--rc, var(--accent-purple));
    color: var(--rc, #fff);
    box-shadow: 0 0 12px color-mix(in srgb, var(--rc, #8b5cf6) 30%, transparent);
}

/* Modern Pill Toggle */
.toggle-pill {
    width: 56px; height: 32px; background: rgba(255,255,255,0.1);
    border-radius: 30px; position: relative; cursor: pointer; transition: background 0.3s;
    border: 1px solid rgba(255,255,255,0.05); flex-shrink: 0;
}
.toggle-pill .thumb {
    width: 24px; height: 24px; background: #fff; border-radius: 50%;
    position: absolute; top: 3px; left: 4px; transition: transform 0.4s var(--easing-spring);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.toggle-pill.active { background: var(--accent-purple); box-shadow: 0 0 15px rgba(139,92,246,0.4); border-color: transparent; }
.toggle-pill.active .thumb { transform: translateX(24px); }

/* Slide Up Stagger Animations */
.stagger-1 { animation: slideUpFade 0.8s var(--easing-spring) forwards; opacity: 0; transform: translateY(40px); }
.stagger-2 { animation: slideUpFade 0.8s var(--easing-spring) 0.1s forwards; opacity: 0; transform: translateY(40px); }
.stagger-3 { animation: slideUpFade 0.8s var(--easing-spring) 0.2s forwards; opacity: 0; transform: translateY(40px); }
.stagger-4 { animation: slideUpFade 0.8s var(--easing-spring) 0.3s forwards; opacity: 0; transform: translateY(40px); }

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

/* Login Page Specifics */
.login-body { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 100vh; padding-top: 10vh; padding-bottom: 50px; scroll-behavior: smooth; }
.login-container { width: 100%; max-width: 480px; padding: 20px; z-index: 10; margin-bottom: 60px; }
.login-card { padding: 50px 40px; text-align: center; background: rgba(16, 18, 24, 0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.05); }

/* Landing Page Sections */
.landing-section { width: 100%; max-width: 1200px; padding: 40px 20px; margin: 40px auto; display: flex; flex-direction: column; align-items: center; z-index: 5; }
.section-title { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 10px; background: linear-gradient(135deg, #fff, var(--accent-silver)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 50px; max-width: 600px; }

/* Pricing Cards — Snake Border */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; width: 100%; }
.price-card {
    background: transparent;
    border-radius: 24px;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
/* Snake — always rotating, dim by default, bright on hover */
.price-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 270deg,
        rgba(139,92,246,0.3) 300deg,
        #8b5cf6 325deg,
        #38bdf8 335deg,
        rgba(56,189,248,0.15) 345deg,
        transparent 360deg
    );
    animation: snake-rotate 3s linear infinite;
    opacity: 0.5;
    transition: opacity 0.4s ease-out;
    z-index: 0;
    pointer-events: none;
}
/* Solid background cover — inset 2px leaves snake visible as border */
.price-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(14, 16, 22, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 22px;
    z-index: 1;
    pointer-events: none;
}
.price-card:hover { transform: scale(1.02); box-shadow: 0 24px 55px rgba(0,0,0,0.6), 0 0 40px rgba(139,92,246,0.18); }
.price-card:hover::before { opacity: 1; }
/* Content above ::after */
.price-card > * { position: relative; z-index: 2; }
.price-card-inner { padding: 40px; }
.price-card.featured::before {
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 240deg,
        rgba(139,92,246,0.5) 280deg,
        #a855f7 315deg,
        #38bdf8 330deg,
        rgba(56,189,248,0.2) 345deg,
        transparent 360deg
    );
    opacity: 0.8;
    animation-duration: 2s;
}
.price-card.featured .popular-badge { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, var(--accent-purple), #6d28d9); color: white; font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; z-index: 3; }
.price-tier { font-size: 20px; font-weight: 700; color: var(--accent-silver); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 2px; }
.price-amount { font-size: 48px; font-weight: 900; color: #fff; margin-bottom: 30px; display: flex; justify-content: center; align-items: flex-start; }
.price-amount span { font-size: 20px; font-weight: 500; color: var(--text-muted); margin-top: 8px; margin-left: 4px; }
.price-features { list-style: none; text-align: left; margin-bottom: 40px; }
.price-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 15px; }
.price-features li i { color: #10b981; font-size: 14px; }
.price-btn { display: inline-flex; width: 100%; justify-content: center; padding: 16px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: 0.3s; cursor: pointer; text-decoration: none; }
.price-btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: #fff; }
.price-btn-outline:hover { background: rgba(255,255,255,0.05); }

/* Partner Card — Snake Border */
.partner-card {
    background: transparent;
    border-radius: 24px;
    padding: 0;
    display: flex; align-items: center; gap: 40px;
    width: 100%; max-width: 900px; margin: 0 auto; flex-wrap: wrap;
    position: relative; overflow: hidden;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.partner-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 270deg,
        rgba(139,92,246,0.3) 300deg,
        #8b5cf6 325deg,
        #38bdf8 335deg,
        rgba(56,189,248,0.15) 345deg,
        transparent 360deg
    );
    animation: snake-rotate 3.5s linear infinite;
    opacity: 0.45;
    transition: opacity 0.4s ease-out;
    z-index: 0; pointer-events: none;
}
.partner-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(14, 16, 22, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    z-index: 1; pointer-events: none;
}
.partner-card:hover { transform: scale(1.015); box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(139,92,246,0.15); }
.partner-card:hover::before { opacity: 1; }
.partner-card > * { position: relative; z-index: 2; }
.partner-card-inner { padding: 40px; display: flex; align-items: center; gap: 40px; width: 100%; flex-wrap: wrap; }
.partner-logo { width: 180px; height: 180px; border-radius: 20px; object-fit: contain; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); padding: 20px; box-shadow: 0 0 30px rgba(0,255,255,0.1); }
.partner-info { flex: 1; min-width: 300px; }
.partner-info h3 { font-size: 28px; margin-bottom: 12px; color: #fff; display: flex; align-items: center; gap: 10px; }

/* Auto-scrolling text animation wrapper */
.scrolling-text-container { height: 120px; overflow: hidden; position: relative; mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent); margin-bottom: 20px; }
.scrolling-text-inner { animation: scrollUp 15s linear infinite; padding: 20px 0; }
.scrolling-text-inner:hover { animation-play-state: paused; }
.scrolling-text-inner p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 10px; }

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Requires duplicating content to loop seamlessly */
}

.partner-actions { display: flex; gap: 16px; margin-top: 20px; }

/* Blurps & Blobs */
.bg-blob { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; pointer-events: none; opacity: 0.4; }
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(139, 92, 246, 0.3); animation: floatBlob 10s infinite alternate; }
.blob-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: rgba(56, 189, 248, 0.2); animation: floatBlob 12s infinite alternate-reverse; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}
.login-logo { padding: 0; margin-bottom: 20px; justify-content: center; }
.login-logo:hover { transform: none; }
.login-subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 30px; line-height: 1.6; }
.discord-btn { background: #5865F2; border: none; width: 100%; justify-content: center; font-size: 16px; padding: 14px; }
.discord-btn:hover { background: #4752C4; box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4); }

.login-divider {
    display: flex; align-items: center; text-align: center; margin: 24px 0; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1); }
.login-divider span { padding: 0 10px; }

/* Modern Modal Overlay */
.modal-overlay, .module-modal-overlay, .premium-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(16, 18, 24, 0.85) 0%, rgba(6, 7, 10, 0.98) 100%);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    perspective: 2000px;
}
.modal-overlay.active, .module-modal-overlay.active, .premium-modal-overlay.show { opacity: 1; pointer-events: all; }

.modal-card, .animated-modal { 
    width: 100%; max-width: 440px; 
    transform: rotateX(15deg) translateY(60px) scale(0.9); 
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    transform-style: preserve-3d;
}
.modal-overlay.active .modal-card, .premium-modal-overlay.show .animated-modal { 
    transform: rotateX(0deg) translateY(0) scale(1); 
    opacity: 1; 
}

/* Unique Animated Login Card */
.premium-login-card {
    background: linear-gradient(145deg, rgba(22, 24, 32, 0.9), rgba(12, 14, 18, 0.95));
    border-radius: 28px; padding: 40px; position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.05); overflow: visible;
}
.premium-login-card::before {
    content: ''; position: absolute; inset: -2px; border-radius: 30px; z-index: -1;
    background: conic-gradient(from var(--login-angle, 0deg), transparent 60%, var(--accent-purple) 80%, #38bdf8 100%);
    animation: spin-border 4s linear infinite; opacity: 0.5;
}
@property --login-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --login-angle: 360deg; } }

/* Floating Inputs */
.auth-input-group { position: relative; margin-bottom: 24px; width: 100%; }
.auth-input-group i.auth-icon { 
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 16px; transition: 0.3s; pointer-events: none; z-index: 3;
}
.auth-input {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 22px 20px 10px 50px; color: #fff; font-size: 15px;
    transition: all 0.3s ease; outline: none; box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}
.auth-input:focus { 
    border-color: var(--accent-purple); background: rgba(0,0,0,0.6); 
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.4), 0 0 20px rgba(139,92,246,0.15); 
}
.auth-input:focus ~ i.auth-icon { color: var(--accent-purple); transform: translateY(-50%) scale(1.1); }

.auth-input::placeholder { color: transparent; }
.auth-label {
    position: absolute; left: 50px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 15px; pointer-events: none; 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2;
}
.auth-input:focus ~ .auth-label, .auth-input:not(:placeholder-shown) ~ .auth-label {
    top: 10px; font-size: 11px; font-weight: 800; color: var(--accent-purple); 
    text-transform: uppercase; letter-spacing: 1px;
}

/* Premium Bot Selector */
.premium-bot-selector {
    position: relative; display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; padding: 10px 20px 10px 12px;
    cursor: pointer; transition: all 0.3s var(--easing-spring); user-select: none;
}
.premium-bot-selector:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.bot-sel-icon {
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px; box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}
.bot-sel-info { display: flex; flex-direction: column; }
.bot-sel-info .label { font-size: 10px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.bot-sel-info .name { font-size: 15px; font-weight: 700; color: var(--text-main); }
.bot-sel-arrow { color: var(--text-muted); font-size: 14px; transition: transform 0.3s; margin-left: 10px; }
.premium-bot-selector.open .bot-sel-arrow { transform: rotate(180deg); color: var(--accent-purple); }

.bot-dropdown-menu {
    position: absolute; top: calc(100% + 12px); left: 0; width: 100%; min-width: 240px;
    background: rgba(16, 18, 24, 0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); opacity: 0; visibility: hidden;
    transform: translateY(-10px) scale(0.95); transition: all 0.3s var(--easing-spring); z-index: 100;
}
.premium-bot-selector.open .bot-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.bot-dropdown-item {
    padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-muted);
    display: flex; align-items: center; gap: 12px; transition: all 0.2s; cursor: pointer;
}
.bot-dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }
.bot-dropdown-item.active { background: rgba(139, 92, 246, 0.15); color: var(--text-main); border: 1px solid rgba(139, 92, 246, 0.3); }

/* Sidebar User Profile Card */
.user-profile-card {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px; padding: 14px; transition: all 0.3s;
}
.user-profile-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.profile-avatar {
    width: 44px; height: 44px; background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 16px; box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}
.profile-info { flex: 1; }
.profile-info h4 { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.profile-info p { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.logout-icon { color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 8px; transition: color 0.2s, transform 0.2s; }
.logout-icon:hover { color: #ef4444; transform: translateX(3px); }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 30px; }
.stat-card {
    background: rgba(16, 18, 24, 0.6); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 24px; padding: 24px;
    display: flex; align-items: center; gap: 20px; transition: transform 0.25s ease-out, background 0.25s, box-shadow 0.25s;
    position: relative; overflow: hidden;
}
.stat-card:hover { transform: scale(1.015); background: rgba(255, 255, 255, 0.04); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.stat-icon {
    width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white; position: relative; z-index: 2;
}
.stat-info { position: relative; z-index: 2; flex: 1; }
.stat-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-info h3 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.stat-trend { font-size: 13px; padding: 4px 10px; border-radius: 10px; display: flex; align-items: center; gap: 4px; font-weight: 700; }
.trend-up { color: #10b981; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.2); }
.trend-down { color: #ef4444; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.2); }

.pulse-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Module Grid for Bot Config */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.module-card {
    background: rgba(16, 18, 24, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column;
    transition: transform 0.25s ease-out, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: scale(1.015);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Neon Top Border for active modules */
.module-card.active::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    box-shadow: 0 0 15px var(--accent-purple);
}

.module-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 16px;
}

.module-icon-wrapper {
    display: flex; align-items: center; gap: 16px;
}

.module-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--text-muted);
    transition: all 0.3s;
}

.module-card.active .module-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    box-shadow: inset 0 0 15px rgba(139,92,246,0.2);
}

.module-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.module-info p { font-size: 13px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.module-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
}

.settings-btn {
    background: rgba(255,255,255,0.05); color: var(--text-main);
    border: none; padding: 10px 16px; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s var(--easing-spring);
}
.settings-btn:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); }
.settings-btn i { transition: transform 0.3s; }
.settings-btn:hover i { transform: rotate(45deg); color: var(--accent-purple); }

/* Modals & Configs */
.config-row {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.config-row:last-child { border-bottom: none; }
.config-info { flex: 1; }
.config-info h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.config-info p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.config-control { min-width: 250px; display: flex; justify-content: flex-end; }
.config-control .form-input, .config-control .custom-select { width: 100%; background: rgba(16, 18, 24, 0.8); }

/* Module Settings Modal */
.module-modal-card {
    background: #101218; border-radius: 24px; border: 1px solid rgba(255,255,255,0.1);
    width: 100%; max-width: 600px; box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.9) translateY(20px); transition: all 0.4s var(--easing-spring);
    display: flex; flex-direction: column; max-height: 90vh;
}
.module-modal-overlay.active .module-modal-card { transform: scale(1) translateY(0); }

.module-modal-header {
    padding: 24px 30px; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 20px; position: relative;
}
.module-modal-icon {
    width: 50px; height: 50px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: white;
    box-shadow: 0 0 20px rgba(139,92,246,0.3);
}
.module-modal-header h2 { font-size: 22px; font-weight: 800; }
.modal-close-btn {
    position: absolute; top: 24px; right: 24px;
    background: none; border: none; color: var(--text-muted); font-size: 20px;
    cursor: pointer; transition: all 0.2s; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.modal-close-btn:hover { background: rgba(255,255,255,0.1); color: white; transform: rotate(90deg); }

.module-modal-body {
    padding: 30px; overflow-y: auto;
}

/* Admin Section specific */
.admin-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.admin-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 16px;
    transition: all 0.3s;
}
.admin-item:hover { background: rgba(255,255,255,0.04); transform: translateX(5px); border-color: rgba(255,255,255,0.1); }
.admin-profile { display: flex; align-items: center; gap: 16px; }
.admin-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-purple); }
.admin-info h4 { font-size: 15px; font-weight: 700; }
.admin-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.admin-badge { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-owner { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.badge-mod { background: rgba(56,189,248,0.15); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.3); }

/* Live Logs */
.live-logs-container { display: flex; flex-direction: column; gap: 12px; }
.log-item {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    background: rgba(255,255,255,0.02); border-radius: 14px;
    border: 1px solid transparent; transition: all 0.2s;
}
.log-item:hover { background: rgba(255,255,255,0.04); transform: scale(1.01); }

.border-yellow { border-left: 4px solid #f59e0b; }
.border-blue { border-left: 4px solid #3b82f6; }
.border-red { border-left: 4px solid #ef4444; }
.border-green { border-left: 4px solid #10b981; }

.log-time { font-family: monospace; font-size: 13px; color: var(--text-muted); }
.log-badge { font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 8px; letter-spacing: 0.5px; }
.badge-warning { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.badge-info { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.badge-alert { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.badge-success { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.log-msg { font-size: 14px; color: #f8fafc; font-weight: 500; }

/* Page Transition Animations */
.view-enter { animation: viewEnterAnim 0.5s var(--easing-spring) forwards; }
@keyframes viewEnterAnim { 0% { opacity: 0; transform: translateY(20px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.view-leave { animation: viewLeaveAnim 0.2s ease-in forwards; }
@keyframes viewLeaveAnim { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }

/* Light Mode Overrides */
body.light-mode {
    --bg-main: #f1f5f9; --bg-surface: #ffffff; --bg-surface-hover: #f8fafc;
    --text-main: #0f172a; --text-muted: #64748b; --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
}
body.light-mode .sidebar, body.light-mode .top-header, body.light-mode .glow-card, body.light-mode .stat-card, body.light-mode .module-card {
    background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
body.light-mode .nav-links li a { color: #475569; }
body.light-mode .nav-links li:hover a { background: #f1f5f9; color: var(--accent-purple); }
body.light-mode .action-btn, body.light-mode .premium-bot-selector, body.light-mode .settings-btn { background: #f1f5f9; color: #64748b; border-color: rgba(0,0,0,0.05); }
body.light-mode .action-btn:hover, body.light-mode .settings-btn:hover { background: #e2e8f0; color: #0f172a; }
body.light-mode .form-input, body.light-mode .custom-select { background: #f8fafc; border-color: rgba(0,0,0,0.1); color: #0f172a; }
body.light-mode .toggle-pill { background: #e2e8f0; border-color: transparent; }
body.light-mode .module-modal-card { background: #ffffff; border-color: rgba(0,0,0,0.1); }
body.light-mode .admin-item, body.light-mode .log-item, body.light-mode .user-profile-card { background: #f8fafc; border-color: rgba(0,0,0,0.05); }
body.light-mode .module-modal-header { border-bottom-color: rgba(0,0,0,0.05); }
body.light-mode .modal-close-btn:hover { background: rgba(0,0,0,0.05); color: #0f172a; }

/* Modern Cyber Notifications */
@keyframes cyberSlideIn {
    0% { transform: translateX(120%) rotateX(-20deg) scale(0.8); opacity: 0; filter: blur(10px); }
    60% { transform: translateX(-10px) rotateX(10deg) scale(1.05); opacity: 1; filter: blur(0px); }
    100% { transform: translateX(0) rotateX(0deg) scale(1); opacity: 1; }
}
@keyframes cyberSlideOut {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    40% { transform: translateX(-10px) scale(1.05); opacity: 1; }
    100% { transform: translateX(150%) scale(0.8); opacity: 0; filter: blur(10px); }
}

.notification-container {
    position: fixed; bottom: 40px; right: 40px;
    display: flex; flex-direction: column; gap: 20px; z-index: 9999; perspective: 1000px;
}
.notification {
    background: linear-gradient(135deg, rgba(20, 22, 30, 0.95) 0%, rgba(10, 12, 16, 0.98) 100%);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05); border-left: 4px solid var(--accent-purple);
    border-radius: 16px; padding: 20px 24px; display: flex; align-items: center; gap: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateX(120%); opacity: 0; position: relative; overflow: hidden;
}
.notification::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: notifShine 2s infinite; pointer-events: none; z-index: 0;
}
@keyframes notifShine { 100% { left: 200%; } }

.notification.show { animation: cyberSlideIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.notification.hide { animation: cyberSlideOut 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards; }

.notif-icon-box {
    width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; z-index: 2; position: relative;
    background: rgba(255,255,255,0.05);
}
.notif-success { border-left-color: #10b981; box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(16,185,129,0.1); }
.notif-success .notif-icon-box { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }

.notif-error { border-left-color: #ef4444; box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(239,68,68,0.1); }
.notif-error .notif-icon-box { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }

.notif-warning { border-left-color: #f59e0b; box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(245,158,11,0.1); }
.notif-warning .notif-icon-box { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }

.notif-info { border-left-color: #8b5cf6; box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(139,92,246,0.1); }
.notif-info .notif-icon-box { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }

.notif-content { z-index: 2; position: relative; flex: 1; }
.notif-content h4 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 4px; letter-spacing: 0.5px; }
.notif-content p { font-size: 14px; color: var(--text-muted); font-weight: 500; line-height: 1.5; }

/* Notification Progress Bar */
.notif-progress { position: absolute; bottom: 0; left: 0; height: 4px; background: rgba(255,255,255,0.5); width: 100%; animation: notifProgress 4s linear forwards; border-radius: 4px; z-index: 3; }
.notif-success .notif-progress { background: linear-gradient(90deg, transparent, #10b981); box-shadow: 0 0 10px #10b981; }
.notif-error .notif-progress { background: linear-gradient(90deg, transparent, #ef4444); box-shadow: 0 0 10px #ef4444; }
.notif-warning .notif-progress { background: linear-gradient(90deg, transparent, #f59e0b); box-shadow: 0 0 10px #f59e0b; }
.notif-info .notif-progress { background: linear-gradient(90deg, transparent, #8b5cf6); box-shadow: 0 0 10px #8b5cf6; }
@keyframes notifProgress { from { width: 100%; } to { width: 0%; } }

/* Header Notifications Dropdown */
.dropdown-container { position: relative; }
.notif-dropdown {
    position: absolute; top: calc(100% + 15px); right: 0; width: 340px;
    background: rgba(16, 18, 24, 0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}
.notif-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.notif-dropdown::before {
    content: ''; position: absolute; top: -6px; right: 20px;
    width: 12px; height: 12px; background: rgba(16, 18, 24, 0.95);
    border-left: 1px solid rgba(255,255,255,0.08); border-top: 1px solid rgba(255,255,255,0.08);
    transform: rotate(45deg);
}
.notif-drop-header { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.notif-drop-header h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0; }
.notif-drop-header .mark-read { font-size: 12px; color: var(--accent-purple); cursor: pointer; transition: 0.2s; font-weight: 600; }
.notif-drop-header .mark-read:hover { color: #a855f7; text-decoration: underline; }
.notif-drop-body { max-height: 350px; overflow-y: auto; }
.notif-drop-body::-webkit-scrollbar { width: 4px; }
.notif-drop-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.notif-drop-item { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.02); transition: 0.2s; cursor: pointer; }
.notif-drop-item:hover { background: rgba(255,255,255,0.03); }
.notif-drop-item.unread { background: rgba(139, 92, 246, 0.05); border-left: 3px solid var(--accent-purple); padding-left: 17px; }
.nd-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; border: 1px solid rgba(255,255,255,0.05); }
.nd-content h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.nd-content p { font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-bottom: 6px; }
.nd-time { font-size: 11px; color: rgba(255,255,255,0.3); font-weight: 600; text-transform: uppercase; }
.notif-drop-footer { padding: 14px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.1); border-radius: 0 0 16px 16px; }
.notif-drop-footer a { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: 0.2s; }
.notif-drop-footer a:hover { color: var(--accent-purple); }
.pulse-badge { animation: pulseBadge 2s infinite; }
@keyframes pulseBadge { 
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } 
}

/* User Table Styles */
.user-table { width: 100%; border-collapse: collapse; text-align: left; }
.user-table th { padding: 16px; color: var(--text-muted); font-size: 12px; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.05); }
.user-table td { padding: 16px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.02); }
.user-table tbody tr { transition: background 0.3s; }
.user-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Status Badges missing in admin-users */
.admin-badge { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; display: inline-block; text-align: center; }
.badge-owner { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.badge-mod { background: rgba(56,189,248,0.15); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.3); }

/* ==========================================================================
   MOBILE RESPONSIVENESS (Handy Anpassungen)
   ========================================================================== */
@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
        padding: 10px;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px 0;
        border-radius: 16px;
        height: auto;
    }
    
    .content-wrapper {
        padding: 10px;
        overflow-y: visible;
    }
    
    .grid-layout, .pricing-grid, .module-grid, .stats-row {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .top-header {
        padding: 10px 15px;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .premium-bot-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .notif-dropdown {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    .user-profile-card {
        flex-direction: row;
        width: calc(100% - 32px);
        margin: 0 16px;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-links li {
        width: calc(50% - 5px);
        margin-bottom: 0;
    }
    
    .nav-links a {
        padding: 10px;
        font-size: 13px;
        justify-content: center;
    }
    
    .nav-label {
        width: 100%;
        text-align: center;
        margin: 15px 0 5px;
    }
}
