@import url('./dashboard/bot-settings.css');
@import url('./dashboard/admin-overview.css');
@import url('./dashboard/admin-status.css');
@import url('./dashboard/admin-finance.css');
@import url('./dashboard/user-tickets.css');
@import url('./dashboard/admin-tickets.css');

/* 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%);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

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

/* Floating Sidebar */
.sidebar {
    width: 280px;
    background: rgba(16, 18, 24, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    padding: 24px 0 16px;
    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: 12px;
    padding: 0 20px 24px;
    cursor: pointer;
    transition: transform 0.3s var(--easing-spring);
}
.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent-purple), #5b21b6);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; color: #fff;
    position: relative;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
    flex-shrink: 0;
}
.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: 18px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; line-height: 1; }
.logo span { color: var(--accent-purple); }

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

.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: 80px;
    background: linear-gradient(145deg, rgba(20, 23, 35, 0.4) 0%, rgba(10, 12, 20, 0.6) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 200;
}

.header-actions { display: flex; gap: 18px; align-items: center; }
.action-btn {
    width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,0.03);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
    cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; border: 1px solid rgba(255,255,255,0.04);
}
.action-btn:hover { 
    background: rgba(255,255,255,0.06); color: var(--text-main); 
    transform: translateY(-2px) scale(1.05); 
    border-color: rgba(255,255,255,0.1); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.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);
}

/* Modern Scrollbar System */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #06070a;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 36px 40px;
    transform: translate3d(0, 0, 0);
    overflow-anchor: none;
    scroll-behavior: smooth;
}

.content-wrapper > * {
    max-width: 1700px;
    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; 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;
    will-change: transform, box-shadow;
}

.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: 2000px; height: 2000px;
    /* 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;
    animation-play-state: paused; /* Pause by default for performance */
    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; 
    animation-play-state: running; /* Only run when visible */
}

