/* ═══════════════════════════════════════════════════════════════
   MMOFAST ULTRA PREMIUM UI v3.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Import Fonts ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────── */
:root {
    /* Background Palette */
    --bg-body: #030712;
    --bg-sidebar: rgba(8, 12, 30, 0.95);
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-solid: #0f172a;
    --bg-card-hover: rgba(20, 28, 50, 0.8);
    --bg-input: rgba(15, 23, 42, 0.8);
    --bg-glass: rgba(15, 23, 42, 0.4);
    --bg-overlay: rgba(0, 0, 0, 0.6);

    /* Border */
    --border: rgba(148, 163, 184, 0.08);
    --border-hover: rgba(99, 102, 241, 0.35);
    --border-glass: rgba(148, 163, 184, 0.06);

    /* Brand Colors */
    --primary: #818cf8;
    --primary-deep: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --primary-gradient: linear-gradient(135deg, #818cf8, #6366f1, #4f46e5);
    --secondary: #34d399;
    --secondary-deep: #10b981;
    --accent: #fbbf24;
    --accent-deep: #f59e0b;
    --danger: #f87171;
    --danger-deep: #ef4444;
    --info: #38bdf8;

    /* Text */
    --text: #cbd5e1;
    --text-muted: #64748b;
    --text-bright: #f1f5f9;
    --text-white: #ffffff;

    /* Spacing & Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --t-fast: 0.15s;
    --t-normal: 0.25s;
    --t-slow: 0.4s;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Sidebar */
    --sidebar-width: 280px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Animated background mesh */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(99, 102, 241, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(16, 185, 129, 0.05), transparent),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(99, 102, 241, 0.03), transparent);
    pointer-events: none;
    z-index: 0;
}

a { text-decoration: none; color: inherit; transition: color var(--t-fast) var(--ease); }
input, select, textarea, button { font-family: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.25); }

/* ── Layout Grid ───────────────────────────────── */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── Mobile Menu Toggle ────────────────────────── */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    transition: transform var(--t-normal) var(--ease-bounce);
}
.mobile-menu-toggle:active { transform: scale(0.9); }

/* ── Sidebar ───────────────────────────────────── */
.sidebar {
    background: var(--bg-sidebar);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    padding: 28px 16px;
    transition: transform var(--t-slow) var(--ease);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.1); border-radius: 10px; }

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px;
    margin-bottom: 32px;
    text-decoration: none;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}
.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%,100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}
.logo-text {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary); }

/* Nav Section Labels */
.nav-section {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    padding: 0 14px;
    margin: 28px 0 10px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Nav Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--t-normal) var(--ease);
    position: relative;
    margin-bottom: 2px;
}
.nav-item i {
    width: 20px;
    font-size: 15px;
    text-align: center;
    transition: all var(--t-normal) var(--ease);
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-bright);
    transform: translateX(3px);
}
.nav-item.active {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav-item.active i { color: #fff; }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #fff;
    border-radius: 0 3px 3px 0;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.sb-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--t-normal) var(--ease);
}
.sb-user-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}
.sb-user-avatar {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}
.sb-user-name {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}
.sb-user-balance {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 700;
}
.sb-logout-btn {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(248, 113, 113, 0.08);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--t-normal) var(--ease);
    border: 1px solid rgba(248, 113, 113, 0.1);
    flex-shrink: 0;
}
.sb-logout-btn:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
    transform: scale(1.05);
}

/* ── Topbar ────────────────────────────────────── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 36px;
    border-bottom: 1px solid var(--border);
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: sticky;
    top: 0;
    z-index: 50;
}
.search-box-premium {
    position: relative;
    width: 420px;
}
.search-box-premium i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    transition: color var(--t-normal) var(--ease);
}
.search-box-premium input {
    width: 100%;
    padding: 11px 15px 11px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-bright);
    font-size: 13px;
    outline: none;
    transition: all var(--t-normal) var(--ease);
}
.search-box-premium input::placeholder { color: var(--text-muted); }
.search-box-premium input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(15, 23, 42, 0.9);
}
.search-box-premium input:focus ~ i { color: var(--primary); }
.search-keycap {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(30, 41, 59, 0.8);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    font-weight: 600;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--t-normal) var(--ease);
    position: relative;
}
.topbar-icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.topbar-greeting {
    font-size: 13px;
    color: var(--text-muted);
}
.topbar-greeting strong {
    color: var(--text-bright);
    font-weight: 700;
}

/* ── Content Area ──────────────────────────────── */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.content-body {
    padding: 32px 36px;
    flex: 1;
    animation: contentFadeIn 0.5s var(--ease) forwards;
}

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

/* ── Cards ─────────────────────────────────────── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--t-normal) var(--ease);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-title i {
    color: var(--primary);
    font-size: 16px;
}

/* ── Category Title ────────────────────────────── */
.category-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
    letter-spacing: -0.3px;
}

/* ── Product Grid & Cards ──────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--t-normal) var(--ease);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--t-normal) var(--ease);
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}
.product-card:hover::before { opacity: 1; }

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.pc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.4;
}
.pc-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}
.pc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.pc-price .label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.pc-price .value {
    font-size: 22px;
    font-weight: 800;
    color: var(--danger);
    letter-spacing: -0.5px;
}
.pc-stock-tag {
    background: rgba(129, 140, 248, 0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(129, 140, 248, 0.12);
}
.pc-stock-tag strong {
    color: var(--text-bright);
    font-size: 14px;
    font-weight: 800;
}
.pc-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pc-badge.success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

/* ── Buttons ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all var(--t-normal) var(--ease);
    text-decoration: none;
    justify-content: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
    filter: brightness(1.08);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.08);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.15);
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3);
}

.btn-success {
    background: rgba(52, 211, 153, 0.08);
    color: var(--secondary);
    border: 1px solid rgba(52, 211, 153, 0.15);
}
.btn-success:hover {
    background: var(--secondary-deep);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn i { font-size: 13px; }

/* Buy button (backward compat) */
.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--t-normal) var(--ease);
    box-shadow: 0 4px 16px var(--primary-glow);
    font-family: inherit;
}
.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
    filter: brightness(1.08);
}

