/* Google Fonts - must be first */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   WYP Store - Premium Light UI Design System 2025
   Purple Gradient / Premium Marketplace Style
   ============================================ */

/* === Design Tokens === */
:root {
    /* Primary Colors - Premium Purple */
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #7C4DFF;
    --primary-600: #6d28d9;
    --primary-700: #5b21b6;
    --primary-800: #4c1d95;
    --primary-900: #3b0764;
    
    /* Accent Purple for Gradients */
    --accent-purple: #7C4DFF;
    --accent-violet: #9333ea;
    --accent-indigo: #6366f1;
    --accent-pink: #ec4899;
    
    /* Success - Emerald */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-200: #a7f3d0;
    --success-300: #6ee7b7;
    --success-400: #34d399;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;
    
    /* Warning - Amber */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    
    /* Danger - Rose */
    --danger-50: #fff1f2;
    --danger-100: #ffe4e6;
    --danger-200: #fecdd3;
    --danger-400: #fb7185;
    --danger-500: #f43f5e;
    --danger-600: #e11d48;
    
    /* Neutrals - Cool Gray with Purple Tint */
    --slate-50: #faf8ff;
    --slate-100: #f4f2f7;
    --slate-200: #e8e5ef;
    --slate-300: #d1cde0;
    --slate-400: #9f99b2;
    --slate-500: #6b6580;
    --slate-600: #504b60;
    --slate-700: #3d3950;
    --slate-800: #2a2740;
    --slate-900: #1a1730;
    
    /* Semantic Colors - Light Purple Theme */
    --bg-primary: linear-gradient(135deg, #faf8ff 0%, #f0ecf9 50%, #ebe6f5 100%);
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f6fc;
    --bg-page: linear-gradient(180deg, #faf8ff 0%, #f5f2fa 100%);
    --text-primary: #1a1730;
    --text-secondary: #504b60;
    --text-tertiary: #6b6580;
    --text-muted: #9f99b2;
    --border-color: #e8e5ef;
    --border-light: #f4f2f7;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius - Premium Rounded */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows - Soft Purple Glow */
    --shadow-xs: 0 1px 2px 0 rgba(124, 77, 255, 0.03);
    --shadow-sm: 0 2px 8px -2px rgba(124, 77, 255, 0.08), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px -4px rgba(124, 77, 255, 0.12), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px -8px rgba(124, 77, 255, 0.15), 0 4px 12px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px -12px rgba(124, 77, 255, 0.2), 0 8px 16px -8px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 32px 64px -16px rgba(124, 77, 255, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(124, 77, 255, 0.04);
    
    /* Card Shadows - Premium */
    --shadow-card: 0 2px 12px -4px rgba(124, 77, 255, 0.08), 0 1px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 16px 48px -12px rgba(124, 77, 255, 0.2), 0 8px 24px -8px rgba(0, 0, 0, 0.08);
    
    /* Purple Glow Effects */
    --glow-purple: 0 0 30px rgba(124, 77, 255, 0.15);
    --glow-purple-strong: 0 0 60px rgba(124, 77, 255, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
    --gradient-primary-soft: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    --gradient-hero: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e9e3ff 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Base Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    height: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(180deg, #faf8ff 0%, #f4f1fa 50%, #efe9f5 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Sticky Footer - контент занимает всё свободное пространство */
body > .navbar,
body > nav {
    flex-shrink: 0;
}

body > .container,
body > .container-fluid,
body > .container.mt-4,
body > .container-fluid.mt-4,
body > main,
body > .main-content {
    flex: 1 0 auto;
}

/* Добавляем padding-bottom для контента */
.container.mt-4 {
    padding-bottom: var(--space-8);
}

/* Subtle background pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(124, 77, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(147, 51, 234, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-3xl); font-weight: var(--font-bold); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

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

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--primary-700); }

/* === Layout === */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: var(--space-6) 0;
    padding-top: 4.5rem; /* отступ под фиксированную шапку */
}

/* Container override */
.container {
    max-width: 1320px;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* Unified page spacing */
.page-container,
.main-content > .container {
    max-width: 1200px;
    margin-top: var(--space-6);
    margin-bottom: var(--space-8);
}

@media (max-width: 767.98px) {
    .page-container,
    .main-content > .container {
        margin-top: var(--space-4);
        margin-bottom: var(--space-6);
    }
}

.section,
.page-section {
    margin-bottom: var(--space-6);
}

.section-lg {
    margin-bottom: var(--space-8);
}

/* === Navigation - Premium Light with Purple Accent === */
.navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.95) 100%);
    border-bottom: 1px solid rgba(124, 77, 255, 0.08);
    padding: var(--space-3) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(124, 77, 255, 0.04);
}

.install-promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: linear-gradient(135deg, #6d28d9 0%, #7c4dff 55%, #8b5cf6 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 26px rgba(76, 29, 149, 0.35);
}

.install-promo-content {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 8px 0;
}

.install-promo-main {
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    min-width: 0;
    flex: 1;
}

.install-promo-logo {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.install-promo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.install-promo-text strong {
    font-size: 0.9rem;
    color: #fff;
}

.install-promo-text small {
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.install-promo-action {
    white-space: nowrap;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    font-weight: 600 !important;
}

.install-promo-action:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #fff !important;
}

.install-promo-close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.install-promo-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

body.install-promo-visible .navbar {
    top: 64px;
}

body.install-promo-visible .main-content {
    padding-top: calc(4.5rem + 64px);
}

.navbar-brand {
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    color: var(--primary-500) !important;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.navbar-brand i {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover {
    color: var(--primary-600) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link:hover {
    color: var(--primary-600) !important;
    background: rgba(124, 77, 255, 0.08);
}

.nav-link.active {
    color: var(--primary-600) !important;
    background: rgba(124, 77, 255, 0.1);
}

/* Navbar Search - Enhanced */
.navbar-search {
    position: relative;
}

.navbar-search .form-control {
    padding: var(--space-3) var(--space-4);
    padding-left: 2.75rem;
    background: rgba(124, 77, 255, 0.06);
    border: 1px solid rgba(124, 77, 255, 0.12);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    width: 240px;
    height: 44px;
    transition: all var(--transition-base);
}

.navbar-search .form-control::placeholder {
    color: var(--slate-400);
}

.navbar-search .form-control:focus {
    background: var(--bg-primary);
    border-color: var(--primary-300);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.1);
    width: 300px;
}

.navbar-search .search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-400);
    pointer-events: none;
    font-size: 0.9rem;
}

/* Cart Badge */
.cart-badge {
    position: relative;
}

.cart-badge .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
    background: var(--danger-500);
    border: 2px solid var(--bg-secondary);
}

/* Dropdown - Premium Style */
.dropdown-menu {
    border: 1px solid rgba(124, 77, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    margin-top: var(--space-2);
    min-width: 200px;
    animation: dropdownFade 0.2s ease-out;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    backdrop-filter: blur(20px);
}

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

.dropdown-item {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: all var(--transition-fast);
}

.dropdown-item i {
    width: 18px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(124, 77, 255, 0.08);
    color: var(--primary-600);
}

.dropdown-item:hover i {
    color: var(--primary-500);
    transform: scale(1.1);
}

.dropdown-item.text-danger:hover {
    background: var(--danger-50);
    color: var(--danger-600);
}

.dropdown-item.text-danger:hover i {
    color: var(--danger-500);
}

.dropdown-divider {
    margin: var(--space-2) 0;
    border-color: rgba(124, 77, 255, 0.08);
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    background: var(--slate-100);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* === Sidebar - Premium Light with Purple Accents === */
.sidebar-wrapper {
    position: sticky;
    top: 80px;
}

/* Sidebar Overlay (mobile) - Enhanced with blur */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 10, 30, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Sidebar Close Button - Enhanced */
.sidebar-close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(124, 77, 255, 0.1);
    border-radius: var(--radius-xl);
    color: var(--accent-purple);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.sidebar-close:hover,
.sidebar-close:active {
    background: var(--accent-purple);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}

.sidebar-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(124, 77, 255, 0.08);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Sidebar Header - Enhanced Profile Block */
.sidebar-header {
    padding: var(--space-6) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.06) 0%, rgba(147, 51, 234, 0.03) 100%);
    position: relative;
}

/* Gradient divider under header */
.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-5);
    right: var(--space-5);
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(124, 77, 255, 0.3) 20%,
        rgba(147, 51, 234, 0.4) 50%,
        rgba(124, 77, 255, 0.3) 80%,
        transparent 100%
    );
}

