:root {
    --primary: #00d4ff; --primary-dark: #0099cc; --secondary: #ff6b35;
    --dark: #0a0a0f; --darker: #050508; --card: #12121a;
    --card-hover: #1a1a25; --text: #e0e0e0; --text-muted: #888;
    --border: #2a2a3a; --success: #00ff88; --warning: #ffaa00;
    --danger: #ff3366; --info: #7c3aed;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif; background: var(--dark); color: var(--text);
    overflow-x: hidden; min-height: 100vh;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Header */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(10,10,15,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); transition: all 0.3s;
}
header.scrolled { box-shadow: 0 4px 30px rgba(0,212,255,0.1); }
.header-container {
    max-width: 1400px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white;
    box-shadow: 0 0 20px rgba(0,212,255,0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 20px rgba(0,212,255,0.4); }
    50% { box-shadow: 0 0 40px rgba(0,212,255,0.7); }
}
.logo-text {
    font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 900;
    color: white; letter-spacing: 2px;
}
.logo-text span { color: var(--primary); }
nav { display: flex; gap: 2.5rem; align-items: center; }
nav a {
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    font-size: 0.95rem; transition: color 0.3s; position: relative;
}
nav a:hover, nav a.active { color: var(--primary); }
nav a::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px; background: var(--primary);
    transition: width 0.3s; box-shadow: 0 0 10px var(--primary);
}
nav a:hover::after, nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.search-box { position: relative; }
.search-box input {
    background: var(--card); border: 1px solid var(--border); border-radius: 25px;
    padding: 0.6rem 1rem 0.6rem 2.5rem; color: var(--text); width: 220px;
    outline: none; transition: all 0.3s; font-size: 0.9rem;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0,212,255,0.2); width: 280px; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.cart-btn {
    position: relative; background: none; border: none; color: var(--text);
    font-size: 1.3rem; cursor: pointer; padding: 0.5rem; transition: color 0.3s;
}
.cart-btn:hover { color: var(--primary); }
.cart-count {
    position: absolute; top: -5px; right: -5px; background: var(--secondary);
    color: white; font-size: 0.7rem; font-weight: 700; width: 20px; height: 20px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.user-menu { position: relative; }
.user-btn {
    background: var(--card); border: 1px solid var(--border); color: var(--text);
    padding: 0.5rem 1rem; border-radius: 25px; cursor: pointer; display: flex;
    align-items: center; gap: 0.5rem; font-size: 0.9rem; transition: all 0.3s;
}
.user-btn:hover { border-color: var(--primary); color: var(--primary); }
.user-dropdown {
    position: absolute; top: 120%; right: 0; background: var(--card);
    border: 1px solid var(--border); border-radius: 12px; padding: 0.5rem 0;
    min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s; z-index: 1001;
}
.user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a, .user-dropdown button {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem;
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
    background: none; border: none; width: 100%; cursor: pointer; transition: all 0.2s;
}
.user-dropdown a:hover, .user-dropdown button:hover {
    background: var(--card-hover); color: var(--primary);
}
.user-dropdown .divider { height: 1px; background: var(--border); margin: 0.5rem 0; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
    padding: 0.85rem 2rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark); box-shadow: 0 4px 20px rgba(0,212,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.6); }
.btn-secondary {
    background: transparent; color: var(--text); border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,212,255,0.05); }
.btn-danger {
    background: linear-gradient(135deg, var(--danger), #cc0044);
    color: white; box-shadow: 0 4px 20px rgba(255,51,102,0.4);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,51,102,0.6); }
