/**
 * 🎀 KIRBY BOT - GLOBAL DESIGN SYSTEM v5.0
 * Unified theme, smooth animations, mobile-first responsive
 * By Kirby Bot Team
 */

/* ================================
   CSS CUSTOM PROPERTIES
   ================================ */
:root {
    /* Kirby Colors */
    --kirby-pink: #ff6bb5;
    --kirby-pink-light: #ffb3d9;
    --kirby-pink-dark: #e91e8c;
    --kirby-pink-glow: rgba(255, 107, 181, 0.5);
    --kirby-coral: #ff7eb3;
    --kirby-peach: #ffaec9;
    --kirby-rose: #ff85a2;
    --kirby-magenta: #e040fb;
    --kirby-purple: #a78bfa;
    --kirby-blue: #60a5fa;
    --kirby-cyan: #22d3ee;

    /* Gradients */
    --kirby-gradient: linear-gradient(135deg, #ffb3d9 0%, #ff6bb5 50%, #e91e8c 100%);
    --kirby-gradient-soft: linear-gradient(135deg, #ffb3d9 0%, #ff85a2 100%);
    --kirby-gradient-vivid: linear-gradient(135deg, #ff6bb5 0%, #e040fb 50%, #ff6bb5 100%);
    --kirby-gradient-shine: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    --gradient-primary: linear-gradient(135deg, #ffb3d9 0%, #ff6bb5 50%, #e91e8c 100%);
    --gradient-secondary: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --gradient-success: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-warning: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-danger: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);

    /* Dark Theme */
    --bg-primary: #0d0d1a;
    --bg-secondary: #12121f;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(20, 20, 35, 0.85);
    --bg-card-hover: rgba(30, 30, 50, 0.95);
    --bg-elevated: rgba(35, 35, 55, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-sidebar: linear-gradient(180deg, rgba(15, 15, 30, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-disabled: rgba(255, 255, 255, 0.35);

    /* Status Colors */
    --success: #00e676;
    --warning: #ffab40;
    --danger: #ff5252;
    --info: #40c4ff;

    /* Borders & Shadows */
    --border-color: rgba(255, 107, 181, 0.15);
    --border-glow: rgba(255, 107, 181, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(255, 107, 181, 0.3);
    --shadow-glow-strong: 0 0 50px rgba(255, 107, 181, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Smooth Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Layout */
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
    --navbar-height: 70px;
}

/* Light Theme */
body[data-theme="light"] {
    --bg-primary: #faf5f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fff0f7;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 240, 247, 1);
    --bg-elevated: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    --bg-sidebar: linear-gradient(180deg, rgba(255, 250, 252, 0.98) 0%, rgba(255, 245, 250, 0.99) 100%);

    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.8);
    --text-muted: rgba(26, 26, 46, 0.55);
    --text-disabled: rgba(26, 26, 46, 0.35);

    --border-color: rgba(255, 107, 181, 0.2);
    --glass-border: rgba(255, 107, 181, 0.15);
    --shadow-glow: 0 0 30px rgba(255, 107, 181, 0.15);
    --shadow-glow-strong: 0 0 50px rgba(255, 107, 181, 0.25);
}

/* ================================
   RESET & BASE STYLES
   ================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Nunito', 'Quicksand', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ================================
   ANIMATED BACKGROUND
   ================================ */
.bg-animated,
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(255, 107, 181, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(224, 64, 251, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

body[data-theme="light"]::before,
body[data-theme="light"] .bg-animated {
    background:
        radial-gradient(ellipse at 15% 15%, rgba(255, 107, 181, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(224, 64, 251, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 60%);
}

/* ================================
   STARS BACKGROUND
   ================================ */
.stars-bg,
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    opacity: 0;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.star::before {
    content: '✦';
    font-size: var(--size, 12px);
    color: var(--kirby-pink-light);
    text-shadow: 0 0 10px var(--kirby-pink-glow);
}

/* ================================
   FLOATING DECORATIONS
   ================================ */
.floating-deco,
.floating-decoration {
    position: fixed;
    font-size: 28px;
    opacity: 0.12;
    animation: floatDeco 18s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--kirby-gradient);
    opacity: 0.08;
    animation: floatShape 20s ease-in-out infinite;
}

.shape:nth-child(1) { width: 350px; height: 350px; top: -10%; left: -10%; animation-delay: 0s; }
.shape:nth-child(2) { width: 250px; height: 250px; top: 60%; right: -5%; animation-delay: -5s; }
.shape:nth-child(3) { width: 180px; height: 180px; bottom: -5%; left: 25%; animation-delay: -10s; }

/* ================================
   DASHBOARD LAYOUT
   ================================ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* ================================
   SIDEBAR
   ================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-smooth), width var(--transition-smooth);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 107, 181, 0.08) 0%, transparent 100%);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-base);
}

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

.sidebar-logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(255, 107, 181, 0.3);
    border: 2px solid var(--kirby-pink);
    transition: all var(--transition-base);
}

.sidebar-logo:hover img {
    box-shadow: 0 6px 30px rgba(255, 107, 181, 0.5);
    transform: rotate(-5deg);
}

.sidebar-logo span {
    font-size: 22px;
    font-weight: 800;
    background: var(--kirby-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.sidebar-user {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-glow);
    object-fit: cover;
}

.sidebar-user-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.sidebar-user-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--kirby-gradient);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.nav-item:hover {
    background: rgba(255, 107, 181, 0.1);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: rgba(255, 107, 181, 0.15);
    color: var(--kirby-pink);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item .icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* ================================
   MAIN CONTENT
   ================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--space-xl);
    min-height: 100vh;
    transition: margin-left var(--transition-smooth);
}

.content-header {
    margin-bottom: var(--space-xl);
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    background: var(--kirby-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ================================
   NAVBAR (Public Pages)
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 20px;
    background: rgba(13, 13, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 20px;
    background: rgba(13, 13, 26, 0.95);
}

body[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    border: 2px solid var(--kirby-pink);
    transition: transform var(--transition-base);
}

.nav-logo:hover img {
    transform: rotate(-10deg) scale(1.1);
}

.nav-logo span {
    font-size: 22px;
    font-weight: 800;
    background: var(--kirby-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 107, 181, 0.1);
}

/* ================================
   MOBILE MENU
   ================================ */
.mobile-menu-btn {
    display: none;
    background: var(--kirby-gradient);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(13, 13, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-smooth);
}

.mobile-nav.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

body[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255, 0.98);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--kirby-pink);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--kirby-pink-light);
}

.text-gradient, .gradient-text {
    background: var(--kirby-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ================================
   GLASS CARDS
   ================================ */
.glass-card, .card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before, .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shimmer);
    transition: left var(--transition-slow);
    pointer-events: none;
}

.glass-card:hover::before, .card:hover::before {
    left: 100%;
}

.glass-card:hover, .card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width var(--transition-bounce), height var(--transition-bounce);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--kirby-gradient);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

.btn-secondary {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--kirby-pink);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Discord Button */
.discord-btn {
    background: #5865F2;
    color: white;
    padding: 18px 30px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: all var(--transition-smooth);
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.5);
}

.discord-btn svg {
    width: 26px;
    height: 26px;
}

/* ================================
   FORM ELEMENTS
   ================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--kirby-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 181, 0.2);
    background: var(--bg-glass-hover);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-bounce);
}

input:checked + .toggle-slider {
    background: var(--kirby-gradient);
    border-color: transparent;
}

input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: white;
}

/* ================================
   STATS CARDS
   ================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--kirby-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ================================
   SERVER CARDS
   ================================ */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.server-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: block;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.server-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.server-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--kirby-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

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

.server-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.server-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.server-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--warning); }

.server-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.action-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-base);
}

.action-btn:hover {
    background: rgba(255, 107, 181, 0.1);
    border-color: var(--kirby-pink);
    color: var(--kirby-pink);
    transform: translateY(-2px);
}

/* Add Server Card */
.add-server-card {
    background: var(--bg-glass);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    min-height: 200px;
}

.add-server-card:hover {
    border-color: var(--kirby-pink);
    background: rgba(255, 107, 181, 0.05);
    transform: translateY(-5px);
}

.add-server-card .icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.add-server-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.add-server-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ================================
   FEATURE CARDS
   ================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--kirby-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--border-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ================================
   LOADING STATES
   ================================ */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--kirby-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-lg);
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: bounce 2s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