/* Avatar - Larger and more prominent */
.sidebar-header-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 
        0 4px 16px -2px rgba(124, 77, 255, 0.5),
        0 0 0 3px rgba(124, 77, 255, 0.1);
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-header:hover .sidebar-header-icon {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px -2px rgba(124, 77, 255, 0.6),
        0 0 0 4px rgba(124, 77, 255, 0.15);
}

/* Name - Bolder */
.sidebar-header-text h5 {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Subtitle - Lighter */
.sidebar-header-text span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    opacity: 0.8;
}

/* Menu - More padding */
.sidebar-menu {
    padding: var(--space-4);
}

/* Menu Links - Enhanced with more space */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-4);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    margin-bottom: var(--space-2);
    overflow: hidden;
}

/* Icons - Unified style */
.sidebar-link i {
    width: 22px;
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Hover State - Enhanced */
.sidebar-link:hover {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(147, 51, 234, 0.04) 100%);
    color: var(--primary-600);
    transform: translateX(2px);
}

.sidebar-link:hover i {
    color: var(--primary-500);
    transform: scale(1.1);
}

/* Active State - Premium with glow */
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%);
    color: var(--primary-600);
    font-weight: var(--font-semibold);
    box-shadow: 
        0 2px 8px rgba(124, 77, 255, 0.15),
        inset 0 0 20px rgba(124, 77, 255, 0.05);
}

/* Active indicator - Animated glow bar */
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #7C4DFF 0%, #9333ea 100%);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    box-shadow: 
        2px 0 12px rgba(124, 77, 255, 0.5),
        4px 0 20px rgba(147, 51, 234, 0.3);
    animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
    0%, 100% {
        box-shadow: 
            2px 0 12px rgba(124, 77, 255, 0.5),
            4px 0 20px rgba(147, 51, 234, 0.3);
    }
    50% {
        box-shadow: 
            2px 0 16px rgba(124, 77, 255, 0.7),
            6px 0 24px rgba(147, 51, 234, 0.4);
    }
}

.sidebar-link.active i {
    color: var(--primary-500);
    transform: scale(1.05);
}

.sidebar-link {
    position: relative;
}
.sidebar-badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    color: #fff;
    background: var(--primary-500, #7c4dff);
    border-radius: 999px;
}
.sidebar-link.active .sidebar-badge {
    background: var(--primary-700, #5e35b1);
}

/* Ripple effect on tap */
.sidebar-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.sidebar-link:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0s;
}

/* Mobile Sidebar Toggle */
.sidebar-toggle-mobile {
    display: none;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-xl);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.sidebar-toggle-mobile:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-md);
}

.sidebar-toggle-mobile .toggle-icon {
    transition: transform var(--transition-base);
    color: var(--accent-purple);
}

.sidebar-toggle-mobile[aria-expanded="true"] .toggle-icon {
    transform: rotate(90deg);
}

/* === Cards - Premium Elevated with Glass Effect === */
.card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.08);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(124, 77, 255, 0.15);
    transform: translateY(-2px);
}

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

.card-header {
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.02) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 {
    margin: 0;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-header h5 i {
    color: var(--primary-500);
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    background: linear-gradient(180deg, var(--slate-50) 0%, rgba(124, 77, 255, 0.02) 100%);
    border-top: 1px solid var(--border-light);
    padding: var(--space-4) var(--space-5);
}

/* === Stat Cards - Premium Dashboard === */
.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-color, var(--primary-500)), rgba(124, 77, 255, 0.3));
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* Декоративный элемент отключен */

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 77, 255, 0.15);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    position: relative;
    z-index: 1;
}

.stat-card-icon.primary {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%);
    color: var(--primary-600);
}

.stat-card-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success-600);
}

.stat-card-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: var(--warning-600);
}

.stat-card-icon.danger {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(225, 29, 72, 0.1) 100%);
    color: var(--danger-600);
}

.stat-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-card-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-1);
}

.stat-card-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-card-change {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.stat-card-change.positive {
    color: var(--success-600);
}

.stat-card-change.negative {
    color: var(--danger-500);
}

/* === Buttons - Premium Gradient Style === */
.btn {
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-xl);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
    cursor: pointer;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.2);
}

/* Primary Button - Purple Gradient */
.btn-primary {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
    color: white;
    box-shadow: 0 4px 15px -3px rgba(124, 77, 255, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8B5CF6 0%, #a855f7 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(124, 77, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.5);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    box-shadow: 0 4px 15px -3px rgba(244, 63, 94, 0.4);
}

.btn-danger:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(244, 63, 94, 0.5);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px -3px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(245, 158, 11, 0.5);
}

/* Outline Primary - Clean Purple Border */
.btn-outline-primary {
    background: rgba(124, 77, 255, 0.04);
    color: var(--primary-500);
    border: 2px solid rgba(124, 77, 255, 0.3);
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.5);
    color: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px -3px rgba(124, 77, 255, 0.2);
}

/* Outline Secondary */
.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--slate-100);
    border-color: var(--slate-300);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover {
    background: rgba(124, 77, 255, 0.08);
    color: var(--primary-600);
}

/* Size Variants */
.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    border-radius: var(--radius-lg);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-2xl);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-xl);
}

.btn-icon.sm {
    width: 32px;
    height: 32px;
    font-size: var(--text-xs);
}

/* === Rating Input - Interactive Stars === */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: var(--space-1);
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input .star-label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--slate-300);
    transition: all 0.15s ease;
}

.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label,
.rating-input input[type="radio"]:checked ~ .star-label {
    color: #fbbf24;
    transform: scale(1.1);
}

.rating-input .star-label:active {
    transform: scale(0.95);
}

