/* ========================================
   КУКИ — ПРЕМИУМ ДИЗАЙН 3.0 🔥
   САМЫЙ КРАСИВЫЙ ДИЗАЙН, КОТОРЫЙ ТЫ ВИДЕЛ
   ======================================== */

/* ===== КОРНЕВЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    /* ===== ОСНОВНЫЕ ЦВЕТА ===== */
    --primary: #6C3B8E;
    --primary-light: #9B59B6;
    --primary-dark: #4A1A6B;
    --secondary: #E84393;
    --secondary-light: #FF6B9D;
    --secondary-dark: #C0392B;
    --accent: #FF6B35;
    --accent-light: #FF8F5E;
    --accent-dark: #E85D2C;
    --success: #2ECC71;
    --success-dark: #27AE60;
    --danger: #E74C3C;
    --danger-dark: #C0392B;
    --warning: #F39C12;
    --warning-dark: #E67E22;
    --info: #3498DB;
    --info-dark: #2980B9;
    
    /* ===== ГРАДИЕНТЫ ===== */
    --gradient-main: linear-gradient(135deg, #6C3B8E 0%, #E84393 40%, #FF6B35 80%, #FFD93D 100%);
    --gradient-secondary: linear-gradient(135deg, #E84393 0%, #FF6B35 100%);
    --gradient-purple: linear-gradient(135deg, #6C3B8E, #9B59B6);
    --gradient-pink: linear-gradient(135deg, #E84393, #FF6B9D);
    --gradient-gold: linear-gradient(135deg, #F39C12, #F1C40F);
    --gradient-green: linear-gradient(135deg, #2ECC71, #27AE60);
    --gradient-red: linear-gradient(135deg, #E74C3C, #C0392B);
    --gradient-blue: linear-gradient(135deg, #3498DB, #2980B9);
    --gradient-rainbow: linear-gradient(135deg, #6C3B8E, #E84393, #FF6B35, #FFD93D, #2ECC71, #3498DB);
    --gradient-neon: linear-gradient(135deg, #E84393, #FF6B35, #FFD93D);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
    --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    
    /* ===== СВЕТЛАЯ ТЕМА ===== */
    --bg-primary: #F0EDF5;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAF8FC;
    --bg-input: #F0ECF4;
    --bg-input-focus: #E8E3EE;
    --bg-dark: #F0EDF5;
    --bg-overlay: rgba(0,0,0,0.05);
    --border-color: #E0D8E8;
    --border-light: #D0C4DC;
    --border-glow: rgba(232,67,147,0.2);
    
    /* ===== ТЕКСТ ===== */
    --text-primary: #1A0D2E;
    --text-secondary: #5A4670;
    --text-muted: #8A7A9A;
    --text-light: #FFFFFF;
    --text-glow: rgba(232,67,147,0.3);
    
    /* ===== ТЕНИ ===== */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(108,59,142,0.06);
    --shadow-md: 0 8px 32px rgba(108,59,142,0.08);
    --shadow-lg: 0 12px 48px rgba(108,59,142,0.12);
    --shadow-xl: 0 20px 60px rgba(108,59,142,0.15);
    --shadow-2xl: 0 30px 80px rgba(108,59,142,0.2);
    --shadow-glow: 0 0 60px rgba(232,67,147,0.15);
    --shadow-neon: 0 0 30px rgba(232,67,147,0.3), 0 0 60px rgba(108,59,142,0.1);
    --shadow-soft: 0 10px 40px rgba(108,59,142,0.06);
    --shadow-card: 0 20px 60px rgba(108,59,142,0.08);
    
    /* ===== РАДИУСЫ ===== */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
    --radius-full: 9999px;
    
    /* ===== АНИМАЦИИ ===== */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* ===== ШРИФТЫ ===== */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;
    
    /* ===== РАЗМЕРЫ ===== */
    --header-height: 72px;
    --footer-height: 400px;
    --max-width: 1440px;
    --container-padding: 24px;
}

/* ===== ТЁМНАЯ ТЕМА ===== */
[data-theme="dark"] {
    --bg-primary: #0A0812;
    --bg-secondary: #12101E;
    --bg-card: #12101E;
    --bg-card-hover: #1A1628;
    --bg-input: #1A1625;
    --bg-input-focus: #221E30;
    --bg-dark: #0A0812;
    --bg-overlay: rgba(255,255,255,0.03);
    --border-color: #2A1A3D;
    --border-light: #3D2A50;
    --border-glow: rgba(232,67,147,0.3);
    
    --text-primary: #FFFFFF;
    --text-secondary: #C4B5D8;
    --text-muted: #7A6B8A;
    --text-light: #FFFFFF;
    --text-glow: rgba(232,67,147,0.4);
    
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-2xl: 0 30px 80px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 60px rgba(232,67,147,0.1);
    --shadow-neon: 0 0 30px rgba(232,67,147,0.2), 0 0 60px rgba(108,59,142,0.05);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-card: 0 20px 60px rgba(0,0,0,0.4);
}

/* ========================================
   RESET
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
    overflow-x: hidden;
}

/* ===== ФОНОВЫЕ ЭФФЕКТЫ ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(108,59,142,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232,67,147,0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255,107,53,0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(108,59,142,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232,67,147,0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255,107,53,0.04) 0%, transparent 40%);
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ===== ВЫДЕЛЕНИЕ ===== */
::selection {
    background: var(--secondary);
    color: white;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    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 fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes spinSlow {
    to { transform: rotate(360deg); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(232,67,147,0.2); }
    50% { box-shadow: 0 0 40px rgba(232,67,147,0.4); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 1; }
}
@keyframes shimmerText {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--secondary), 0 0 82px var(--secondary); }
    50% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px var(--secondary), 0 0 80px var(--secondary), 0 0 120px var(--secondary); }
}
@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes shimmerBorder {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.animate-fade { animation: fadeIn 0.5s ease; }
.animate-fade-up { animation: fadeInUp 0.5s ease; }
.animate-fade-down { animation: fadeInDown 0.5s ease; }
.animate-scale { animation: fadeInScale 0.4s ease; }
.animate-slide-left { animation: slideInLeft 0.4s ease; }
.animate-slide-right { animation: slideInRight 0.4s ease; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 4s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-breathe { animation: breathe 3s ease-in-out infinite; }
.animate-spin-slow { animation: spinSlow 10s linear infinite; }
.animate-gradient { animation: gradientShift 4s ease-in-out infinite; background-size: 200% 200%; }

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}
.text-gradient-2 {
    background: linear-gradient(135deg, #FF6B35, #E84393, #6C3B8E);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 3s ease-in-out infinite;
}
.text-gradient-3 {
    background: linear-gradient(135deg, #6C3B8E, #E84393, #FF6B35, #FFD93D);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 5s ease-in-out infinite;
}

.neon-text {
    color: #fff;
    animation: neonPulse 2s ease-in-out infinite;
}

.glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
}
[data-theme="light"] .glass {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.06);
}
.glass-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-lg);
}
[data-theme="light"] .glass-card {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.04);
}

/* ===== БЛИК НА КАРТОЧКАХ ===== */
.shine {
    position: relative;
    overflow: hidden;
}
.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.04) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: 0.8s;
}
.shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ===== ГРАДИЕНТНАЯ РАМКА ===== */
.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-main);
    border-radius: inherit;
    z-index: -1;
}
.gradient-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-main);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}
.gradient-border:hover::after {
    opacity: 1;
}

