/* ============================================
   FunDonate - Modern Dark Theme
   Inspired by CloudDonate design
   ============================================ */

:root {
    /* Core Colors */
    --bg-primary: #0d0d12;
    --bg-secondary: #13131a;
    --bg-card: #1a1a24;
    --bg-card-hover: #1f1f2a;
    
    /* Accent Colors */
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    --accent-orange: #ff9500;
    --accent-orange-gradient: linear-gradient(135deg, #ff9500 0%, #ffb347 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    /* Border & Effects */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 212, 170, 0.4);
    --glow-primary: rgba(0, 212, 170, 0.15);
    --glow-orange: rgba(255, 149, 0, 0.15);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--glow-primary);
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.gradient-text {
    background: var(--accent-orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-primary);
}

/* ============================================
   Navbar
   ============================================ */

.navbar-custom {
    background: rgba(13, 13, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.875rem 0;
    transition: all 0.3s ease;
    z-index: 1050;
}

.navbar-custom.scrolled {
    background: rgba(13, 13, 18, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    border-radius: 10px;
    object-fit: cover;
}

.navbar-brand .brand-text {
    background: var(--accent-orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--accent-primary) !important;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary-custom {
    background: var(--accent-primary);
    color: #000;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: var(--accent-secondary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-primary);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-orange {
    background: var(--accent-orange-gradient);
    color: #000;
    font-weight: 600;
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-orange);
    color: #000;
}

.btn-outline-custom {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: none;
}

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

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: var(--error);
    border-color: var(--error);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ============================================
   Cards
   ============================================ */

.card-base {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-base:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.08);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.negative {
    color: var(--error);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 212, 170, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 149, 0, 0.05), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.hero-stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Hero Visual Cards */
.hero-visual {
    position: relative;
    height: 480px;
}

.visual-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.visual-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.card-1 {
    top: 60px;
    left: 0;
    right: 0;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 220px;
    left: 0;
    width: 48%;
    animation: float 6s ease-in-out infinite 1s;
}

.card-3 {
    top: 220px;
    right: 0;
    width: 48%;
    animation: float 6s ease-in-out infinite 2s;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--success);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    position: relative;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1), transparent);
    border-radius: 50%;
}

.cta-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.cta-visual {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    min-width: 180px;
}

.cta-stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.cta-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */

.footer-custom {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-custom h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Forms
   ============================================ */

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
    outline: none;
}

/* Select dropdown options styling */
.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-select option:hover,
.form-select option:focus {
    background: rgba(0, 212, 170, 0.1);
    color: var(--text-primary);
}

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

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

/* ============================================
   Tables
   ============================================ */

.table {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table thead th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1rem;
}

.table tbody td {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success, .bg-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--success) !important;
}

.badge-warning, .bg-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--warning) !important;
}

.badge-error, .bg-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--error) !important;
}

.badge-info, .bg-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--info) !important;
}

.badge-primary, .bg-primary {
    background: rgba(0, 212, 170, 0.15) !important;
    color: var(--accent-primary) !important;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid;
    font-size: 0.9375rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--text-primary);
}

/* ============================================
   Modals
   ============================================ */

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
}

.modal-backdrop.show {
    opacity: 0.8;
    background: #000;
}

/* Исправление для Bootstrap модальных окон */
.modal .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.modal .btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal .btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: var(--error);
    border-color: var(--error);
}

.modal .btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.modal .btn-warning:hover {
    background: rgba(245, 158, 11, 0.25);
    color: var(--warning);
    border-color: var(--warning);
}

/* ============================================
   Dropdown
   ============================================ */

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.dropdown-item:active {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-primary);
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.5rem 0;
}

/* ============================================
   Products
   ============================================ */

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.product-image:hover {
    opacity: 0.85;
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-name:hover {
    color: var(--accent-primary);
}

.product-category {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.price-stars {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* Category Filters */
.category-filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.category-filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
}

/* ============================================
   Sidebar (Store Dashboard)
   ============================================ */

.store-sidebar {
    position: fixed;
    top: 76px;
    left: 0;
    width: 260px;
    height: calc(100vh - 76px);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.store-sidebar .store-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

.store-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.store-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transform: translateX(4px);
}

.store-sidebar .nav-link.active {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-primary);
}

.store-sidebar .nav-link i {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

.hamburger-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-primary);
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 20px var(--glow-primary);
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    transform: scale(1.05);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
    max-width: calc(100vw - 260px);
}