/* Review Card Styles */
.review-item {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    margin-bottom: var(--space-2);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item:hover {
    border-color: rgba(124, 77, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.review-author {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.review-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.review-text {
    margin-top: var(--space-2);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Forms - Premium Clean === */
.form-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-control,
.form-select {
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(124, 77, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.1);
    outline: none;
    background: #ffffff;
}

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

.form-control-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
}

.form-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.form-check-input:checked {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.15);
}

.input-group {
    border-radius: var(--radius-xl);
}

.input-group .form-control {
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.input-group .btn {
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

/* === Badges - Premium Status Indicators === */
.badge {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.badge i {
    font-size: 0.65rem;
}

.badge.bg-primary {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%) !important;
    color: var(--primary-600);
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.badge.bg-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%) !important;
    color: var(--success-600);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.bg-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%) !important;
    color: var(--warning-600);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.bg-danger {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(225, 29, 72, 0.1) 100%) !important;
    color: var(--danger-600);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge.bg-secondary {
    background: rgba(124, 77, 255, 0.06) !important;
    color: var(--slate-600);
    border: 1px solid rgba(124, 77, 255, 0.1);
}

.badge.bg-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.1) 100%) !important;
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Status Badge with Animated Dot */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: currentColor;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
    color: var(--warning-600);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: var(--success-600);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.danger {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(225, 29, 72, 0.08) 100%);
    color: var(--danger-500);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.status-badge.processing {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12) 0%, rgba(147, 51, 234, 0.08) 100%);
    color: var(--primary-600);
    border: 1px solid rgba(124, 77, 255, 0.2);
}

/* === Alerts - Premium Friendly === */
.alert {
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    font-size: var(--text-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.alert-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-xs);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.04) 100%);
    color: var(--success-700);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert-success::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.alert-success .alert-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(225, 29, 72, 0.04) 100%);
    color: var(--danger-600);
    border: 1px solid rgba(244, 63, 94, 0.15);
}

.alert-danger::before {
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
}

.alert-danger .alert-icon {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
    color: var(--warning-700);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.alert-warning::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.alert-warning .alert-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(147, 51, 234, 0.04) 100%);
    color: var(--primary-700);
    border: 1px solid rgba(124, 77, 255, 0.15);
}

.alert-info::before {
    background: linear-gradient(180deg, #7C4DFF 0%, #9333ea 100%);
}

.alert-info .alert-icon {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
    color: white;
}

/* Alert content wrapper - prevents flex issues with mixed content */
.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-content .tax-calculation {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* === Product Cards - Premium E-commerce === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.product-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.06);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), transparent, rgba(147, 51, 234, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px rgba(124, 77, 255, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(124, 77, 255, 0.2);
}

/* Кнопка "В корзину" подсвечивается при hover карточки */
.product-card:hover .add-to-cart {
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.35);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--slate-100) 0%, rgba(124, 77, 255, 0.05) 100%);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slate-100) 0%, rgba(124, 77, 255, 0.08) 100%);
    color: var(--slate-400);
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 2;
}

/* Бейдж бонусов - слева вверху, фиолетовый */
.product-bonus-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.35);
    white-space: nowrap;
    z-index: 10;
}

.product-card .card-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
    background: transparent;
}

.product-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(var(--text-sm) * 1.4 * 2);
}

/* Product Meta - менее заметные */
.product-meta {
    display: flex;
    gap: var(--space-3);
    font-size: 0.7rem;
    color: var(--slate-400);
    margin-bottom: var(--space-2);
    opacity: 0.7;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Цена - крупнее и заметнее */
.product-price-block {
    margin-top: auto;
    margin-bottom: var(--space-3);
}

.product-price,
.product-price-new {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-700);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.product-price-old {
    font-size: var(--text-xs);
    color: var(--slate-400);
    text-decoration: line-through;
    margin-left: var(--space-2);
}

.product-card .price-section {
    white-space: nowrap;
}

.product-card .add-to-cart {
    white-space: nowrap;
}

.product-card .card-body {
    padding: var(--space-4);
}

/* Иконка шаринга в углу карточки - всегда видима справа */
.product-share-icon {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(124, 77, 255, 0.15);
    color: var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.product-share-icon:hover {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    transform: scale(1.1);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.35);
}

/* === Filter Card - Отдельный стиль для фильтров === */
.filter-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    border: 1px solid rgba(124, 77, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.08);
}

.filter-header {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-bottom: 1px solid rgba(124, 77, 255, 0.1);
    padding: var(--space-4);
}

.filter-header h5 {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--primary-700);
}

.filter-card .card-body {
    padding: var(--space-4);
}

.filter-card .form-label {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.product-action-btn {
    width: 100%;
    padding: var(--space-3);
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
}

.product-details-btn {
    background: rgba(124, 77, 255, 0.06);
    border: 2px solid rgba(124, 77, 255, 0.2);
    color: var(--primary-600);
}

.product-details-btn:hover {
    background: rgba(124, 77, 255, 0.12);
    border-color: rgba(124, 77, 255, 0.4);
    color: var(--primary-700);
}

.product-secondary-actions {
    display: flex;
    gap: var(--space-2);
}

.product-secondary-actions .btn {
    flex: 1;
    padding: var(--space-2);
    font-size: var(--text-xs);
}

/* === Order Cards - Premium List Style === */
.order-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    transition: all var(--transition-base);
    position: relative;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.2), transparent);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.order-card:hover {
    border-color: rgba(124, 77, 255, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.order-id {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--primary-600);
}

.order-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.order-info {
    display: flex;
    gap: var(--space-6);
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.order-info-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-info-value {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

/* === Bonus Dashboard - Premium Fintech Style === */
.bonus-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.bonus-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.bonus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bonus-card.primary {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 50%, #6d28d9 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 32px rgba(124, 77, 255, 0.3);
}

.bonus-card.primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.bonus-card.primary .bonus-card-label,
.bonus-card.primary .bonus-card-value {
    color: white;
    position: relative;
    z-index: 1;
}

.bonus-card.primary .bonus-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    position: relative;
    z-index: 1;
}

.bonus-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
}

.bonus-card-icon.earned {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success-600);
}

.bonus-card-icon.spent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: var(--warning-600);
}

.bonus-card-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    letter-spacing: -0.02em;
}

.bonus-card-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

/* Transaction List - Premium */
.transaction-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    border-radius: var(--radius-lg);
    margin: var(--space-1) 0;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background: rgba(124, 77, 255, 0.04);
    transform: translateX(4px);
}

.transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-base);
}

.transaction-icon.earned {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success-600);
}

.transaction-icon.spent {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(225, 29, 72, 0.1) 100%);
    color: var(--danger-500);
}

.transaction-icon.withdrawn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: var(--warning-600);
}

.transaction-icon.admin {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%);
    color: var(--primary-600);
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.transaction-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.transaction-meta {
    margin: var(--space-1) 0;
}

.transaction-products {
    margin: var(--space-1) 0;
    color: var(--slate-500);
}

.transaction-promo {
    margin: var(--space-1) 0;
}

.transaction-admin {
    margin: var(--space-1) 0;
}

.bg-purple-soft {
    background: rgba(124, 77, 255, 0.1) !important;
}

.transaction-amount {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-align: right;
}

.transaction-amount.positive {
    color: var(--success-600);
}

.transaction-amount.negative {
    color: var(--danger-500);
}

.transaction-amount.negative::before {
    content: '-';
}

/* === Promo Code - Premium Feature Card === */
.promo-code-display {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 50%, #6d28d9 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(124, 77, 255, 0.35);
}

.promo-code-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 50%);
    animation: promoShine 4s ease-in-out infinite;
}

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

