/* ============================================
   MarketHub — Advanced UI/UX Design System
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    /* Primary palette */
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --primary-bg: rgba(13, 148, 136, 0.08);
    --primary-glow: rgba(13, 148, 136, 0.25);

    /* Accent */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;

    /* Neutrals */
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-section: #f1f5f9;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Feedback */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px var(--primary-glow);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease);
    --transition-slow: 0.5s var(--ease);

    /* Sizing */
    --max-width: 1280px;
    --nav-height: 72px;

    /* Footer */
    --footer-bg: #0f172a;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Decorative gradient blob */
.gradient-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

.gradient-blob-1 {
    top: -200px;
    right: -100px;
    background: var(--primary);
}

.gradient-blob-2 {
    bottom: -200px;
    left: -100px;
    background: var(--accent);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.nav-logo i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links > li > a:not(.btn-nav) {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-links > li > a:not(.btn-nav):hover,
.nav-links > li > a.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-links > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Nav Buttons */
.btn-nav {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Cart count badge */
.cart-count {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    vertical-align: super;
    margin-left: -4px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger i.fa-chevron-down {
    font-size: 0.65rem;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.875rem;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.dropdown-menu li a i {
    width: 18px;
    color: var(--text-light);
}

.dropdown-menu li.divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Nav Toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #fefce8 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 50%, rgba(13, 148, 136, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 75% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .highlight-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 48px;
}

.hero-btn {
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--text), var(--bg-dark));
    color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text);
}

.hero-btn-secondary:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Hero Image */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.hero-main-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.hero-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--glass-shadow);
    animation: float 6s var(--ease) infinite;
}

.hero-card-1 {
    bottom: -20px;
    left: -20px;
}

.hero-card-2 {
    top: 20px;
    right: -20px;
    animation-delay: -2s;
}

.hero-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-card-icon.green { background: #d1fae5; color: #059669; }
.hero-card-icon.yellow { background: #fef3c7; color: #d97706; }

.hero-card-text small {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-card-text p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

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

/* Category Pills */
.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: -20px;
}

.category-pill {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pill i {
    font-size: 0.75rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn-solid {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-section);
    color: var(--text);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
}

/* ============================================
   CARDS (Product, Market)
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-section);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-badge.organic {
    background: #d1fae5;
    color: #059669;
}

.card-badge.featured {
    background: #fef3c7;
    color: #d97706;
}

.card-badge.sale {
    background: #fee2e2;
    color: #dc2626;
}

.card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-action-btn:hover {
    background: var(--primary);
    color: white;
}

.card-body {
    padding: 20px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.card-meta .market-name {
    color: var(--primary);
    font-weight: 600;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.card-rating i { color: var(--accent); }
.card-rating span { color: var(--text-light); margin-left: 4px; }

.card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.compare-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.card-add-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-add-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   MARKET CARDS
   ============================================ */

.market-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.market-card-banner {
    height: 140px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.market-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.market-card-type {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.market-card-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    margin-top: -32px;
    margin-left: 20px;
    position: relative;
    z-index: 1;
    border: 3px solid white;
}

.market-card-body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.market-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.market-card-location {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.market-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.market-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.market-card-rating i { color: var(--accent); }

.market-card-delivery {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 50%);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.how-step {
    text-align: center;
    padding: 40px 24px;
}

.how-step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 24px;
    position: relative;
}

.how-step:not(:last-child) .how-step-number::after {
    content: '';
    position: absolute;
    left: calc(100% + 24px);
    top: 50%;
    width: calc(100% + 40px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.3;
}

.how-step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 24px;
    color: var(--primary-light);
}

.how-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.how-step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.testimonial-stars {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-bg), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), #0d3b36);
    color: white;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.05rem;
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: white;
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--footer-bg);
    color: white;
    position: relative;
}

.footer-wave {
    position: relative;
    margin-top: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary-light);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-newsletter h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.35);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 50%, #fefce8 100%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .auth-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin: 0 auto 16px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group .input-wrapper {
    position: relative;
}

.form-group .input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    padding-left: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.form-group .input-error {
    border-color: var(--error);
}