/* ============================================
   Server Status
   ============================================ */

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.server-status-badge[data-status="online"] {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.server-status-badge[data-status="offline"] {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.server-status-badge[data-status="unknown"] {
    background: rgba(107, 107, 123, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ============================================
   Social Links
   ============================================ */

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-icon-link:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--border-hover);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ============================================
   Quantity Controls
   ============================================ */

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: var(--border-hover);
    background: rgba(0, 212, 170, 0.1);
}

.quantity-input {
    width: 80px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange);
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ============================================
   Utilities
   ============================================ */

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent-primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-error { color: var(--error) !important; }

.bg-card { background: var(--bg-card) !important; }
.bg-secondary { background: var(--bg-secondary) !important; }

.border-subtle { border-color: var(--border-color) !important; }

.rounded-lg { border-radius: 12px !important; }
.rounded-xl { border-radius: 16px !important; }
.rounded-2xl { border-radius: 20px !important; }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 380px;
        margin-top: 3rem;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }
    
    .cta-actions {
        align-items: center;
    }
    
    .cta-visual {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-stat {
        width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* Create Store Button - Mobile */
    .create-store-btn .btn-text {
        display: none;
    }
    
    .create-store-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .create-store-btn i {
        margin: 0;
        font-size: 1.25rem;
    }
    
    /* Mobile Navigation Alignment */
    .navbar-collapse .navbar-nav {
        align-items: stretch !important;
        text-align: center;
    }
    
    .navbar-collapse .nav-item {
        display: flex;
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Auth pages hamburger menu buttons alignment */
    .navbar-collapse > div {
        width: 100%;
    }
    
    .navbar-collapse .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .navbar-collapse .d-flex {
        width: 100%;
    }
    
    .navbar-collapse .gap-2 {
        gap: 0.75rem !important;
    }
    
    .navbar-collapse .mt-3 {
        margin-top: 1rem !important;
    }
    
    .navbar-collapse .btn-ghost,
    .navbar-collapse .btn-primary-custom {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Кнопка "Создать" на 4px ниже кнопки "Войти" в гамбургер-меню */
    .navbar-collapse .btn-primary-custom {
        margin-top: 4px !important;
    }
    
    .navbar-collapse .navbar-nav {
        align-items: stretch !important;
        text-align: center;
    }
    
    .navbar-collapse .nav-item {
        display: flex;
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .navbar-collapse .nav-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .navbar-collapse .btn {
        width: auto;
        justify-content: center;
        text-align: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 5rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stat-item .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    /* Sidebar Mobile */
    .store-sidebar {
        top: 0;
        height: 100vh;
        padding-top: 100px;
        transform: translateX(-100%);
    }
    
    .store-sidebar.mobile-visible {
        transform: translateX(0);
    }
    
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 1001;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 1rem;
        max-width: 100vw;
        padding-bottom: 100px; /* Добавляем отступ снизу для гамбургера */
    }
    
    /* Cards Mobile - исправляем сжатие карточек */
    .stat-card {
        padding: 1.25rem;
        min-height: auto;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
        min-height: auto;
    }
    
    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
    
    /* Исправляем сетку карточек статистики */
    .row.g-3 {
        margin: 0 -0.5rem;
    }
    
    .row.g-3 > [class*="col-"] {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Исправляем отображение карточек в 2 колонки */
    .col-6.col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Tables Mobile */
    .table-responsive {
        font-size: 0.8125rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
    }
    
    /* Products Mobile */
    .product-image {
        height: 160px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    /* Modal Mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 16px;
    }
    
    /* Footer Mobile */
    .footer-custom {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   Public Store Theme Overrides
   ============================================ */

/* Theme color variable for stores */
.public-store {
    --theme-color: var(--accent-primary);
}

.public-store .btn-primary-custom {
    background: var(--theme-color);
}

.public-store .product-price {
    color: var(--theme-color);
}

.public-store .category-filter-btn.active {
    background: var(--theme-color);
    border-color: var(--theme-color);
}

/* Light theme for stores with cover image */
.light-theme {
    background: #f8f9fa !important;
}

.light-theme .navbar-custom {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.light-theme .navbar-brand {
    color: #1a1a2e !important;
}

.light-theme .content-section {
    background: #f8f9fa;
    padding: 3rem 0 5rem;
}

.light-theme .stat-card,
.light-theme .product-card,
.light-theme .feature-card {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
}

.light-theme .stat-card:hover,
.light-theme .product-card:hover,
.light-theme .feature-card:hover {
    border-color: var(--theme-color) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme h5,
.light-theme .product-name {
    color: #1a1a2e !important;
}

.light-theme p,
.light-theme span,
.light-theme .text-secondary {
    color: #6b7280 !important;
}

.light-theme .category-filter-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1a1a2e;
}

.light-theme .category-filter-btn.active {
    background: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: #fff !important;
}

.light-theme .btn-outline-custom {
    border-color: #e5e7eb;
    color: #1a1a2e;
}

.light-theme .btn-outline-custom:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.light-theme .footer-custom {
    background: #fff !important;
    border-top: 1px solid #e5e7eb;
}

/* Cover image styles */
.cover-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* ============================================
   Checkout Page Styles
   ============================================ */

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.checkout-product {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.checkout-product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.checkout-product-details {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.checkout-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

/* Payment method selector */
.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.payment-method-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.payment-method-btn.active {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.payment-method-btn i {
    font-size: 1.25rem;
}

/* ============================================
   Cart Page Styles
   ============================================ */

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: var(--border-hover);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.03);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--accent-orange);
    font-weight: 600;
}

.cart-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: var(--error);
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-summary-total .price {
    color: var(--accent-orange);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================
   Loading States
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, 
        var(--bg-card) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

/* ============================================
   Selection
   ============================================ */

::selection {
    background: rgba(0, 212, 170, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 212, 170, 0.3);
    color: var(--text-primary);
}


/* ============================================
   Admin Dashboard Styles
   ============================================ */

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.admin-stat {
    text-align: center;
    padding: 1.5rem;
}

.admin-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.admin-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Finance Pages
   ============================================ */

.finance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.finance-balance {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.finance-balance-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.finance-balance-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   Store Settings Pages
   ============================================ */

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    font-weight: 500;
}

.settings-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Toggle Switch */
.form-switch .form-check-input {
    width: 48px;
    height: 24px;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
}

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

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

/* Form Check Label Spacing */
.form-check-label {
    margin-left: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.form-switch .form-check-label {
    margin-left: 1rem;
}

/* Form Check Description Alignment */
.form-check + .text-secondary,
.form-check + small {
    margin-left: 3.75rem;
    margin-top: 0.25rem;
    display: block;
}

.form-switch + .text-secondary,
.form-switch + small {
    margin-left: 4rem;
}

/* ============================================
   Color Theme Selector
   ============================================ */

.color-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.color-theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-theme-option:hover {
    border-color: var(--border-hover);
}

.color-theme-option.active {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 170, 0.05);
}

.color-theme-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.color-theme-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   Image Upload
   ============================================ */

.image-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-zone:hover {
    border-color: var(--border-hover);
    background: rgba(0, 212, 170, 0.02);
}

.image-upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 170, 0.05);
}

.image-upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.image-upload-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 1rem;
    display: none;
}

.image-preview.show {
    display: block;
}

/* ============================================
   List Groups
   ============================================ */

.list-group-item-custom {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.list-group-item-custom:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    gap: 0.25rem;
}

.page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.page-item.active .page-link {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
}

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

/* ============================================
   Tooltips
   ============================================ */

.tooltip-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--border-color);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--border-color);
}

/* ============================================
   Toasts / Notifications
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
}

.toast-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
}

.toast-custom.success {
    border-left: 4px solid var(--success);
}

.toast-custom.error {
    border-left: 4px solid var(--error);
}

.toast-custom.warning {
    border-left: 4px solid var(--warning);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
}

/* ============================================
   Copy Button
   ============================================ */

.copy-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

/* ============================================
   Code Blocks
   ============================================ */

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    position: relative;
}

.code-block code {
    color: var(--text-primary);
}

.code-block .copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* ============================================
   hCaptcha Responsive Styles
   ============================================ */

.h-captcha {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: visible;
}

/* Mobile hCaptcha fix */
@media (max-width: 768px) {
    .h-captcha {
        transform: scale(0.85);
        transform-origin: center center;
        margin: 1rem 0;
    }
    
    .h-captcha > div {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .h-captcha {
        transform: scale(0.77);
        transform-origin: center center;
        margin: 1.5rem 0;
    }
}

@media (max-width: 400px) {
    .h-captcha {
        transform: scale(0.65);
        transform-origin: center center;
        margin: 2rem 0;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar-custom,
    .store-sidebar,
    .hamburger-btn,
    .footer-custom {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .stat-card,
    .feature-card,
    .product-card {
        border: 1px solid #ddd !important;
        background: #fff !important;
    }
}

/* ============================================
   Floating Cart
   ============================================ */

.floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out;
}

.floating-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    color: #000;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.5rem;
}

.floating-cart-btn:hover {
    background: var(--accent-secondary);
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.4);
}

.floating-cart-btn:active {
    transform: translateY(0) scale(0.95);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    animation: pulse 2s ease-in-out infinite;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    font-weight: 500;
    font-size: 0.9375rem;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

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

/* Mobile adjustments for floating cart */
@media (max-width: 768px) {
    .floating-cart {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cart-btn {
        width: 56px;
        height: 56px;
        font-size: 1.375rem;
    }
    
    .cart-badge {
        top: -6px;
        right: -6px;
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
        min-width: 18px;
        height: 18px;
    }
    
    .cart-notification {
        top: 80px;
        right: 20px;
        left: 20px;
        max-width: none;
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
    }
}
        right: -6px;
        font-size: 0.6875rem;
        padding: 0.2rem 0.4rem;
        min-width: 18px;
        height: 18px;
    }
}

/* Ensure floating cart doesn't interfere with hamburger menu */
@media (max-width: 768px) {
    .hamburger-btn {
        bottom: 90px; /* Move hamburger above floating cart */
    }
}

/* ============================================
   Cart Page Mobile Styles
   ============================================ */

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
        align-self: flex-start;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: 0; /* Allow text to wrap */
    }
    
    .cart-item-name {
        font-size: 0.9rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cart-item-price {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .quantity-control {
        gap: 0.5rem;
        justify-content: flex-start;
        margin-top: 0.75rem;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .quantity-input {
        width: 60px;
        font-size: 1rem;
        padding: 0.25rem;
    }
    
    .cart-item-remove {
        align-self: flex-start;
        margin-top: 0.5rem;
        padding: 0.5rem;
        font-size: 1.125rem;
    }
    
    /* Улучшенные стили для кнопок корзины на планшетах */
    .cart-actions {
        gap: 1.5rem;
    }
    
    .cart-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .cart-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-name {
        font-size: 0.85rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .quantity-control {
        gap: 0.375rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .quantity-input {
        width: 50px;
        font-size: 0.9rem;
    }
    
    /* Улучшенная компоновка для очень маленьких экранов */
    .cart-actions {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch !important;
        padding-top: 1.5rem;
    }
    
    .cart-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
    }
}

/* ============================================
   404 Page Mobile Fix
   ============================================ */

/* Исправление позиции картинки на странице 404 для мобильной версии */
@media (max-width: 768px) {
    .hero-section img[src="/kartinka.jpg"] {
        margin-left: -10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 576px) {
    .hero-section img[src="/kartinka.jpg"] {
        margin-left: -15px;
        max-width: calc(100% - 30px);
    }
}

@media (max-width: 400px) {
    .hero-section img[src="/kartinka.jpg"] {
        margin-left: -20px;
        max-width: calc(100% - 40px);
    }
}