.promo-code-display::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.promo-code-label {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.promo-code-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    font-family: var(--font-mono);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.promo-code-copy {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.promo-code-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* How it Works */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.how-it-works-step {
    text-align: center;
    padding: var(--space-4);
}

.step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-full);
    background: var(--primary-100);
    color: var(--primary-600);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-xl);
    background: var(--slate-100);
    color: var(--primary-500);
    font-size: var(--text-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.step-description {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
}

/* === Cart - Premium Modern Design === */
.cart-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: background var(--transition-fast);
}

.cart-item:hover {
    background: rgba(124, 77, 255, 0.02);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-xl);
    object-fit: cover;
    background: var(--slate-100);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.cart-item-image-placeholder {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.cart-item-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.quantity-btn,
.btn-quantity {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(124, 77, 255, 0.15);
    background: rgba(124, 77, 255, 0.04);
    color: var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
}

.quantity-btn:hover,
.btn-quantity:hover {
    background: rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.3);
    transform: scale(1.05);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 2px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-lg);
    background: rgba(124, 77, 255, 0.03);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    padding: var(--space-2);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.quantity-input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
    outline: none;
}

.cart-item-price {
    text-align: right;
    min-width: 110px;
}

.cart-item-price-current {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--primary-600);
}

.cart-item-price-each {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.cart-item-remove,
.btn-remove-item {
    color: var(--text-muted);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    cursor: pointer;
    font-size: 0.85rem;
}

.cart-item-remove:hover,
.btn-remove-item:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Cart Summary - Premium Gradient Header */
.cart-summary,
.cart-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: sticky;
    top: 100px;
    z-index: 1020;
    box-shadow: var(--shadow-lg);
}

.cart-summary-header {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 50%, #6d28d9 100%);
    color: white;
    padding: var(--space-5) var(--space-5);
    position: relative;
    overflow: hidden;
}

.cart-summary-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cart-summary-header h5 {
    margin: 0;
    font-size: var(--text-base);
    color: white;
    font-weight: var(--font-semibold);
    position: relative;
    z-index: 1;
}

.cart-summary-body {
    padding: var(--space-5);
}

.cart-summary-row,
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
}

.cart-summary-row.total,
.summary-total {
    padding: var(--space-4) 0;
    margin-top: var(--space-3);
    border-top: 2px solid rgba(124, 77, 255, 0.15);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary-row .label,
.summary-label {
    color: var(--text-secondary);
}

.cart-summary-row .value,
.summary-value {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.cart-summary-row.total .value,
.summary-total-value {
    color: var(--primary-600);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.cart-summary-row .free,
.delivery-free {
    color: var(--success-600);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.15), transparent);
    margin: var(--space-3) 0;
}

.delivery-info-badge {
    background: rgba(124, 77, 255, 0.06);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    color: var(--primary-600);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
}

/* Checkout Button - Premium */
.btn-checkout-primary {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
    color: white;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px -3px rgba(124, 77, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.btn-checkout-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(124, 77, 255, 0.5);
    color: white;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: rgba(16, 185, 129, 0.06);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    color: var(--success-600);
}

/* Kaspi Pay Button - красная кнопка оплаты */
.btn-kaspi-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: #E31235;
    color: white !important;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    border: none;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px -3px rgba(227, 18, 53, 0.4);
    width: 100%;
    min-height: 48px;
}
.btn-kaspi-pay:hover {
    background: #c40f2e;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(227, 18, 53, 0.5);
}
@media (max-width: 576px) {
    .btn-kaspi-pay {
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-4);
        min-height: 44px;
    }
}

/* === Tables - Premium Clean === */
.table {
    margin: 0;
}

.table thead th {
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.04) 0%, rgba(124, 77, 255, 0.02) 100%);
    border: none;
    padding: var(--space-4) var(--space-4);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table tbody td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(124, 77, 255, 0.03);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* === Pagination - Premium === */
.pagination {
    gap: var(--space-2);
}

.page-link {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg) !important;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    margin: 0;
    transition: all var(--transition-fast);
    background: #ffffff;
}

.page-link:hover {
    background: rgba(124, 77, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.3);
    color: var(--primary-600);
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.page-item.disabled .page-link {
    background: var(--slate-50);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* === Modal - Premium === */
.modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(124, 77, 255, 0.08);
    padding: var(--space-5);
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.03) 0%, transparent 100%);
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-5);
}

.modal-footer {
    border-top: 1px solid rgba(124, 77, 255, 0.08);
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
    background: rgba(124, 77, 255, 0.02);
}

.btn-close:focus {
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15);
}

/* Ensure tall admin modals scroll on desktop */
@media (min-width: 992px) {
    .modal-dialog.modal-lg.modal-fullscreen-sm-down {
        max-width: 900px;
        margin: var(--space-6) auto;
    }

    .modal-dialog.modal-lg.modal-fullscreen-sm-down .modal-content {
        max-height: calc(100vh - 3rem);
        display: flex;
        flex-direction: column;
    }

    .modal-dialog.modal-lg.modal-fullscreen-sm-down .modal-body {
        overflow-y: auto;
    }
}

/* Модальное окно подтверждения удаления из корзины */
.confirm-remove-modal .modal-content {
    border-radius: var(--radius-2xl);
    overflow: visible;
}
.confirm-remove-modal .confirm-remove-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12) 0%, rgba(220, 53, 69, 0.06) 100%);
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto var(--space-3);
}
.confirm-remove-modal .modal-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}
.confirm-remove-modal .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}
.confirm-remove-modal .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}
.confirm-remove-modal .btn-outline-secondary {
    border-radius: var(--radius-lg);
    font-weight: 500;
}

/* === Footer - Premium Light + Sticky === */
.modern-footer {
    background: linear-gradient(180deg, rgba(250, 248, 255, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-top: 1px solid rgba(124, 77, 255, 0.08);
    padding: var(--space-8) 0;
    margin-top: auto;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.modern-footer p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.modern-footer a {
    color: var(--primary-500);
    transition: color var(--transition-fast);
}

.modern-footer a:hover {
    color: var(--primary-600);
}

/* === Breadcrumb - Premium === */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.breadcrumb-item a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-500);
}

.breadcrumb-item.active {
    color: var(--primary-600);
    font-weight: var(--font-medium);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-300);
}

/* === Page Header - Premium === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(124, 77, 255, 0.08);
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7C4DFF, #9333ea);
    border-radius: var(--radius-full);
}

/* === Empty State - Premium === */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-5);
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    color: var(--primary-400);
    position: relative;
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), transparent);
    z-index: -1;
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* === Loading === */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px;
}