@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 .cmd-card::before,
body.modal-open .stat-card::before,
body.modal-open .au-stat-card::before,
body.modal-open .module-card::before,
body.modal-open .au-user-card::before,
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: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    color: var(--text-main); border: 1px solid rgba(255,255,255,0.08); 
    padding: 14px 28px; border-radius: 16px;
    font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn-primary:hover { 
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255,255,255,0.2); 
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    box-shadow: 0 12px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1); 
}
.btn-purple {
    background: linear-gradient(135deg, var(--accent-purple), #6d28d9);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-purple:hover {
    background: linear-gradient(135deg, #9b6dff, #7c3aed);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.2);
}
.btn-danger { background: linear-gradient(145deg, rgba(244, 63, 94, 0.15), rgba(225, 29, 72, 0.05)); border: 1px solid rgba(244, 63, 94, 0.3); color: #fb7185; }
.btn-danger:hover { background: linear-gradient(145deg, rgba(244, 63, 94, 0.25), rgba(225, 29, 72, 0.1)); box-shadow: 0 12px 24px rgba(225, 29, 72, 0.3); border-color: rgba(244, 63, 94, 0.5); color: #fff; }

/* Inputs */
.form-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.form-group label { font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.form-input {
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 18px 22px; color: white;
    font-size: 15px; outline: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%; box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}
.form-input:focus { border-color: var(--accent-purple); background: rgba(0,0,0,0.5); box-shadow: inset 0 2px 10px rgba(0,0,0,0.4), 0 0 20px rgba(139,92,246,0.15); transform: translateY(-2px); }

.input-with-icon {
    position: relative;
    display: flex; align-items: center;
}
.input-with-icon i {
    position: absolute; left: 22px; color: var(--text-muted); font-size: 16px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.input-with-icon .form-input {
    padding-left: 54px;
}
.input-with-icon .form-input:focus + i, .input-with-icon:focus-within i {
    color: var(--accent-purple); transform: scale(1.1);
}

.custom-select {
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 18px 22px; color: white;
    font-size: 15px; outline: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%; cursor: pointer; appearance: none;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
    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); background: rgba(0,0,0,0.5); box-shadow: inset 0 2px 10px rgba(0,0,0,0.4), 0 0 20px rgba(139,92,246,0.15); transform: translateY(-2px); }

/* 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 - Optimized */
.stagger-1 { animation: slideUpFade 0.6s var(--easing-spring) forwards; opacity: 0; transform: translate3d(0, 30px, 0); will-change: transform, opacity; }
.stagger-2 { animation: slideUpFade 0.6s var(--easing-spring) 0.1s forwards; opacity: 0; transform: translate3d(0, 30px, 0); will-change: transform, opacity; }
.stagger-3 { animation: slideUpFade 0.6s var(--easing-spring) 0.2s forwards; opacity: 0; transform: translate3d(0, 30px, 0); will-change: transform, opacity; }
.stagger-4 { animation: slideUpFade 0.6s var(--easing-spring) 0.3s forwards; opacity: 0; transform: translate3d(0, 30px, 0); will-change: transform, opacity; }

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

/* ═══════════════════════════════════════
   View Transitions — Premium Animations
   ═══════════════════════════════════════ */
.view-enter {
    animation: viewEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

.view-leave {
    animation: viewLeave 0.15s cubic-bezier(0.4, 0, 1, 1) forwards;
    will-change: transform, opacity, filter;
    pointer-events: none;
}

@keyframes viewEnter {
    0%   { opacity: 0; transform: translateY(18px) scale(0.975); filter: blur(4px); }
    60%  { filter: blur(0px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}

@keyframes viewLeave {
    0%   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
    100% { opacity: 0; transform: translateY(-12px) scale(0.98); filter: blur(3px); }
}

/* Card stagger when page loads */
.view-enter .cmd-card,
.view-enter .au-user-card,
.view-enter .glow-card {
    animation: cardStaggerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.view-enter .cmd-card:nth-child(1), .view-enter .au-user-card:nth-child(1), .view-enter .glow-card:nth-child(1) { animation-delay: 0.04s; }
.view-enter .cmd-card:nth-child(2), .view-enter .au-user-card:nth-child(2), .view-enter .glow-card:nth-child(2) { animation-delay: 0.08s; }
.view-enter .cmd-card:nth-child(3), .view-enter .au-user-card:nth-child(3), .view-enter .glow-card:nth-child(3) { animation-delay: 0.12s; }
.view-enter .cmd-card:nth-child(4), .view-enter .au-user-card:nth-child(4), .view-enter .glow-card:nth-child(4) { animation-delay: 0.16s; }
.view-enter .cmd-card:nth-child(5), .view-enter .au-user-card:nth-child(5), .view-enter .glow-card:nth-child(5) { animation-delay: 0.20s; }
.view-enter .cmd-card:nth-child(n+6), .view-enter .au-user-card:nth-child(n+6), .view-enter .glow-card:nth-child(n+6) { animation-delay: 0.24s; }

@keyframes cardStaggerIn {
    0%   { opacity: 0; transform: translateY(22px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ripple effect for clicks */
.ripple-host { position: relative; overflow: hidden; }
@keyframes ripple-expand {
    0%   { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}
.ripple-wave {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    width: 80px; height: 80px;
    margin-top: -40px; margin-left: -40px;
    pointer-events: none;
    animation: ripple-expand 0.55s cubic-bezier(0.16,1,0.3,1) forwards;
    z-index: 9999;
}

/* Sidebar active link slide indicator */
.nav-links li.active a {
    color: var(--text-main) !important;
    background: rgba(139,92,246,0.08) !important;
    transform: translateX(3px);
}
.nav-links li.active a i { color: var(--accent-purple); }

/* Button click pulse */
@keyframes btn-click-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(139,92,246,0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(139,92,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
}
.btn-pulse { animation: btn-click-pulse 0.45s ease-out; }

/* Page header slide-in */
.cmd-page-header {
    animation: headerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes headerSlideIn {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Notification toast bounce-in */
@keyframes toast-in {
    0%   { opacity: 0; transform: translateX(110%); }
    60%  { transform: translateX(-6px); }
    80%  { transform: translateX(3px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    0%   { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(110%); }
}

/* Performance Layering */
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px 40px 40px;
    transform: translateZ(0); /* Hardware isolation */
    will-change: scroll-position;
}

/* 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; 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; 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);
    will-change: transform, box-shadow;
}
/* Snake — always rotating, dim by default, bright on hover */
.price-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 2000px; height: 2000px;
    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;
    animation-play-state: paused;
    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; 
    animation-play-state: running;
}
/* 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;
    animation-play-state: paused;
    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; 
    animation-play-state: running;
}
.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(6, 6, 14, 0.97); backdrop-filter: blur(24px);
    border: 1px solid rgba(155,109,255,0.18); border-radius: 16px; padding: 10px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.75), 0 0 0 1px rgba(155,109,255,0.06);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px) scale(0.95); transition: all 0.3s var(--easing-spring); z-index: 9999;
    pointer-events: auto;
}
.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; 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 (Premium UI) */
.dropdown-container { position: relative; }
.notif-dropdown {
    position: absolute; top: calc(100% + 20px); right: 0; width: 380px;
    background: rgba(12, 14, 20, 0.75); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0; visibility: hidden; transform: translateY(-15px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    z-index: 9999;
    pointer-events: auto;
    transform-origin: top right;
}
.notif-dropdown.show,
.notif-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.notif-dropdown::before {
    content: ''; position: absolute; top: -7px; right: 24px;
    width: 14px; height: 14px; background: rgba(12, 14, 20, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1); border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg); box-shadow: -3px -3px 8px rgba(0,0,0,0.1);
}
.notif-drop-header { 
    padding: 20px 24px; 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: 16px; font-weight: 800; color: #fff; margin: 0; display: flex; align-items: center; gap: 8px; }
.notif-drop-header h3 i { color: var(--accent-purple); font-size: 14px; }
.notif-drop-header .mark-read { 
    font-size: 12px; color: var(--text-muted); cursor: pointer; transition: all 0.2s; font-weight: 700; 
    background: rgba(255, 255, 255, 0.05); padding: 6px 12px; border-radius: 8px;
}
.notif-drop-header .mark-read:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.notif-drop-body { max-height: 400px; overflow-y: auto; padding: 12px; }
.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: 16px; padding: 16px; margin-bottom: 8px; 
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.03); 
    border-radius: 14px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; 
}
.notif-drop-item:last-child { margin-bottom: 0; }
.notif-drop-item:hover { 
    background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); 
    transform: translateX(4px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}
.notif-drop-item.unread { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.02)); 
    border-color: rgba(139, 92, 246, 0.2);
}
.notif-drop-item.unread:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
}
.nd-icon { 
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; 
    flex-shrink: 0; font-size: 18px; 
    background: rgba(255, 255, 255, 0.05); color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
/* Colorful icons based on notification type if they match classes */
.notif-drop-item[data-type="update"] .nd-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.notif-drop-item[data-type="error"] .nd-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.notif-drop-item[data-type="info"] .nd-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.notif-drop-item[data-type="success"] .nd-icon { background: linear-gradient(135deg, #10b981, #047857); }

.nd-content h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.nd-content p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.nd-time { font-size: 11px; color: rgba(255, 255, 255, 0.4); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.notif-drop-footer { 
    padding: 16px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); 
    background: rgba(0, 0, 0, 0.2); border-radius: 0 0 20px 20px; 
}
.notif-drop-footer button { 
    background: none; border: none; color: #fff; font-size: 14px; font-weight: 700; 
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.notif-drop-footer button i { color: var(--accent-purple); }
.notif-drop-footer button:hover { color: var(--accent-purple); letter-spacing: 0.5px; }
.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); } 
}

/* Profile dropdown menu items */
.prof-menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.65);
    cursor: pointer; transition: all 0.18s;
}
.prof-menu-item:hover { background: rgba(139,92,246,0.1); color: #fff; }
.prof-menu-item i { width: 16px; text-align: center; color: rgba(139,92,246,0.8); font-size: 13px; }
.prof-menu-item:hover i { color: #a855f7; }
.prof-menu-item.danger { color: rgba(239,68,68,0.7); }
.prof-menu-item.danger:hover { background: rgba(239,68,68,0.08); color: #f87171; }
.prof-menu-item.danger i { color: rgba(239,68,68,0.6); }
.prof-menu-item.danger:hover i { color: #f87171; }

/* 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;
    }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px) scale(0.98); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.premium-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ══════════════════════════════════════════
   CMD DESIGN SYSTEM — Global (dashboard-command.html)
   Applies to all Views in views/*.js
   ══════════════════════════════════════════ */

/* Grid */
.cmd-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cmd-col-3  { grid-column: span 3; }
.cmd-col-4  { grid-column: span 4; }
.cmd-col-6  { grid-column: span 6; }
.cmd-col-12 { grid-column: span 12; }
@media(max-width:1400px) { .cmd-col-3 { grid-column: span 6; } .cmd-col-4 { grid-column: span 6; } }
@media(max-width:900px)  { .cmd-col-3,.cmd-col-4,.cmd-col-6 { grid-column: span 12; } }

/* Card */
.cmd-card {
    background: rgba(255,255,255,0.03);
    border-radius: 16px; padding: 24px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative; overflow: hidden;
    --ct-color: #a78bfa;
    --ct-glow: rgba(139,92,246,0.55);
    --ct-glow2: rgba(139,92,246,0.09);
    border: 1px solid rgba(255,255,255,0.08);
}
/* Standard: dünner farbiger Streifen oben */
.cmd-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: var(--ct-color, #a78bfa);
    box-shadow: 0 0 12px var(--ct-glow, rgba(139,92,246,0.8));
    z-index: 10;
    pointer-events: none;
    transition: all 0.25s ease;
}
/* Hover: kompletter farbiger Rahmen + Glow */
.cmd-card:hover {
    transform: translateY(-3px);
    border: 1px solid var(--ct-color, rgba(139,92,246,0.6));
    box-shadow: 0 0 20px 2px var(--ct-glow, rgba(139,92,246,0.4)), 0 10px 30px rgba(0,0,0,0.3);
}
.cmd-card:hover::before {
    opacity: 0;
}
.cmd-card-icon {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.cmd-card:hover .cmd-card-icon { transform: scale(1.08); }

/* Universal border — farbiger Rand rundum */
.stat-card,
.au-stat-card,
.module-card,
.au-user-card {
    border: 1px solid rgba(139,92,246,0.22);
    position: relative;
}
.stat-card:hover,
.au-stat-card:hover,
.module-card:not(.active):hover,
.au-user-card:hover {
    border-color: rgba(139,92,246,0.4);
}

/* ══════════════════════════════════════════════════════
   card-top-* — nur CSS-Variablen setzen.
   cmd-card::before rendert den Streifen automatisch
   mit der richtigen Farbe via var(--ct-color) etc.
   ══════════════════════════════════════════════════════ */
.card-top-green  { --ct-color:#34d399; --ct-glow:rgba(52,211,153,0.6);   --ct-glow2:rgba(52,211,153,0.1); }
.card-top-orange { --ct-color:#fbbf24; --ct-glow:rgba(251,191,36,0.6);   --ct-glow2:rgba(251,191,36,0.1); }
.card-top-red    { --ct-color:#f87171; --ct-glow:rgba(248,113,113,0.6);  --ct-glow2:rgba(248,113,113,0.1); }
.card-top-cyan   { --ct-color:#22d3ee; --ct-glow:rgba(34,211,238,0.6);   --ct-glow2:rgba(34,211,238,0.1); }
.card-top-purple { --ct-color:#a78bfa; --ct-glow:rgba(167,139,250,0.6);  --ct-glow2:rgba(167,139,250,0.1); }
.card-top-blue   { --ct-color:#60a5fa; --ct-glow:rgba(96,165,250,0.6);   --ct-glow2:rgba(96,165,250,0.1); }
.cmd-card-std    { --ct-color:#a78bfa; --ct-glow:rgba(139,92,246,0.6);   --ct-glow2:rgba(139,92,246,0.1); }
.cmd-card-cust   { --ct-color:#22d3ee; --ct-glow:rgba(6,182,212,0.6);    --ct-glow2:rgba(6,182,212,0.1); }

/* Hover: farbiger Glow je Klasse (blur/glow rundum) */
.card-top-green:hover  { border-color: rgba(52,211,153,0.6);  box-shadow: 0 0 20px 2px rgba(52,211,153,0.4), 0 10px 30px rgba(0,0,0,0.3); }
.card-top-orange:hover { border-color: rgba(251,191,36,0.6);  box-shadow: 0 0 20px 2px rgba(251,191,36,0.4), 0 10px 30px rgba(0,0,0,0.3); }
.card-top-red:hover    { border-color: rgba(248,113,113,0.6); box-shadow: 0 0 20px 2px rgba(248,113,113,0.4), 0 10px 30px rgba(0,0,0,0.3); }
.card-top-cyan:hover   { border-color: rgba(34,211,238,0.6);  box-shadow: 0 0 20px 2px rgba(34,211,238,0.4), 0 10px 30px rgba(0,0,0,0.3); }
.card-top-purple:hover { border-color: rgba(167,139,250,0.6); box-shadow: 0 0 20px 2px rgba(167,139,250,0.4), 0 10px 30px rgba(0,0,0,0.3); }
.card-top-blue:hover   { border-color: rgba(96,165,250,0.6);  box-shadow: 0 0 20px 2px rgba(96,165,250,0.4), 0 10px 30px rgba(0,0,0,0.3); }

/* Card header/title */
.cmd-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cmd-card-title  { display: flex; align-items: center; gap: 12px; }
.cmd-card-icon   { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.cmd-card-title h3   { font-size: 16px; font-weight: 700; }
.cmd-card-title span { display: block; font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* Icon colours */
.ci-pink   { background: rgba(139,92,246,0.18); color: #a78bfa; }
.ci-cyan   { background: rgba(6,182,212,0.18);  color: #22d3ee; }
.ci-purple { background: rgba(124,58,237,0.18); color: #c084fc; }
.ci-green  { background: rgba(16,185,129,0.18); color: #34d399; }
.ci-orange { background: rgba(245,158,11,0.18); color: #fbbf24; }
.ci-blue   { background: rgba(59,130,246,0.18); color: #60a5fa; }
.ci-red    { background: rgba(239,68,68,0.18);  color: #f87171; }

/* Section Divider */
.cmd-divider { display: flex; align-items: center; gap: 14px; padding: 20px 0 12px; }
.cmd-divider-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.cmd-divider h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.6); }
.cmd-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }

/* Stats */
.cmd-stat-big   { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 46px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.cmd-stat-label { font-size: 13px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 1px; }
.cmd-stat-trend { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 12px; }
.trend-up  { color: #34d399; }
.trend-dim { color: rgba(255,255,255,0.3); }

/* Badges */
.cmd-badge      { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cbadge-online  { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.cbadge-wartung { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.cbadge-offline { background: rgba(239,68,68,0.1);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.cmd-dot { width: 6px; height: 6px; border-radius: 50%; animation: cmdDotPulse 2s infinite; }
.dot-g { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.6); }
.dot-o { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.6); }
.dot-r { background: #f87171; box-shadow: 0 0 8px rgba(248,113,113,0.6); }
@keyframes cmdDotPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.75); } }

/* Bot List */
.cmd-bot-list { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
.cmd-bot-list::-webkit-scrollbar { width: 4px; }
.cmd-bot-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 99px; }
.cmd-bot-list::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.35); border-radius: 99px; }
.cmd-bot-list::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.6); }
.cmd-bot-wrap { position: relative; }
.cmd-bot-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 4px; height: 36px; background: linear-gradient(to top, rgba(10,10,14,0.9), transparent); pointer-events: none; border-radius: 0 0 14px 14px; }
.cmd-bot-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.02); border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.2s; cursor: pointer; }
.cmd-bot-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(139,92,246,0.25); transform: translateX(4px); }
.cmd-bot-avatar { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.av-vl     { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.av-sec    { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.av-cg     { background: linear-gradient(135deg, #ec4899, #be185d); }
.av-custom { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.av-nexus  { background: linear-gradient(135deg, #f97316, #ea580c); }
.cmd-bot-meta { flex: 1; min-width: 0; }
.cmd-bot-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.cmd-bot-desc { font-size: 12px; color: rgba(255,255,255,0.4); }
.cmd-bot-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon-cmd { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: transparent; color: rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s; font-size: 13px; }
.btn-icon-cmd:hover { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.4); color: #a78bfa; transform: rotate(90deg); }

/* Bulk Bar */
.cmd-bulk { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.05); }
.btn-bulk-cmd { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.25s; }
.btn-bulk-cmd:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-bulk-purple { background: rgba(139,92,246,0.15) !important; border-color: rgba(139,92,246,0.3) !important; color: #a78bfa !important; }
.btn-bulk-purple:hover { box-shadow: 0 0 20px rgba(139,92,246,0.25) !important; }
.btn-bulk-green  { background: rgba(16,185,129,0.12) !important; border-color: rgba(16,185,129,0.3) !important; color: #34d399 !important; }
.btn-bulk-green:hover { box-shadow: 0 0 20px rgba(16,185,129,0.2) !important; }
.btn-bulk-red    { background: rgba(239,68,68,0.12) !important; border-color: rgba(239,68,68,0.3) !important; color: #f87171 !important; }

/* Page Header */
.cmd-page-header { margin-bottom: 6px; }
.cmd-page-header h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; background: linear-gradient(135deg, #fff, #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* =======================================================
   GLOBAL CARD BORDERS AND HOVER GLOW EFFECTS
   ======================================================= */
/* Bento Cards and other cards (with left borders) */
.auv2-bento-item,
.cb-grid-card,
.cb-module-card,
.tickets-sidebar-card,
.tickets-chat-card,
.us-v3-card,
.us-v3-plan-card,
.cg-pb-plan-card-v4,
.user-profile-card.v2,
.user-profile-card.v3 {
    border-left: 3px solid var(--accent-purple, #9b6dff) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease,
                border-left-color 0.3s ease !important;
}

.auv2-bento-item:hover,
.cb-grid-card:hover,
.cb-module-card:hover,
.tickets-sidebar-card:hover,
.tickets-chat-card:hover,
.us-v3-card:hover,
.us-v3-plan-card:hover,
.cg-pb-plan-card-v4:hover,
.user-profile-card.v2:hover,
.user-profile-card.v3:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                0 0 25px rgba(155, 109, 255, 0.3) !important;
}

/* User Overview Cards - NO left border (Side), only Top Stripe */
.uov2-card {
    border-left: none !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease !important;
}

/* Glow matches the status stripe color on hover */
.uov2-card:hover {
    transform: translateY(-4px) !important;
}
/* Online -> Glow Emerald */
.uov2-card:hover:has(.stripe-on),
.uov2-card:hover.online {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.45) !important;
}
/* Offline / Gekündigt / Gesperrt -> Glow Rose/Red */
.uov2-card:hover:has(.stripe-off),
.uov2-card:hover.offline,
.uov2-card:hover:has(.stripe-suspended),
.uov2-card:hover.suspended {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 63, 94, 0.45) !important;
}
/* Expired -> Glow Amber */
.uov2-card:hover:has(.stripe-expired),
.uov2-card:hover.expired {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(251, 191, 36, 0.45) !important;
}

/* =======================================================
   GLOBAL ANIMATED BACK BUTTON (.modern-back-btn)
   ======================================================= */
.modern-back-btn {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 6px 16px 6px 6px !important;
    margin-bottom: 24px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
}
.modern-back-btn .icon-wrap {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    color: #a78bfa !important;
}
.modern-back-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 15px rgba(168, 85, 247, 0.1) !important;
    transform: translateX(-4px) !important;
}
.modern-back-btn:hover .icon-wrap {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    transform: scale(1.05) !important;
}