/* ========================================
   BUTTONS — НЕВЕРОЯТНО КРАСИВЫЕ
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    user-select: none;
    z-index: 1;
    letter-spacing: 0.3px;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.btn:hover::before {
    opacity: 1;
}
.btn:active {
    transform: scale(0.95);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary */
.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 25px rgba(108,59,142,0.35);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(108,59,142,0.5);
}
.btn-primary:active {
    transform: scale(0.95);
}

/* Secondary */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    border-color: var(--secondary);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--secondary);
    background: rgba(232,67,147,0.08);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Danger */
.btn-danger {
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 25px rgba(231,76,60,0.3);
}
.btn-danger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(231,76,60,0.5);
}

/* Success */
.btn-success {
    background: var(--gradient-green);
    color: white;
    box-shadow: 0 4px 25px rgba(46,204,113,0.3);
}
.btn-success:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(46,204,113,0.5);
}

/* Warning */
.btn-warning {
    background: var(--gradient-gold);
    color: white;
    box-shadow: 0 4px 25px rgba(243,156,18,0.3);
}
.btn-warning:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(243,156,18,0.5);
}

/* Glass */
.btn-glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

/* Sizes */
.btn-xs { padding: 4px 12px; font-size: 11px; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 18px 44px; font-size: 17px; }
.btn-xl { padding: 22px 56px; font-size: 20px; }

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.btn-icon.btn-sm { width: 36px; height: 36px; font-size: 16px; }
.btn-icon.btn-lg { width: 60px; height: 60px; font-size: 28px; }

