/* ============================================
   KantongSoftware - Modern Dark Theme CSS
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #222840;
    --bg-input: #1e2538;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --border: #1e293b;
    --border-light: #334155;
    --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-2: linear-gradient(135deg, #06b6d4, #3b82f6, #6366f1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99,102,241,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 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;
    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; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    transition: var(--transition);
}

.navbar.scrolled { background: rgba(10, 14, 23, 0.95); box-shadow: var(--shadow-md); }

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.4rem; font-weight: 800; color: var(--text-primary);
}

.nav-brand .logo-icon {
    width: 36px; height: 36px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: white;
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--gradient-1); border-radius: 2px;
}

.nav-search {
    position: relative; flex: 0 1 400px;
}

.nav-search input {
    width: 100%; padding: 10px 16px 10px 42px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 50px; color: var(--text-primary);
    font-size: 0.9rem; outline: none; transition: var(--transition);
}

.nav-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav-search .search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.9rem;
}

.nav-search .search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-height: 400px; overflow-y: auto; display: none; z-index: 100;
}

.nav-search .search-results.active { display: block; }

.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: var(--transition);
}

.search-result-item:hover { background: var(--bg-card-hover); }

.search-result-item img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-actions .btn-nav {
    padding: 8px 12px; border-radius: var(--radius-sm);
    background: transparent; border: none; color: var(--text-secondary);
    cursor: pointer; position: relative; font-size: 1.1rem; transition: var(--transition);
}

.nav-actions .btn-nav:hover { color: var(--text-primary); background: var(--bg-input); }

.nav-actions .btn-nav .badge {
    position: absolute; top: 2px; right: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--danger); color: white;
    font-size: 0.65rem; display: flex; align-items: center; justify-content: center;
}

.btn-primary {
    padding: 10px 24px; background: var(--gradient-1);
    border: none; border-radius: 50px; color: white;
    font-weight: 600; font-size: 0.9rem; cursor: pointer;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    padding: 10px 24px;
    background: transparent; border: 1px solid var(--border-light);
    border-radius: 50px; color: var(--text-primary);
    font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-warning { background: var(--warning); color: #000; }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding: 100px 2rem 60px;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.1) 0%, transparent 50%),
                var(--bg-primary);
}

.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-particles {
    position: absolute; inset: 0; overflow: hidden;
}

.particle {
    position: absolute; width: 4px; height: 4px;
    background: var(--accent); border-radius: 50%;
    opacity: 0; animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    50% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

.hero-content {
    text-align: center; max-width: 800px; position: relative; z-index: 2;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.3); border-radius: 50px;
    font-size: 0.85rem; color: var(--accent-hover); margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #c7d2fe, #a5b4fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero p {
    font-size: 1.2rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex; gap: 3rem; justify-content: center; margin-top: 3rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 800; color: var(--accent-hover); }
.hero-stat .label { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 2rem;
    max-width: 1280px; margin: 0 auto;
}

.section-header {
    text-align: center; margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-secondary); }

/* ============================================
   CATEGORY PILLS
   ============================================ */
.category-pills {
    display: flex; gap: 12px; flex-wrap: wrap;
    justify-content: center; margin-bottom: 2rem;
}

.category-pill {
    padding: 10px 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 50px;
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
}

.category-pill:hover, .category-pill.active {
    background: var(--accent); color: white; border-color: var(--accent);
    transform: translateY(-2px); box-shadow: 0 4px 15px var(--accent-glow);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition); position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.product-card .card-image {
    position: relative; height: 180px; overflow: hidden;
    background: var(--bg-secondary);
}

.product-card .card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img { transform: scale(1.08); }

.product-card .card-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; gap: 6px;
}

.badge-tag {
    padding: 4px 10px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}

.badge-free { background: var(--success); color: white; }
.badge-premium { background: var(--gradient-1); color: white; }
.badge-featured { background: var(--warning); color: #000; }

.product-card .card-wishlist {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.product-card .card-wishlist:hover { background: var(--danger); }

.product-card .card-body { padding: 1.2rem; }

.product-card .card-platform {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: var(--accent-hover);
    background: rgba(99,102,241,0.1); padding: 4px 10px;
    border-radius: 50px; margin-bottom: 8px;
}

.product-card .card-title {
    font-size: 1.05rem; font-weight: 600;
    margin-bottom: 6px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.product-card .card-title a { color: var(--text-primary); }
.product-card .card-title a:hover { color: var(--accent-hover); }

.product-card .card-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px;
}

.card-rating { display: flex; align-items: center; gap: 4px; }
.card-rating .stars { color: var(--warning); }

.product-card .card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--border);
}

.card-price { font-size: 1.1rem; font-weight: 700; color: var(--accent-hover); }
.card-price.free { color: var(--success); }

.card-seller {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; color: var(--text-muted);
}