.form-error {
    color: var(--error);
    font-size: 0.78rem;
    margin-top: 4px;
    display: none;
}

.form-group.invalid .form-error {
    display: block;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-submit {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
}

/* ============================================
   AUTH PAGES — Enhanced Registration Design
   ============================================ */

@keyframes auth-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
}

@keyframes auth-float-delay {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-8deg); }
}

@keyframes auth-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-pop {
    0% { opacity: 0; transform: scale(0.85); }
    60% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes auth-shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.auth-hero-wrap {
    width: 100%;
    max-width: 980px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    position: relative;
    animation: auth-fade-up 0.5s ease both;
}

.auth-hero {
    position: relative;
    background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 45%, var(--accent) 120%);
    color: white;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-hero::before,
.auth-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.auth-hero::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -120px;
}

.auth-hero::after {
    width: 260px;
    height: 260px;
    bottom: -110px;
    left: -90px;
}

.auth-hero-top {
    position: relative;
    z-index: 2;
}

.auth-hero-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

.auth-hero-brand .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(6px);
}

.auth-hero h2 {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.auth-hero h2 span {
    background: linear-gradient(120deg, #fef3c7, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero-sub {
    font-size: 0.9rem;
    opacity: 0.88;
    line-height: 1.55;
    margin-bottom: 26px;
}

.auth-hero-features {
    display: flex;
    flex-direction: column;
    gap: 13px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.auth-hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
    font-weight: 500;
}

.auth-hero-features li .feat-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.auth-hero-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(8px);
}

.auth-hero-stats .stat {
    text-align: center;
}

.auth-hero-stats .stat .num {
    font-size: 1.25rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

.auth-hero-stats .stat .lbl {
    font-size: 0.66rem;
    opacity: 0.82;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-hero .floating-icon {
    position: absolute;
    z-index: 1;
    color: rgba(255, 255, 255, 0.22);
    font-size: 1.6rem;
    animation: auth-float 6s ease-in-out infinite;
}

.auth-hero .floating-icon.fi-1 { top: 22%; right: 12%; }
.auth-hero .floating-icon.fi-2 { bottom: 30%; right: 18%; animation-name: auth-float-delay; animation-duration: 7s; }
.auth-hero .floating-icon.fi-3 { top: 52%; right: 34%; animation-name: auth-float-delay; animation-duration: 8s; }

.auth-form-side {
    padding: 40px 44px;
    position: relative;
}

.auth-form-side .auth-form-card-inner {
    max-width: 430px;
    margin: 0 auto;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 12px;
}

.auth-topbar .topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.auth-topbar .topbar-logo .logo-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.auth-topbar .topbar-link {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.auth-topbar .topbar-link a {
    color: var(--primary);
    font-weight: 700;
}

.auth-card-head {
    text-align: left;
    margin-bottom: 24px;
}

.auth-card-head .head-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.auth-card-head h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--text);
}

.auth-card-head p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    font-size: 0.72rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.auth-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.auth-badges i {
    color: var(--success);
}

.pw-meter {
    margin-top: 8px;
}

.pw-meter .pw-bars {
    display: flex;
    gap: 4px;
}

.pw-meter .pw-bars span {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--border);
    transition: background 0.25s;
}

.pw-meter .pw-label {
    font-size: 0.68rem;
    margin-top: 5px;
    font-weight: 600;
    color: var(--text-light);
    min-height: 14px;
}

.auth-card {
    animation: auth-pop 0.45s ease both;
}

@media (max-width: 900px) {
    .auth-hero-wrap {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-hero {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-form-side {
        padding: 28px 22px;
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    padding: 120px 24px 60px;
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    justify-content: center;
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb i {
    font-size: 0.6rem;
    color: var(--text-light);
}

/* ============================================
   FILTER BAR
   ============================================ */

.filter-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
}

.filter-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}

.search-box input:focus {
    border-color: var(--primary);
    background: white;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    outline: none;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary);
    background: white;
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-page {
    padding: 120px 24px 60px;
    min-height: 100vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-market {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-control button {
    padding: 6px 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.quantity-control button:hover {
    background: var(--bg-section);
    color: var(--text);
}

.quantity-control span {
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.cart-item-remove {
    color: var(--error);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.cart-item-remove:hover {
    text-decoration: underline;
}

.cart-item-total {
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 80px;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.cart-summary h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
}

.cart-empty {
    text-align: center;
    padding: 80px 24px;
}

.cart-empty i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cart-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   CHECKOUT
   ============================================ */

.checkout-page {
    padding: 120px 24px 60px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.checkout-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
}

.checkout-form h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-form h2 .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Payment method */
.payment-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-method {
    flex: 1;
    min-width: 120px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}

.payment-method:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.payment-method.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.payment-method i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.payment-method span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   ORDERS PAGE
   ============================================ */

.orders-page {
    padding: 120px 24px 60px;
    min-height: 100vh;
}

.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.order-number {
    font-weight: 700;
    font-size: 0.95rem;
}

.order-status {
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status.pending { background: #fef3c7; color: #d97706; }
.order-status.confirmed { background: #dbeafe; color: #2563eb; }
.order-status.preparing { background: #e0e7ff; color: #4f46e5; }
.order-status.out_for_delivery { background: #d1fae5; color: #059669; }
.order-status.delivered { background: #d1fae5; color: #059669; }
.order-status.cancelled { background: #fee2e2; color: #dc2626; }

.order-body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.order-product-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.order-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.order-total {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Order tracking timeline */
.tracking-timeline {
    display: flex;
    gap: 0;
    margin: 24px 0;
    position: relative;
}

.tracking-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.tracking-step::before {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(-50% + 16px);
    right: calc(50% + 16px);
    height: 3px;
    background: var(--border);
}

.tracking-step:first-child::before { display: none; }

.tracking-step.completed::before {
    background: var(--primary);
}

.tracking-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: var(--text-light);
}

.tracking-step.completed .tracking-dot {
    background: var(--primary);
    color: white;
}

.tracking-step.active .tracking-dot {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.tracking-step p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.tracking-step.completed p,
.tracking-step.active p {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews-page {
    padding: 120px 24px 60px;
    min-height: 100vh;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-product-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.review-info {
    flex: 1;
}

.review-product-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.78rem;
    color: var(--text-light);
}

.review-rating {
    color: var(--accent);
    font-size: 0.85rem;
}

.review-comment {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Star rating input */
.star-rating {
    display: flex;
    gap: 4px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--accent);
}

/* ============================================
   VENDOR DASHBOARD
   ============================================ */

.dashboard-page {
    padding: 120px 24px 60px;
    min-height: 100vh;
    background: var(--bg);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.stat-card-icon.teal { background: #d1fae5; color: #059669; }
.stat-card-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-card-icon.yellow { background: #fef3c7; color: #d97706; }
.stat-card-icon.red { background: #fee2e2; color: #dc2626; }

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}

.dashboard-table h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.dashboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    text-align: left;
    padding: 12px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}

.dashboard-table td {
    padding: 12px 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    transform: translateX(120%);
    animation: slideIn 0.4s var(--ease) forwards;
    min-width: 320px;
}

.toast.toast-out {
    animation: slideOut 0.3s var(--ease) forwards;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }

.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
.toast.warning i { color: var(--warning); }

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes slideOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .category-pills {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .how-step:not(:last-child) .how-step-number::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px 32px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        gap: 4px;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-card {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-item-actions {
        justify-content: center;
    }

    .order-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .order-product-img {
        margin: 0 auto;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .auth-card {
        padding: 24px;
    }

    .cart-summary {
        padding: 20px;
    }
}

/* ============================================
   Admin Dashboard — Professional UI
   ============================================ */

.admin-body {
    background: #f0f2f5;
    overflow-x: hidden;
}

/* ---- Layout ---- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ---- Sidebar ---- */
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.admin-sidebar-brand {
    padding: 20px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(13,148,136,0.4);
}

.admin-sidebar-brand .brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.admin-sidebar-brand .brand-text small {
    display: block;
    font-weight: 400;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.admin-sidebar-nav .nav-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.25);
    padding: 16px 12px 8px;
    font-weight: 600;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s var(--ease);
    margin-bottom: 2px;
    position: relative;
}

.admin-sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-sidebar-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}

.admin-sidebar-nav a.active {
    background: rgba(13,148,136,0.15);
    color: var(--primary-light);
}

.admin-sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 0 3px 3px 0;
}

.admin-sidebar-nav a .badge {
    margin-left: auto;
    background: var(--error);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.admin-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    transition: all 0.2s var(--ease);
}

.admin-sidebar-footer a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
}

/* ---- Sidebar Toggle (mobile) ---- */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1100;
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
}

.admin-sidebar-toggle:hover {
    background: var(--bg-section);
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

/* ---- Main Content ---- */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Top Header ---- */
.admin-topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar .topbar-search {
    flex: 1;
    max-width: 360px;
    position: relative;
}

.admin-topbar .topbar-search input {
    width: 100%;
    padding: 8px 16px 8px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    font-size: 0.85rem;
    outline: none;
}

.admin-topbar .topbar-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.admin-topbar .topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

.admin-topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.admin-topbar .topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    position: relative;
}

.admin-topbar .topbar-btn:hover {
    background: var(--bg-section);
    color: var(--text);
}

.admin-topbar .topbar-btn .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.admin-topbar .topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    cursor: pointer;
    margin-left: 8px;
}

.admin-topbar .topbar-profile:hover {
    background: var(--bg-section);
}

.admin-topbar .topbar-profile .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.admin-topbar .topbar-profile .info .name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.admin-topbar .topbar-profile .info .role {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* ---- Page Content ---- */
.admin-content {
    padding: 28px 28px 40px;
    flex: 1;
}

.admin-content .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-content .page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.admin-content .page-header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 2px 0 0;
}

.admin-content .page-header .header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

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

.admin-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.admin-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.admin-stat-card .stat-icon.teal { background: rgba(13,148,136,0.1); color: var(--primary); }
.admin-stat-card .stat-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.admin-stat-card .stat-icon.yellow { background: rgba(245,158,11,0.1); color: var(--accent); }
.admin-stat-card .stat-icon.red { background: rgba(239,68,68,0.1); color: var(--error); }
.admin-stat-card .stat-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.admin-stat-card .stat-icon.pink { background: rgba(236,72,153,0.1); color: #ec4899; }

.admin-stat-card .stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.admin-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
}

.admin-stat-card .stat-change {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    border-radius: 10px;
}

.admin-stat-card .stat-change.up { background: rgba(16,185,129,0.1); color: var(--success); }
.admin-stat-card .stat-change.down { background: rgba(239,68,68,0.1); color: var(--error); }

.admin-stat-card .stat-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.admin-stat-card .stat-glow.teal { background: var(--primary); }
.admin-stat-card .stat-glow.blue { background: #3b82f6; }
.admin-stat-card .stat-glow.yellow { background: var(--accent); }
.admin-stat-card .stat-glow.red { background: var(--error); }
.admin-stat-card .stat-glow.purple { background: #8b5cf6; }
.admin-stat-card .stat-glow.pink { background: #ec4899; }

/* ---- Cards ---- */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.admin-card .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card .card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.admin-card .card-header h3 i {
    color: var(--primary);
    font-size: 0.85rem;
}

.admin-card .card-header .card-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.admin-card .card-body {
    padding: 16px 20px;
}

.admin-card .card-body.no-padding {
    padding: 0;
}

/* ---- Admin Grid ---- */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-grid .full-width {
    grid-column: 1 / -1;
}

/* ---- Tables ---- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 10px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 20px;
    font-size: 0.84rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(13,148,136,0.02);
}

.admin-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table .status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.admin-table .status-badge.delivered { background: rgba(16,185,129,0.1); color: var(--success); }
.admin-table .status-badge.delivered .dot { background: var(--success); }
.admin-table .status-badge.pending { background: rgba(245,158,11,0.1); color: var(--accent); }
.admin-table .status-badge.pending .dot { background: var(--accent); }
.admin-table .status-badge.out_for_delivery { background: rgba(59,130,246,0.1); color: #3b82f6; }
.admin-table .status-badge.out_for_delivery .dot { background: #3b82f6; }
.admin-table .status-badge.preparing { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.admin-table .status-badge.preparing .dot { background: #8b5cf6; }
.admin-table .status-badge.cancelled { background: rgba(239,68,68,0.1); color: var(--error); }
.admin-table .status-badge.cancelled .dot { background: var(--error); }

.admin-table .type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.admin-table .type-badge.customer { background: rgba(13,148,136,0.1); color: var(--primary); }
.admin-table .type-badge.vendor { background: rgba(245,158,11,0.1); color: var(--accent); }
.admin-table .type-badge.shopper { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.admin-table .type-badge.admin { background: rgba(239,68,68,0.1); color: var(--error); }

.admin-table .action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.admin-table .action-btn:hover {
    background: var(--bg-section);
    color: var(--text);
}

/* ---- User Cell ---- */
.admin-table .user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-table .user-cell .uavatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.admin-table .user-cell .uavatar.a1 { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.admin-table .user-cell .uavatar.a2 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.admin-table .user-cell .uavatar.a3 { background: linear-gradient(135deg, var(--accent), var(--accent-light)); }
.admin-table .user-cell .uavatar.a4 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.admin-table .user-cell .uavatar.a5 { background: linear-gradient(135deg, #ec4899, #f472b6); }

.admin-table .user-cell .uname {
    font-weight: 600;
    font-size: 0.84rem;
}

.admin-table .user-cell .uemail {
    font-size: 0.72rem;
    color: var(--text-light);
}

/* ---- Breakdown Widget ---- */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.breakdown-item .breakdown-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 500;
}

.breakdown-item .breakdown-label i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.breakdown-item .breakdown-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.breakdown-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.breakdown-bar .fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s var(--ease);
}

/* ---- Quick Actions ---- */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: none;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text);
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.quick-action-btn:hover {
    background: var(--bg-section);
}

.quick-action-btn .qicon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.quick-action-btn .qicon.green { background: rgba(13,148,136,0.1); color: var(--primary); }
.quick-action-btn .qicon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.quick-action-btn .qicon.yellow { background: rgba(245,158,11,0.1); color: var(--accent); }
.quick-action-btn .qicon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }

/* ---- Chart Bars ---- */
.chart-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
    padding: 0 0 20px;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-item .bar {
    width: 100%;
    max-width: 36px;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transition: height 0.6s var(--ease);
    position: relative;
    cursor: pointer;
}

.chart-bar-item .bar .tooltip {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.chart-bar-item .bar:hover .tooltip {
    opacity: 1;
}

.chart-bar-item .bar-label {
    font-size: 0.68rem;
    color: var(--text-light);
    font-weight: 500;
}

.chart-bar-item .bar.teal { background: linear-gradient(180deg, var(--primary-light), var(--primary)); }
.chart-bar-item .bar.blue { background: linear-gradient(180deg, #60a5fa, #3b82f6); }
.chart-bar-item .bar.purple { background: linear-gradient(180deg, #a78bfa, #8b5cf6); }
.chart-bar-item .bar.yellow { background: linear-gradient(180deg, var(--accent-light), var(--accent)); }
.chart-bar-item .bar.pink { background: linear-gradient(180deg, #f472b6, #ec4899); }

.analytics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.analytics-mini {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.analytics-mini .value {
    font-size: 1.1rem;
    font-weight: 800;
}

.analytics-mini .label {
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: 1px;
}

/* ---- Responsive ---- */
@media (max-width: 1400px) {
    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-topbar .topbar-profile .info {
        display: none;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-sidebar-overlay.open {
        display: block;
    }
    .admin-sidebar-toggle {
        display: flex;
    }
    .admin-topbar {
        padding: 0 16px 0 60px;
    }
    .admin-content {
        padding: 20px 16px;
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-topbar .topbar-search {
        display: none;
    }
    .analytics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    .admin-content .page-header {
        flex-direction: column;
    }
    .admin-topbar {
        height: 56px;
    }
}