.btn-pulse {
    animation: pulse 2s ease-in-out infinite;
}
.btn-pulse:hover {
    animation: none;
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}
.btn-glow:hover {
    animation: none;
}

/* ========================================
   HEADER — КРАСИВЫЙ И СТИЛЬНЫЙ
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,8,18,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    height: var(--header-height);
}
[data-theme="light"] .header {
    background: rgba(240,237,245,0.92);
}
.header-scrolled {
    box-shadow: var(--shadow-lg);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
}
.logo::after {
    content: '🍪';
    font-size: 22px;
    background: none;
    color: inherit;
}
.logo:hover {
    transform: scale(1.05);
}

.header-search {
    flex: 1;
    max-width: 540px;
    display: flex;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header-search:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 6px rgba(232,67,147,0.12), var(--shadow-glow);
    transform: scale(1.02);
}
.header-search input {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
}
.header-search input::placeholder {
    color: var(--text-muted);
}
.header-search button {
    padding: 0 28px;
    background: var(--gradient-main);
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}
.header-search button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(108,59,142,0.3);
}
.balance-badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 35px rgba(108,59,142,0.5);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
}
.header-user:hover {
    border-color: var(--secondary);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.header-user .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}
.header-user .name {
    font-size: 14px;
    font-weight: 600;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== ТЕМА-ТОГГЛ (КРАСИВЫЙ) ===== */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    padding: 3px;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(232,67,147,0.2);
}
.theme-toggle .thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-main);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.theme-toggle .thumb .icon {
    transition: var(--transition);
}
.theme-toggle.dark .thumb {
    transform: translateX(24px);
}
.theme-toggle .labels {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    pointer-events: none;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}
.theme-toggle .labels .label-dark,
.theme-toggle .labels .label-light {
    opacity: 0.4;
    transition: var(--transition);
}
.theme-toggle.dark .labels .label-dark {
    opacity: 1;
    color: var(--secondary);
}
.theme-toggle:not(.dark) .labels .label-light {
    opacity: 1;
    color: var(--secondary);
}