.btn-success {
    background: linear-gradient(135deg, var(--success), #00cc66);
    color: var(--dark); box-shadow: 0 4px 20px rgba(0,255,136,0.4);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 8px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 8px; }

/* Toast */
.toast-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 5000;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.toast {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem;
    transform: translateX(120%); opacity: 0; transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); min-width: 300px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.toast-success .toast-icon { background: rgba(0,255,136,0.1); color: var(--success); }
.toast-error .toast-icon { background: rgba(255,51,102,0.1); color: var(--danger); }
.toast-info .toast-icon { background: rgba(0,212,255,0.1); color: var(--primary); }
.toast-content h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.toast-content p { font-size: 0.85rem; color: var(--text-muted); }

/* Cart Sidebar */
.cart-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); z-index: 2000;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed; top: 0; right: -450px; width: 450px; max-width: 100%; height: 100vh;
    background: var(--card); border-left: 1px solid var(--border); z-index: 2001;
    transition: right 0.4s ease; display: flex; flex-direction: column;
}
.cart-sidebar.active { right: 0; }
.cart-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; }
.close-cart { background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.close-cart:hover { color: var(--secondary); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 2rem; }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 80px; height: 80px; background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-image i { font-size: 2rem; color: var(--primary); opacity: 0.6; }
.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 0.3rem; }
.cart-item-price { color: var(--primary); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.qty-btn { width: 28px; height: 28px; border-radius: 6px; background: var(--card-hover); border: 1px solid var(--border); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.remove-item { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.3s; align-self: flex-start; }
.remove-item:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 3rem 0; color: var(--text-muted); }
.cart-empty i { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.cart-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); background: var(--darker); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.1rem; }
.cart-total span:last-child { font-family: 'Orbitron', sans-serif; font-weight: 700; color: var(--primary); font-size: 1.3rem; }

