/* =============================================
   ALEPH STORE — Main Stylesheet
   Design: Clean gradient blue, floating glass UI
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --grad-main: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --grad-card: linear-gradient(145deg, rgba(37,99,235,0.08) 0%, rgba(6,182,212,0.06) 100%);
    --glass: rgba(255,255,255,0.85);
    --glass-border: rgba(37,99,235,0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg: #f0f6ff;
    --card-bg: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(37,99,235,0.10);
    --shadow-lg: 0 8px 40px rgba(37,99,235,0.18);
    --font: 'Outfit', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; }

/* ---- CONTAINER ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 1100px;
    background: var(--glass); backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px; z-index: 999;
    box-shadow: 0 4px 32px rgba(37,99,235,0.12);
    transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 8px 40px rgba(37,99,235,0.18); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo {
    width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
    background: var(--grad-main); display: flex; align-items: center; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-fallback { display: none; color: white; font-weight: 800; font-size: 18px; }
.brand-name { font-size: 20px; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 10px; transition: all 0.2s; }
.nav-link:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-btn { background: var(--grad-main); color: white; border: none; padding: 8px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all 0.2s; text-decoration: none; display: inline-block; }
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.nav-btn-ghost { color: var(--blue-600); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 12px; transition: all 0.2s; }
.nav-btn-ghost:hover { background: var(--blue-50); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; padding: 0 20px 16px; gap: 4px; }
.nav-mobile a, .nav-mobile button { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text-secondary); font-size: 15px; font-weight: 500; text-decoration: none; background: none; border: none; cursor: pointer; font-family: var(--font); text-align: left; width: 100%; transition: background 0.2s; }
.nav-mobile a:hover, .mobile-logout:hover { background: var(--blue-50); color: var(--blue-600); }
.nav-mobile .mobile-register { background: var(--grad-main); color: white; font-weight: 600; text-align: center; }
.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; padding-top: 100px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 8s ease-in-out infinite; }
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); top: -100px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #06b6d4 0%, transparent 70%); bottom: -50px; left: -80px; animation-delay: -4s; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px); background-size: 60px 60px; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
.hero-content { position: relative; max-width: 650px; padding: 60px 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--glass); border: 1.5px solid var(--glass-border); padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--blue-600); margin-bottom: 24px; backdrop-filter: blur(10px); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.2)} }
.hero-title { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px; color: var(--text-primary); }
.gradient-text { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--grad-main); color: white; padding: 14px 28px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: var(--font); transition: all 0.25s; box-shadow: 0 4px 20px rgba(37,99,235,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,0.45); }
.btn-ghost { display: inline-flex; align-items: center; background: white; color: var(--blue-600); padding: 14px 28px; border-radius: 14px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--glass-border); cursor: pointer; font-family: var(--font); transition: all 0.25s; }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-400); }
.hero-price-tag { display: inline-flex; align-items: center; gap: 12px; background: white; border: 1.5px solid var(--glass-border); border-radius: 14px; padding: 12px 20px; box-shadow: var(--shadow); }
.price-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.price-value { font-size: 18px; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---- STATS ---- */
.stats { padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { background: white; border: 1.5px solid var(--glass-border); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card.accent { background: var(--grad-main); border-color: transparent; }
.stat-card.accent .stat-number, .stat-card.accent .stat-label, .stat-card.accent .stat-icon { color: white; -webkit-text-fill-color: white; }
.stat-icon { font-size: 32px; margin-bottom: 12px; }
.stat-number { font-size: 36px; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 6px; }
.stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ---- PRODUCT ---- */
.product-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }
.section-desc { font-size: 16px; color: var(--text-secondary); }
.product-card-wrapper { display: flex; justify-content: center; }
.product-card { background: white; border: 1.5px solid var(--glass-border); border-radius: 24px; padding: 36px; max-width: 540px; width: 100%; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-main); }
.product-badge-top { position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.product-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-icon-wrap { width: 56px; height: 56px; background: var(--grad-main); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100); }
.product-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.product-features li { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--blue-50); border-bottom: 1px solid var(--blue-50); margin-bottom: 24px; }
.price-main { font-size: 28px; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-per { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.stock-badge { background: #dcfce7; color: #15803d; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; }
.order-form { display: flex; flex-direction: column; gap: 14px; }
.qty-selector { display: flex; align-items: center; background: var(--bg); border-radius: 14px; overflow: hidden; border: 1.5px solid var(--glass-border); }
.qty-btn { background: none; border: none; width: 50px; height: 50px; font-size: 20px; cursor: pointer; color: var(--blue-600); font-weight: 700; transition: background 0.2s; }
.qty-btn:hover { background: var(--blue-50); }
.qty-input { flex: 1; border: none; background: none; text-align: center; font-size: 20px; font-weight: 700; font-family: var(--font); color: var(--text-primary); outline: none; }
.order-subtotal { text-align: center; font-size: 15px; color: var(--text-secondary); font-weight: 500; }
.order-subtotal span { font-weight: 800; color: var(--blue-600); }
.btn-order { background: var(--grad-main); color: white; border: none; padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: all 0.25s; text-align: center; text-decoration: none; display: block; box-shadow: 0 4px 20px rgba(37,99,235,0.35); }
.btn-order:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,0.45); }
.out-of-stock { text-align: center; padding: 16px; background: #fef2f2; color: #dc2626; border-radius: 12px; font-weight: 600; }

/* ---- ACTIVITY ---- */
.activity-section { padding: 80px 0; background: white; }
.activity-feed { display: flex; flex-direction: column; gap: 12px; max-width: 600px; margin: 0 auto; }
.activity-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--bg); border: 1.5px solid var(--glass-border); border-radius: 14px; animation: slideIn 0.4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.activity-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-main); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.activity-info { flex: 1; font-size: 14px; }
.activity-name { font-weight: 700; color: var(--text-primary); }
.activity-action { color: var(--text-secondary); }
.activity-time { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }

