/* ========================================
   MODERN THEME - VIA24H
   Premium & Professional Design
   Version 3.1.1 — Ultra Modern Overhaul
   ======================================== */

/* ========== Google Fonts Import ========== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors - EXACT match from reference image */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c84e9;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6b46a1 100%);
    --secondary-color: #764ba2;

    /* Accent Colors - Vibrant Orange/Amber */
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

    /* Status Colors - Modern & Vibrant */
    --success-color: #22c55e;
    --success-light: #4ade80;
    --success-dark: #16a34a;
    --success-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);

    --danger-color: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    --warning-color: #f97316;
    --warning-light: #fb923c;
    --warning-dark: #ea580c;
    --warning-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);

    --info-color: #3b82f6;
    --info-light: #60a5fa;
    --info-dark: #2563eb;
    --info-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

    /* Background Colors - Clean & Modern */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;
    --bg-dark-secondary: #334155;
    --bg-dark-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;

    /* Text Colors - High Contrast & Readable */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --text-white: #ffffff;

    /* Price Color - Eye-catching */
    --price-color: #7c3aed;
    --price-sale: #dc2626;

    /* Border & Shadows - Refined */
    --border-color: #e2e8f0;
    --border-color-light: #f1f5f9;
    --border-color-dark: #cbd5e1;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;

    /* Enhanced Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 30px -5px rgba(102, 126, 234, 0.4);
    --shadow-success: 0 10px 30px -5px rgba(34, 197, 94, 0.35);
    --shadow-danger: 0 10px 30px -5px rgba(239, 68, 68, 0.35);
    --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 4px 16px -4px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 24px -4px rgba(0, 0, 0, 0.1), 0 16px 32px -8px rgba(0, 0, 0, 0.1);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);

    /* Transitions - Smooth & Professional */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Font Families */
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Font Sizes - Refined Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1.0625rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
}

/* ========== Base Styles ========== */
body.modern-theme {
    font-family: var(--font-primary);
    background-color: #f0f2f5;
    background-image:
        radial-gradient(at 20% 0%, rgba(102, 126, 234, 0.08) 0, transparent 50%),
        radial-gradient(at 80% 0%, rgba(118, 75, 162, 0.06) 0, transparent 50%),
        radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.04) 0, transparent 50%);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: var(--text-base);
    letter-spacing: var(--tracking-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.modern-theme h1,
.modern-theme h2,
.modern-theme h3,
.modern-theme h4,
.modern-theme h5,
.modern-theme h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    line-height: 1.3;
    color: var(--text-primary);
}

.modern-theme * {
    box-sizing: border-box;
}

/* ========== Top Bar ========== */
.modern-topbar {
    background: var(--bg-dark);
    padding: 8px 0;
    font-size: 13px;
}

.modern-topbar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-right: 20px;
    transition: var(--transition-fast);
}

.modern-topbar a:hover {
    color: var(--text-white);
}

.modern-topbar .topbar-right {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

.modern-topbar .topbar-right a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

/* ========== Main Navigation ========== */
.modern-navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px -28px rgba(15, 23, 42, 0.45) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    padding: 10px 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.modern-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.modern-navbar .navbar-brand img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Logo Gradient Style */
.modern-navbar .logo-gradient {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.modern-navbar .logo-gradient i {
    font-size: 26px;
    color: #1877f2;
    /* Facebook blue */
}

.modern-navbar .logo-gradient span {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(90deg, #f953c6 0%, #b91d73 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0px;
}

.modern-navbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 4px;
    flex-wrap: nowrap;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.modern-navbar .nav-item {
    position: relative;
    flex-shrink: 0;
}

.modern-navbar .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    font-family: var(--font-primary) !important;
    border-radius: 14px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.modern-navbar .nav-link:hover {
    border-color: rgba(102, 126, 234, 0.16) !important;
    color: #4f46e5 !important;
    background: rgba(102, 126, 234, 0.08) !important;
}

.modern-navbar .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px -10px rgba(102, 126, 234, 0.9) !important;
}

.modern-navbar .nav-link i {
    font-size: 13px !important;
    color: inherit !important;
}

/* Navigation - Balance & Actions */
.modern-navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-navbar .balance-display {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: var(--text-white);
    padding: 9px 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 12px 24px -16px rgba(34, 197, 94, 0.8);
    font-family: var(--font-heading);
}

.modern-navbar .btn-admin {
    background: var(--primary-gradient) !important;
    color: var(--text-white) !important;
    padding: 9px 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
    box-shadow: 0 12px 24px -16px rgba(102, 126, 234, 0.9);
    font-family: var(--font-primary);
}

.modern-navbar .btn-admin:hover {
    background: var(--primary-gradient-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -16px rgba(102, 126, 234, 0.95);
    color: var(--text-white) !important;
}

/* Login Button - Outline Style */
.modern-navbar .btn-login {
    padding: 10px 24px;
    border-radius: var(--border-radius-full);
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.modern-navbar .btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

/* Register Button - Gradient Style */
.modern-navbar .btn-register {
    padding: 10px 24px;
    border-radius: var(--border-radius-full);
    border: none;
    background: var(--primary-gradient);
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.modern-navbar .btn-register:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -5px rgba(102, 126, 234, 0.5);
    color: var(--text-white);
}

.modern-navbar .user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.modern-navbar .user-dropdown:hover {
    background: var(--bg-primary);
}

.modern-navbar .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-weight: 700;
}

/* ========== Alert/Notification Box ========== */
.modern-alert {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 20px !important;
    padding: 24px 28px !important;
    margin-bottom: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        0 8px 32px -8px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

.modern-alert.alert-info {
    border-left-color: var(--info-color) !important;
}

.modern-alert .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    flex-shrink: 0;
}

.modern-alert .alert-icon i {
    color: var(--primary-color);
    font-size: 18px;
}

.modern-alert .alert-content {
    flex: 1;
}

.modern-alert .alert-content h4,
.modern-alert .alert-content h5 {
    color: var(--text-primary);
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-heading);
}

.modern-alert .alert-content h4 i,
.modern-alert .alert-content h5 i {
    color: var(--primary-color);
}

.modern-alert .alert-content p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.modern-alert .alert-content p a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.modern-alert .alert-content p a:hover {
    text-decoration: underline;
}

/* ========== Category Tabs ========== */
.modern-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    margin-bottom: 28px;
}

.modern-category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
}

