/* =============================================
   TOKO DIGITAL - MAIN STYLESHEET
   Modern Dark Theme with Glassmorphism
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary: #14b8a6;
    --primary-light: #67e8f9;
    --primary-dark: #0f766e;
    --accent: #f59e0b;
    --accent-soft: #fde68a;
    --bg-dark: #07141d;
    --bg-elevated: #0d1c27;
    --bg-card: rgba(10, 25, 35, 0.72);
    --bg-card-hover: rgba(14, 33, 46, 0.9);
    --bg-glass: rgba(11, 23, 33, 0.68);
    --border: rgba(148, 163, 184, 0.18);
    --border-hover: rgba(103, 232, 249, 0.35);
    --text: #e6f0f7;
    --text-muted: #9db0c1;
    --text-dim: #6f8396;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Manrope', sans-serif;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 32px 70px rgba(0, 0, 0, 0.34);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LIGHT THEME */
[data-theme="light"] {
    --bg-dark: #f4f8fb;
    --bg-elevated: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.86);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(255, 255, 255, 0.78);
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(20, 184, 166, 0.24);
    --text: #102033;
    --text-muted: #526579;
    --text-dim: #8596a8;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 34px 70px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
}

/* Navbar */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .navbar-brand {
    color: var(--text);
}

[data-theme="light"] .navbar-brand span {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
}

/* Desktop navbar-menu: transparent background */
[data-theme="light"] .navbar-menu {
    background: transparent;
    box-shadow: none;
    border: none;
}

[data-theme="light"] .navbar-menu a {
    color: var(--text);
}

[data-theme="light"] .navbar-menu a.active {
    color: var(--primary);
}

[data-theme="light"] .nav-icon-btn {
    color: var(--text);
}

[data-theme="light"] .nav-user-btn {
    color: var(--text);
}

[data-theme="light"] .mobile-toggle {
    color: var(--text);
}

/* Mobile menu - slide sidebar (light mode) - ONLY for mobile */
@media (max-width: 768px) {
    [data-theme="light"] .navbar-menu {
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%) !important;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.12) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    [data-theme="light"] .navbar-menu::before {
        color: #1e293b !important;
        -webkit-text-fill-color: #1e293b !important;
        background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(255, 255, 255, 0.9)) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
}

/* Styling navbar menu links untuk light mode - hanya warna, tanpa background container */
[data-theme="light"] .navbar-menu a {
    color: #334155;
}

[data-theme="light"] .navbar-menu a i {
    color: #64748b;
}

[data-theme="light"] .navbar-menu a:hover,
[data-theme="light"] .navbar-menu a.active {
    background: rgba(108, 92, 231, 0.08);
    color: #6C5CE7;
}

[data-theme="light"] .navbar-menu a:hover i,
[data-theme="light"] .navbar-menu a.active i {
    color: #6C5CE7;
}

[data-theme="light"] .mobile-toggle:active {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sidebar-overlay {
    background: rgba(0, 0, 0, 0.3);
}

/* Section headers */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5 {
    color: var(--text);
}

/* Section header gradient text override */
[data-theme="light"] .section-header h2 {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
}

/* Product card */
[data-theme="light"] .product-card,
[data-theme="light"] .admin-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .product-name,
[data-theme="light"] .product-name a {
    color: var(--text);
}

[data-theme="light"] .product-price {
    color: var(--primary);
}

/* Page title / breadcrumb */
[data-theme="light"] .page-header h1,
[data-theme="light"] .page-title,
[data-theme="light"] .breadcrumb a {
    color: var(--text);
}

/* Labels */
[data-theme="light"] label,
[data-theme="light"] .form-label {
    color: var(--text);
}

/* Input fields */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #94a3b8;
}

/* Cards and containers */
[data-theme="light"] .checkout-card,
[data-theme="light"] .cart-item,
[data-theme="light"] .order-card,
[data-theme="light"] .profile-card,
[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-card h2,
[data-theme="light"] .auth-card label {
    color: var(--text);
}

/* Buttons - keep white text on colored buttons */
[data-theme="light"] .btn-primary {
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    color: #fff;
}

[data-theme="light"] .btn-secondary {
    color: var(--text);
    background: rgba(0, 0, 0, 0.04);
}

/* Alert */
[data-theme="light"] .alert {
    color: var(--text);
}

/* Footer - light mode with light background */
/* These styles are overridden by the 2026 UI Refresh at line ~4505 for the new footer design */
/* Keeping this as fallback for pages that might not have the new footer structure */
[data-theme="light"] .footer {
    background: linear-gradient(180deg, rgba(229, 239, 245, 0.32), rgba(222, 234, 240, 0.96));
    color: #102033;
    border-top: 1px solid rgba(108, 92, 231, 0.15);
}

[data-theme="light"] .footer * {
    color: inherit;
}

[data-theme="light"] .footer a {
    color: #526579;
}

[data-theme="light"] .footer a:hover {
    color: #6c5ce7;
}

[data-theme="light"] .footer h3,
[data-theme="light"] .footer h4,
[data-theme="light"] .footer .footer-col h4,
[data-theme="light"] .footer-grid .footer-col h4 {
    color: #102033 !important;
    -webkit-text-fill-color: #102033 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

[data-theme="light"] .footer p,
[data-theme="light"] .footer .footer-col p,
[data-theme="light"] .footer-col p,
[data-theme="light"] .footer span,
[data-theme="light"] .footer .footer-col span {
    color: #526579;
}

[data-theme="light"] .footer-col ul li,
[data-theme="light"] .footer-col ul li a {
    color: #526579;
}

[data-theme="light"] .footer-col ul li a:hover {
    color: #6c5ce7;
}

[data-theme="light"] .footer-social a {
    color: #526579;
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .footer-social a:hover {
    color: #ffffff !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

[data-theme="light"] .footer-social a i {
    color: inherit !important;
}

[data-theme="light"] .footer-bottom {
    color: #64748b;
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-bottom * {
    color: #64748b;
}

/* Detail page */
[data-theme="light"] .detail-title,
[data-theme="light"] .detail-price {
    color: var(--text);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #e2e8f0;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #94a3b8;
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: rotate(30deg);
}

/* POPUP BANNER */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: popupFadeIn 0.4s ease forwards;
}

@keyframes popupFadeIn {
    to {
        opacity: 1;
    }
}

.popup-banner {
    position: relative;
    max-width: 520px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popupScaleIn 0.4s ease forwards;
}

@keyframes popupScaleIn {
    to {
        transform: scale(1);
    }
}

.popup-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.popup-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(12, 12, 29, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--text);
    background: var(--bg-card-hover);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.nav-icon-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.nav-user-btn img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .mobile-toggle:active {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Slide-in Sidebar */
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 270px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(15, 15, 35, 0.99) 0%, rgba(10, 10, 25, 0.99) 100%);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 0;
        margin: 0;
        z-index: 9999;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
        border-right: 1px solid var(--border);
        overflow-y: auto;
        display: flex !important;
        list-style: none;
        transform: translateX(-100%);
        visibility: hidden;
    }

    .navbar-menu.open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Sidebar header */
    .navbar-menu::before {
        content: 'Menu';
        display: block;
        padding: 24px 20px 20px;
        font-size: 20px;
        font-weight: 700;
        border-bottom: 1px solid var(--border);
        color: var(--text);
        background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), transparent);
    }

    .navbar-menu li {
        list-style: none;
        margin: 0;
    }

    .navbar-menu li:first-child {
        margin-top: 8px;
    }

    .navbar-menu a {
        padding: 14px 24px;
        width: 100%;
        font-size: 15px;
        border-radius: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: background 0.2s, padding-left 0.2s;
    }

    .navbar-menu a:hover,
    .navbar-menu a.active {
        background: rgba(108, 92, 231, 0.12);
        padding-left: 30px;
    }

    .navbar-menu a i {
        width: 20px;
        text-align: center;
        font-size: 16px;
    }

    /* Dark overlay - z-index MUST be below .navbar (1000) */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* ---- LIGHT MODE: Mobile sidebar ---- */
    [data-theme="light"] .navbar-menu {
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%) !important;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        backdrop-filter: blur(20px) !important;
    }

    [data-theme="light"] .navbar-menu::before {
        color: #1e293b !important;
        -webkit-text-fill-color: #1e293b !important;
        background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(255, 255, 255, 0.95)) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    [data-theme="light"] .navbar-menu li a {
        color: #334155 !important;
    }

    [data-theme="light"] .navbar-menu li a i {
        color: #64748b !important;
    }

    [data-theme="light"] .navbar-menu li a:hover,
    [data-theme="light"] .navbar-menu li a.active {
        background: rgba(108, 92, 231, 0.08) !important;
        color: #6C5CE7 !important;
    }

    [data-theme="light"] .navbar-menu li a:hover i,
    [data-theme="light"] .navbar-menu li a.active i {
        color: #6C5CE7 !important;
    }

    [data-theme="light"] .sidebar-overlay {
        background: rgba(0, 0, 0, 0.25) !important;
    }
}