/* ================================
   MODAL
   ================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-lg);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: rgba(255, 107, 181, 0.1);
    color: var(--kirby-pink);
}

/* ================================
   TOAST NOTIFICATIONS
   ================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.toast {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform var(--transition-bounce);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

/* ================================
   FOOTER
   ================================ */
footer {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: var(--space-2xl) var(--space-lg);
    margin-top: var(--space-3xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--kirby-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--kirby-pink);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatDeco {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(90deg) scale(1.05); }
    50% { transform: translateY(-30px) rotate(180deg) scale(1); }
    75% { transform: translateY(-15px) rotate(270deg) scale(1.02); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

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

@keyframes shine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

/* Animation Classes */
.animate-fadeIn { animation: fadeIn var(--transition-slow) ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.animate-fade-in-down { animation: fadeInDown 0.6s ease-out forwards; opacity: 0; }
.animate-slideIn { animation: slideIn var(--transition-base) ease-out; }
.animate-scaleIn { animation: scaleIn var(--transition-base) ease-out; }
.animate-bounce { animation: bounce 2s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Staggered Animations */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* ================================
   UTILITY CLASSES
   ================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ================================
   RESPONSIVE - MOBILE FIRST
   ================================ */
@media (max-width: 576px) {
    :root {
        --space-lg: 20px;
        --space-xl: 24px;
        --sidebar-width: 100%;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .glass-card, .card {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }

    .modal {
        padding: var(--space-lg);
        border-radius: var(--radius-xl);
        margin: var(--space-sm);
    }

    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .floating-deco {
        font-size: 20px;
    }

    .shape:nth-child(1) { width: 200px; height: 200px; }
    .shape:nth-child(2) { width: 150px; height: 150px; }
    .shape:nth-child(3) { width: 100px; height: 100px; }
}

@media (min-width: 577px) and (max-width: 768px) {
    .grid-cols-3, .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Menu & Sidebar */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    body::before,
    .bg-animated,
    .stars-bg,
    .floating-shapes {
        display: none;
    }

    .sidebar, .mobile-menu-btn, .toast-container, .modal-overlay {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .glass-card, .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--kirby-pink);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--kirby-gradient);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ================================
   SCROLLBAR
   ================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--kirby-pink);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--kirby-pink-dark);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--kirby-pink) var(--bg-secondary);
}
