/* ============================================
   HappyZhopi - Main Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
    --primary: #FF6B2C;
    --primary-dark: #E55A1B;
    --primary-light: #FFF0E8;
    --secondary: #1B2A4A;
    --secondary-light: #2D4470;
    --accent: #00C9A7;
    --accent-dark: #00A88C;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #FFFFFF;
    --bg-light: #F8F9FC;
    --bg-dark: #0F1B33;
    --border: #E5E7EB;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans Thai', sans-serif;
    --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    width: 100%;
    transition: var(--transition);
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,44,0.15);
}

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-light); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- Top Banner --- */
.top-banner {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
}
.top-banner .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.banner-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.3rem;
    opacity: 0.7;
}
.banner-close:hover { opacity: 1; }

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}
.brand-icon { font-size: 1.4rem; }
.brand-highlight { color: var(--primary); }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dropdown-toggle i { font-size: 0.7rem; transition: var(--transition); }
.dropdown.active .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1050;
}
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu-end { left: auto; right: 0; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
}
.dropdown-item:hover { background: var(--bg-light); color: var(--primary); }
.dropdown-item i { width: 20px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.text-danger { color: var(--danger) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* --- Alerts --- */
.alert {
    padding: 14px 0;
    font-size: 0.9rem;
    position: relative;
}
.alert .container { display: flex; align-items: center; justify-content: space-between; }
.alert-close { font-size: 1.2rem; opacity: 0.7; }
.alert-success { background: #ECFDF5; color: #065F46; }
.alert-danger { background: #FEF2F2; color: #991B1B; }
.alert-warning { background: #FFFBEB; color: #92400E; }
.alert-info { background: #EFF6FF; color: #1E40AF; }

/* --- Hero --- */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--secondary);
    margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.hero-stat strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--secondary); display: block; }
.hero-stat span { font-size: 0.85rem; color: var(--text-muted); }
.hero-visual { position: relative; }
.hero-mockup {
    background: var(--secondary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F57;
}
.mockup-dot:nth-child(2) { background: #FEBC2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-body {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    min-height: 300px;
}
.mockup-body h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--secondary); margin-bottom: 16px; }
.mockup-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.mockup-product {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}
.mockup-product-img {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), #E8F5E9);
    border-radius: 6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.mockup-product-name { font-size: 0.7rem; color: var(--text-light); margin-bottom: 2px; }
.mockup-product-price { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.hero-float {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    animation: float 3s ease-in-out infinite;
}
.hero-float.float-1 { top: 10%; right: -20px; }
.hero-float.float-2 { bottom: 15%; left: -20px; animation-delay: 1.5s; }
.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}
.hero-float-icon.green { background: var(--accent); }
.hero-float-icon.orange { background: var(--primary); }
.hero-float strong { display: block; color: var(--secondary); }
.hero-float span { color: var(--text-muted); font-size: 0.75rem; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Section General --- */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}
.section-dark .section-header h2 { color: #fff; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-light); font-size: 1.05rem; }
.section-dark .section-header p { color: #ccc; }

/* --- How It Works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.step-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 20px;
}
.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}
.step-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--secondary);
}
.feature-card p { color: var(--text-light); font-size: 0.9rem; }

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-img {
    position: relative;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .placeholder-icon { font-size: 3rem; color: var(--text-muted); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}
.badge-hot { background: var(--danger); }
.badge-new { background: var(--info); }
.badge-sale { background: var(--accent); }
.badge-bestseller { background: var(--warning); }
.product-info { padding: 16px; }
.product-category { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.product-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-prices { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.product-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.product-compare { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; }
.product-profit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}
.profit-amount { color: var(--accent); font-weight: 700; }
.profit-margin { color: var(--text-muted); }
.product-actions { padding: 0 16px 16px; }
.btn-import {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-import:hover { background: var(--primary); color: #fff; }

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.price-card {
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.popular { border-color: var(--primary); }
.price-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 20px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}
.price-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 16px; color: var(--secondary); }
.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}
.price-amount small { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-period { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }
.price-features { text-align: left; margin-bottom: 30px; }
.price-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.price-features li i { color: var(--accent); }

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 30px;
}
.testimonial-stars { color: #FBBF24; margin-bottom: 14px; font-size: 0.9rem; }
.testimonial-text { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.testimonial-name { font-weight: 600; color: var(--secondary); font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* --- Stats Counter --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}
.stat-item p { color: #ccc; font-size: 0.95rem; }

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    text-align: center;
    color: #fff;
}
.cta-section h2 { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; max-width: 500px; margin: 0 auto 30px; }

/* --- Auth Pages --- */
.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-light);
}
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}
.auth-card h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 4px; }
.form-errors {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.form-errors ul { margin-left: 16px; list-style: disc; }
.auth-link { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.auth-link a { color: var(--primary); font-weight: 600; }

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.contact-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.contact-info-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--secondary); margin-bottom: 4px; }
.contact-info-card p { font-size: 0.9rem; color: var(--text-light); }