.modern-category-tab:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--primary-color);
    box-shadow: 0 4px 16px -4px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.modern-category-tab.active {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: var(--text-white) !important;
    box-shadow: 0 6px 20px -4px rgba(102, 126, 234, 0.5);
    font-weight: 700;
}

.modern-category-tab i,
.modern-category-tab img {
    font-size: 18px;
    width: 20px;
    height: 20px;
}

/* ========== Category Section Header ========== */
.modern-section-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: var(--text-primary) !important;
    padding: 20px 24px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    font-family: var(--font-heading);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
}

.modern-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 0 0 0;
}

.modern-section-header i {
    font-size: 16px;
    color: #ffffff !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 12px;
    box-shadow: 0 4px 12px -3px rgba(102, 126, 234, 0.4);
}

.modern-section-header img {
    width: 24px;
    height: 24px;
    padding: 7px;
    background: var(--primary-gradient);
    border-radius: 12px;
    box-sizing: content-box;
    box-shadow: 0 4px 12px -3px rgba(102, 126, 234, 0.4);
}

.modern-section-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--text-primary) !important;
    text-transform: uppercase;
}

/* ========== Product Cards ========== */
.modern-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 20px 20px;
    margin-bottom: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: none;
}

.modern-product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
}

.modern-product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px -12px rgba(102, 126, 234, 0.18),
        0 12px 24px -8px rgba(0, 0, 0, 0.06);
    border-color: rgba(102, 126, 234, 0.25);
    background: #ffffff;
}

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

.modern-product-card .product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-product-card .product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.modern-product-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.modern-product-card .badge-stock {
    background: var(--success-gradient);
    color: var(--text-white);
    box-shadow: 0 2px 8px -2px rgba(34, 197, 94, 0.4);
}

.modern-product-card .badge-stock.out-of-stock {
    background: var(--warning-gradient);
    box-shadow: 0 2px 8px -2px rgba(249, 115, 22, 0.4);
}

.modern-product-card .badge-country {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.modern-product-card .badge-country img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.modern-product-card .product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--price-color);
    margin-bottom: 16px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.modern-product-card .product-actions {
    display: flex;
    gap: 10px;
}

.modern-product-card .btn-detail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.modern-product-card .btn-detail:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.modern-product-card .btn-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: var(--border-radius-sm);
    color: var(--text-white) !important;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-primary);
}

.modern-product-card .btn-buy:hover {
    background: var(--primary-gradient-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.5);
    color: var(--text-white) !important;
}

.modern-product-card .btn-buy.sold-out {
    background: var(--warning-gradient) !important;
    cursor: not-allowed;
    box-shadow: var(--shadow-danger);
}

/* ========== Transaction History Cards ========== */
.modern-history-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.modern-history-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.06);
}

.modern-history-card .history-header {
    background: transparent !important;
    color: var(--text-primary) !important;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.modern-history-card .history-header i {
    font-size: 15px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 12px;
    color: #ffffff !important;
    box-shadow: 0 4px 12px -3px rgba(102, 126, 234, 0.4);
}

.modern-history-card .history-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-primary) !important;
}

.modern-history-card .history-body {
    max-height: 350px;
    overflow-y: auto;
}

.modern-history-card .history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.modern-history-card .history-item:hover {
    background: var(--bg-primary);
}

.modern-history-card .history-item:last-child {
    border-bottom: none;
}

.modern-history-card .history-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-history-card .history-info .user-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 12px;
    font-weight: 600;
}

.modern-history-card .history-info .history-text {
    font-size: 13px;
    color: var(--text-primary);
}

.modern-history-card .history-info .history-text strong {
    color: var(--success-color);
}

.modern-history-card .history-info .history-text .amount {
    color: var(--info-color);
    font-weight: 600;
}

.modern-history-card .history-info .history-text .method {
    color: var(--danger-color);
    font-weight: 600;
}

.modern-history-card .time-badge {
    background: var(--info-gradient);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: var(--border-radius-full);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.35);
}

/* ========== Floating Button ========== */
.modern-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary-gradient) !important;
    color: var(--text-white) !important;
    padding: 14px 28px;
    border-radius: var(--border-radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.modern-floating-btn:hover {
    background: var(--primary-gradient-hover) !important;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px -5px rgba(102, 126, 234, 0.5);
    color: var(--text-white) !important;
}

.modern-floating-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.modern-floating-btn i {
    font-size: 16px;
}

/* ========== Sidebar ========== */
.modern-theme .iq-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.modern-theme .iq-sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modern-theme .iq-sidebar .iq-sidebar-menu .iq-menu li a {
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    margin: 4px 12px;
    transition: var(--transition);
}

.modern-theme .iq-sidebar .iq-sidebar-menu .iq-menu li a:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
}

.modern-theme .iq-sidebar .iq-sidebar-menu .iq-menu li.active>a {
    background: var(--primary-gradient);
    color: var(--text-white);
}

/* ========== Buttons ========== */
.modern-theme .btn-primary,
.modern-theme .btn-success,
.modern-theme .btn-danger,
.modern-theme .btn-info,
.modern-theme .btn-warning,
.modern-theme .btn-modern-primary,
.modern-theme .btn-modern-success,
.modern-theme .btn-primary-gradient,
.modern-theme .btn-info-gradient,
.modern-theme .btn-admin,
.modern-theme button.btn-primary,
.modern-theme button.btn-success,
.modern-theme button.btn-danger {
    color: #ffffff !important;
}

.modern-theme .btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.modern-theme .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff !important;
}

.modern-theme .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
}

.modern-theme .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
}

