/* 
 * MMO Premium Shop - Light Theme Design System v4.0
 * Clean, Modern, Inspired by Divine Shop
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('sidebar.css');

/* ==================== CSS Variables - Light Theme ==================== */
:root {
    /* Light Theme Background Colors */
    --bg-body: #f5f7fa;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-nav: #0d1b2a;
    --bg-white: #ffffff;
    --bg-dark: #0d1b2a;
    --bg-card-hover: #f8fafc;

    /* Clean Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-bg-light: rgba(255, 255, 255, 0.95);
    --glass-border: #e5e7eb;
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* Primary Colors - Blue Theme (like Divine Shop) */
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385d6;
    --primary-glow: rgba(0, 102, 204, 0.2);

    /* Secondary/Accent */
    --secondary: #64748b;
    --accent: #e53935;
    --accent-cyan: #0891b2;
    --accent-light: rgba(229, 57, 53, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-border: linear-gradient(135deg, #0066cc, #0891b2);

    /* Status Colors */
    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.12);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);
    --error: #ef4444;

    /* Text Colors - Dark for readability */
    --text-main: #1a1a1a;
    --text-primary: #0d1b2a;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-light: #d1d5db;

    /* Border Colors */
    --border: #e5e7eb;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-focus: #0066cc;

    /* Shadows - Subtle */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-nav: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 4px 20px rgba(0, 102, 204, 0.25);
    --shadow-card-hover: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    --shadow-glow-pink: 0 4px 20px rgba(229, 57, 53, 0.2);

    /* Spacing & Sizing */
    --container-width: 1280px;
    --radius: 0.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== Keyframe Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 25px var(--primary-glow), 0 0 50px var(--primary-glow);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(139, 92, 246, 0.3);
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
    }

    50% {
        border-color: rgba(236, 72, 153, 0.3);
        box-shadow: 0 0 25px rgba(236, 72, 153, 0.15);
    }
}

/* ==================== Reset & Base ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== Layout ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2.5rem 0;
    animation: fadeIn 0.5s ease-out;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utility Classes */
.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.font-bold {
    font-weight: 700;
}

.hidden {
    display: none !important;
}

/* ==================== Navbar - Dark Header ==================== */
.navbar {
    background: var(--bg-nav);
    box-shadow: var(--shadow-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.875rem 0;
    border-bottom: none;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
    transition: var(--transition);
}

.brand:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    transition: var(--transition);
    color: #ffffff;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-actions .btn {
    color: #ffffff;
}

.nav-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ==================== Hero Section ==================== */
.hero {
    margin-top: 1.5rem;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    height: 320px;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    z-index: 1;
    animation: pulse 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: var(--transition-slow);
}

.hero:hover .hero-img {
    transform: scale(1.05);
    opacity: 0.6;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: white;
    max-width: 500px;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ==================== Cards - Glassmorphism ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    pointer-events: none;
    z-index: 0;
    /* Behind content */
}

/* Ensure all card content is above the ::before overlay */
.card>* {
    position: relative;
    z-index: 1;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Sidebar Card */
.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 5.5rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Wallet Card - Premium Gradient */
.wallet-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.wallet-balance {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ==================== Page Layout (Shop) ==================== */
.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.cat-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition-fast);
}

.cat-link:hover {
    background: var(--glass-bg-light);
    color: var(--primary-light);
    padding-left: 1.25rem;
}

.cat-link:hover::before {
    transform: scaleY(1);
}

.cat-link.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.cat-link.active::before {
    display: none;
}

/* ==================== Product Grid ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card - Divine Shop Style */
.product-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.product-img-wrap {
    aspect-ratio: 16/10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.product-card:hover .product-img-wrap {
    background: #f1f5f9;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.7rem;
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-current {
    color: #dc2626;
    font-weight: 700;
    font-size: 1rem;
}

.price-old {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #9ca3af;
}

.discount-badge {
    background: #dc2626;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
}

/* Stock Badge - Divine Style */
.stock-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 5;
}

/* Out of Stock Style */
.product-card.out-of-stock {
    opacity: 0.75;
}

.product-card.out-of-stock .product-img {
    filter: grayscale(100%);
}

.product-card.out-of-stock .stock-badge.out {
    background: rgba(55, 65, 81, 0.9);
    color: white;
    border: 1px solid #4b5563;
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    cursor: not-allowed;
}

.stock-badge.out {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ==================== Buttons - Glow Effect ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 0.5rem;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-light);
    transform: translateY(-1px);
    color: var(--text-main);
    border-color: var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ==================== Badges ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-vip {
    background: var(--gradient-gold);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--glass-bg-light);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ==================== Alerts ==================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==================== Trust Badges ==================== */
.trust-badge {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(139, 92, 246, 0.3);
}

.trust-badge .icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: var(--shadow-glow);
}

.trust-badge .title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.trust-badge .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== Footer ==================== */
.footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-body) 100%);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 0.25rem;
}

/* ==================== Tables ==================== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover td {
    background-color: var(--glass-bg);
}

/* ==================== Format Helpers ==================== */
code {
    background: var(--glass-bg);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--primary-light);
    border: 1px solid var(--glass-border);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==================== Selection ==================== */
::selection {
    background: var(--primary);
    color: white;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: relative;
        top: 0;
    }

    .hero {
        height: 260px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .search-box {
        order: 3;
        flex: 1 0 100%;
        max-width: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .hero {
        height: 220px;
    }

    .hero-content {
        left: 1.5rem;
        right: 1.5rem;
        max-width: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-img-wrap {
        padding: 1rem;
    }

    .product-img {
        width: 60px;
        height: 60px;
    }

    .product-body {
        padding: 1rem;
    }

    .price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        height: 180px;
        border-radius: var(--radius-lg);
    }

    .hero-content {
        left: 1rem;
        right: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==================== Simple Homepage Layout ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Components */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-icon {
    font-size: 1.5rem;
}

.sidebar-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Recent Buyers List */
.recent-buyers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.buyer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.buyer-item:hover {
    background: #f8fafc;
}

.buyer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.buyer-info {
    flex: 1;
    min-width: 0;
}

.buyer-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.buyer-product {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buyer-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.stat-item {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .homepage-layout {
        flex-direction: column;
    }

    .home-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        align-items: stretch;
        height: auto;
        max-height: none;
    }

    .sidebar-card,
    .sidebar-banner {
        min-width: 280px;
        flex: 1;
    }
}

@media (max-width: 600px) {
    .home-sidebar {
        flex-direction: column;
    }

    .sidebar-card,
    .sidebar-banner {
        min-width: 100%;
    }
}