/* ── Badges ────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-ok {
    background: rgba(52, 211, 153, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(52, 211, 153, 0.12);
}
.badge-warn {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.12);
}
.badge-err {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.12);
}
.badge-info {
    background: rgba(56, 189, 248, 0.1);
    color: var(--info);
    border: 1px solid rgba(56, 189, 248, 0.12);
}
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-premium.success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(52, 211, 153, 0.12);
}
.badge-premium.danger {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.12);
}

/* ── Tables ────────────────────────────────────── */
.premium-table {
    width: 100%;
    border-collapse: collapse;
}
.premium-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}
.premium-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text);
    vertical-align: middle;
}
.premium-table tr { transition: background var(--t-fast) var(--ease); }
.premium-table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.premium-table tr:last-child td { border-bottom: none; }
.premium-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.premium-table-container { overflow-x: auto; }

/* ── Premium Tabs ──────────────────────────────── */
.premium-tabs {
    display: flex;
    gap: 6px;
    background: rgba(15, 23, 42, 0.5);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow-x: auto;
}
.premium-tabs .tab-item {
    padding: 10px 20px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-normal) var(--ease);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.premium-tabs .tab-item i { font-size: 13px; }
.premium-tabs .tab-item:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.04);
}
.premium-tabs .tab-item.active {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* ── Category Filters ──────────────────────────── */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    padding: 8px 0;
}
.filter-chip {
    padding: 12px 22px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--t-normal) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.filter-chip i {
    font-size: 14px;
    color: var(--primary);
    transition: all var(--t-normal) var(--ease);
}
.filter-chip:hover {
    border-color: var(--primary);
    color: var(--text-bright);
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.filter-chip.active {
    background: var(--primary-gradient);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.filter-chip.active i { color: #fff !important; }
.filter-chip.all-chip { background: rgba(255, 255, 255, 0.02); border-color: var(--border); }
.filter-chip.all-chip.active { background: var(--primary-gradient); }

/* ── Category Wrapper ──────────────────────────── */
.category-wrapper {
    display: block;
    animation: slideUp 0.4s var(--ease) forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-size: 14px;
    outline: none;
    transition: all var(--t-normal) var(--ease);
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(15, 23, 42, 0.95);
}
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* ── OTP Badge ─────────────────────────────────── */
.otp-badge {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    background: rgba(52, 211, 153, 0.06);
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px dashed rgba(52, 211, 153, 0.3);
    display: inline-block;
    letter-spacing: 3px;
}

/* ── Section Title ─────────────────────────────── */
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.5px;
}
.section-title i {
    color: var(--primary);
    font-size: 20px;
}

/* ── Alerts ────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    animation: slideDown 0.3s var(--ease);
}
.alert-success {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    color: var(--secondary);
}
.alert-error {
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.15);
    color: var(--danger);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
    padding: 24px 36px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}
.site-footer a {
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease);
}
.site-footer a:hover { color: var(--primary); }

/* ── Empty State ───────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    opacity: 0.1;
    margin-bottom: 16px;
    display: block;
}
.empty-state p { font-size: 14px; }

/* ── Product Grid for Profile ──────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

/* ── SweetAlert2 Custom ────────────────────────── */
.swal2-popup.premium-swal,
.swal2-popup.premium-popup {
    background: rgba(7, 11, 20, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
}

/* ── Utility Animation Classes ─────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.35); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* Stagger animation for cards */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card {
    animation: fadeIn 0.5s var(--ease) both;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1280px) {
    .topbar { padding: 16px 24px; }
    .content-body { padding: 28px 24px; }
    .search-box-premium { width: 320px; }
}

@media (max-width: 1024px) {
    .app-container { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: var(--sidebar-width);
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: 16px 0 48px rgba(0, 0, 0, 0.5);
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
    }
    .mobile-overlay.active { display: block; }
    .topbar { padding: 14px 20px; }
    .content-body { padding: 20px 16px; }
    .search-box-premium { width: 240px; }
    .product-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .site-footer { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
    .search-box-premium { width: 100%; }
    .topbar { flex-direction: column; gap: 12px; align-items: stretch; }
    .topbar-user { justify-content: flex-end; }
    .premium-tabs { overflow-x: auto; }
    .filter-chip { padding: 10px 16px; font-size: 11px; }
    .category-filter { gap: 8px; }
}

/* ── Loading shimmer ───────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Tooltip ───────────────────────────────────── */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 11px;
    color: var(--text-bright);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--t-fast) var(--ease);
    z-index: 100;
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Special Login/Register Fullpage Styles ─────── */
.login-page,
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-page::before,
.register-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}
.login-page::after,
.register-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.6s var(--ease);
    position: relative;
    z-index: 1;
}

/* Auth input fields (backward compat for inline styles) */
.auth-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: #fff;
    outline: none;
    transition: all var(--t-normal) var(--ease);
    font-size: 14px;
}
.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ── Notification Dot ──────────────────────────── */
.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* ── Admin Specific Button Styles ──────────────── */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--t-normal) var(--ease);
}
.btn-premium-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(129, 140, 248, 0.2);
}
.btn-premium-outline:hover {
    background: rgba(129, 140, 248, 0.08);
    border-color: var(--primary);
}