/* === Utilities === */
.text-primary { color: var(--primary-600) !important; }
.text-success { color: var(--success-600) !important; }
.text-danger { color: var(--danger-500) !important; }
.text-warning { color: var(--warning-600) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-light { background: var(--slate-50) !important; }
.bg-primary-light { background: var(--primary-50) !important; }
.bg-success-light { background: var(--success-50) !important; }

/* === Admin Panel === */
body.admin-panel {
    background: var(--slate-100);
}

body.admin-panel .navbar {
    background: var(--slate-900);
    border-bottom: none;
}

body.admin-panel .navbar-brand {
    color: white !important;
}

body.admin-panel .nav-link {
    color: var(--slate-300) !important;
}

body.admin-panel .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

body.admin-panel .dropdown-menu {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
}

body.admin-panel .dropdown-item {
    color: var(--slate-300);
}

body.admin-panel .dropdown-item:hover {
    background: var(--slate-700);
    color: white;
}

body.admin-panel .dropdown-divider {
    border-color: var(--slate-700);
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .sidebar-toggle-mobile {
        display: flex;
    }
    
    /* Sidebar Drawer (mobile) - Wider and premium */
    .sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px; /* +20px wider */
        max-width: 88vw;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-105%); /* Start further for slide effect */
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
        overflow-y: auto;
        overflow-x: hidden;
        padding: var(--space-5);
        padding-top: var(--space-6);
        background: linear-gradient(180deg, #faf8ff 0%, #f4f1fa 100%);
        box-shadow: none;
        will-change: transform;
    }
    
    .sidebar-wrapper.open {
        transform: translateX(0);
        box-shadow: 
            20px 0 60px -10px rgba(124, 77, 255, 0.15),
            4px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Swipe hint indicator */
    .sidebar-wrapper::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 6px;
        width: 4px;
        height: 40px;
        background: rgba(124, 77, 255, 0.2);
        border-radius: var(--radius-full);
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-wrapper.open::after {
        opacity: 1;
    }
    
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }
    
    .sidebar-overlay.active {
        pointer-events: auto;
    }
    
    .sidebar-wrapper .sidebar-card {
        margin-top: var(--space-5);
        border: none;
        box-shadow: 
            0 4px 24px -4px rgba(124, 77, 255, 0.12),
            0 8px 32px -8px rgba(0, 0, 0, 0.08);
    }
    
    /* Enhanced menu spacing on mobile */
    .sidebar-wrapper .sidebar-menu {
        padding: var(--space-4) var(--space-3);
    }
    
    .sidebar-wrapper .sidebar-link {
        padding: var(--space-4) var(--space-5);
        margin-bottom: var(--space-2);
    }
    
    /* Larger profile on mobile */
    .sidebar-wrapper .sidebar-header {
        padding: var(--space-6);
    }
    
    .sidebar-wrapper .sidebar-header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }
    
    .sidebar-wrapper .sidebar-header-text h5 {
        font-size: 1.0625rem;
    }
    
    /* Mobile navbar - полностью фиолетовая шапка с отступом для APK */
    .navbar-account-mobile {
        background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%) !important;
        border-bottom: none !important;
        box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3) !important;
        padding-top: calc(var(--space-3) + env(safe-area-inset-top, 0px)) !important;
        padding-left: calc(var(--space-4) + env(safe-area-inset-left, 0px)) !important;
        padding-right: calc(var(--space-4) + env(safe-area-inset-right, 0px)) !important;
        padding-bottom: var(--space-3) !important;
    }
    
    .navbar-account-mobile .navbar-brand {
        color: #fff !important;
        font-size: 1.25rem !important;
    }
    
    .navbar-account-mobile .navbar-brand i {
        -webkit-text-fill-color: #fff;
        color: #fff;
    }
    
    .navbar-account-mobile .navbar-mobile-icons .nav-link {
        color: #fff !important;
    }
    
    .navbar-account-mobile .navbar-mobile-icons .nav-link:hover {
        color: rgba(255,255,255,0.9) !important;
    }
    
    .navbar-account-mobile .navbar-mobile-icons .dropdown-toggle::after {
        border-top-color: #fff;
    }
    
    .navbar-account-mobile .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        position: relative;
    }
    
    .navbar-account-mobile .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar-account-mobile .navbar-mobile-icons {
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Mobile navbar icons */
    .navbar-mobile-icons {
        display: flex !important;
        gap: var(--space-1);
    }
    
    .navbar-mobile-icons .nav-link {
        padding: var(--space-2);
        color: var(--text-secondary);
    }
    
    .navbar-mobile-icons .dropdown-menu {
        position: absolute;
        right: 0;
        min-width: 200px;
    }
    
    .bonus-overview {
        grid-template-columns: 1fr;
    }
    
    .how-it-works {
        grid-template-columns: 1fr;
    }
    
    .navbar-collapse {
        background: var(--bg-secondary);
        padding: var(--space-4);
        margin-top: var(--space-3);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 767.98px) {
    :root {
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
        --text-xl: 1.125rem;
    }
    
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    /* Product Grid - 2 columns on phones/tablets */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
    
    .product-title {
        font-size: var(--text-xs);
        min-height: calc(var(--text-xs) * 1.4 * 2);
    }
    
    .product-price {
        font-size: var(--text-base);
    }
    
    .product-meta {
        display: none;
    }
    
    .product-secondary-actions {
        display: none;
    }
    
    /* Cart Mobile */
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-details {
        order: 1;
        width: calc(100% - 96px);
    }
    
    .cart-item-quantity {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-top: var(--space-3);
    }
    
    .cart-item-price {
        order: 2;
    }
    
    .cart-item-remove {
        order: 4;
    }
    
    /* Order Cards Mobile */
    .order-info {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    /* Stat Cards Mobile */
    .stat-card {
        flex-direction: row;
        align-items: center;
        gap: var(--space-4);
    }
    
    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
    
    .stat-card-value {
        font-size: var(--text-xl);
    }
    
    /* Table Responsive */
    .table-responsive-card .table {
        display: block;
    }
    
    .table-responsive-card .table thead {
        display: none;
    }
    
    .table-responsive-card .table tbody tr {
        display: block;
        padding: var(--space-4);
        border-bottom: 1px solid var(--border-color);
    }
    
    .table-responsive-card .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: var(--space-2) 0;
        border: none;
    }
    
    .table-responsive-card .table tbody td::before {
        content: attr(data-label);
        font-weight: var(--font-medium);
        color: var(--text-muted);
    }
}

@media (max-width: 767.98px) {
    .install-promo-logo {
        display: none;
    }

    .install-promo-content {
        min-height: 52px;
        gap: 0.5rem;
        padding: 7px 0;
    }

    .install-promo-logo {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .install-promo-text strong {
        font-size: 0.84rem;
    }

    .install-promo-text small {
        font-size: 0.73rem;
    }

    .install-promo-action {
        padding: 0.2rem 0.55rem;
        font-size: 0.75rem;
    }

    .install-promo-close {
        width: 24px;
        height: 24px;
    }

    body.install-promo-visible .navbar {
        top: 52px;
    }

    body.install-promo-visible .main-content {
        padding-top: calc(4.5rem + 52px);
    }

}

@media (max-width: 575.98px) {
    .products-grid {
        gap: var(--space-2);
    }
    
    .product-card .card-body {
        padding: var(--space-3);
    }
    
    .product-image-wrapper {
        aspect-ratio: 3 / 4;
    }
    
    .product-action-btn {
        padding: var(--space-2);
        font-size: var(--text-xs);
    }
    
    .bonus-card {
        padding: var(--space-4);
    }
    
    .bonus-card-value {
        font-size: var(--text-xl);
    }
    
    .promo-code-value {
        font-size: var(--text-xl);
    }
    
    .modal-dialog {
        margin: var(--space-2);
    }
    
    /* === Mobile Specific Fixes === */
    
    /* Page titles */
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.25rem; }
    h3, .h3 { font-size: 1.125rem; }
    h4, .h4 { font-size: 1rem; }
    h5, .h5 { font-size: 0.9rem; }
    
    /* Buttons on mobile */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group > .btn {
        width: 100%;
        margin-left: 0 !important;
        border-radius: var(--radius-lg) !important;
        margin-bottom: var(--space-2);
    }
    
    .btn-group > .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile Sidebar - Extra small screens */
    .sidebar-wrapper {
        width: 290px;
        max-width: 90vw;
        padding: var(--space-4);
    }
    
    .sidebar-wrapper .sidebar-header {
        padding: var(--space-5);
    }
    
    .sidebar-wrapper .sidebar-header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .sidebar-wrapper .sidebar-link {
        padding: var(--space-3) var(--space-4);
    }
    
    .sidebar-close {
        width: 36px;
        height: 36px;
        top: var(--space-4);
        right: var(--space-4);
    }
    
    /* Cards on mobile */
    .card {
        border-radius: var(--radius-xl);
    }
    
    .card-header {
        padding: var(--space-3) var(--space-4);
    }
    
    .card-header h5 {
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    /* Forms on mobile */
    .row > .col-md-6,
    .row > .col-md-4,
    .row > .col-md-8 {
        margin-bottom: var(--space-3);
    }
    
    .form-label {
        font-size: var(--text-sm);
        margin-bottom: var(--space-1);
    }
    
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--space-3);
    }
    
    /* Input groups */
    .input-group {
        flex-wrap: nowrap;
    }
    
    .input-group .form-control {
        min-width: 0;
    }
    
    .input-group .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Breadcrumbs */
    .breadcrumb {
        font-size: var(--text-xs);
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-2);
    }
    
    .breadcrumb-item {
        flex-shrink: 0;
    }
    
    /* Alerts */
    .alert {
        padding: var(--space-3);
        font-size: var(--text-sm);
    }
    
    /* Tables */
    .table {
        font-size: var(--text-sm);
    }
    
    .table th, .table td {
        padding: var(--space-2) var(--space-3);
    }
    
    /* Order summary card */
    .cart-summary-header {
        padding: var(--space-3) var(--space-4);
    }
    
    /* Row with gap on mobile */
    .row.g-4 {
        --bs-gutter-x: var(--space-3);
        --bs-gutter-y: var(--space-3);
    }
    
    /* Checkout page specific */
    .col-md-8, .col-md-4, .col-md-6, .col-lg-8, .col-lg-4 {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }
    
    /* Order summary card sticky on desktop */
    .order-1 .card {
        position: static;
    }
    
    /* Payment options */
    .form-check {
        padding: var(--space-3);
        background: var(--bg-secondary);
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-2);
    }
    
    .form-check-label {
        font-size: var(--text-sm);
    }
    
    /* Small text */
    .form-text, small, .text-muted {
        font-size: var(--text-xs);
    }
    
    /* Flex utilities on mobile */
    .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    /* Container padding */
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .mt-4 {
        margin-top: var(--space-4) !important;
    }
    
    /* Sidebar toggle button */
    .sidebar-toggle-mobile {
        margin-bottom: var(--space-3);
        padding: var(--space-3);
    }
    
    /* Navbar mobile */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-mobile-icons .nav-link {
        padding: var(--space-2);
    }
    
    .navbar-mobile-icons .badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* === Scrollbar - Premium Purple === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(124, 77, 255, 0.04);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.3) 0%, rgba(147, 51, 234, 0.2) 100%);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(124, 77, 255, 0.5) 0%, rgba(147, 51, 234, 0.4) 100%);
}

