/* ============================================
   MMO MARKETPLACE - MAIN STYLESHEET
   Dark Mode Default + Light Mode
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS Variables - Dark Theme (Default) === */
:root {
    --bg-primary: #0B1120;
    --bg-secondary: #131C31;
    --bg-card: #162032;
    --bg-card-hover: #1C2A42;
    --bg-sidebar: #0D1525;
    --bg-header: #0D1525;
    --bg-input: #1A2540;
    --bg-modal: #131C31;
    --bg-badge: #1E3A5F;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-heading: #FFFFFF;
    --border-color: #1E293B;
    --border-light: #253349;
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-light: #1E3A5F;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --orange: #F97316;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --sidebar-width: 220px;
    --header-height: 60px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Light Theme === */
[data-theme="light"] {
    --bg-primary: #F0F2F5;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-sidebar: #FFFFFF;
    --bg-header: #FFFFFF;
    --bg-input: #F1F5F9;
    --bg-modal: #FFFFFF;
    --bg-badge: #E0E7FF;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-heading: #0F172A;
    --border-color: #E2E8F0;
    --border-light: #CBD5E1;
    --accent-light: #DBEAFE;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 15px rgba(0,0,0,0.1);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
button, input, select, textarea {
    font-family: inherit; font-size: inherit; color: inherit;
    outline: none; border: none; background: none;
}
ul, ol { list-style: none; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === Layout === */
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100; overflow-y: auto; overflow-x: hidden;
    transition: var(--transition);
}
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex; flex-direction: column;
}
.header {
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center;
    padding: 0 24px; gap: 16px;
    position: sticky; top: 0; z-index: 90;
}
.content-area { flex: 1; padding: 24px; }

/* === Sidebar === */
.sidebar-logo {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-logo h1 {
    font-size: 18px; font-weight: 800;
    background: linear-gradient(135deg, #F59E0B, #EF4444, #8B5CF6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: -0.5px;
}
.sidebar-logo .logo-sub {
    font-size: 9px; color: var(--text-muted);
    display: flex; gap: 6px; margin-top: 2px;
}
.sidebar-logo .logo-sub i { font-size: 10px; cursor: pointer; transition: var(--transition); }
.sidebar-logo .logo-sub i:hover { color: var(--accent); }

.sidebar-section { padding: 12px 0; }
.sidebar-section-title {
    padding: 4px 20px 8px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-muted);
}
.sidebar-menu { display: flex; flex-direction: column; gap: 2px; }
.sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; color: var(--text-secondary);
    transition: var(--transition); position: relative;
    font-size: 13px; font-weight: 500; cursor: pointer;
    border-left: 3px solid transparent;
}
.sidebar-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-left-color: var(--accent);
}
.sidebar-item.active {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}
.sidebar-item.disabled {
    opacity: 0.4; pointer-events: none; cursor: not-allowed;
}
.sidebar-item i { width: 20px; text-align: center; font-size: 14px; }
.sidebar-item .badge-maintenance {
    font-size: 8px; background: var(--warning);
    color: #000; padding: 1px 6px; border-radius: 4px;
    font-weight: 700; margin-left: auto; text-transform: uppercase;
}

.sidebar-bottom {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.btn-auth-sidebar {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 13px;
    transition: var(--transition); cursor: pointer;
}
.btn-auth-sidebar:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); color: #fff; }

/* === Header === */
.header-toggle {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 20px; cursor: pointer;
}
.header-search {
    display: flex; align-items: center; gap: 12px; flex: 1; max-width: 600px;
}
.search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 8px 14px;
    flex: 1; transition: var(--transition);
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.search-box i { color: var(--text-muted); font-size: 14px; }
.search-box input {
    flex: 1; background: none; border: none; color: var(--text-primary);
    font-size: 13px; min-width: 120px;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box .search-shortcut {
    background: var(--bg-card); color: var(--text-muted);
    padding: 2px 8px; border-radius: 4px; font-size: 11px;
    border: 1px solid var(--border-color);
}

.header-actions {
    display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.header-balance {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 6px 14px;
}
.header-balance .balance-icon {
    width: 28px; height: 28px; border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px;
}
.header-balance .balance-info { display: flex; flex-direction: column; }
.header-balance .balance-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
.header-balance .balance-amount { font-size: 14px; font-weight: 700; color: var(--accent); }
.header-balance .balance-add {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; cursor: pointer; transition: var(--transition);
}
.header-balance .balance-add:hover { background: var(--accent-hover); }

.header-btn {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); cursor: pointer;
    transition: var(--transition); position: relative;
    background: var(--bg-input); border: 1px solid var(--border-color);
}
.header-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.header-btn .badge-count {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--danger); color: #fff;
    border-radius: 8px; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.header-avatar {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--danger);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: var(--transition);
}
.header-avatar:hover { transform: scale(1.05); }