/* ========================================
   DROPDOWN
   ======================================== */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    box-shadow: var(--shadow-2xl);
    backdrop-filter: blur(20px);
}
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}
.dropdown-menu a:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}
.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* ========================================
   CARDS — НЕВЕРОЯТНО КРАСИВЫЕ
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}
.card:hover::before {
    opacity: 1;
}
.card:hover {
    border-color: var(--secondary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}
.card-glow {
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-glow:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-glow), 0 0 40px rgba(232,67,147,0.05);
    transform: translateY(-6px);
}
.card-glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
}
.card-shine {
    position: relative;
    overflow: hidden;
}
.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255,255,255,0.03) 50%,
        transparent 80%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: 0.8s;
}
.card-shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ========================================
   FORMS — КРАСИВЫЕ ПОЛЯ ВВОДА
   ======================================== */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.form-group .required {
    color: var(--secondary);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 6px rgba(232,67,147,0.1), var(--shadow-glow);
    background: var(--bg-input-focus);
    transform: scale(1.01);
}
.form-control::placeholder {
    color: var(--text-muted);
}
.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 6px rgba(231,76,60,0.1);
}
.form-control.success {
    border-color: var(--success);
    box-shadow: 0 0 0 6px rgba(46,204,113,0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C4B5D8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}
select.form-control option {
    background: var(--bg-card);
    color: var(--text-primary);
}
textarea.form-control {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.badge-success {
    background: rgba(46,204,113,0.15);
    color: #2ECC71;
}
.badge-warning {
    background: rgba(243,156,18,0.15);
    color: #F39C12;
}
.badge-danger {
    background: rgba(231,76,60,0.15);
    color: #E74C3C;
}
.badge-info {
    background: rgba(52,152,219,0.15);
    color: #3498DB;
}
.badge-purple {
    background: rgba(155,89,182,0.15);
    color: #9B59B6;
}
.badge-pink {
    background: rgba(232,67,147,0.15);
    color: #E84393;
}
.badge-gold {
    background: rgba(243,156,18,0.15);
    color: #F39C12;
}
.badge-gradient {
    background: var(--gradient-main);
    color: white;
}
.badge-glow {
    background: var(--gradient-main);
    color: white;
    animation: glow 2s ease-in-out infinite;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 28px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-2xl);
    z-index: 9999;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 460px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(20px);
    border-left: 4px solid var(--secondary);
}
.notification-success {
    border-left-color: #2ECC71;
}
.notification-error {
    border-left-color: #E74C3C;
}
.notification-info {
    border-left-color: #3498DB;
}
.notification-warning {
    border-left-color: #F39C12;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(80px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ========================================
   LOADING
   ======================================== */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
.loading-spinner-sm {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 20px;
}
.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    animation: bounce 1.4s ease-in-out infinite both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* ========================================
   SKELETON
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
    min-height: 20px;
}

/* ========================================
   GRIDS
   ======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .header-container { flex-wrap: wrap; gap: 12px; }
    .header-search { max-width: 100%; order: 3; flex-basis: 100%; }
}
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 16px;
        height: auto;
    }
    .header-search { max-width: 100%; }
    .header-actions { justify-content: space-between; flex-wrap: wrap; }
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .btn { padding: 10px 20px; font-size: 13px; }
    .btn-lg { padding: 14px 28px; font-size: 14px; }
    .btn-xl { padding: 16px 32px; font-size: 16px; }
    .header-user .name { display: none; }
    .logo { font-size: 22px; }
    .balance-badge { font-size: 12px; padding: 6px 14px; }
    .notification { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
@media (max-width: 480px) {
    .header-container { padding: 6px 12px; }
    .logo { font-size: 20px; }
    .btn-sm { padding: 4px 12px; font-size: 11px; }
    .form-control { padding: 12px 16px; font-size: 14px; }
    .card { padding: 20px; }
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   ======================================== */

/* ===== ПАРТИКЛЫ ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatParticle 20s infinite linear;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ===== НЕОН-ЭФФЕКТ ===== */
.neon-box {
    position: relative;
}
.neon-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-main);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
    transition: var(--transition);
}
.neon-box:hover::before {
    opacity: 1;
    filter: blur(30px);
}

/* ===== ГРАДИЕНТНЫЙ БОРДЕР ===== */
.gradient-border-box {
    position: relative;
    border-radius: var(--radius-xl);
}
.gradient-border-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-main);
    border-radius: inherit;
    z-index: -1;
    animation: rotateGradient 4s linear infinite;
}

/* ===== ТЕКСТ С ПОДСВЕТКОЙ ===== */
.highlight-text {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* ===== СТЕКЛЯННАЯ КНОПКА ===== */
.btn-glass-premium {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}
.btn-glass-premium:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ===== МИКРО-АНИМАЦИИ ===== */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.hover-scale {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-scale:hover {
    transform: scale(1.05);
}
.hover-glow {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--secondary);
}
.hover-rotate {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-rotate:hover {
    transform: rotate(5deg);
}
.hover-bright {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-bright:hover {
    filter: brightness(1.1);
}

/* ===== ПЛАВНОЕ ПОЯВЛЕНИЕ ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ПУЛЬСИРУЮЩАЯ ТОЧКА ===== */
.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ECC71;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

/* ===== ОГРАНИЧЕНИЕ КОНТЕНТА ===== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== КОНЕЦ ===== */
/* 🍪 КУКИ — САМЫЙ КРАСИВЫЙ ДИЗАЙН В ИСТОРИИ 🔥 */