/* =============================================
   HERO / BANNER CAROUSEL
   ============================================= */
.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 48px;
}

.hero-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide {
    min-width: 100%;
    position: relative;
    height: 420px;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 12, 29, 0.8) 0%, rgba(12, 12, 29, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.hero-slide h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-slide p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.hero-dot.active {
    background: var(--primary-light);
    width: 30px;
    border-radius: 5px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .hero-slide {
        height: 280px;
    }

    .hero-slide .overlay {
        padding: 30px;
    }

    .hero-slide h2 {
        font-size: 26px;
    }

    .hero-slide p {
        font-size: 14px;
    }
}

/* =============================================
   CONTAINER & SECTIONS
   ============================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-light);
}

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
}

.section-link:hover {
    gap: 10px;
}

/* =============================================
   POSTS / PENGUMUMAN
   ============================================= */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    transition: var(--transition);
    overflow: hidden;
}

.post-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.post-image {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    flex: 1;
    min-width: 0;
}

.post-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 3.2em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.post-card.expanded .post-content {
    max-height: 1000px;
}

.post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--transition);
}

.post-card:hover .post-readmore {
    gap: 10px;
}

@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
        gap: 12px;
    }

    .post-image {
        width: 100%;
        height: 160px;
    }
}

/* =============================================
   CATEGORY GRID
   ============================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(108, 92, 231, 0.15);
}

.category-card i {
    font-size: 28px;
    color: var(--primary-light);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius);
}

.category-card span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* =============================================
   PRODUCT GRID
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card .product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-new {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.tag-hot {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.tag-sale {
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
}

.tag-low-stock {
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
}

.product-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.product-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.product-action-btn.wishlisted {
    background: var(--danger);
    border-color: var(--danger);
}

.product-info {
    padding: 20px;
}

.product-info .product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 6px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info h3 a {
    color: var(--text);
}

.product-info h3 a:hover {
    color: var(--primary-light);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.product-price-old {
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-left: 8px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-stock {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-stock.low {
    color: var(--danger);
}

.product-sold {
    font-size: 12px;
    color: var(--text-dim);
}

/* =============================================
   SEARCH BAR
   ============================================= */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.search-container input::placeholder {
    color: var(--text-dim);
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 16px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: var(--text);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #f87171);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #5ae3df);
    color: #0c0c1d;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-control::placeholder {
    color: var(--text-dim);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* =============================================
   CARDS & PANELS
   ============================================= */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================
   ALERTS & TOASTS
   ============================================= */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: rgba(12, 12, 29, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* =============================================
   SHARE BUTTONS
   ============================================= */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: #fff;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.copy-link {
    background: var(--primary);
}

/* =============================================
   TABLES
   ============================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: rgba(108, 92, 231, 0.1);
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

table td {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

table tr:hover td {
    background: var(--bg-card);
}

/* =============================================
   BADGE / STATUS
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.badge-paid {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-processing {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.badge-shipped {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.badge-done {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    max-width: 440px;
    width: 100%;
}

.auth-card .glass-card {
    text-align: center;
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card p.subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 15px;
}

.auth-card .form-group {
    text-align: left;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-dim);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* =============================================
   CART PAGE
   ============================================= */
.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-info .price {
    color: var(--accent);
    font-weight: 600;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-qty button:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.cart-qty span {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.cart-item-qty-form {
    display: flex;
    align-items: center;
}

.cart-item-subtotal {
    flex: 1;
    text-align: right;
    font-weight: 700;
    color: var(--accent);
    font-size: 15px;
}

.cart-item-delete {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.2);
}

.cart-summary {
    padding: 24px;
    background: rgba(108, 92, 231, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 8px;
    color: var(--accent);
}

/* =============================================
   CHECKOUT / PAYMENT
   ============================================= */
.qris-container {
    text-align: center;
    padding: 32px;
}

.qris-container img {
    max-width: 280px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--primary);
    margin: 20px auto;
}

.payment-total {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin: 16px 0;
}

.unique-code {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    color: #fbbf24;
    font-weight: 700;
    font-size: 16px;
}

.payment-steps {
    text-align: left;
    margin-top: 24px;
}

.payment-steps li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.payment-steps li .step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* =============================================
   PRODUCT DETAIL
   ============================================= */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.product-gallery .thumb-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-gallery .thumb-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.product-gallery .thumb-list img:hover,
.product-gallery .thumb-list img.active {
    border-color: var(--primary);
}

.product-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-detail-info .detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

.product-detail-info .detail-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-gallery .main-image {
        height: 300px;
    }
}

/* =============================================
   PROFILE / MY ORDERS
   ============================================= */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.profile-sidebar .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 16px;
}

.profile-sidebar h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.profile-sidebar p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.profile-menu {
    list-style: none;
    text-align: left;
}

.profile-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-muted);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.profile-menu li a:hover,
.profile-menu li a.active {
    background: var(--bg-card-hover);
    color: var(--text);
}

.profile-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}

/* =============================================
   ORDER TRACKING
   ============================================= */
.order-timeline {
    display: flex;
    justify-content: space-between;
    margin: 32px 0;
    position: relative;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-step .step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.timeline-step.active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.timeline-step.completed .step-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.timeline-step span {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text);
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   UPLOAD / IMAGE PREVIEW
   ============================================= */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 12px;
    display: block;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 14px;
}

.image-preview {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius);
    margin-top: 12px;
}

/* =============================================
   LIBRARY PICKER BUTTON
   ============================================= */
.library-pick-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(108, 92, 231, 0.03));
    border: 1.5px solid rgba(108, 92, 231, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-align: left;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.library-pick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.06), transparent);
    transition: left 0.5s ease;
}

.library-pick-btn:hover::before {
    left: 100%;
}

.library-pick-btn:hover {
    border-color: rgba(108, 92, 231, 0.5);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.14), rgba(108, 92, 231, 0.06));
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.15);
}

.library-pick-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.library-pick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.library-pick-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.library-pick-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.library-pick-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

.library-pick-arrow {
    font-size: 12px;
    color: var(--text-dim);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.library-pick-btn:hover .library-pick-arrow {
    transform: translateX(3px);
    color: var(--primary-light);
}

/* Success variant (green) */
.library-pick-btn--success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
    border-color: rgba(16, 185, 129, 0.2);
}

.library-pick-btn--success:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.06));
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.15);
}

.library-pick-btn--success::before {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.06), transparent);
}

.library-pick-btn--success:hover .library-pick-arrow {
    color: #34d399;
}

.library-pick-icon--success {
    background: linear-gradient(135deg, #00b894, #55efc4) !important;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3) !important;
}

@media (max-width: 480px) {
    .library-pick-btn {
        padding: 14px 16px;
        gap: 12px;
    }
    .library-pick-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }
    .library-pick-title {
        font-size: 13px;
    }
    .library-pick-desc {
        font-size: 11px;
    }
}

/* =============================================
   WISHLIST GRID
   ============================================= */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-dim);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide {
    animation: slideIn 0.5s ease-out;
}

/* Staggered grid animation */
.products-grid .product-card {
    animation: fadeIn 0.5s ease-out backwards;
}

.products-grid .product-card:nth-child(1) {
    animation-delay: 0.05s;
}

.products-grid .product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.products-grid .product-card:nth-child(3) {
    animation-delay: 0.15s;
}

.products-grid .product-card:nth-child(4) {
    animation-delay: 0.2s;
}

.products-grid .product-card:nth-child(5) {
    animation-delay: 0.25s;
}

.products-grid .product-card:nth-child(6) {
    animation-delay: 0.3s;
}

.products-grid .product-card:nth-child(7) {
    animation-delay: 0.35s;
}

.products-grid .product-card:nth-child(8) {
    animation-delay: 0.4s;
}

/* =============================================
   LOADING SKELETON
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* =============================================
   GRID LAYOUTS
   ============================================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CAPTCHA
   ============================================= */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.captcha-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    letter-spacing: 2px;
    min-width: 90px;
    text-align: center;
}

.captcha-box input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    text-align: center;
    max-width: 100px;
}

.captcha-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.captcha-label {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent);
}