/* === Selection - Purple === */
::selection {
    background: rgba(124, 77, 255, 0.2);
    color: var(--primary-900);
}

/* === Focus Visible === */
*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* === Cart Page Specific === */
.cart-items-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.08);
    overflow: hidden;
}

.cart-items-card .card-header {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(124, 77, 255, 0.08);
}

.cart-item-modern {
    transition: all var(--transition-base);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    margin: var(--space-3);
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.06);
    border: 1px solid rgba(124, 77, 255, 0.08);
}

.cart-item-modern:hover {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.03) 0%, rgba(147, 51, 234, 0.02) 100%);
    box-shadow: 0 4px 16px rgba(124, 77, 255, 0.12);
    border-color: rgba(124, 77, 255, 0.15);
    transform: translateY(-2px);
}

.cart-item-modern:last-child {
    margin-bottom: var(--space-3);
}

.cart-item-image-wrapper {
    position: relative;
}

.cart-item-image-wrapper .cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(124, 77, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    transition: all var(--transition-base);
}

.cart-item-modern:hover .cart-item-image {
    border-color: rgba(124, 77, 255, 0.25);
    transform: scale(1.02);
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.cart-item-image-wrapper .cart-item-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--slate-100) 0%, rgba(124, 77, 255, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
}

.cart-item-info {
    padding-left: var(--space-3);
}

/* Cart Category Badge */
.cart-category-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(147, 51, 234, 0.08) 100%);
    color: var(--primary-600);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-medium);
    margin-bottom: var(--space-2);
    border: 1px solid rgba(124, 77, 255, 0.15);
}

.cart-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
}

.cart-item-total {
    padding-top: var(--space-2);
    border-top: 1px solid rgba(124, 77, 255, 0.08);
}

.btn-quantity-minus,
.btn-quantity-plus {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.3);
    font-size: 0.75rem;
}

.btn-quantity-minus:hover,
.btn-quantity-plus:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}

.btn-quantity-minus:active,
.btn-quantity-plus:active {
    transform: scale(0.95);
}

/* === How It Works Steps === */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.how-it-works-step {
    text-align: center;
    padding: var(--space-5);
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid rgba(124, 77, 255, 0.08);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.how-it-works-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 44px;
    height: 44px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%);
    color: var(--primary-600);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
    color: var(--primary-500);
    font-size: var(--text-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.step-description {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* === Additional Premium Utilities === */
.text-primary { color: var(--primary-500) !important; }
.text-gradient {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #7C4DFF 0%, #9333ea 100%);
}

.bg-gradient-soft {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(147, 51, 234, 0.04) 100%);
}

.border-primary-soft {
    border-color: rgba(124, 77, 255, 0.15) !important;
}

.shadow-purple {
    box-shadow: 0 8px 30px rgba(124, 77, 255, 0.15);
}

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* === Avatar Selection === */
.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary-200);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.2);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
    padding: var(--space-2);
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-base);
    overflow: hidden;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option:hover {
    border-color: var(--primary-300);
    transform: scale(1.1);
}

.avatar-option.active {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.3);
}

/* Sidebar Avatar */
.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-300);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.2);
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-avatar {
    position: relative;
}

.sidebar-avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--primary-500);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sidebar-avatar-badge i {
    font-size: 10px;
}

