/**
 * 🎀 KIRBY BOT - ULTRA MODERN THEME v4.0
 * Mobile-First Responsive Design System
 * Beautiful Kawaii Kirby Theme
 */

/* ================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ================================ */
: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);

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

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

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

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

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

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

/* ================================
   GRADIENT TEXT
   ================================ */
.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-base);
    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-base);
    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);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: var(--kirby-pink);
    border: 2px solid var(--kirby-pink);
}

.btn-ghost:hover {
    background: var(--kirby-pink);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-discord {
    background: #5865F2;
    color: white;
}

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

/* ================================
   INPUTS & FORMS
   ================================ */
.input-group {
    margin-bottom: var(--space-lg);
}

.input-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input, input[type="text"], input[type="email"], input[type="password"], 
input[type="number"], input[type="url"], textarea, select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    -webkit-appearance: none;
}

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

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

textarea {
    resize: vertical;
    min-height: 120px;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff6bb5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

/* ================================
   BADGES
   ================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--gradient-success); color: white; }
.badge-warning { background: var(--gradient-warning); color: white; }
.badge-danger { background: var(--gradient-danger); color: white; }
.badge-info { background: var(--gradient-accent); color: white; }
.badge-premium { 
    background: var(--gradient-secondary); 
    color: white; 
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}
.badge-gold {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* ================================
   STATS CARDS
   ================================ */
.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--kirby-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.stat-value {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    background: var(--kirby-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-sm);
    font-weight: 600;
}

/* ================================
   PROGRESS BAR
   ================================ */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--kirby-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-shimmer);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ================================
   LOADING SPINNER
   ================================ */
.spinner, .loader {
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner::before, .spinner::after,
.loader::before, .loader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.spinner::before, .loader::before {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--kirby-pink);
    border-right-color: var(--kirby-pink-light);
    animation: spin 1s linear infinite;
}

.spinner::after, .loader::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 4px solid transparent;
    border-bottom-color: var(--kirby-magenta);
    animation: spin 0.8s linear infinite reverse;
}

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

/* ================================
   MODAL
   ================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-md);
}

.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: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(30px);
    transition: all var(--transition-bounce);
}

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

/* ================================
   NAVIGATION
   ================================ */
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

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

.nav-item.active {
    background: var(--kirby-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 181, 0.4);
}

.nav-item .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: transform var(--transition-base);
}

.nav-item:hover .icon {
    transform: scale(1.2);
}

/* ================================
   SIDEBAR (Mobile-first)
   ================================ */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, rgba(15, 15, 28, 0.98) 0%, rgba(10, 10, 18, 0.99) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition-base);
}

/* ================================
   FLOATING ELEMENTS
   ================================ */
.fab {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    background: var(--kirby-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 1000;
    border: none;
    color: white;
    font-size: 24px;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
}

/* ================================
   TOAST NOTIFICATIONS
   ================================ */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    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);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform var(--transition-bounce);
    z-index: 10000;
    max-width: 350px;
}

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

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

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

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

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

/* ================================
   GRID SYSTEM
   ================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.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); }

/* ================================
   UTILITY CLASSES
   ================================ */
.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); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.glow { box-shadow: var(--shadow-glow); }
.blur-bg { backdrop-filter: blur(20px); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

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

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

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

.animate-fadeIn { animation: fadeIn var(--transition-slow) ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.animate-slideIn { animation: slideIn 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; }

/* ================================
   RESPONSIVE - MOBILE FIRST
   ================================ */

/* Small devices (landscape phones) */
@media (max-width: 576px) {
    :root {
        --space-lg: 20px;
        --space-xl: 24px;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .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;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        bottom: var(--space-md);
        right: var(--space-md);
    }
    
    .toast {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
        max-width: none;
    }
}

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

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

/* Mobile menu utilities */
@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-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    body::before {
        display: none;
    }
    
    .sidebar, .fab, .toast, .modal-overlay {
        display: none !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 to main content link */
.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;
}

/* ================================
   SPECIAL KIRBY ELEMENTS
   ================================ */

/* Star decorations */
.star-decoration {
    position: absolute;
    font-size: 12px;
    color: var(--kirby-pink-light);
    opacity: 0.6;
    animation: twinkle 3s ease-in-out infinite;
    pointer-events: none;
}

/* Kirby floating elements */
.kirby-float {
    animation: float 4s ease-in-out infinite;
}

/* Premium glow effect */
.premium-glow {
    box-shadow: 
        0 0 20px rgba(167, 139, 250, 0.3),
        0 0 40px rgba(167, 139, 250, 0.2),
        0 0 60px rgba(167, 139, 250, 0.1);
}

/* Status indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-indicator.offline {
    background: var(--text-muted);
}

.status-indicator.busy {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

/* Ripple animation for status */
.status-indicator.online::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

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

/* Feature cards with icons */
.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-base);
    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);
    transition: transform var(--transition-base);
}

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