.text-primary {
    color: var(--primary-light);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

/* =============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================= */

/* TABLET (max 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 32px 0;
    }

    .hero-slide {
        height: 340px;
    }

    .hero-slide .overlay {
        padding: 40px;
    }

    .hero-slide h2 {
        font-size: 32px;
    }

    .hero-slide p {
        font-size: 15px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .product-detail {
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE (max 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 0 12px;
    }

    .navbar-inner {
        height: 60px;
    }

    .navbar-brand {
        font-size: 18px;
        gap: 8px;
    }

    .navbar-actions {
        gap: 8px;
    }

    .nav-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .nav-user-btn {
        padding: 4px 10px 4px 4px;
        font-size: 0;
        gap: 0;
    }

    .nav-user-btn img {
        width: 28px;
        height: 28px;
    }

    /* Hero banner fix */
    .hero-carousel {
        border-radius: 0;
        margin-bottom: 32px;
    }

    .hero-slide {
        height: 220px;
    }

    .hero-slide .overlay {
        padding: 24px 20px;
        justify-content: flex-end;
        padding-bottom: 40px;
    }

    .hero-slide h2 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .hero-slide p {
        font-size: 13px;
        max-width: 100%;
    }

    .hero-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .hero-arrow.prev {
        left: 8px;
    }

    .hero-arrow.next {
        right: 8px;
    }

    .hero-dots {
        bottom: 10px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active {
        width: 24px;
    }

    /* Sections & titles */
    .section {
        padding: 24px 0;
    }

    .section-title {
        font-size: 20px;
        gap: 8px;
        word-break: break-word;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        max-width: 100%;
    }

    .section-link {
        align-self: flex-start;
    }

    /* Product grid for phones */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card .product-image {
        height: 160px;
    }

    .product-info {
        padding: 14px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .product-actions-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px 10px;
        gap: 8px;
    }

    .category-card i {
        font-size: 22px;
        width: 44px;
        height: 44px;
    }

    .category-card span {
        font-size: 11px;
    }

    /* Search */
    .search-container {
        margin-bottom: 24px;
    }

    .search-container input {
        padding: 14px 16px 14px 44px;
        font-size: 14px;
    }

    /* Product detail */
    .product-detail-info h1 {
        font-size: 22px;
    }

    .product-detail-info .detail-price {
        font-size: 26px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn {
        width: 100%;
    }

    .product-gallery .main-image {
        height: 260px;
    }

    .product-gallery .thumb-list img {
        width: 56px;
        height: 56px;
    }

    /* Cart items - stack on mobile */
    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }

    .cart-item-info {
        flex: 1;
        min-width: 0;
    }

    .cart-item-info h4 {
        font-size: 13px;
    }

    .cart-item-bottom {
        width: 100%;
        gap: 8px;
    }

    .cart-qty button {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Checkout */
    .qris-container {
        padding: 20px;
    }

    .qris-container img {
        max-width: 200px;
    }

    .payment-total {
        font-size: 26px;
    }

    .unique-code {
        font-size: 14px;
        padding: 6px 14px;
    }

    /* Profile */
    .profile-sidebar {
        padding: 24px;
    }

    .profile-sidebar .avatar {
        width: 80px;
        height: 80px;
    }

    .profile-content .glass-card {
        padding: 20px;
    }

    /* Auth pages */
    .auth-container {
        padding: 16px;
    }

    .auth-card .glass-card {
        padding: 24px;
    }

    .auth-card h1 {
        font-size: 24px;
    }

    /* Order timeline on mobile */
    .order-timeline {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        padding-bottom: 8px;
    }

    .timeline-step {
        min-width: 80px;
    }

    .timeline-step .step-dot {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .timeline-step span {
        font-size: 10px;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    /* Glass card */
    .glass-card {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    /* Footer */
    .footer {
        margin-top: 32px;
        padding: 32px 0 16px;
    }

    /* Share buttons */
    .share-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* Empty state */
    .empty-state {
        padding: 40px 16px;
    }

    .empty-state i {
        font-size: 48px;
    }

    /* Tables scroll */
    .table-wrapper {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* SMALL MOBILE (max 480px) */
@media (max-width: 480px) {
    .hero-slide {
        height: 180px;
    }

    .hero-slide .overlay {
        padding: 16px;
        padding-bottom: 32px;
    }

    .hero-slide h2 {
        font-size: 18px;
    }

    .hero-slide p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-arrow {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card .product-image {
        height: 140px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info .product-category {
        font-size: 9px;
    }

    .product-info h3 {
        font-size: 13px;
        margin-bottom: 4px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .product-price {
        font-size: 14px;
    }

    .product-meta {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .category-card {
        padding: 12px 8px;
    }

    .category-card i {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }

    .category-card span {
        font-size: 10px;
    }

    .section-title {
        font-size: 18px;
    }

    .container {
        padding: 0 12px;
    }

    .navbar-brand {
        font-size: 16px;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .profile-layout {
        gap: 16px;
    }

    .pagination a,
    .pagination span {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .cart-summary {
        padding: 16px;
    }

    .product-gallery .main-image {
        height: 220px;
    }

    .product-detail-info h1 {
        font-size: 20px;
    }

    .product-detail-info .detail-price {
        font-size: 22px;
    }

    /* Captcha on small screens */
    .captcha-box {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =============================================
   CAPTCHA STYLES
   ============================================= */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.captcha-question {
    font-size: 20px;
    font-weight: 700;
    color: #00cec9;
    white-space: nowrap;
    letter-spacing: 3px;
    min-width: 110px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-box input[name="captcha"] {
    width: 80px;
    min-width: 80px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.captcha-box input[name="captcha"]::-webkit-outer-spin-button,
.captcha-box input[name="captcha"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-box input[name="captcha"]:focus {
    outline: none;
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.captcha-label {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* =============================================
   CHECKOUT & CART GRID (responsive)
   ============================================= */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {

    .checkout-grid,
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   NAVBAR MOBILE FIX
   ============================================= */
@media (max-width: 768px) {
    .navbar-inner {
        position: relative;
    }

    .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .navbar-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }

    .navbar-actions {
        gap: 4px;
        flex-shrink: 0;
    }
}

/* =============================================
   NOTIFICATION BELL & DROPDOWN
   ============================================= */
.notif-bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-bell-btn {
    position: relative;
    cursor: pointer;
    z-index: 10;
}

.notif-bell-btn .fa-bell {
    transition: transform 0.2s ease;
}

.notif-bell-btn:hover .fa-bell {
    transform: rotate(12deg);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid var(--bg);
    z-index: 2;
    pointer-events: none;
}

@keyframes notifBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.notif-badge:not([style*="display:none"]):not([style*="display: none"]) {
    animation: notifBadgePulse 2s ease-in-out infinite;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: 380px;
    max-height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.notif-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.notif-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-right: 0;
    border-bottom: 0;
    transform: rotate(45deg);
    z-index: 1;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
    background: var(--bg-card);
}

.notif-dropdown-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.notif-mark-all {
    font-size: 12px;
    color: var(--primary-light);
    text-decoration: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.notif-mark-all:hover {
    background: rgba(108, 92, 231, 0.1);
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notif-list::-webkit-scrollbar {
    width: 4px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.notif-empty i {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.3;
}

.notif-empty span {
    font-size: 13px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(108, 92, 231, 0.06);
}

.notif-item.notif-unread {
    background: rgba(108, 92, 231, 0.08);
    border-left: 3px solid var(--primary-light);
}

.notif-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notif-item.notif-unread .notif-item-icon {
    background: rgba(108, 92, 231, 0.2);
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 3px;
    color: var(--text);
}

.notif-item-body {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 11px;
    color: var(--primary-light);
    opacity: 0.8;
    margin-top: 4px;
}

.notif-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}

.notif-loading i {
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notif-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        opacity: 1;
    }

    .notif-dropdown.show {
        transform: translateY(0);
    }

    .notif-dropdown::before {
        display: none;
    }

    .notif-dropdown-header {
        padding: 18px 20px 14px;
    }

    .notif-dropdown-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(255,255,255,0.15);
        border-radius: 2px;
    }

    .notif-list {
        max-height: calc(70vh - 60px);
    }

    .notif-item {
        padding: 14px 20px;
    }
}

/* Overlay for mobile dropdown */
.notif-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.notif-overlay.show {
    display: block;
}

/* =============================================
   FLOATING PUSH NOTIFICATION WIDGET
   ============================================= */
.push-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    font-family: inherit;
}

.push-widget-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.push-widget-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.push-widget-fab:active {
    transform: scale(0.95);
}

.push-widget-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--bg);
    display: none;
}

.push-widget-pulse.show {
    display: block;
    animation: pushPulse 2s ease-in-out infinite;
}

@keyframes pushPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Popup panel */
.push-widget-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.push-widget-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.push-widget-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.push-widget-popup-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.push-widget-popup-icon {
    font-size: 20px;
}

.push-widget-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.push-widget-popup-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.push-widget-popup-body {
    padding: 24px 20px 16px;
    text-align: center;
}

.push-widget-popup-illustration {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(108, 92, 231, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-light);
}

.push-widget-popup-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.push-widget-popup-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.push-widget-popup-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 16px;
}

.push-widget-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}

.push-widget-feature i {
    color: var(--success, #10b981);
    font-size: 14px;
    flex-shrink: 0;
}

.push-widget-popup-terms {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 0;
}

.push-widget-popup-footer {
    padding: 16px 20px 20px;
    text-align: center;
}

.push-widget-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.push-widget-btn-sub {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.push-widget-btn-sub:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
}

.push-widget-btn-unsub {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.push-widget-btn-unsub:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.push-widget-status {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    min-height: 18px;
}

.push-widget-status.success {
    color: var(--success, #10b981);
}

.push-widget-status.error {
    color: #ef4444;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .push-widget {
        bottom: 16px;
        right: 16px;
    }

    .push-widget-fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .push-widget-popup {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        opacity: 1;
    }

    .push-widget-popup.show {
        transform: translateY(0);
    }

    .push-widget-popup-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 2px;
    }

    .push-widget-popup-header {
        position: relative;
        padding-top: 22px;
    }

}

/* =============================================
   2026 UI REFRESH OVERRIDES
   ============================================= */
body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(103, 232, 249, 0.12), transparent 30%),
        radial-gradient(circle at right 10% top 15%, rgba(245, 158, 11, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    background-color: var(--bg-dark);
}

    body::before {
        background:
            radial-gradient(circle at 10% 18%, rgba(20, 184, 166, 0.16), transparent 22%),
            radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.14), transparent 18%),
            radial-gradient(circle at 72% 82%, rgba(103, 232, 249, 0.12), transparent 20%);
        opacity: 0.95;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    .navbar-brand,
    .section-title,
    .hero-slide h2,
    .footer-col h4,
    .auth-card h1 {
        font-family: var(--font-display);
        letter-spacing: -0.03em;
    }

    .container {
        max-width: 1320px;
    }

    .navbar {
        width: min(calc(100% - 24px), 1320px);
        margin: 14px auto 0;
        padding: 0 20px;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: rgba(8, 18, 27, 0.78);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
        top: 10px;
    }

    [data-theme="light"] .navbar {
        background: rgba(255, 255, 255, 0.78);
    }

    .navbar-inner {
        height: 76px;
        max-width: none;
    }

    .navbar-brand {
        font-size: 24px;
    }

    .navbar-menu a {
        padding: 10px 16px;
        border-radius: 999px;
        font-weight: 700;
    }

    .navbar-menu a:hover,
    .navbar-menu a.active {
        background: rgba(103, 232, 249, 0.12);
        color: var(--text);
    }

    .navbar-actions {
        gap: 10px;
    }

    .nav-icon-btn,
    .theme-toggle {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    [data-theme="light"] .nav-icon-btn,
    [data-theme="light"] .theme-toggle {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.88));
    }

    .nav-user-btn {
        padding: 7px 16px 7px 7px;
        border-radius: 18px;
        font-weight: 700;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    }

    .glass-card,
    .product-card,
    .category-card,
    .stat-card,
    .checkout-card,
    .cart-item,
    .order-card,
    .profile-card,
    .auth-card {
        box-shadow: var(--shadow);
    }

    .glass-card {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
        border-radius: 28px;
    }

    [data-theme="light"] .glass-card {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.9));
    }

    .home-intro {
        padding-top: 30px;
        padding-bottom: 16px;
    }

    .home-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
        gap: 24px;
        align-items: stretch;
    }

    .home-hero-copy,
    .home-hero-panel {
        position: relative;
        overflow: hidden;
    }

    .home-hero-copy::before,
    .home-hero-panel::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(103, 232, 249, 0.09), transparent 36%, rgba(245, 158, 11, 0.08));
        pointer-events: none;
    }

    .home-hero-copy > *,
    .home-hero-panel > * {
        position: relative;
        z-index: 1;
    }

    .home-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 999px;
        margin-bottom: 18px;
        background: rgba(20, 184, 166, 0.12);
        border: 1px solid rgba(103, 232, 249, 0.18);
        color: var(--primary-light);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .home-title {
        max-width: none;
        margin: 0 auto 16px auto;
        font-size: clamp(1.5rem, 3vw, 2.2rem);
        line-height: 1.3;
        text-align: center;
    }

    .home-title .accent {
        color: var(--accent);
    }

    .home-description {
        max-width: 62ch;
        margin-bottom: 24px;
        color: var(--text-muted);
        font-size: 16px;
        line-height: 1.8;
    }

    .home-hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
    }

    .home-hero-highlights {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 26px;
    }

    .home-hero-highlights span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 11px 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
    }

    .home-hero-highlights i {
        color: var(--accent);
    }

    .home-search.search-container {
        max-width: none;
        margin: 0;
    }

    .home-stat-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-bottom: 18px;
    }

    .home-stat-card {
        padding: 18px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
    }

    .home-stat-card span {
        display: block;
        margin-bottom: 8px;
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .home-stat-card strong {
        font-family: var(--font-display);
        font-size: clamp(1.4rem, 3vw, 2rem);
        color: var(--text);
    }

    .home-hero-note {
        padding: 20px;
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(103, 232, 249, 0.09));
        border: 1px solid rgba(245, 158, 11, 0.18);
    }

    .home-hero-note h3 {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .home-hero-note p {
        color: var(--text-muted);
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-carousel {
        border-radius: 32px;
        border: 1px solid var(--border);
        margin-top: 10px;
        box-shadow: var(--shadow-lg);
    }

    .hero-slide {
        height: 500px;
    }

    .hero-slide .overlay {
        background: linear-gradient(135deg, rgba(4, 10, 17, 0.82) 0%, rgba(4, 10, 17, 0.22) 56%, rgba(20, 184, 166, 0.18) 100%);
        padding: 72px;
    }

    .hero-slide h2 {
        max-width: 10ch;
        font-size: clamp(2rem, 4vw, 3.75rem);
        line-height: 1.03;
    }

    .hero-slide p {
        max-width: 46ch;
        font-size: 16px;
        color: rgba(230, 240, 247, 0.84);
    }

    .section {
        padding: 56px 0;
    }

    .section-header {
        gap: 16px;
        align-items: end;
    }

    .section-title {
        font-size: clamp(1.5rem, 2vw, 2rem);
    }

    .posts-grid {
        gap: 18px;
    }

    .post-card {
        padding: 24px;
        border-radius: 26px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
        gap: 18px;
    }

    .category-card {
        align-items: flex-start;
        padding: 24px 20px;
        border-radius: 26px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    }

    .category-card i {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(103, 232, 249, 0.2));
        color: var(--primary-light);
    }

    .category-card span {
        color: var(--text);
        font-size: 14px;
        font-weight: 800;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        gap: 22px;
    }

    .product-card {
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    }

    .product-card:hover {
        transform: translateY(-8px);
        border-color: rgba(103, 232, 249, 0.26);
    }

    .product-card .product-image {
        height: 230px;
    }

    .product-card .product-image::after {
        content: '';
        position: absolute;
        inset: auto 0 0;
        height: 55%;
        background: linear-gradient(180deg, transparent, rgba(4, 10, 17, 0.48));
        pointer-events: none;
    }

    .product-info {
        padding: 22px;
    }

    .product-price {
        margin-top: 6px;
        font-family: var(--font-display);
        font-size: 24px;
        color: var(--accent);
    }

    .product-meta {
        margin-top: 16px;
    }

    .product-actions-overlay {
        opacity: 1;
        transform: translateY(0);
        justify-content: space-between;
        pointer-events: none;
    }

    .product-actions-overlay .product-action-btn {
        pointer-events: auto;
    }

    .product-action-btn {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .search-container input,
    .form-control {
        border-radius: 18px;
    }

    .search-container input {
        min-height: 60px;
        padding-left: 56px;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    }

    .btn {
        border-radius: 16px;
        font-weight: 800;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary), var(--accent));
        box-shadow: 0 16px 30px rgba(20, 184, 166, 0.24);
    }

    .btn-primary:hover {
        box-shadow: 0 20px 36px rgba(20, 184, 166, 0.28);
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.04);
    }

    .empty-state {
        padding: 52px 28px;
        border-radius: 30px;
    }

    .empty-state i {
        width: 78px;
        height: 78px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 22px;
        background: rgba(20, 184, 166, 0.1);
    }

    .footer {
        position: relative;
        margin-top: 80px;
        padding: 60px 0 28px;
        background: linear-gradient(180deg, rgba(9, 18, 26, 0.32), rgba(5, 11, 18, 0.92));
        overflow: hidden;
    }

    .footer::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.14), transparent 22%),
            radial-gradient(circle at 85% 18%, rgba(245, 158, 11, 0.12), transparent 18%);
        pointer-events: none;
    }

    .footer .container {
        position: relative;
        z-index: 1;
    }

    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
        gap: 28px;
    }

    .footer-col h4 {
        margin-bottom: 18px;
    }

    .footer-social a {
        border-radius: 14px;
    }

    [data-theme="light"] .footer {
        background: linear-gradient(180deg, rgba(229, 239, 245, 0.32), rgba(222, 234, 240, 0.96)) !important;
        color: #102033 !important;
    }

    [data-theme="light"] .footer a,
    [data-theme="light"] .footer p,
    [data-theme="light"] .footer span,
    [data-theme="light"] .footer-bottom,
    [data-theme="light"] .footer-col ul li a {
        color: #526579 !important;
    }

    [data-theme="light"] .footer h4,
    [data-theme="light"] .footer h3 {
        color: #102033 !important;
        -webkit-text-fill-color: #102033 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
    }

    [data-theme="light"] .footer-social a:hover {
        color: #fff !important;
    }

    @media (max-width: 1024px) {
        .home-hero-grid {
            grid-template-columns: 1fr;
        }

        .home-title,
        .hero-slide h2 {
            max-width: none;
        }

        .footer-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 768px) {
        .navbar {
            width: calc(100% - 16px);
            margin-top: 8px;
            padding: 0 10px;
            border-radius: 20px;
        }

        .navbar-inner {
            height: 56px;
            gap: 6px;
        }

        .navbar-brand {
            font-size: 15px;
            flex-shrink: 1;
            min-width: 0;
        }

        .navbar-brand span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100px;
            display: inline-block;
        }

        .navbar-actions {
            gap: 4px;
            flex-shrink: 0;
        }

        .navbar-actions .nav-icon-btn,
        .navbar-actions .theme-toggle,
        .navbar-actions .notif-bell-btn .nav-icon-btn {
            width: 34px;
            height: 34px;
            font-size: 14px;
            border-radius: 10px;
        }

        .navbar-actions .btn-primary.btn-sm {
            padding: 6px 12px;
            font-size: 12px;
            min-height: 34px;
            white-space: nowrap;
        }

        .nav-user-btn {
            padding: 3px 8px 3px 3px;
            font-size: 0;
            gap: 0;
        }

        .nav-user-btn img {
            width: 26px;
            height: 26px;
        }

        .home-intro {
            padding-top: 18px;
        }

        .home-hero-copy,
        .home-hero-panel,
        .glass-card {
            padding: 22px;
            border-radius: 24px;
        }

        .home-title {
            font-size: 2rem;
        }

        .home-stat-grid {
            grid-template-columns: 1fr 1fr;
        }

        .hero-carousel {
            border-radius: 26px;
        }

        .hero-slide {
            height: 360px;
        }

        .hero-slide .overlay {
            padding: 28px;
        }

        .hero-slide p {
            font-size: 14px;
        }

        .products-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .product-actions-overlay {
            justify-content: space-between;
            padding: 8px;
        }

        .product-action-btn {
            width: 30px;
            height: 30px;
            border-radius: 10px;
            font-size: 12px;
        }

        .footer-grid {
            grid-template-columns: 1fr;
        }

        /* Section header fix */
        .section-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            overflow: hidden;
        }

        .section-title {
            font-size: 18px;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .section-link {
            align-self: flex-start;
        }

        /* Container overflow fix */
        .container {
            overflow-x: hidden;
        }
    }

    @media (max-width: 480px) {
        .navbar {
            width: calc(100% - 12px);
            padding: 0 8px;
        }

        .navbar-inner {
            height: 52px;
        }

        .navbar-brand {
            font-size: 14px;
        }

        .navbar-brand span {
            max-width: 80px;
        }

        .navbar-actions .nav-icon-btn,
        .navbar-actions .theme-toggle {
            width: 30px;
            height: 30px;
            font-size: 13px;
            border-radius: 8px;
        }

        .navbar-actions .btn-primary.btn-sm {
            padding: 5px 10px;
            font-size: 11px;
            min-height: 30px;
        }

        .home-stat-grid {
            grid-template-columns: 1fr;
        }

        .home-hero-actions {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
        }

        .home-hero-actions .btn {
            width: auto;
            font-size: 13px;
        }

        .search-container input {
            min-height: 56px;
            font-size: 14px;
        }

        .products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .product-card .product-image {
            height: 130px;
        }

        .product-actions-overlay {
            padding: 6px;
        }

        .product-action-btn {
            width: 28px;
            height: 28px;
            border-radius: 9px;
            font-size: 11px;
        }

        .section-title {
            font-size: 16px;
        }
    }