/* ---- REVIEWS ---- */
.reviews-section { padding: 80px 0; }
.rating-summary { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 12px; }
.rating-big { font-size: 56px; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stars { color: #f59e0b; font-size: 20px; letter-spacing: 2px; }
.rating-count { font-size: 13px; color: var(--text-muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.review-card { background: white; border: 1.5px solid var(--glass-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform 0.3s; }
.review-card:hover { transform: translateY(-4px); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { margin-left: auto; color: #f59e0b; font-size: 14px; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.review-qty { font-size: 12px; color: var(--blue-600); font-weight: 600; background: var(--blue-50); padding: 4px 12px; border-radius: 100px; display: inline-block; }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: white; border-radius: 24px; padding: 36px; max-width: 440px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(15,23,42,0.25); transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-secondary); transition: background 0.2s; }
.modal-close:hover { background: #fee2e2; color: #dc2626; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.modal-product { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.modal-product-icon { width: 44px; height: 44px; background: var(--grad-main); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.modal-product-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.modal-total { font-size: 16px; margin-bottom: 12px; padding: 12px 0; border-top: 1px solid var(--blue-50); }
.modal-total strong { font-size: 20px; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.modal-note { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.w-full { width: 100%; justify-content: center; }

/* ---- FOOTER ---- */
.footer { background: var(--text-primary); color: white; padding: 40px 0 20px; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.footer-brand .brand-name { -webkit-text-fill-color: white; background: none; font-size: 22px; display: block; margin-bottom: 8px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: 16px; color: rgba(255,255,255,0.4); font-size: 13px; text-align: center; }

/* ---- AUTH PAGES ---- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 16px 40px; }
.auth-card { background: white; border: 1.5px solid var(--glass-border); border-radius: 24px; padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-input { width: 100%; padding: 13px 16px; border: 1.5px solid #e2e8f0; border-radius: 12px; font-size: 15px; font-family: var(--font); color: var(--text-primary); transition: border-color 0.2s, box-shadow 0.2s; outline: none; background: var(--bg); }
.form-input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); background: white; }
.form-error { color: #dc2626; font-size: 12px; margin-top: 4px; }
.auth-link { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 20px; }
.auth-link a { color: var(--blue-600); font-weight: 600; text-decoration: none; }

/* ---- DASHBOARD / ADMIN ---- */
.dashboard { padding: 100px 0 60px; }
.dash-header { margin-bottom: 36px; }
.dash-title { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.dash-subtitle { color: var(--text-secondary); font-size: 15px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 36px; }
.dash-card { background: white; border: 1.5px solid var(--glass-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.dash-card.highlight { background: var(--grad-main); border: none; color: white; }
.dash-card.highlight .dash-card-label, .dash-card.highlight .dash-card-value { color: white; -webkit-text-fill-color: white; }
.dash-card-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; }
.dash-card-value { font-size: 32px; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.table-wrap { background: white; border: 1.5px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-head { padding: 20px 24px; border-bottom: 1px solid var(--blue-50); display: flex; justify-content: space-between; align-items: center; }
.table-title { font-size: 16px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 20px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg); }
td { padding: 14px 20px; font-size: 14px; border-top: 1px solid var(--blue-50); }
tr:hover td { background: var(--bg); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-proses { background: #dbeafe; color: #1d4ed8; }
.badge-failed { background: #fee2e2; color: #dc2626; }
.btn-sm { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font); }
.btn-sm-primary { background: var(--grad-main); color: white; }
.btn-sm-danger { background: #fee2e2; color: #dc2626; }
.btn-sm-ghost { background: var(--bg); color: var(--blue-600); border: 1.5px solid var(--glass-border); }

/* ---- PROFILE ---- */
.profile-card { background: white; border: 1.5px solid var(--glass-border); border-radius: 24px; padding: 36px; max-width: 540px; box-shadow: var(--shadow-lg); }
.profile-avatar { width: 72px; height: 72px; background: var(--grad-main); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: white; font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.profile-stat { background: var(--bg); border-radius: 12px; padding: 16px 20px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.profile-stat-label { font-size: 13px; color: var(--text-secondary); }
.profile-stat-value { font-size: 18px; font-weight: 700; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---- ALERTS ---- */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ---- HISTORY / TRANSACTION ---- */
.history-item { background: white; border: 1.5px solid var(--glass-border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.history-id { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.history-date { font-size: 13px; color: var(--text-muted); }
.history-product { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.history-icon { width: 44px; height: 44px; background: var(--grad-main); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.history-product-name { font-weight: 700; font-size: 15px; }
.history-meta { font-size: 13px; color: var(--text-secondary); }
.history-accounts { background: #0f172a; border-radius: 12px; padding: 16px; font-family: var(--font-mono); font-size: 12px; color: #86efac; overflow-x: auto; margin-top: 14px; }
.history-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---- UPLOAD AREA ---- */
.upload-area { border: 2px dashed var(--glass-border); border-radius: 14px; padding: 36px; text-align: center; cursor: pointer; transition: all 0.25s; background: var(--bg); }
.upload-area:hover, .upload-area.drag { border-color: var(--blue-400); background: var(--blue-50); }
.upload-area p { color: var(--text-secondary); font-size: 14px; margin-top: 12px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .hero-title { font-size: 40px; letter-spacing: -1.5px; }
    .stats-grid { grid-template-columns: 1fr; gap: 14px; }
    .stats-grid .stat-card:nth-child(1), .stats-grid .stat-card:nth-child(3) { display: grid; grid-template-columns: auto 1fr; align-items: center; text-align: left; gap: 16px; padding: 20px; }
    .product-card { padding: 24px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
    .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; text-align: center; }
    .dash-grid { grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }
    .stat-card {
        padding: 20px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .stat-card:nth-child(1),
    .stat-card:nth-child(3) {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: 0 !important;
    }
    .stat-icon { font-size: 22px !important; margin-bottom: 8px; }
    .stat-number { font-size: 22px !important; }
    .stat-label { font-size: 11px !important; }
}

/* ===== REVIEWS MARQUEE AUTO-SCROLL ===== */
.reviews-section { padding: 80px 0; overflow: hidden; }
.reviews-marquee-wrap {
    overflow: hidden;
    position: relative;
    margin: 0 -24px;
    padding: 8px 0 16px;
}
.reviews-marquee-wrap::before,
.reviews-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.reviews-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f0f6ff, transparent);
}
.reviews-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f0f6ff, transparent);
}
.reviews-marquee {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.reviews-section .reviews-grid { display: none; } /* hide old grid if exists */
.reviews-section .review-card {
    width: 300px;
    flex-shrink: 0;
    cursor: default;
}
.reviews-section .review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== ICON FLATICON FIX ===== */
.fi { vertical-align: middle; line-height: 1; }
.stat-icon { font-size: 30px; display: flex; align-items: center; justify-content: center; }
.product-features li { display: flex; align-items: center; }