/* === Welcome Banner === */
.welcome-section { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.welcome-banner {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 28px;
    position: relative; overflow: hidden; grid-column: 1 / 2;
}
.welcome-banner::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.welcome-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(16,185,129,0.15); color: var(--success);
    padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 600; margin-bottom: 12px;
}
.welcome-badge::before {
    content: ''; width: 6px; height: 6px;
    background: var(--success); border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.welcome-banner h2 {
    font-size: 24px; font-weight: 800; color: var(--text-heading);
    margin-bottom: 4px; letter-spacing: -0.5px;
}
.welcome-banner .welcome-user {
    font-size: 28px; font-weight: 900;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.welcome-banner p { color: var(--text-secondary); font-size: 13px; margin-top: 12px; line-height: 1.6; }
.welcome-banner p span {
    font-weight: 700;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column; justify-content: center;
}
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.stat-card .stat-value { font-size: 22px; font-weight: 800; margin-top: 8px; }
.stat-card .stat-value.blue { color: var(--accent); }
.stat-card .stat-value.green { color: var(--success); }
.stat-card .stat-value.orange { color: var(--warning); }
.stat-card .stat-level { font-size: 20px; font-weight: 800; color: var(--text-heading); margin-top: 8px; }

/* === Services Grid === */
.section-title {
    font-size: 16px; font-weight: 800; color: var(--text-heading);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 24px;
    transition: var(--transition); cursor: pointer;
    position: relative; overflow: hidden;
}
.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.service-card.disabled {
    opacity: 0.5; pointer-events: none;
}
.service-card .card-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 8px; font-weight: 700; padding: 2px 8px;
    border-radius: 4px; text-transform: uppercase;
}
.service-card .card-badge.maintenance { background: rgba(245,158,11,0.2); color: var(--warning); }
.service-card .card-badge.coming-soon { background: rgba(139,92,246,0.2); color: var(--purple); }

.service-card .card-number {
    position: absolute; top: 10px; right: 16px;
    font-size: 42px; font-weight: 900; color: var(--border-color);
    line-height: 1; opacity: 0.5;
}
.service-card .card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 16px;
}
.service-card .card-title {
    font-size: 14px; font-weight: 800;
    text-transform: uppercase; color: var(--text-heading);
    margin-bottom: 6px; letter-spacing: 0.3px;
}
.service-card .card-desc {
    font-size: 11px; color: var(--text-muted);
    line-height: 1.5; text-transform: uppercase;
}

/* === Category / Product Page === */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 20px; font-size: 13px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-heading); font-weight: 600; text-transform: uppercase; }

.filter-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px; padding: 4px;
}
.filter-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 4px;
    background: #1e293b; border: 1px solid #334155;
    color: #cbd5e1; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    white-space: nowrap; text-transform: uppercase;
}
.filter-tag:hover, .filter-tag.active {
    background: #334155; color: #ffffff; border-color: #475569;
}
[data-theme="light"] .filter-tag {
    background: #f1f5f9; border-color: #e2e8f0; color: #334155;
}
[data-theme="light"] .filter-tag:hover, [data-theme="light"] .filter-tag.active {
    background: #e2e8f0; color: #0f172a; border-color: #cbd5e1;
}
.filter-tag .flag { font-size: 14px; line-height: 1; }
.filter-tag i { font-size: 12px; }