/* Push widget overlay for mobile */
.push-widget-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9989;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.push-widget-overlay.show {
    display: block;
}

/* ---- Profile Notification Settings Card ---- */
.notif-settings-card {
    margin-top: 0;
}

.notif-settings-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.notif-settings-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notif-settings-status-icon.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* =============================================
   2026 RESPONSIVE POLISH OVERRIDES
   ============================================= */
body,
.btn,
.form-control,
.search-container input,
textarea.form-control,
select.form-control,
table {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.search-container input:focus {
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.28);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #fcd34d);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.table-wrapper {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(8, 20, 29, 0.52);
    overscroll-behavior-x: contain;
}

table th {
    background: rgba(20, 184, 166, 0.09);
}

.empty-state {
    padding: 44px 24px;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.05), rgba(7, 20, 29, 0.02));
}

.empty-state i {
    color: var(--primary-light);
    text-shadow: 0 14px 34px rgba(20, 184, 166, 0.18);
}

.empty-state h3 {
    font-family: 'Sora', 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

.empty-state p {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .glass-card,
    .empty-state,
    .auth-card,
    .cart-item,
    .checkout-layout,
    .profile-sidebar,
    .profile-main {
        border-radius: 22px;
    }

    .glass-card,
    .empty-state {
        padding: 22px 18px;
    }

    .btn {
        min-height: 46px;
        padding: 12px 18px;
    }

    /* Keep navbar buttons compact */
    .navbar-actions .btn {
        min-height: auto;
        padding: 6px 12px;
    }

    .search-container {
        margin-bottom: 24px;
    }

    .search-container input {
        min-height: 54px;
        padding-left: 46px;
    }

    .product-info,
    .category-card,
    .feature-card,
    .post-card-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .table-wrapper {
        border-radius: 16px;
    }

    table {
        min-width: 620px;
    }

    table th,
    table td {
        padding: 11px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 20px 16px;
    }

    .empty-state i {
        font-size: 34px;
    }

    .btn {
        width: 100%;
    }

    /* Prevent navbar Masuk button from taking full width */
    .navbar-actions .btn {
        width: auto;
    }
}

/* =============================================
   2026 TRANSACTION FLOW POLISH
   ============================================= */
.transaction-shell {
    max-width: 1140px;
    margin: 0 auto;
}

.transaction-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 26px 28px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: radial-gradient(circle at top right, rgba(103, 232, 249, 0.12), transparent 30%), linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(7, 20, 29, 0.16));
    box-shadow: 0 24px 60px rgba(3, 10, 18, 0.22);
}

