/* ============================================
   DE NERD - Site CSS v4
   Header estilo Meruru (2 linhas, horizontal)
   Nav horizontal desktop / Hamburger mobile
   ============================================ */

/* === VARIABLES === */
:root {
    --bg-dark: #0a0a14;
    --bg-body: #0f0f1a;
    --bg-card: #161625;
    --bg-card2: #1e1e32;
    --bg-header: #0d0d1a;
    --bg-navbar: #7c6cf0;
    --border: #2a2a45;
    --purple: #7c6cf0;
    --purple-dark: #5b4cc4;
    --purple-light: #a99eff;
    --purple-glow: rgba(124,108,240,0.15);
    --gold: #f0c040;
    --gold-light: #ffe066;
    --green: #34d399;
    --red: #f43f5e;
    --blue: #3b82f6;
    --orange: #f59e0b;
    --cyan: #22d3ee;
    --text: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #6b6b85;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --transition: all 0.25s ease;
    --topbar-height: 60px;
    --navbar-height: 44px;
    --header-total: 104px; /* topbar + navbar */
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--purple-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ============================================
   HEADER (2 linhas fixo no topo)
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* --- LINHA 1: Top Bar --- */
.header-topbar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    height: var(--topbar-height);
}
.header-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo-img {
    height: 38px;
    width: auto;
    border-radius: 6px;
}
.header-logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}
.header-logo-text .de { color: var(--purple); }
.header-logo-text .nerd { color: var(--gold); }

/* Search */
.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}
.header-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px 0 0 6px;
    padding: 9px 14px;
    color: var(--text);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px var(--purple-glow);
}
.header-search-btn {
    background: var(--purple);
    border: 1px solid var(--purple);
    border-left: none;
    color: #fff;
    padding: 9px 14px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.header-search-btn:hover { background: var(--purple-dark); }
.header-search .search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.header-search .search-results.show { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    color: var(--text);
}
.search-result-item:hover { background: var(--purple-glow); color: var(--text); }
.search-result-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.search-result-item .result-info { flex: 1; }
.search-result-item .result-name { font-size: 0.85rem; font-weight: 600; }
.search-result-item .result-type { font-size: 0.72rem; color: var(--text-muted); }
.search-result-item .result-price { font-size: 0.85rem; font-weight: 700; color: var(--green); }

/* Social Icons */
.header-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-social a {
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition);
}
.header-social a:hover { color: var(--purple-light); }