.modern-theme .btn:disabled,
.modern-theme .btn.disabled,
.modern-theme button:disabled,
.modern-theme .btn-modern-primary:disabled,
.modern-theme .btn-modern-success:disabled,
.modern-theme .btn-primary-gradient:disabled,
.modern-theme .btn-info-gradient:disabled {
    color: #ffffff !important;
    opacity: 0.85 !important;
    cursor: not-allowed;
}

.modern-theme .btn:disabled i,
.modern-theme .btn.disabled i,
.modern-theme button:disabled i {
    color: #ffffff !important;
}

/* ========== Cards ========== */
.modern-theme .card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modern-theme .card-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

.modern-theme .card-body {
    padding: 20px;
}

/* ========== Modal ========== */
.modern-theme .modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modern-theme .modal-header {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 16px 20px;
}

.modern-theme .modal-header .close {
    color: var(--text-white);
    opacity: 0.8;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .modern-history-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .modern-navbar .nav-menu {
        display: none;
    }

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

@media (max-width: 768px) {
    .modern-topbar {
        display: none;
    }

    .modern-products-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .modern-product-card {
        padding: 16px;
    }

    .modern-floating-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* ========== Custom Scrollbar ========== */
.modern-theme ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modern-theme ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.modern-theme ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modern-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-theme .fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.modern-theme .pulse {
    animation: pulse 2s infinite;
}

/* ========== Additional Animations ========== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.modern-theme .slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}

.modern-theme .slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.modern-theme .slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

.modern-theme .scale-in {
    animation: scaleIn 0.3s ease forwards;
}

.modern-theme .bounce {
    animation: bounce 1s ease;
}

.modern-theme .shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.modern-theme .glow {
    animation: glow 2s ease infinite;
}

.modern-theme .float {
    animation: float 3s ease-in-out infinite;
}

/* ========== Glassmorphism Effects ========== */
.modern-theme .glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modern-theme .glass-dark {
    background: rgba(30, 27, 75, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Loading States ========== */
.modern-theme .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

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

.modern-theme .btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.modern-theme .btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ========== Tooltips ========== */
.modern-theme [data-tooltip] {
    position: relative;
}

.modern-theme [data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
}

.modern-theme [data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-dark);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modern-theme [data-tooltip]:hover::before,
.modern-theme [data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ========== Premium Badges ========== */
.modern-theme .premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-theme .premium-badge i {
    font-size: 14px;
}

.modern-theme .new-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.modern-theme .hot-badge {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.modern-theme .sale-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ========== Hover Effects ========== */
.modern-theme .hover-lift {
    transition: var(--transition);
}

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

.modern-theme .hover-scale {
    transition: var(--transition);
}

.modern-theme .hover-scale:hover {
    transform: scale(1.02);
}

.modern-theme .hover-glow {
    transition: var(--transition);
}

.modern-theme .hover-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.modern-theme .hover-border-primary {
    transition: var(--transition);
}

.modern-theme .hover-border-primary:hover {
    border-color: var(--primary-color) !important;
}

/* ========== Form Enhancements ========== */
.modern-theme .form-floating-label {
    position: relative;
}

.modern-theme .form-floating-label input {
    width: 100%;
    padding: 16px;
    padding-top: 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.modern-theme .form-floating-label label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
    pointer-events: none;
    background: var(--bg-secondary);
    padding: 0 4px;
}

.modern-theme .form-floating-label input:focus,
.modern-theme .form-floating-label input:not(:placeholder-shown) {
    border-color: var(--primary-color);
    outline: none;
}

.modern-theme .form-floating-label input:focus+label,
.modern-theme .form-floating-label input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 12px;
    color: var(--primary-color);
}

/* ========== Status Indicators ========== */
.modern-theme .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.modern-theme .status-dot.online {
    background: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.modern-theme .status-dot.offline {
    background: var(--text-muted);
}

.modern-theme .status-dot.busy {
    background: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.modern-theme .status-dot.away {
    background: var(--warning-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ========== Progress Bars ========== */
.modern-theme .progress-modern {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 50px;
    overflow: hidden;
}

.modern-theme .progress-modern .progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 50px;
    transition: width 0.6s ease;
}

.modern-theme .progress-modern.progress-success .progress-bar {
    background: linear-gradient(135deg, #10b981, #059669);
}

.modern-theme .progress-modern.progress-danger .progress-bar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ========== Notification Dot ========== */
.modern-theme .notification-badge {
    position: relative;
}

.modern-theme .notification-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--danger-color);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
}

.modern-theme .notification-badge.with-count::after {
    content: attr(data-count);
    width: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ========== Dividers ========== */
.modern-theme .divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.modern-theme .divider::before,
.modern-theme .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ========== Avatar Group ========== */
.modern-theme .avatar-group {
    display: flex;
}

.modern-theme .avatar-group .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid var(--bg-secondary);
    margin-left: -10px;
}

.modern-theme .avatar-group .avatar:first-child {
    margin-left: 0;
}

.modern-theme .avatar-group .avatar-more {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

/* ========== Empty States ========== */
.modern-theme .empty-state {
    text-align: center;
    padding: 60px 20px;
}

.modern-theme .empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.modern-theme .empty-state h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modern-theme .empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========== Table Enhancements ========== */
.modern-theme .table-modern {
    width: 100%;
    border-collapse: collapse;
}

.modern-theme .table-modern thead {
    background: var(--bg-primary);
}

.modern-theme .table-modern th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.modern-theme .table-modern td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.modern-theme .table-modern tbody tr:hover {
    background: var(--bg-primary);
}

/* ========== Responsive Utilities ========== */
@media (max-width: 576px) {
    .modern-theme .hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .modern-theme .hidden-tablet {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .modern-theme .hidden-desktop {
        display: none !important;
    }
}

/* ========== Dark Mode Support ========== */
@media (prefers-color-scheme: dark) {
    .modern-theme.auto-dark {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-card: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --border-color: #334155;
    }
}

/* ========== Print Styles ========== */
@media print {

    .modern-theme .modern-topbar,
    .modern-theme .modern-navbar,
    .modern-theme .modern-floating-btn,
    .modern-theme .no-print {
        display: none !important;
    }

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

/* ========== Enhanced Typography Utilities ========== */
.modern-theme .text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-theme .text-gradient-success {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-theme .text-price {
    color: var(--price-color);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modern-theme .text-balance {
    color: var(--success-color);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ========== Enhanced Form Inputs ========== */
.modern-theme .form-control-modern {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modern-theme .form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

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

/* ========== Enhanced Button Styles ========== */
.modern-theme .btn-modern {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modern-theme .btn-modern-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.modern-theme .btn-modern-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(102, 126, 234, 0.5);
    color: var(--text-white);
}

.modern-theme .btn-modern-success {
    background: var(--success-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-success);
}

.modern-theme .btn-modern-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(34, 197, 94, 0.5);
    color: var(--text-white);
}

.modern-theme .btn-modern-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.modern-theme .btn-modern-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

/* ========== Glow Effects ========== */
.modern-theme .glow-primary {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.modern-theme .glow-success {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.modern-theme .glow-danger {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* ========== Improved Link Styles ========== */
.modern-theme a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.modern-theme a:hover {
    color: var(--primary-dark);
}

/* ========== Badge Variations ========== */
.modern-theme .badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-primary);
}

.modern-theme .badge-modern-primary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.modern-theme .badge-modern-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.modern-theme .badge-modern-warning {
    background: rgba(249, 115, 22, 0.1);
    color: var(--warning-color);
}

.modern-theme .badge-modern-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.modern-theme .badge-modern-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

/* ========== Loading Skeleton ========== */
.modern-theme .skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-primary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ========== Smooth Scroll ========== */
.modern-theme {
    scroll-behavior: smooth;
}

/* ========== Selection Style ========== */
.modern-theme ::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

/* ========================================
   ADDON PAGE STYLES - Buff, OTP, Services
   ======================================== */

/* Page Wrapper */
.modern-page-wrapper {
    min-height: 100vh;
    background: transparent;
    padding-bottom: 60px;
    position: relative;
}

.modern-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 340px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a67d8 100%);
    z-index: 0;
    pointer-events: none;
}

.modern-page-wrapper::after {
    content: '';
    position: absolute;
    top: 260px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, #f0f2f5 100%);
    z-index: 0;
    pointer-events: none;
}

.modern-page-wrapper > .container {
    position: relative;
    z-index: 1;
}

/* Page Header */
.modern-page-header {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.modern-page-header .page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-page-header .page-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-page-header .page-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

/* Modern Card */
.modern-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.modern-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.modern-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.modern-card-header.bg-gradient-primary {
    background: var(--primary-gradient) !important;
    border-bottom: none;
}

.modern-card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.modern-card-header.bg-gradient-primary h5 {
    color: white !important;
}

.modern-card-body {
    padding: 24px;
}

/* Modern Form Group */
.modern-form-group {
    margin-bottom: 24px;
}

.modern-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modern-label i {
    color: var(--primary-color);
}

.modern-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: var(--font-primary);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

/* Service Options */
.service-options {
    display: grid;
    gap: 12px;
}

.service-option {
    position: relative;
}

.service-option .btn-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-option-label {
    display: block;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.service-option-label:hover {
    border-color: var(--primary-light);
    background: rgba(102, 126, 234, 0.03);
}

.service-option .btn-check:checked+.service-option-label {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.service-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.service-price {
    background: var(--primary-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
}

/* Note Box */
.modern-note-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--border-radius);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.modern-note-box .note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 14px;
}

.modern-note-box .note-header i {
    font-size: 18px;
    color: var(--primary-color);
}

.modern-note-box .note-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Order Summary */
.order-summary {
    padding: 10px 0;
}

.order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.order-summary .summary-item:last-of-type {
    border-bottom: none;
}

.order-summary .summary-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.order-summary .summary-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.order-summary .summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 8px;
}

.order-summary .total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-summary .total-value {
    font-size: 24px;
    font-weight: 700;
    background: var(--danger-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Primary Button */
.btn-modern-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(102, 126, 234, 0.5);
}

.btn-modern-primary:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

.modern-theme .btn-primary,
.modern-theme .btn-success,
.modern-theme .btn-danger,
.modern-theme .btn-info,
.modern-theme .btn-warning,
.modern-theme .btn-admin,
.modern-theme .btn-register,
.modern-theme .btn-buy,
.modern-theme .btn-modern-primary,
.modern-theme .btn-modern-success,
.modern-theme .btn-primary-gradient,
.modern-theme .btn-info-gradient,
.modern-theme button.btn-primary,
.modern-theme button.btn-success,
.modern-theme button.btn-danger,
.modern-theme button.btn-modern-primary,
.modern-theme button.btn-modern-success {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.modern-theme .btn-primary:hover,
.modern-theme .btn-success:hover,
.modern-theme .btn-danger:hover,
.modern-theme .btn-info:hover,
.modern-theme .btn-warning:hover,
.modern-theme .btn-admin:hover,
.modern-theme .btn-register:hover,
.modern-theme .btn-buy:hover,
.modern-theme .btn-modern-primary:hover,
.modern-theme .btn-modern-success:hover,
.modern-theme .btn-primary-gradient:hover,
.modern-theme .btn-info-gradient:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.modern-theme .btn-primary i,
.modern-theme .btn-success i,
.modern-theme .btn-danger i,
.modern-theme .btn-info i,
.modern-theme .btn-warning i,
.modern-theme .btn-admin i,
.modern-theme .btn-register i,
.modern-theme .btn-buy i,
.modern-theme .btn-modern-primary i,
.modern-theme .btn-modern-success i,
.modern-theme .btn-primary-gradient i,
.modern-theme .btn-info-gradient i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.modern-theme .btn:disabled,
.modern-theme .btn.disabled,
.modern-theme button:disabled,
.modern-theme .btn-modern-primary:disabled,
.modern-theme .btn-modern-success:disabled,
.modern-theme .btn-primary-gradient:disabled,
.modern-theme .btn-info-gradient:disabled {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 0.85 !important;
}

/* History Page Styles */
.modern-table-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead {
    background: var(--primary-gradient);
}

.modern-table thead th {
    padding: 16px 20px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.modern-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
}

.modern-table tbody td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-primary);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.status-badge.pending {
    background: rgba(249, 115, 22, 0.1);
    color: var(--warning-color);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Empty State */
.modern-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.modern-empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.modern-empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modern-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Pagination Modern */
.modern-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.modern-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.modern-pagination .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.modern-pagination .page-link.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-primary);
}

/* Stats Cards */
.modern-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.modern-stat-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.modern-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.modern-stat-card .stat-icon.primary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.modern-stat-card .stat-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.modern-stat-card .stat-icon.warning {
    background: rgba(249, 115, 22, 0.1);
    color: var(--warning-color);
}

.modern-stat-card .stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.modern-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.modern-stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== Transaction List (Recent Transactions) ========== */
.transaction-list {
    padding: 0;
}

.transaction-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.transaction-item:hover {
    background: var(--bg-primary);
}

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

.transaction-icon {
    width: calc(38px) !important;
    height: 38px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.transaction-icon i {
    font-size: 18px;
}

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

.transaction-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}

.transaction-time {
    display: inline-block;
    font-size: 11px;
    color: var(--text-muted);
    padding: 3px 10px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-full);
    margin-top: 4px;
}

/* ========== Mobile Menu Styles ========== */

/* Hamburger Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: var(--bg-secondary);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--primary-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .navbar-brand {
    color: white !important;
}

.mobile-menu-header .navbar-brand span {
    color: white !important;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 16px 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-menu li a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary-color);
}

.mobile-nav-menu li a i {
    width: 24px;
    font-size: 18px;
    color: var(--primary-color);
    text-align: center;
}

.mobile-nav-menu li a.text-danger {
    color: var(--danger-color);
}

.mobile-nav-menu li a.text-danger i {
    color: var(--danger-color);
}

.mobile-menu-divider {
    height: 8px;
    background: var(--bg-primary);
    border: none !important;
}

/* ========== Responsive Styles for Navbar ========== */
@media (max-width: 991px) {
    .modern-navbar .nav-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: none !important;
        order: 3;
    }

    .modern-navbar .nav-actions {
        order: 2;
        gap: 8px;
    }

    .modern-navbar .nav-actions .btn-login,
    .modern-navbar .nav-actions .btn-register {
        padding: 8px 16px;
        font-size: 13px;
    }

    .modern-navbar .nav-actions .balance-display {
        padding: 8px 14px;
        font-size: 13px;
    }

    .modern-navbar .nav-actions .btn-admin {
        display: none;
    }

    .modern-navbar .navbar-brand span {
        font-size: 18px;
    }

    .modern-topbar {
        display: none;
    }
}

@media (max-width: 576px) {
    .modern-navbar {
        padding: 12px 0 !important;
    }

    .modern-navbar .navbar-brand i {
        font-size: 24px;
    }

    .modern-navbar .navbar-brand span {
        font-size: 16px;
    }

    .modern-navbar .nav-actions .btn-login {
        padding: 8px 12px;
        font-size: 12px;
    }

    .modern-navbar .nav-actions .btn-register {
        padding: 8px 14px;
        font-size: 12px;
    }

    .modern-navbar .nav-actions .balance-display {
        padding: 6px 10px;
        font-size: 12px;
    }

    .modern-navbar .nav-actions .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .hamburger-line {
        width: 18px;
        height: 2px;
    }
}

/* Fix for products grid on mobile */
@media (max-width: 768px) {
    .modern-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modern-product-card {
        padding: 14px;
    }

    .modern-product-card .product-title {
        font-size: 13px;
    }

    .modern-product-card .product-price {
        font-size: 16px;
    }

    .modern-product-card .btn-buy,
    .modern-product-card .btn-detail {
        padding: 8px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .modern-products-grid {
        grid-template-columns: 1fr;
    }

    .modern-category-tabs {
        gap: 8px;
    }

    .modern-category-tab {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Final navbar polish override */
.modern-theme .modern-navbar {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 35px -28px rgba(15, 23, 42, 0.45) !important;
    padding: 10px 0 !important;
}

.modern-theme .modern-navbar .navbar-brand img {
    height: 42px !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

.modern-theme .modern-navbar .nav-menu {
    gap: 2px !important;
    padding: 4px !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-radius: 18px !important;
    background: rgba(248, 250, 252, 0.82) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.modern-theme .modern-navbar .nav-link {
    padding: 8px 12px !important;
    border-radius: 14px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

.modern-theme .modern-navbar .nav-link:hover {
    background: rgba(102, 126, 234, 0.08) !important;
    color: #4f46e5 !important;
    border-color: rgba(102, 126, 234, 0.16) !important;
    transform: none !important;
}

.modern-theme .modern-navbar .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px -10px rgba(102, 126, 234, 0.9) !important;
}

.modern-theme .modern-navbar .nav-actions {
    gap: 8px !important;
}

.modern-theme .modern-navbar .balance-display,
.modern-theme .modern-navbar .btn-admin {
    padding: 9px 14px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.modern-theme .modern-navbar .btn-admin {
    box-shadow: 0 12px 24px -16px rgba(102, 126, 234, 0.9) !important;
}

.modern-theme .modern-navbar .balance-display {
    box-shadow: 0 12px 24px -16px rgba(34, 197, 94, 0.8) !important;
}

.modern-theme .modern-navbar .user-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    background: rgba(102, 126, 234, 0.12) !important;
    border: 1px solid rgba(102, 126, 234, 0.18) !important;
    color: #4f46e5 !important;
    font-weight: 700 !important;
}

/* Mobile navbar stability fixes */
.modern-theme .modern-navbar .container > .d-flex {
    gap: 10px !important;
    min-width: 0 !important;
}

.modern-theme .modern-navbar .navbar-brand {
    min-width: 0 !important;
    flex: 0 1 auto !important;
}

.modern-theme .mobile-menu-header .navbar-brand {
    max-width: calc(100% - 52px) !important;
}

.modern-theme .mobile-menu-header .navbar-brand img {
    max-width: 150px !important;
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.modern-theme .mobile-menu-header .navbar-brand span {
    display: block !important;
    max-width: 170px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.modern-theme .mobile-nav-menu li a {
    min-height: 48px !important;
    padding: 13px 18px !important;
    gap: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.modern-theme .mobile-nav-menu li a i,
.modern-theme .mobile-nav-menu li a svg,
.modern-theme .mobile-nav-menu li a img {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    text-align: center !important;
}

.modern-theme .mobile-nav-menu li a img {
    height: 22px !important;
    object-fit: contain !important;
}

.modern-theme .mobile-menu-close,
.modern-theme .mobile-menu-toggle {
    flex: 0 0 auto !important;
}

@media (max-width: 991px) {
    .modern-theme .modern-navbar {
        padding: 8px 0 !important;
    }

    .modern-theme .modern-navbar .navbar-brand img {
        max-width: 160px !important;
        max-height: 44px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .modern-theme .modern-navbar .nav-actions {
        margin-left: auto !important;
    }

    .modern-theme .modern-navbar .balance-display {
        padding: 8px 11px !important;
        max-width: 92px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }

    .modern-theme .modern-navbar .balance-display i {
        display: none !important;
    }

    .modern-theme .modern-navbar .btn-login,
    .modern-theme .modern-navbar .btn-register {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 576px) {
    .modern-theme .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }

    .modern-theme .modern-navbar .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .modern-theme .modern-navbar .navbar-brand img {
        max-width: 125px !important;
        max-height: 38px !important;
    }

    .modern-theme .modern-navbar .navbar-brand span {
        max-width: 120px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .modern-theme .modern-navbar .balance-display {
        max-width: 72px !important;
        padding: 7px 9px !important;
    }

    .modern-theme .modern-navbar .btn-login {
        display: none !important;
    }

    .modern-theme .modern-navbar .btn-register {
        padding: 7px 10px !important;
    }

    .modern-theme .modern-navbar .user-avatar {
        width: 34px !important;
        height: 34px !important;
        border-radius: 12px !important;
    }

    .modern-theme .mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
    }

    .modern-theme .mobile-menu-content {
        width: min(330px, 88vw) !important;
        right: min(-330px, -88vw) !important;
    }

    .modern-theme .mobile-menu-overlay.active .mobile-menu-content {
        right: 0 !important;
    }
}

@media (max-width: 380px) {
    .modern-theme .modern-navbar .navbar-brand img {
        max-width: 104px !important;
    }

    .modern-theme .modern-navbar .balance-display {
        display: none !important;
    }
}

/* Modern button consistency */
.modern-theme .btn,
.modern-theme button,
.modern-theme .btn-modern,
.modern-theme .btn-admin,
.modern-theme .btn-login,
.modern-theme .btn-register,
.modern-theme .btn-buy,
.modern-theme .btn-detail,
.modern-theme .btn-primary-gradient,
.modern-theme .btn-info-gradient,
.modern-theme .btn-modern-primary,
.modern-theme .btn-modern-success,
.modern-theme .modern-floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.25;
    white-space: nowrap;
}

.modern-theme .btn-primary,
.modern-theme .btn-success,
.modern-theme .btn-danger,
.modern-theme .btn-warning,
.modern-theme .btn-info,
.modern-theme .btn-admin,
.modern-theme .btn-register,
.modern-theme .btn-buy,
.modern-theme .btn-primary-gradient,
.modern-theme .btn-info-gradient,
.modern-theme .btn-modern-primary,
.modern-theme .btn-modern-success,
.modern-theme .modern-floating-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.modern-theme .btn-primary i,
.modern-theme .btn-success i,
.modern-theme .btn-danger i,
.modern-theme .btn-warning i,
.modern-theme .btn-info i,
.modern-theme .btn-admin i,
.modern-theme .btn-register i,
.modern-theme .btn-buy i,
.modern-theme .btn-primary-gradient i,
.modern-theme .btn-info-gradient i,
.modern-theme .btn-modern-primary i,
.modern-theme .btn-modern-success i,
.modern-theme .modern-floating-btn i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 576px) {
    .modern-theme .btn,
    .modern-theme button,
    .modern-theme .btn-modern,
    .modern-theme .btn-primary-gradient,
    .modern-theme .btn-info-gradient,
    .modern-theme .btn-modern-primary,
    .modern-theme .btn-modern-success {
        max-width: 100%;
        min-height: 38px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }

    .modern-theme .modern-product-card .product-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 0.92fr) minmax(86px, 1.08fr) !important;
        gap: 8px !important;
    }

    .modern-theme .modern-product-card .btn-buy,
    .modern-theme .modern-product-card .btn-detail {
        width: 100% !important;
        min-width: 0 !important;
        padding: 9px 7px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .modern-theme .modern-product-card .btn-buy i,
    .modern-theme .modern-product-card .btn-detail i {
        font-size: 11px !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
    }
}

/* Account dropdown mobile fix */
.modern-theme .modern-navbar .user-dropdown {
    position: relative !important;
}

.modern-theme .modern-navbar .user-dropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    min-width: 220px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 8px !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px -22px rgba(15, 23, 42, 0.55) !important;
    overflow: hidden !important;
    transform: none !important;
    margin-top: 10px !important;
}

.modern-theme .modern-navbar .user-dropdown .dropdown-menu.show {
    display: block !important;
    right: 0 !important;
    left: auto !important;
}

.modern-theme .modern-navbar .user-dropdown .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.modern-theme .modern-navbar .user-dropdown .dropdown-item i {
    width: 18px !important;
    min-width: 18px !important;
    color: #667eea !important;
    text-align: center !important;
}

.modern-theme .modern-navbar .user-dropdown .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.08) !important;
    color: #4f46e5 !important;
}

.modern-theme .modern-navbar .user-dropdown .dropdown-item.text-danger,
.modern-theme .modern-navbar .user-dropdown .dropdown-item.text-danger i {
    color: #ef4444 !important;
}

@media (max-width: 576px) {
    .modern-theme .modern-navbar .user-dropdown .dropdown-menu {
        position: fixed !important;
        top: 56px !important;
        right: 10px !important;
        left: auto !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: calc(100vw - 20px) !important;
        transform: none !important;
    }

    .modern-theme .modern-navbar .user-dropdown .dropdown-item {
        font-size: 13px !important;
        min-height: 40px !important;
        padding: 9px 11px !important;
    }

    .modern-theme .modern-floating-btn {
        right: 12px !important;
        bottom: 14px !important;
        width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        font-size: 0 !important;
        gap: 0 !important;
        box-shadow: 0 14px 32px -16px rgba(102, 126, 234, 0.9) !important;
    }

    .modern-theme .modern-floating-btn i {
        font-size: 18px !important;
        margin: 0 !important;
    }
}

/* Hard lock hamburger visibility */
.modern-theme .modern-navbar .mobile-menu-toggle {
    display: none !important;
}

@media (max-width: 576px) {
    .modern-theme .modern-navbar .mobile-menu-toggle {
        display: flex !important;
    }
}

/* ============================================================
   UI IMPROVEMENTS v2.1 — June 2026
   1. Modern Footer
   2. Notice Alert Redesign
   3. Mobile Navbar Fix
   4. Notification Box Max-Height
   5. Empty Rating Hide
   6. Popup Modal Polish
   7. Topbar Simplification
   ============================================================ */

/* ========== 1. MODERN FOOTER ========== */
.modern-footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
    margin-top: 60px;
    font-size: 14px;
    line-height: 1.7;
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.modern-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-footer .footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    font-family: var(--font-heading);
}

.modern-footer .footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    max-width: 360px;
}

.modern-footer .footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
}

.modern-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-footer .footer-col ul li {
    margin-bottom: 10px;
}

.modern-footer .footer-col ul li a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-footer .footer-col ul li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.modern-footer .footer-col ul li a i {
    width: 16px;
    font-size: 12px;
    color: var(--primary-light);
}

.modern-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.modern-footer .footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
}

.modern-footer .footer-bottom a:hover {
    color: #ffffff;
}

.modern-footer .footer-social {
    display: flex;
    gap: 10px;
}

.modern-footer .footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    transition: all 0.3s ease;
}

.modern-footer .footer-social a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .modern-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modern-footer .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ========== 2. NOTICE ALERT REDESIGN ========== */
.modern-notice-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13.5px;
    line-height: 1.65;
}

.modern-notice-alert .notice-icon {
    color: #d97706;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.modern-notice-alert .notice-content {
    flex: 1;
    color: #78350f;
    word-break: break-word;
    overflow: hidden;
}

/* Tame aggressive admin-entered content in notice */
.modern-notice-alert .notice-content * {
    font-size: inherit !important;
    line-height: inherit !important;
}

.modern-notice-alert .notice-content span[style] {
    font-size: inherit !important;
}

/* Cap large headings to reasonable size */
.modern-notice-alert .notice-content h1,
.modern-notice-alert .notice-content h2,
.modern-notice-alert .notice-content h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    color: #92400e !important;
}

@media (max-width: 576px) {
    .modern-notice-alert {
        padding: 12px 14px;
        font-size: 12.5px;
    }
}

/* ========== 3. MOBILE NAVBAR FIX ========== */
@media (max-width: 768px) {
    .modern-navbar .nav-actions .btn-login,
    .modern-navbar .nav-actions .btn-register {
        display: none !important;
    }

    .modern-navbar .nav-actions {
        gap: 6px !important;
    }

    .modern-navbar .balance-display {
        font-size: 12px !important;
        padding: 7px 10px !important;
    }

    .modern-navbar {
        padding: 8px 0 !important;
    }

    .modern-navbar .navbar-brand img {
        height: 32px !important;
    }
}

/* Mobile slide-in menu improvements */
@media (max-width: 991px) {
    .modern-navbar .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        z-index: 9999;
        padding: 80px 20px 20px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        gap: 4px;
    }

    .modern-navbar .nav-menu.active .nav-link {
        font-size: 15px !important;
        padding: 14px 18px !important;
        border-radius: 12px !important;
    }

    /* Show login/register inside mobile menu */
    .modern-navbar .nav-menu.active .mobile-auth-links {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }

    .modern-navbar .nav-menu.active .mobile-auth-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
    }

    .modern-navbar .nav-menu.active .mobile-auth-links .btn-login-mobile {
        background: var(--bg-primary);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }

    .modern-navbar .nav-menu.active .mobile-auth-links .btn-register-mobile {
        background: var(--primary-gradient);
        color: #ffffff;
    }
}

/* ========== 4. NOTIFICATION BOX MAX-HEIGHT ========== */
.modern-alert .alert-content p {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 8px;
}

.modern-alert .alert-content p::-webkit-scrollbar {
    width: 4px;
}

.modern-alert .alert-content p::-webkit-scrollbar-thumb {
    background: rgba(118, 75, 162, 0.25);
    border-radius: 4px;
}

/* ========== 5. EMPTY RATING HIDE ========== */
.product-rating.empty-rating {
    display: none !important;
}

/* ========== 6. POPUP MODAL POLISH ========== */
.modern-popup-notice .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

/* Normalize aggressive admin HTML inside popup */
.modern-popup-notice .modal-body p,
.modern-popup-notice .modal-body span,
.modern-popup-notice .modal-body div {
    line-height: 1.7 !important;
}

/* Tone down ALL-CAPS text from admin */
.modern-popup-notice .modal-body span[style*="color: red"],
.modern-popup-notice .modal-body font[color="red"] {
    color: #dc2626 !important;
    font-weight: 600;
}

.modern-popup-notice .modal-body span[style*="color: green"],
.modern-popup-notice .modal-body font[color="green"] {
    color: #059669 !important;
}

.modern-popup-notice .modal-body span[style*="color: blue"],
.modern-popup-notice .modal-body font[color="blue"] {
    color: #2563eb !important;
}

/* ========== 7. TOPBAR SIMPLIFICATION ========== */
@media (max-width: 991px) {
    .modern-topbar {
        display: none !important;
    }
}

/* ========== PAGE WRAPPER MINIMUM HEIGHT ========== */
.modern-page-wrapper {
    min-height: calc(100vh - 200px);
}

/* ========== HERO WELCOME BANNER ========== */
.modern-hero-banner {
    text-align: center;
    padding: 36px 20px 28px;
    color: #ffffff;
    animation: heroFadeIn 0.8s ease forwards;
}

.modern-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.modern-hero-title i {
    font-size: 28px;
    opacity: 0.9;
}

.modern-hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .modern-hero-banner {
        padding: 20px 16px 16px;
    }

    .modern-hero-title {
        font-size: 22px;
    }

    .modern-hero-title i {
        font-size: 20px;
    }

    .modern-hero-subtitle {
        font-size: 13px;
    }
}

/* ==============================================
   V3.0 — ULTRA MODERN VISUAL UPGRADES
   ============================================== */

/* ---- Notification Box: Compact & Clean ---- */
.modern-alert .alert-content p {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 8px;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.modern-alert .alert-content p::-webkit-scrollbar {
    width: 4px;
}

.modern-alert .alert-content p::-webkit-scrollbar-track {
    background: transparent;
}

.modern-alert .alert-content p::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 4px;
}

/* ---- Override Facebook blue icons to match theme ---- */
.modern-section-header i.fab.fa-facebook,
.modern-section-header i.fab.fa-facebook-f {
    color: #ffffff !important;
}

.modern-category-tab i.fab.fa-facebook,
.modern-category-tab i.fab.fa-facebook-f {
    color: inherit !important;
}

/* ---- Notification text: tame aggressive admin HTML ---- */
.modern-alert .alert-content p span[style*="color"],
.modern-alert .alert-content p font[color] {
    font-size: 13px !important;
}

.modern-alert .alert-content p br + br {
    display: none;
}

/* ---- Product Price: Gradient text ---- */
.modern-product-card .product-price {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 800;
}

/* ---- Buy Button: Rounder + Bigger ---- */
.modern-product-card .btn-buy {
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.modern-product-card .btn-detail {
    border-radius: 12px !important;
    padding: 11px 16px !important;
}

/* ---- Product Card: Image preview polish ---- */
.modern-product-card .product-preview {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.modern-product-card .product-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.modern-product-card:hover .product-preview img {
    transform: scale(1.05);
}

/* ---- Badge Polish ---- */
.modern-product-card .badge {
    font-size: 11px !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.modern-product-card .badge-stock {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* ---- Section Header: subtle border glow on scroll ---- */
.modern-section-header {
    transition: all 0.3s ease;
}

/* ---- History cards: better item styling ---- */
.modern-history-card .history-item {
    padding: 14px 20px !important;
    transition: background 0.2s ease;
}

.modern-history-card .history-item:hover {
    background: rgba(102, 126, 234, 0.03) !important;
}

/* ---- Category Tabs: ensure icon matches ---- */
.modern-category-tab i {
    font-size: 14px !important;
    width: auto !important;
    height: auto !important;
}

.modern-category-tab img {
    width: 18px !important;
    height: 18px !important;
    border-radius: 4px;
}

/* ---- Product grid: empty state hidden ---- */
.modern-products-grid:empty {
    display: none !important;
}

/* ---- Floating History Button: glassmorphic ---- */
.modern-float-history,
.float-history-btn,
[class*="float-history"],
a[href*="history"] .btn-float {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.12) !important;
    border-radius: 16px !important;
    color: var(--text-primary) !important;
}

/* ---- Container max-width refinement ---- */
@media (min-width: 1400px) {
    .modern-page-wrapper .container {
        max-width: 1260px;
    }
}

/* ---- Smooth fade-in animation ---- */
.modern-product-card.fade-in {
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
}

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

.modern-product-card.fade-in:nth-child(1) { animation-delay: 0.05s; }
.modern-product-card.fade-in:nth-child(2) { animation-delay: 0.1s; }
.modern-product-card.fade-in:nth-child(3) { animation-delay: 0.15s; }
.modern-product-card.fade-in:nth-child(4) { animation-delay: 0.2s; }
.modern-product-card.fade-in:nth-child(5) { animation-delay: 0.25s; }
.modern-product-card.fade-in:nth-child(6) { animation-delay: 0.3s; }

/* ---- Navbar: hide glow/border artifacts ---- */
.modern-navbar {
    border-left: none !important;
    border-right: none !important;
}

/* ---- Mobile Responsive Enhancements ---- */
@media (max-width: 768px) {
    .modern-page-wrapper::before {
        height: 200px;
    }

    .modern-page-wrapper::after {
        top: 140px;
        height: 80px;
    }

    .modern-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .modern-product-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .modern-product-card .product-price {
        font-size: 18px !important;
    }

    .modern-product-card .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .modern-product-card .btn-buy,
    .modern-product-card .btn-detail {
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    .modern-section-header {
        padding: 14px 16px !important;
        border-radius: 14px 14px 0 0 !important;
    }

    .modern-section-header h4 {
        font-size: 13px !important;
    }

    .modern-section-header i {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .modern-history-section {
        grid-template-columns: 1fr !important;
    }

    .modern-alert {
        border-radius: 14px !important;
        padding: 16px 18px !important;
    }

    .modern-alert .alert-content p {
        max-height: 80px;
    }

    .modern-category-tabs {
        padding: 12px 0 !important;
        gap: 6px !important;
    }

    .modern-category-tab {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .modern-products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .modern-product-card .product-title {
        font-size: 12.5px !important;
        min-height: 34px !important;
    }

    .modern-product-card .badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
}
/* FIX MOBILE: 1 card san pham moi hang tren dien thoai */
@media (max-width: 575.98px) {
    .modern-products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}