.transaction-hero-copy {
    max-width: 720px;
}

.transaction-hero .section-title {
    margin-bottom: 10px;
}

.transaction-hero p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.transaction-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.transaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.transaction-badge i {
    color: var(--primary-light);
}

.transaction-card {
    position: relative;
    overflow: hidden;
}

.transaction-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.4), transparent);
    pointer-events: none;
}

.cart-items-card,
.checkout-section-card,
.status-search-card,
.payment-method-card,
.order-detail-card,
.orders-filter-card,
.my-order-card,
.success-state-card {
    border-radius: 24px;
}

.cart-summary {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.09), rgba(7, 20, 29, 0.14));
    border: 1px solid rgba(20, 184, 166, 0.14);
}

.summary-card-title {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 18px;
    margin-bottom: 6px;
}

.summary-card-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.order-line {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.order-line:last-child {
    border-bottom: none;
}

.order-line-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.order-line-content {
    flex: 1;
    min-width: 0;
}

.order-line-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.order-line-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.order-line-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
    white-space: nowrap;
}

.form-data-inline {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-data-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 11px;
}

.voucher-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.voucher-box-label {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 4px;
}

.voucher-box-code {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
    white-space: pre-wrap;
}

.order-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.checkout-product-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
}

.checkout-product-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-product-header img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 12px;
}