/* === Product List === */
/* === Product List CSS Update === */
.product-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid #1e293b; }
.product-category-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; background: #1e3a8a; /* deep blue */
    color: #ffffff;
}
.product-category-header i { font-size: 16px; color: #60a5fa; }
.product-category-header span { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }

.product-row {
    display: flex; align-items: center;
    padding: 16px 20px; gap: 16px;
    background: #0f172a; /* dark blue matching image */
    border-bottom: 1px solid #1e293b;
    transition: var(--transition);
}
.product-row:last-child { border-bottom: none; }
.product-row:hover { background: #1e293b; }

.product-info { flex: 1; min-width: 0; }
.product-name {
    font-size: 14px; font-weight: 800;
    color: #f8fafc; text-transform: uppercase;
    margin-bottom: 6px; letter-spacing: 0.5px;
}
.product-warning {
    font-size: 11px; color: #60a5fa; /* light blue italic */
    font-style: italic; margin-bottom: 8px; line-height: 1.4;
    text-transform: uppercase;
}
.product-warning i { margin-right: 4px; }
.product-meta { display: flex; align-items: center; gap: 16px; }
.product-meta .meta-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase;
}
.product-meta .meta-value {
    background: #8b5cf6; /* purple for stock */
    color: #fff; padding: 2px 8px; border-radius: 4px;
    font-weight: 800; font-size: 11px; font-family: 'Inter', sans-serif;
}
.product-meta .meta-value.sold { background: #10b981; /* green for sold */ }

.product-price {
    font-size: 15px; font-weight: 900;
    color: #f59e0b; white-space: nowrap;
    min-width: 100px; text-align: right; letter-spacing: 0.5px;
}
.product-actions { display: flex; gap: 10px; }
.btn-cart, .btn-buy {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 16px; border-radius: 4px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-cart {
    background: transparent; border: 1px solid #334155;
    color: #cbd5e1;
}
.btn-cart:hover { background: #1e293b; color: #fff; border-color: #475569; }
.btn-buy {
    background: #2563eb; color: #fff; border: none;
}
.btn-buy:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

/* === Modal === */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 28px;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-size: 20px; font-weight: 900; color: var(--text-heading); }
.modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { background: var(--bg-input); color: var(--text-primary); }

.modal-product {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; background: var(--bg-input);
    border-radius: var(--radius-sm); margin-bottom: 20px;
}
.modal-product-icon {
    width: 56px; height: 56px; border-radius: 10px;
    background: var(--bg-card); display: flex;
    align-items: center; justify-content: center;
    font-size: 24px; color: var(--accent);
}
.modal-product-info h4 { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.modal-product-info .modal-price { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 2px; }

.modal-quantity {
    margin-bottom: 20px;
}
.modal-quantity label { font-size: 12px; font-weight: 700; color: var(--text-heading); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block; }
.qty-controls {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); overflow: hidden;
}
.qty-btn {
    width: 44px; height: 44px;
    background: var(--bg-input); color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); font-size: 16px;
}
.qty-btn:hover { background: var(--accent); color: #fff; }
.qty-input {
    flex: 1; height: 44px; text-align: center;
    background: var(--bg-card); color: var(--text-heading);
    font-size: 16px; font-weight: 700;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.modal-summary {
    padding: 16px; background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); margin-bottom: 20px;
}
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 13px; color: var(--text-secondary); }
.summary-row.total { border-top: 1px solid var(--border-color); padding-top: 12px; margin-top: 8px; }
.summary-row.total .label { font-size: 12px; font-weight: 700; color: var(--text-heading); text-transform: uppercase; }
.summary-row.total .value { font-size: 24px; font-weight: 900; color: var(--warning); }

.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-modal-cart {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border-color);
    color: var(--text-primary); font-weight: 700; font-size: 13px;
    cursor: pointer; transition: var(--transition);
}
.btn-modal-cart:hover { border-color: var(--accent); color: var(--accent); }
.btn-modal-buy {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #2563EB);
    color: #fff; font-weight: 700; font-size: 13px;
    cursor: pointer; transition: var(--transition);
}
.btn-modal-buy:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
    width: 100%; padding: 10px 14px; background: var(--bg-input);
    border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 14px; transition: var(--transition);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* === Auth Pages === */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-primary); padding: 20px; }
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 36px;
    box-shadow: var(--shadow-lg);
}
.auth-card .auth-logo { text-align: center; margin-bottom: 24px; }
.auth-card .auth-logo h1 {
    font-size: 28px; font-weight: 900;
    background: linear-gradient(135deg, #F59E0B, #EF4444, #8B5CF6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-card .auth-title { font-size: 20px; font-weight: 700; color: var(--text-heading); text-align: center; margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* === Alerts === */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.alert-info { background: rgba(59,130,246,0.1); color: var(--accent); border: 1px solid rgba(59,130,246,0.2); }

/* === Tables (Admin) === */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
    padding: 12px 16px; text-align: left;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); background: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
}
.data-table td {
    padding: 12px 16px; font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

/* === Status Badges === */
.status-badge { display: inline-flex; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-active { background: rgba(16,185,129,0.15); color: var(--success); }
.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-banned, .status-rejected { background: rgba(239,68,68,0.15); color: var(--danger); }
.status-maintenance { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-completed { background: rgba(16,185,129,0.15); color: var(--success); }

/* === Contact Button (Floating) === */
.contact-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 500;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 50px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-primary); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    box-shadow: var(--shadow-lg);
}
.contact-float:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.contact-float i { font-size: 16px; }

/* === Pagination === */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; border-radius: var(--radius-xs);
    font-size: 13px; font-weight: 500; transition: var(--transition);
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.pagination a:hover, .pagination span.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* === Cart Page === */
.cart-container { max-width: 800px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: 8px; }
.cart-item-info { flex: 1; }
.cart-total { padding: 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-top: 16px; }

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .welcome-section { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .header-toggle { display: flex; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-section { grid-template-columns: 1fr; }
    .header-search { display: none; }
    .product-row { flex-wrap: wrap; }
    .product-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .content-area { padding: 16px; }
    .modal { padding: 20px; }
}