/* Checkout */
.checkout-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 2600;
    opacity: 0; visibility: hidden; transition: all 0.25s;
}
.checkout-overlay.active { opacity: 1; visibility: visible; }
.checkout-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(0.96);
    width: min(760px, calc(100% - 2rem)); max-height: 92vh; overflow-y: auto;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    z-index: 2601; opacity: 0; visibility: hidden; transition: all 0.25s;
    box-shadow: 0 28px 70px rgba(0,0,0,0.55);
}
.checkout-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.checkout-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--border);
}
.checkout-modal-header span { color: var(--primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.checkout-modal-header h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; margin-top: 0.25rem; }
.checkout-close {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--card-hover); color: var(--text); cursor: pointer;
}
.checkout-form { padding: 1.5rem; }
.checkout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.checkout-grid label { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }
.checkout-grid .span-2 { grid-column: span 2; }
.checkout-grid input,
.checkout-grid select {
    width: 100%; margin-top: 0.45rem; min-height: 44px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--darker); color: var(--text);
    padding: 0.75rem 0.9rem; outline: none; font: inherit;
}
.checkout-grid input:focus,
.checkout-grid select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,212,255,0.12); }
.checkout-section { margin-top: 1.25rem; }
.shipping-quote-btn,
.checkout-pay-btn {
    width: 100%; min-height: 48px; border: none; border-radius: 12px; cursor: pointer;
    font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
}
.shipping-quote-btn { background: var(--card-hover); color: var(--text); border: 1px solid var(--border); }
.shipping-quote-btn:hover { border-color: var(--primary); color: var(--primary); }
.shipping-options { display: grid; gap: 0.75rem; margin-top: 0.9rem; }
.shipping-option {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem;
    background: rgba(18,18,26,0.9); cursor: pointer;
}
.shipping-option.active { border-color: var(--primary); box-shadow: 0 0 18px rgba(0,212,255,0.12); }
.shipping-option strong { display: block; margin-bottom: 0.2rem; }
.shipping-option span { color: var(--text-muted); font-size: 0.85rem; }
.checkout-summary {
    margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; display: grid; gap: 0.5rem;
}
.checkout-summary-row { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); }
.checkout-summary-row.total { color: var(--primary); font-weight: 800; font-size: 1.1rem; }
.checkout-pay-btn { margin-top: 1rem; background: var(--primary); color: var(--dark); }
.checkout-pay-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.checkout-result {
    min-height: calc(100vh - 90px); display: flex; align-items: center; justify-content: center;
    padding: 8rem 1.25rem 4rem;
}
.checkout-result-panel {
    width: min(620px, 100%); text-align: center; border: 1px solid var(--border);
    border-radius: 16px; background: var(--card); padding: 2.5rem;
}
.checkout-result-panel > i { color: var(--primary); font-size: 3rem; margin-bottom: 1rem; }
.checkout-result-panel h1 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; margin-bottom: 0.75rem; }
.checkout-result-panel p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.checkout-result-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); z-index: 3000;
    opacity: 0; visibility: hidden; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--card); border-radius: 20px; border: 1px solid var(--border);
    max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
    display: grid; grid-template-columns: 1fr 1fr; position: relative;
    transform: scale(0.9); transition: transform 0.3s;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-image { background: linear-gradient(135deg, #1a1a2e, #16213e); display: flex; align-items: center; justify-content: center; min-height: 400px; position: relative; }
.modal-image i { font-size: 10rem; color: var(--primary); opacity: 0.7; }
.modal-close { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: all 0.3s; z-index: 10; }
.modal-close:hover { background: var(--danger); }
.modal-details { padding: 2.5rem; }
.modal-category { color: var(--primary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
.modal-title { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; margin-bottom: 1rem; }
.modal-rating { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.modal-price { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: var(--primary); margin-bottom: 1.5rem; }
.modal-price .old { font-size: 1.2rem; color: var(--text-muted); text-decoration: line-through; margin-left: 1rem; }
.modal-description { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.modal-features { margin-bottom: 2rem; }
.modal-features h4 { margin-bottom: 1rem; font-size: 1rem; }
.modal-features ul { list-style: none; }
.modal-features li { padding: 0.3rem 0; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.modal-features li i { color: var(--success); font-size: 0.8rem; }
.modal-actions { display: flex; gap: 1rem; }
.modal-qty { display: flex; align-items: center; background: var(--card-hover); border-radius: 10px; border: 1px solid var(--border); }
.modal-qty button { width: 45px; height: 45px; background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.2rem; transition: color 0.3s; }
.modal-qty button:hover { color: var(--primary); }
.modal-qty span { padding: 0 1rem; font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.85rem 1rem; color: var(--text);
    outline: none; font-size: 0.95rem; font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 15px rgba(0,212,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }

/* Dashboard Layout */
.dashboard { min-height: 100vh; }
.sidebar {
    background: var(--darker); border-right: 1px solid var(--border);
    padding: 1.5rem; position: fixed; width: 260px; height: 100vh;
    overflow-y: auto; z-index: 100;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 2.5rem; text-decoration: none; }
.sidebar-logo .logo-icon { width: 38px; height: 38px; font-size: 1.2rem; }
.sidebar-logo .logo-text { font-size: 1.1rem; }
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 0.5rem; }
.sidebar-nav a, .sidebar-nav button {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1rem; border-radius: 10px;
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
    background: none; border: none; width: 100%; cursor: pointer;
    transition: all 0.3s; text-align: left;
}
.sidebar-nav a:hover, .sidebar-nav button:hover,
.sidebar-nav a.active, .sidebar-nav button.active {
    background: rgba(0,212,255,0.1); color: var(--primary);
}
.sidebar-nav a i, .sidebar-nav button i { width: 20px; text-align: center; }
.sidebar-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.sidebar-user { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; background: var(--card); border-radius: 12px; margin-top: auto; }
.sidebar-user-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--dark); }
.sidebar-user-info { flex: 1; }
.sidebar-user-name { font-weight: 600; font-size: 0.9rem; }
.sidebar-user-role { font-size: 0.75rem; color: var(--text-muted); }

.main-content { margin-left: 260px; padding: 2rem; min-height: 100vh; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); }

/* Cards */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 1.5rem; transition: all 0.3s;
}
.card:hover { border-color: rgba(0,212,255,0.3); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.card-header h3 { font-size: 1.1rem; font-weight: 600; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 1.5rem; display: flex; align-items: center; gap: 1rem;
    transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(0,212,255,0.3); }
.stat-card-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.stat-card-icon.primary { background: rgba(0,212,255,0.1); color: var(--primary); }
.stat-card-icon.success { background: rgba(0,255,136,0.1); color: var(--success); }
.stat-card-icon.warning { background: rgba(255,170,0,0.1); color: var(--warning); }
.stat-card-icon.danger { background: rgba(255,51,102,0.1); color: var(--danger); }
.stat-card-info h4 { font-size: 1.6rem; font-family: 'Orbitron', sans-serif; margin-bottom: 0.2rem; }
.stat-card-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Tables */
.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 1rem; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.data-table td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.data-table tr:hover td { background: rgba(0,212,255,0.03); }
.data-table tr:last-child td { border-bottom: none; }
.badge-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.badge-pill.pending { background: rgba(255,170,0,0.15); color: var(--warning); }
.badge-pill.processing { background: rgba(0,212,255,0.15); color: var(--primary); }
.badge-pill.shipped { background: rgba(124,58,237,0.15); color: var(--info); }
.badge-pill.delivered { background: rgba(0,255,136,0.15); color: var(--success); }
.badge-pill.cancelled { background: rgba(255,51,102,0.15); color: var(--danger); }

/* Tabs */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab-btn {
    padding: 0.75rem 1.5rem; background: none; border: none; color: var(--text-muted);
    font-size: 0.9rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent;
    transition: all 0.3s; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Order Cards */
.order-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 1.5rem; margin-bottom: 1rem; transition: all 0.3s;
}
.order-card:hover { border-color: rgba(0,212,255,0.3); }
.order-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.order-id { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; color: var(--primary); }
.order-date { font-size: 0.8rem; color: var(--text-muted); }
.order-items { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.order-item-mini {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--darker); padding: 0.5rem 0.75rem; border-radius: 10px;
}
.order-item-mini i { color: var(--primary); font-size: 1.2rem; }
.order-item-mini span { font-size: 0.85rem; }
.order-footer { display: flex; justify-content: space-between; align-items: center; }
.order-total { font-family: 'Orbitron', sans-serif; font-weight: 700; color: var(--primary); }

/* Login Page */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, #0d1b2a 100%);
    position: relative; overflow: hidden;
}
.login-page::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0,212,255,0.05) 0%, transparent 50%);
}
.login-container {
    background: var(--card); border: 1px solid var(--border); border-radius: 24px;
    padding: 3rem; width: 100%; max-width: 440px; position: relative; z-index: 2;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-icon { margin: 0 auto 1rem; width: 60px; height: 60px; font-size: 2rem; }
.login-logo h2 { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-logo p { color: var(--text-muted); font-size: 0.9rem; }
.login-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; background: var(--darker); padding: 0.3rem; border-radius: 10px; }
.login-tab { flex: 1; padding: 0.75rem; background: none; border: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; cursor: pointer; border-radius: 8px; transition: all 0.3s; }
.login-tab.active { background: var(--primary); color: var(--dark); }
.login-form { display: none; }
.login-form.active { display: block; }
.login-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.login-footer a { color: var(--primary); text-decoration: none; }

/* Product Grid (store) */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.product-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; transition: all 0.4s; position: relative; cursor: pointer;
}
.product-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,212,255,0.15); }
.product-badge {
    position: absolute; top: 15px; left: 15px; background: var(--secondary); color: white;
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; z-index: 10;
}
.product-badge.new { background: var(--success); color: var(--dark); }
.product-badge.limited { background: linear-gradient(135deg, #ff006e, #ff6b35); }
.product-image {
    height: 280px; background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.product-image i { font-size: 6rem; color: var(--primary); opacity: 0.6; transition: all 0.4s; }
.product-card:hover .product-image i { transform: scale(1.1); opacity: 1; }
.product-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center;
    gap: 1rem; opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .product-overlay { opacity: 1; }
.overlay-btn {
    width: 45px; height: 45px; border-radius: 50%; background: white; border: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.3s; color: var(--dark); font-size: 1rem;
}
.overlay-btn:hover { background: var(--primary); transform: scale(1.1); }
.product-info { padding: 1.5rem; }
.product-category { color: var(--primary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.product-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: white; }
.product-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.stars { color: var(--warning); font-size: 0.85rem; }
.rating-count { color: var(--text-muted); font-size: 0.8rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.product-price .old { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; margin-left: 0.5rem; }
.add-cart-btn {
    background: var(--primary); color: var(--dark); border: none; width: 40px; height: 40px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; font-size: 1rem;
}
.add-cart-btn:hover { background: var(--secondary); transform: scale(1.1); }

/* Admin Product Form */
.product-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product-form-preview {
    background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem; border: 1px solid var(--border); min-height: 300px;
}
.product-form-preview i { font-size: 5rem; color: var(--primary); opacity: 0.7; margin-bottom: 1rem; }
.product-form-preview h4 { color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .product-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header-container { padding: 1rem; }
    nav { display: none; }
    .mobile-menu-btn { display: block; }
    .search-box { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .login-container { padding: 2rem 1.5rem; margin: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-grid .span-2 { grid-column: span 1; }
    .checkout-modal-header, .checkout-form { padding: 1.15rem; }
}