.checkout-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.checkout-coupon-panel {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-coupon-input {
    display: flex;
    gap: 8px;
}

.trust-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.trust-note i {
    color: var(--primary-light);
    margin-top: 2px;
}

.payment-method-card {
    position: relative;
}

.payment-method-head {
    text-align: center;
}

.payment-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.payment-chip {
    background: rgba(255,255,255,0.06);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #94a3b8;
}

.success-state-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 16px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(103, 232, 249, 0.2), rgba(20, 184, 166, 0.1));
    border: 1px solid rgba(20, 184, 166, 0.18);
    font-size: 40px;
    color: var(--primary-light);
}

.order-status-shell {
    max-width: 760px;
    margin: 0 auto;
}

.orders-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.my-order-card {
    padding: 20px;
}

.my-order-header,
.my-order-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.my-order-footer {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.my-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .transaction-hero {
        flex-direction: column;
        padding: 20px 18px;
        border-radius: 24px;
    }

    .transaction-badges {
        justify-content: flex-start;
    }

    .order-search-form,
    .checkout-coupon-input,
    .my-order-header,
    .my-order-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .order-line {
        gap: 12px;
    }

    .order-line-price {
        min-width: 0;
        text-align: left;
    }

    .checkout-product-grid {
        grid-template-columns: 1fr;
    }

    .my-order-actions {
        width: 100%;
    }

    .my-order-actions .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .order-line {
        display: grid;
        grid-template-columns: 48px 1fr;
    }

    .order-line-price {
        grid-column: 2;
        padding-top: 4px;
    }

    .transaction-badge {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   2026 LIGHT MODE + MOTION POLISH
   ============================================= */
[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse at 18% 28%, rgba(20, 184, 166, 0.10) 0%, transparent 46%),
        radial-gradient(ellipse at 82% 18%, rgba(245, 158, 11, 0.08) 0%, transparent 42%),
        radial-gradient(ellipse at 52% 82%, rgba(103, 232, 249, 0.10) 0%, transparent 48%);
}

[data-theme="light"] .navbar-menu::before {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), rgba(255, 255, 255, 0.96)) !important;
}

[data-theme="light"] .navbar-menu a:hover,
[data-theme="light"] .navbar-menu a.active {
    background: rgba(20, 184, 166, 0.10) !important;
    color: var(--primary-dark) !important;
}

[data-theme="light"] .navbar-menu a:hover i,
[data-theme="light"] .navbar-menu a.active i {
    color: var(--primary-dark) !important;
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.20);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 18px 36px rgba(20, 184, 166, 0.24);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .empty-state,
[data-theme="light"] .transaction-hero,
[data-theme="light"] .cart-summary,
[data-theme="light"] .trust-note,
[data-theme="light"] .table-wrapper {
    background-color: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .transaction-hero {
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 30%), linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.92));
}

[data-theme="light"] .transaction-badge,
[data-theme="light"] .form-data-chip {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--text);
}

[data-theme="light"] .cart-summary {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0.92));
    border-color: rgba(20, 184, 166, 0.16);
}

[data-theme="light"] .voucher-box {
    background: rgba(245, 158, 11, 0.08);
}

[data-theme="light"] .empty-state {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.04), rgba(255, 255, 255, 0.92));
}

@media (prefers-reduced-motion: no-preference) {
    html.motion-enabled .transaction-hero,
    html.motion-enabled .transaction-card,
    html.motion-enabled .cart-items-card,
    html.motion-enabled .checkout-section-card,
    html.motion-enabled .order-line,
    html.motion-enabled .my-order-card,
    html.motion-enabled .empty-state,
    html.motion-enabled .product-card,
    html.motion-enabled .category-card,
    html.motion-enabled .feature-card,
    html.motion-enabled .post-card,
    html.motion-enabled .stat-card,
    html.motion-enabled .voucher-box,
    html.motion-enabled .form-data-chip,
    html.motion-enabled .payment-method-card {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        will-change: opacity, transform;
    }

    html.motion-enabled .is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    html.motion-enabled .transaction-hero.is-visible {
        transition-duration: 0.7s;
    }

    html.motion-enabled .order-line.is-visible,
    html.motion-enabled .voucher-box.is-visible,
    html.motion-enabled .payment-method-card.is-visible {
        transition-duration: 0.65s;
    }
}