/* --- Dashboard --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 70px);
}
.sidebar {
    background: var(--secondary);
    padding: 30px 0;
    color: #fff;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.sidebar-nav a.active { border-left: 3px solid var(--primary); }
.sidebar-nav a i { width: 20px; text-align: center; }
.dashboard-main { padding: 30px; background: var(--bg-light); }
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.dashboard-header h1 { font-family: var(--font-heading); font-size: 1.6rem; color: var(--secondary); }
.dash-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.dash-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.dash-card-label { font-size: 0.85rem; color: var(--text-muted); }
.dash-card h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--secondary); }
.dash-card .change { font-size: 0.85rem; margin-top: 6px; }
.change.up { color: var(--success); }
.change.down { color: var(--danger); }

/* Tables */
.table-container {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.table-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-header h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--secondary); }
table { width: 100%; border-collapse: collapse; }
thead th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}
tbody td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
tbody tr:hover { background: var(--bg-light); }
.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-processing { background: #DBEAFE; color: #1E40AF; }
.status-shipped { background: #D1FAE5; color: #065F46; }
.status-delivered { background: #ECFDF5; color: #047857; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Footer --- */
.footer { background: var(--bg-dark); color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-col h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.4rem; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    /* Nav */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: var(--transition);
        z-index: 1040;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-menu.open { transform: translateY(0); }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    
    /* Mobile dropdown: inline, not absolute */
    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 4px 0 4px 16px;
        min-width: 0;
        border-left: 2px solid var(--primary);
        margin-top: 4px;
        background: var(--bg-light);
    }
    .nav-menu .dropdown:hover .dropdown-menu {
        opacity: 0; visibility: hidden; /* Disable hover on mobile */
    }
    .nav-menu .dropdown.active .dropdown-menu {
        opacity: 1; visibility: visible; transform: none;
    }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .dash-cards { grid-template-columns: 1fr; }
}

/* --- Animation --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   ADMIN PANEL STYLES
   ============================================= */

/* Admin page: hide site header/footer */
.admin-page .top-banner,
.admin-page .navbar,
.admin-page .footer { display: none !important; }
.admin-page { padding-top: 0 !important; }

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--secondary);
    color: #fff;
    padding: 0;
    position: fixed;
    width: 240px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.admin-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav { flex: 1; padding: 12px 0; overflow-y: auto; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.admin-nav-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-nav-item.active { color: #fff; background: rgba(255,107,44,0.2); border-right: 3px solid var(--primary); }
.admin-nav-item i { width: 20px; text-align: center; }

.admin-sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
}

.admin-main {
    grid-column: 2;
    padding: 24px 32px;
    background: #f4f6f9;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-topbar h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-stat-number { font-size: 1.3rem; font-weight: 700; color: var(--secondary); }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.admin-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.admin-card-header h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--secondary); }
.admin-card-header a { font-size: 0.8rem; color: var(--primary); text-decoration: none; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.admin-table tr:hover { background: #f8fafc; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.8rem;
}
.btn-icon:hover { background: var(--primary); color: #fff; }
.btn-icon-danger:hover { background: var(--danger); color: #fff; }

/* Image Upload */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-upload-area:hover { border-color: var(--primary); }
.image-preview { max-width: 100%; max-height: 250px; border-radius: var(--radius-sm); object-fit: contain; }

/* Profile Page */
.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
}
.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.profile-avatar-wrapper:hover .profile-avatar-overlay { opacity: 1; }

/* Admin Responsive */
@media (max-width: 1024px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-main { padding: 20px; }
}
@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-main { grid-column: 1; }
    .admin-stats-grid { grid-template-columns: 1fr; }
}