/* User Area */
.header-user-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.header-auth-link {
    color: var(--text-secondary) !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 4px 6px;
    transition: var(--transition);
}
.header-auth-link:hover { color: var(--purple-light) !important; }
.header-auth-sep {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Avatar Button */
.header-account { position: relative; }
.header-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text);
}
.header-avatar-btn:hover { background: var(--bg-card2); }
.header-avatar-btn .avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden !important;
    flex-shrink: 0;
}
.header-avatar-btn .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.header-avatar-btn .avatar-name {
    font-size: 0.82rem;
    font-weight: 500;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-avatar-btn .avatar-arrow {
    font-size: 0.55rem;
    color: var(--text-muted);
}

/* Account Dropdown */
.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1100;
    overflow: hidden;
    animation: ddFadeIn 0.2s ease;
}
.account-dropdown.show { display: block; }
@keyframes ddFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.account-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card2);
}
.account-dd-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.account-dd-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.account-dd-name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.account-dd-role { font-size: 0.7rem; color: var(--text-muted); }
.account-dd-divider { height: 1px; background: var(--border); }
.account-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    transition: var(--transition);
}
.account-dd-item:hover { background: var(--purple-glow); color: var(--text); }
.account-dd-item i { width: 18px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.account-dd-item:hover i { color: var(--purple-light); }
.account-dd-badge {
    margin-left: auto;
    background: var(--purple);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}
.account-dd-logout { color: var(--red) !important; }
.account-dd-logout:hover { background: rgba(244,63,94,0.1) !important; }
.account-dd-logout i { color: var(--red) !important; }

/* Cart */
.header-cart {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.15rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}
.header-cart:hover { color: var(--text); background: var(--bg-card2); }
.cart-badge {
    position: absolute;
    top: -2px;
    right: 0;
    background: var(--red);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- LINHA 2: Nav Bar --- */
.header-navbar {
    background: var(--bg-navbar);
    height: var(--navbar-height);
}
.header-navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* Hamburger (hidden on desktop) */
.navbar-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.navbar-hamburger:hover { background: rgba(255,255,255,0.15); }

/* Nav Links (horizontal on desktop) */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    width: 100%;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 16px;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}
.nav-link:hover {
    background: rgba(0,0,0,0.15);
    color: #fff !important;
}
.nav-link.active {
    background: rgba(0,0,0,0.2);
    color: var(--gold-light) !important;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 3px 3px 0 0;
}
.nav-link-icon {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Spacer to push content below fixed header */
.header-spacer {
    height: var(--header-total);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-total) - 200px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover {
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--purple-glow);
    transform: translateY(-2px);
}
.card-body { padding: 16px; }
.card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-header i { color: var(--purple); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; box-shadow: 0 4px 15px rgba(124,108,240,0.3); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-light); color: #000; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple-light); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #e11d48; color: #fff; }
.btn-success { background: var(--green); color: #000; }
.btn-success:hover { background: #10b981; color: #000; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

/* ============================================
   BADGES
   ============================================ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-purple { background: var(--purple-glow); color: var(--purple-light); }
.badge-gold { background: rgba(240,192,64,0.15); color: var(--gold); }
.badge-green { background: rgba(52,211,153,0.15); color: var(--green); }
.badge-red { background: rgba(244,63,94,0.15); color: var(--red); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue); }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
table th { background: var(--bg-card2); color: var(--text-secondary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 14px; text-align: left; }
table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
table tr:hover td { background: rgba(124,108,240,0.04); }

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.section-title i { color: var(--purple); }
.section-title .title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
    margin-left: 12px;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 900; color: #fff; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}
.product-card:hover {
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    color: var(--text);
}
.product-card .product-img { width: 100%; height: 220px; object-fit: contain; background: var(--bg-card2); padding: 8px; }
.product-card .product-info { padding: 12px; }
.product-card .product-name { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .product-game { font-size: 0.72rem; color: var(--text-muted); }
.product-card .product-price { font-size: 1rem; font-weight: 800; color: var(--green); margin-top: 6px; }
.product-card .product-stock { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================
   EVENT CARDS
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.event-card:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.event-card .event-banner { width: 100%; height: 160px; object-fit: cover; }
.event-card .event-body { padding: 14px; }
.event-card .event-date { font-size: 0.78rem; color: var(--purple-light); font-weight: 600; margin-bottom: 4px; }
.event-card .event-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.event-card .event-game { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 32px 24px 16px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid h5 { color: var(--purple-light); font-size: 0.9rem; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.footer-grid p, .footer-grid li { font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--purple-light); }
.footer-grid ul li a { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card2);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }
.footer-bottom {
    text-align: center;
    padding-top: 16px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.form-control:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-glow); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}
.tab {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--purple-light); border-bottom-color: var(--purple); }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); color: var(--green); }
.alert-danger { background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.3); color: var(--red); }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: var(--orange); }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--blue); }

/* ============================================
   LOADING / EMPTY
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 0.85rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .site-content { padding: 20px; }
    .nav-link { padding: 0 12px; font-size: 0.78rem; }
}

@media (max-width: 768px) {
    :root {
        --header-total: 104px;
    }
    
    .site-content { padding: 16px; }
    
    /* Top bar adjustments */
    .header-topbar-inner { padding: 0 12px; gap: 10px; }
    .header-logo-text { font-size: 1.2rem; }
    .header-social { display: none; }
    .header-avatar-btn .avatar-name { display: none; }
    .header-avatar-btn .avatar-arrow { display: none; }
    .header-auth-link { font-size: 0.75rem; }
    .header-search input { padding: 7px 10px; font-size: 0.82rem; }
    .account-dropdown { right: -20px; width: 230px; }
    
    /* Navbar: show hamburger, hide links by default */
    .navbar-hamburger { display: flex; align-items: center; }
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-navbar);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        z-index: 1050;
        height: auto;
    }
    .navbar-links.open { display: flex; }
    .nav-link {
        width: 100%;
        height: auto;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-link.active::after { display: none; }
    .nav-link.active { background: rgba(0,0,0,0.2); }
    
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .events-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .site-content { padding: 12px; }
    .header-topbar-inner { padding: 0 10px; gap: 8px; }
    .header-logo-img { height: 28px; }
    .header-logo-text { font-size: 1rem; }
    .header-search { display: none; }
    .header-auth-sep { display: none; }
    .header-auth-link:last-child { display: none; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    table th, table td { padding: 8px 10px; font-size: 0.8rem; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-purple { color: var(--purple-light); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius); }
.hidden { display: none !important; }

/* Fix avatar button overflow */
.header-avatar-btn {
    overflow: hidden;
    max-height: 50px;
}
.header-avatar-btn .avatar img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