.notif-settings-status-icon.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.notif-settings-status-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}

.notif-settings-status-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.notif-settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.notif-settings-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.notif-settings-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.notif-settings-toggle-label i {
    font-size: 16px;
    color: var(--primary-light);
    width: 20px;
    text-align: center;
}

/* Toggle switch */
.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s ease;
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* =============================================
   MOBILE LAYOUT FIXES (final overrides)
   ============================================= */
body {
    overflow-x: clip;
}

@media (max-width: 768px) {
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .section-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 18px;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .section-link {
        align-self: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info {
        padding: 12px;
    }

    .product-price {
        font-size: 14px;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 6px;
    }

    .product-price-old,
    .price-original {
        font-size: 10px !important;
    }

    .navbar-actions .btn {
        width: auto;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .cart-item img {
        width: 56px;
        height: 56px;
    }

    .cart-item-info {
        flex: 1;
        min-width: 0;
    }

    .cart-item-info h4 {
        font-size: 13px;
    }

    .cart-item-bottom {
        width: 100%;
        gap: 8px;
    }

    .cart-item-subtotal {
        font-size: 14px;
    }

    .cart-qty button {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .section-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 13px;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 4px;
    }

    .product-price-old,
    .price-original {
        font-size: 9px !important;
        margin-right: 0 !important;
    }

    .discount-badge {
        font-size: 8px !important;
        padding: 1px 4px !important;
        margin-left: 0 !important;
    }

    .product-card .product-image {
        height: 130px;
    }

    .navbar-actions .btn {
        width: auto;
    }

    .navbar-actions .btn-primary.btn-sm {
        padding: 5px 10px;
        font-size: 11px;
    }

    .cart-item {
        padding: 12px;
        gap: 8px;
    }

    .cart-item img {
        width: 48px;
        height: 48px;
    }

    .cart-item-subtotal {
        font-size: 13px;
    }

    .cart-qty button {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

/* =============================================
   NAVBAR FIXED + GLASSMORPHISM OVERHAUL
   Ensures navbar stays in place on scroll (all screens)
   ============================================= */

/* -- Switch from sticky to fixed so it never disappears on scroll -- */
.navbar {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    background: rgba(8, 18, 27, 0.5) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* -- Body top padding to prevent content hiding behind fixed navbar -- */
body {
    padding-top: 100px !important;
}

/* -- Navbar brand: clean display font -- */
.navbar-brand {
    font-family: var(--font-display) !important;
    letter-spacing: -0.02em !important;
    font-weight: 800 !important;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* -- Nav action buttons: subtle glass feel -- */
.nav-icon-btn,
.theme-toggle {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.2s ease !important;
}

.nav-icon-btn:hover,
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
}

[data-theme="light"] .nav-icon-btn,
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .nav-icon-btn:hover,
[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* -- Nav user button -- */
.nav-user-btn {
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

[data-theme="light"] .nav-user-btn {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* =============================================
   MOBILE NAVBAR + SIDEBAR MENU OVERHAUL
   ============================================= */
@media (max-width: 768px) {
    body {
        padding-top: 72px !important;
    }

    .navbar {
        top: 8px !important;
        width: calc(100% - 16px) !important;
        padding: 0 12px !important;
        border-radius: 18px !important;
    }

    .navbar-inner {
        height: 54px !important;
    }

    /* -- Mobile toggle button -- */
    .mobile-toggle {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        font-size: 18px !important;
        color: var(--text) !important;
        transition: background 0.2s ease !important;
    }

    .mobile-toggle:active {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    /* -- Sidebar menu: glassmorphism -- */
    .navbar-menu {
        width: 280px !important;
        background: rgba(10, 15, 28, 0.78) !important;
        backdrop-filter: blur(32px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45) !important;
        transform: translateX(-100%);
        visibility: hidden;
    }

    .navbar-menu.open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* -- Sidebar header "Menu" -- */
    .navbar-menu::before {
        content: 'Menu' !important;
        font-family: var(--font-display) !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
        padding: 26px 24px 20px !important;
        background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        color: var(--text) !important;
    }

    /* -- Sidebar menu links -- */
    .navbar-menu a {
        font-family: var(--font-body) !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 0.005em !important;
        padding: 13px 24px !important;
        border-radius: 0 !important;
        color: rgba(255, 255, 255, 0.65) !important;
        transition: all 0.2s ease !important;
        gap: 14px !important;
    }

    .navbar-menu a:hover,
    .navbar-menu a.active {
        background: rgba(20, 184, 166, 0.1) !important;
        color: var(--primary-light) !important;
        padding-left: 30px !important;
    }

    .navbar-menu a i {
        width: 20px !important;
        font-size: 14px !important;
        text-align: center !important;
        color: rgba(255, 255, 255, 0.35) !important;
        transition: color 0.2s ease !important;
    }

    .navbar-menu a:hover i,
    .navbar-menu a.active i {
        color: var(--primary) !important;
    }

    /* -- Sidebar overlay with subtle blur -- */
    .sidebar-overlay {
        background: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }

    /* ---- Light mode sidebar ---- */
    [data-theme="light"] .navbar-menu {
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(32px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.08) !important;
    }

    [data-theme="light"] .navbar-menu::before {
        background: linear-gradient(135deg, rgba(20, 184, 166, 0.04), rgba(255, 255, 255, 0.95)) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        color: #1e293b !important;
        -webkit-text-fill-color: #1e293b !important;
    }

    [data-theme="light"] .navbar-menu a {
        color: #475569 !important;
    }

    [data-theme="light"] .navbar-menu a i {
        color: #94a3b8 !important;
    }

    [data-theme="light"] .navbar-menu a:hover,
    [data-theme="light"] .navbar-menu a.active {
        background: rgba(20, 184, 166, 0.08) !important;
        color: var(--primary-dark) !important;
    }

    [data-theme="light"] .navbar-menu a:hover i,
    [data-theme="light"] .navbar-menu a.active i {
        color: var(--primary-dark) !important;
    }

    [data-theme="light"] .sidebar-overlay {
        background: rgba(0, 0, 0, 0.18) !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 66px !important;
    }

    .navbar {
        top: 6px !important;
        width: calc(100% - 12px) !important;
        padding: 0 8px !important;
        border-radius: 16px !important;
    }

    .navbar-inner {
        height: 50px !important;
    }

    .navbar-brand {
        font-size: 14px !important;
    }

    .navbar-brand span {
        max-width: 90px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }

    .mobile-toggle {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
    }

    .nav-icon-btn,
    .theme-toggle {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        border-radius: 9px !important;
    }

    .nav-user-btn {
        padding: 3px 8px 3px 3px !important;
        font-size: 0 !important;
        gap: 0 !important;
    }

    .nav-user-btn img {
        width: 26px !important;
        height: 26px !important;
    }

    .navbar-actions {
        gap: 4px !important;
    }
}