/* === Print === */
@media print {
    .navbar, .sidebar-wrapper, .modern-footer {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =========================================================
   WYP HEADER COMPACT BEAUTY PATCH
   Date: 2026-06-03
   Purpose: make customer header smaller, cleaner and softer.
   Safe scope: does not target admin panel header.
========================================================= */

:root {
    --wyp-header-banner-height: 46px;
    --wyp-header-navbar-height: 64px;
    --wyp-header-purple: #7c3aed;
    --wyp-header-purple-dark: #6d28d9;
    --wyp-header-purple-soft: rgba(124, 58, 237, 0.10);
    --wyp-header-border: rgba(124, 58, 237, 0.12);
}

/* Softer page background under fixed header */
body:not(.admin-panel) {
    background:
        radial-gradient(circle at 12% 6%, rgba(124, 58, 237, 0.08), transparent 34%),
        radial-gradient(circle at 82% 14%, rgba(216, 70, 239, 0.055), transparent 30%),
        linear-gradient(180deg, #fbfaff 0%, #f7f3ff 42%, #f4eefc 100%) !important;
}

/* Top purple install banner: compact and elegant */
body:not(.admin-panel) .install-promo-banner {
    min-height: var(--wyp-header-banner-height) !important;
    background: linear-gradient(90deg, #6d28d9 0%, #7c3aed 52%, #a855f7 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 10px 24px rgba(76, 29, 149, 0.18) !important;
}

body:not(.admin-panel) .install-promo-content {
    min-height: var(--wyp-header-banner-height) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    gap: 10px !important;
}

body:not(.admin-panel) .install-promo-main {
    gap: 10px !important;
}

body:not(.admin-panel) .install-promo-logo {
    width: 28px !important;
    height: 28px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

body:not(.admin-panel) .install-promo-logo i {
    font-size: 13px !important;
}

body:not(.admin-panel) .install-promo-text {
    line-height: 1.05 !important;
}

body:not(.admin-panel) .install-promo-text strong {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}

body:not(.admin-panel) .install-promo-text small {
    font-size: 11.5px !important;
    line-height: 1.1 !important;
    opacity: 0.9 !important;
}

body:not(.admin-panel) .install-promo-action {
    min-height: 30px !important;
    padding: 5px 16px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    background: rgba(255, 255, 255, 0.16) !important;
    box-shadow: none !important;
}

/* Main header: smaller glass panel */
body:not(.admin-panel) .navbar {
    min-height: var(--wyp-header-navbar-height) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background: rgba(255, 255, 255, 0.84) !important;
    backdrop-filter: blur(18px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
    border-bottom: 1px solid var(--wyp-header-border) !important;
    box-shadow: 0 8px 28px rgba(88, 28, 135, 0.07) !important;
}

body:not(.admin-panel).install-promo-visible .navbar,
body.install-promo-visible:not(.admin-panel) .navbar {
    top: var(--wyp-header-banner-height) !important;
}

body:not(.admin-panel) .navbar > .container {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

/* Correct content offset for compact fixed header */
body:not(.admin-panel) .main-content {
    padding-top: calc(var(--wyp-header-navbar-height) + 18px) !important;
}

body.install-promo-visible:not(.admin-panel) .main-content {
    padding-top: calc(var(--wyp-header-banner-height) + var(--wyp-header-navbar-height) + 18px) !important;
}

/* Brand */
body:not(.admin-panel) .navbar-brand {
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: var(--wyp-header-purple) !important;
    letter-spacing: -0.04em !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 8px !important;
    text-shadow: 0 10px 28px rgba(124, 58, 237, 0.18) !important;
}

body:not(.admin-panel) .navbar-brand i {
    font-size: 22px !important;
}

/* Menu */
body:not(.admin-panel) .navbar-nav .nav-link,
body:not(.admin-panel) .nav-link {
    min-height: 38px !important;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #343047 !important;
    gap: 7px !important;
}

body:not(.admin-panel) .navbar-nav .nav-link i,
body:not(.admin-panel) .nav-link i {
    font-size: 14px !important;
    color: #6f6687 !important;
}

body:not(.admin-panel) .navbar-nav .nav-link:hover,
body:not(.admin-panel) .nav-link:hover,
body:not(.admin-panel) .navbar-nav .nav-link.active,
body:not(.admin-panel) .nav-link.active {
    color: var(--wyp-header-purple-dark) !important;
    background: rgba(124, 58, 237, 0.09) !important;
    transform: translateY(-1px) !important;
}

body:not(.admin-panel) .navbar-nav .nav-link:hover i,
body:not(.admin-panel) .nav-link:hover i,
body:not(.admin-panel) .navbar-nav .nav-link.active i,
body:not(.admin-panel) .nav-link.active i {
    color: var(--wyp-header-purple) !important;
}

/* Search */
body:not(.admin-panel) .navbar-search {
    position: relative !important;
}

body:not(.admin-panel) .navbar-search .form-control {
    width: 250px !important;
    height: 40px !important;
    border-radius: 999px !important;
    padding: 8px 16px 8px 42px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.76) !important;
    border: 1px solid rgba(124, 58, 237, 0.16) !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.06) !important;
}

body:not(.admin-panel) .navbar-search .form-control:focus {
    width: 285px !important;
    background: #fff !important;
    border-color: rgba(124, 58, 237, 0.42) !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10), 0 10px 28px rgba(124, 58, 237, 0.10) !important;
}

body:not(.admin-panel) .navbar-search .search-icon {
    left: 15px !important;
    font-size: 13px !important;
    color: #8b5cf6 !important;
}

/* Right side round icons */
body:not(.admin-panel) .navbar .notifications-toggle,
body:not(.admin-panel) .navbar .cart-badge,
body:not(.admin-panel) .navbar .dropdown > .nav-link {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(124, 58, 237, 0.12) !important;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.05) !important;
}

body:not(.admin-panel) .cart-badge .badge,
body:not(.admin-panel) .notifications-badge {
    top: -5px !important;
    right: -5px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25) !important;
}

/* Dropdowns look cleaner */
body:not(.admin-panel) .dropdown-menu {
    border: 1px solid rgba(124, 58, 237, 0.13) !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 60px rgba(88, 28, 135, 0.14) !important;
    overflow: hidden !important;
}

body:not(.admin-panel) .dropdown-item {
    font-size: 14px !important;
    font-weight: 650 !important;
    padding: 10px 14px !important;
}

/* Account page side card breathes better under compact header */
body:not(.admin-panel) .sidebar-wrapper,
body:not(.admin-panel) .card,
body:not(.admin-panel) .account-sidebar,
body:not(.admin-panel) .profile-card {
    border-color: rgba(124, 58, 237, 0.10) !important;
}

/* Mobile */
@media (max-width: 991.98px) {
    :root {
        --wyp-header-banner-height: 42px;
        --wyp-header-navbar-height: 58px;
    }

    body:not(.admin-panel) .install-promo-content {
        min-height: var(--wyp-header-banner-height) !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    body:not(.admin-panel) .install-promo-logo {
        width: 25px !important;
        height: 25px !important;
        border-radius: 9px !important;
    }

    body:not(.admin-panel) .install-promo-text strong {
        font-size: 12.5px !important;
    }

    body:not(.admin-panel) .install-promo-text small {
        font-size: 10.5px !important;
    }

    body:not(.admin-panel) .install-promo-action {
        min-height: 28px !important;
        padding: 4px 12px !important;
        font-size: 12px !important;
    }

    body:not(.admin-panel) .navbar {
        min-height: var(--wyp-header-navbar-height) !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    body:not(.admin-panel) .navbar > .container {
        min-height: 44px !important;
    }

    body:not(.admin-panel) .navbar-brand {
        font-size: 21px !important;
    }

    body:not(.admin-panel) .navbar-brand i {
        font-size: 19px !important;
    }

    body:not(.admin-panel) .navbar-mobile-icons .nav-link,
    body:not(.admin-panel) .navbar .cart-badge,
    body:not(.admin-panel) .navbar .dropdown > .nav-link {
        width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    body:not(.admin-panel) .navbar-collapse {
        margin-top: 10px !important;
        padding: 10px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 16px 35px rgba(88, 28, 135, 0.12) !important;
    }
}

/* If you want to hide the purple app banner completely later, uncomment this block:
body:not(.admin-panel) .install-promo-banner { display: none !important; }
body.install-promo-visible:not(.admin-panel) .navbar { top: 0 !important; }
body.install-promo-visible:not(.admin-panel) .main-content { padding-top: calc(var(--wyp-header-navbar-height) + 18px) !important; }
*/

/* ===== WYP HEADER USER ICON OVERLAP FIX ===== */
/* Исправляет блок: уведомления / корзина / пользователь в верхней шапке */
body:not(.admin-panel) .navbar .navbar-nav.align-items-center {
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

body:not(.admin-panel) .navbar .navbar-nav.align-items-center > .nav-item {
    flex: 0 0 auto !important;
}

/* Уведомления и корзина — ровные круглые кнопки */
body:not(.admin-panel) .navbar .navbar-nav.align-items-center .notifications-toggle,
body:not(.admin-panel) .navbar .navbar-nav.align-items-center .cart-badge {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(139, 92, 246, 0.16) !important;
    box-shadow: 0 8px 22px rgba(88, 28, 135, 0.07) !important;
}

body:not(.admin-panel) .navbar .navbar-nav.align-items-center .notifications-toggle i,
body:not(.admin-panel) .navbar .navbar-nav.align-items-center .cart-badge i {
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: #4f4663 !important;
}

/* Красный бейдж корзины/уведомлений не должен залезать на имя */
body:not(.admin-panel) .navbar .navbar-nav.align-items-center .cart-count-badge,
body:not(.admin-panel) .navbar .navbar-nav.align-items-center .notifications-badge {
    position: absolute !important;
    top: -5px !important;
    right: -4px !important;
    transform: none !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    line-height: 18px !important;
    font-weight: 800 !important;
    border: 2px solid #fff !important;
    z-index: 5 !important;
}

/* Профиль пользователя — не круглая кнопка, а нормальная аккуратная плашка */
body:not(.admin-panel) .navbar .navbar-nav.align-items-center > .nav-item.dropdown:last-child > .nav-link.dropdown-toggle {
    width: auto !important;
    min-width: 0 !important;
    max-width: 260px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 12px 4px 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.76) !important;
    border: 1px solid rgba(139, 92, 246, 0.14) !important;
    box-shadow: 0 8px 24px rgba(88, 28, 135, 0.07) !important;
    color: #231b35 !important;
    overflow: hidden !important;
}

body:not(.admin-panel) .navbar .navbar-nav.align-items-center > .nav-item.dropdown:last-child > .nav-link.dropdown-toggle:hover {
    background: rgba(248, 245, 255, 0.96) !important;
    border-color: rgba(139, 92, 246, 0.28) !important;
    color: #6d28d9 !important;
}

/* Сам человечек */
body:not(.admin-panel) .navbar .navbar-nav.align-items-center > .nav-item.dropdown:last-child > .nav-link.dropdown-toggle > i.fa-user-circle {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #7c3aed !important;
    background: linear-gradient(135deg, #f7f1ff, #ede3ff) !important;
    border: 1px solid rgba(124, 58, 237, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

/* Имя пользователя */
body:not(.admin-panel) .navbar .navbar-nav.align-items-center > .nav-item.dropdown:last-child > .nav-link.dropdown-toggle > span {
    display: inline-block !important;
    min-width: 0 !important;
    max-width: 170px !important;
    margin-left: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

body:not(.admin-panel) .navbar .navbar-nav.align-items-center > .nav-item.dropdown:last-child > .nav-link.dropdown-toggle::after {
    flex: 0 0 auto !important;
    margin-left: 2px !important;
    color: #3b334f !important;
}

@media (max-width: 1199.98px) {
    body:not(.admin-panel) .navbar .navbar-search {
        width: 210px !important;
    }

    body:not(.admin-panel) .navbar .navbar-nav.align-items-center > .nav-item.dropdown:last-child > .nav-link.dropdown-toggle > span {
        max-width: 125px !important;
    }
}

@media (max-width: 991.98px) {
    body:not(.admin-panel) .navbar-mobile-icons {
        gap: 8px !important;
    }

    body:not(.admin-panel) .navbar-mobile-icons .cart-badge,
    body:not(.admin-panel) .navbar-mobile-icons .dropdown > .nav-link {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ===== WYP CATALOG STABILITY HOTFIX 2026-06-06 =====
   CSS-only fix. Keeps backend/payment logic untouched.
   Goal: product cards stay equal, long descriptions do not break the catalog.
*/

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(16px, 2vw, 24px) !important;
    align-items: stretch !important;
}

.product-card,
.card.product-card {
    height: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.product-card .card-body {
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-image-wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 240px !important;
    min-height: 180px !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
    background: linear-gradient(135deg, var(--slate-100) 0%, rgba(124, 77, 255, 0.05) 100%) !important;
}

.product-image-wrapper .product-image,
.product-image-wrapper img.product-image,
.product-card .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Titles: 2 lines max */
.product-title,
.product-card .card-title,
.product-card h5,
.product-card h6 {
    min-height: 2.8em !important;
    max-height: 2.8em !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* Description: do not let one product stretch the whole row */
.product-card .product-description,
.product-card .card-text,
.product-card .description,
.product-card .card-body > p:not(.product-price):not(.product-price-new):not(.product-price-old) {
    max-height: 5.1em !important;
    line-height: 1.7 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 12px !important;
    color: var(--text-tertiary) !important;
}

/* Delivery/SKU/weight block stays compact */
.product-meta {
    max-height: 44px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    margin-bottom: 12px !important;
}

/* Price and buttons always stay at the bottom */
.product-price-block,
.product-card .price-section,
.product-card .product-price,
.product-card .product-price-new {
    margin-top: auto !important;
}

.product-actions {
    flex: 0 0 auto !important;
    margin-top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.product-action-btn,
.product-card .add-to-cart,
.product-card .product-details-btn {
    width: 100% !important;
    flex-shrink: 0 !important;
}

/* Account/catalog content should not overflow beside the sidebar */
.main-content .row > [class*="col-"],
.account-content,
.account-page-content {
    min-width: 0 !important;
}

/* Tablet */
@media (max-width: 1199.98px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-image-wrapper {
        max-height: 220px !important;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .product-image-wrapper {
        aspect-ratio: 4 / 3 !important;
        min-height: 160px !important;
        max-height: 210px !important;
    }

    .product-card .product-description,
    .product-card .card-text,
    .product-card .description,
    .product-card .card-body > p:not(.product-price):not(.product-price-new):not(.product-price-old) {
        -webkit-line-clamp: 2 !important;
        max-height: 3.4em !important;
    }

    .product-title,
    .product-card .card-title,
    .product-card h5,
    .product-card h6 {
        min-height: auto !important;
    }
}

/* ===== END WYP CATALOG STABILITY HOTFIX ===== */