.card-seller img { width: 22px; height: 22px; border-radius: 50%; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    text-align: center; transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px); border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.feature-card .icon {
    width: 60px; height: 60px; margin: 0 auto 1rem;
    background: rgba(99,102,241,0.1); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent-hover);
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border);
    padding: 60px 2rem 30px;
}

.footer-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem; margin-bottom: 2rem;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 1rem; max-width: 300px; }

.footer-col h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent-hover); }

.footer-bottom {
    max-width: 1280px; margin: 0 auto;
    padding-top: 2rem; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: var(--text-muted);
}

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-card); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: white; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
}

.form-control {
    width: 100%; padding: 12px 16px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 0.95rem; outline: none; transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.1) 0%, transparent 60%), var(--bg-primary);
}

.auth-card {
    width: 100%; max-width: 440px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-card .auth-header { text-align: center; margin-bottom: 2rem; }
.auth-card .auth-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.auth-card .auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

.auth-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0; color: var(--text-muted); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard { display: flex; min-height: 100vh; padding-top: 70px; }

.sidebar {
    width: 260px; background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0; position: fixed; top: 70px; bottom: 0;
    overflow-y: auto; z-index: 50;
}

.sidebar-menu { list-style: none; }

.sidebar-menu li a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 1.5rem; color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 500; transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover { color: var(--text-primary); background: var(--bg-card); }
.sidebar-menu li a.active {
    color: var(--accent-hover); background: rgba(99,102,241,0.08);
    border-left-color: var(--accent);
}

.sidebar-menu li a i { width: 20px; text-align: center; }

.sidebar-section {
    padding: 0.8rem 1.5rem; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);
}

.dashboard-content {
    flex: 1; margin-left: 260px; padding: 2rem;
}

/* Dashboard Cards */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem; margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.stat-card .stat-icon {
    width: 50px; height: 50px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-icon.purple { background: rgba(99,102,241,0.15); color: var(--accent-hover); }
.stat-card .stat-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-card .stat-icon.blue { background: rgba(59,130,246,0.15); color: var(--info); }
.stat-card .stat-icon.orange { background: rgba(245,158,11,0.15); color: var(--warning); }

.stat-card .stat-info h3 { font-size: 1.5rem; font-weight: 700; }
.stat-card .stat-info p { font-size: 0.85rem; color: var(--text-muted); }

/* Data Table */
.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
}

.data-table th {
    padding: 14px 16px; text-align: left;
    background: var(--bg-secondary); font-size: 0.8rem;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px; font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover td { background: var(--bg-card-hover); }

.status-badge {
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}

.status-badge.approved { background: rgba(16,185,129,0.15); color: var(--success); }
.status-badge.pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-badge.rejected { background: rgba(239,68,68,0.15); color: var(--danger); }
.status-badge.paid { background: rgba(16,185,129,0.15); color: var(--success); }

/* ============================================
   ALERTS & FLASH MESSAGES
   ============================================ */
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm);
    margin-bottom: 1rem; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--info); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex; gap: 6px; justify-content: center;
    margin-top: 2rem; list-style: none;
}

.pagination a, .pagination span {
    padding: 8px 14px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition);
}

.pagination a:hover, .pagination .active {
    background: var(--accent); color: white; border-color: var(--accent);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px); z-index: 2000;
    display: none; align-items: center; justify-content: center; padding: 2rem;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 100%; max-width: 500px;
    max-height: 90vh; overflow-y: auto; animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 1.5rem; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.2rem; cursor: pointer;
}

.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 1rem; justify-content: flex-end; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1; transform: translateY(0);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail { padding-top: 90px; max-width: 1280px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }

.product-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }

.product-gallery { border-radius: var(--radius-lg); overflow: hidden; }
.product-gallery .main-image {
    width: 100%; height: 400px; object-fit: cover;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
}

.product-gallery .thumbnails { display: flex; gap: 8px; margin-top: 12px; }
.product-gallery .thumbnails img {
    width: 80px; height: 60px; object-fit: cover;
    border-radius: var(--radius-sm); border: 2px solid var(--border);
    cursor: pointer; transition: var(--transition);
}
.product-gallery .thumbnails img:hover, .product-gallery .thumbnails img.active { border-color: var(--accent); }

.product-sidebar {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    position: sticky; top: 90px; height: fit-content;
}

.product-sidebar .price-tag { font-size: 2rem; font-weight: 800; color: var(--accent-hover); margin-bottom: 1rem; }
.product-sidebar .price-tag.free { color: var(--success); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .nav-links { display: none; }
    .nav-search { display: none; }
    .mobile-toggle { display: block; }
    
    .nav-links.mobile-open {
        display: flex; flex-direction: column;
        position: absolute; top: 70px; left: 0; right: 0;
        background: var(--bg-secondary); border-bottom: 1px solid var(--border);
        padding: 1rem;
    }
    
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    
    .sidebar { display: none; }
    .sidebar.mobile-open { display: block; width: 100%; position: fixed; z-index: 100; }
    .dashboard-content { margin-left: 0; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }
