/* ============================================================
   assets/css/main.css
   Pi Shopping Network — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --pi-gold: #F0A500;
  --pi-gold-light: #FFD166;
  --pi-gold-dark: #C87800;
  --primary: #1A1D2E;
  --primary-soft: #2A2D3E;
  --accent: #F0A500;
  --accent-hover: #E09400;
  --white: #FFFFFF;
  --off-white: #F8F9FB;
  --gray-50: #F3F4F6;
  --gray-100: #E5E7EB;
  --gray-200: #D1D5DB;
  --gray-300: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --success: #10B981;
  --success-bg: #D1FAE5;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --info: #3B82F6;
  --info-bg: #DBEAFE;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --navbar-h: 64px;
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(26,29,46,0.08);
  --shadow-card-hover: 0 8px 32px rgba(26,29,46,0.16);
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

/* ============================================================ RESET ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--gray-900); background: var(--off-white); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================ TYPOGRAPHY ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { color: var(--gray-700); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-500); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================================ LAYOUT ============================================================ */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.mt-2{margin-top:8px} .mt-4{margin-top:16px} .mt-6{margin-top:24px} .mt-8{margin-top:32px}
.mb-4{margin-bottom:16px} .mb-6{margin-bottom:24px} .mb-8{margin-bottom:32px}

/* ============================================================ NAVBAR ============================================================ */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--primary); height: var(--navbar-h); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.navbar-inner { display: flex; align-items: center; height: 100%; gap: 20px; }
.navbar-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar-logo-icon { width: 36px; height: 36px; background: var(--pi-gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--primary); letter-spacing: -1px; }
.navbar-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--white); line-height: 1; }
.navbar-logo-text span { color: var(--pi-gold); }
.navbar-search { flex: 1; max-width: 560px; position: relative; }
.navbar-search input { width: 100%; height: 40px; border-radius: 20px; border: 2px solid transparent; background: rgba(255,255,255,0.1); color: var(--white); padding: 0 44px 0 18px; font-size: 0.9rem; transition: var(--transition); outline: none; }
.navbar-search input::placeholder { color: rgba(255,255,255,0.5); }
.navbar-search input:focus { background: rgba(255,255,255,0.15); border-color: var(--pi-gold); }
.navbar-search-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); display: flex; align-items: center; }
.navbar-search-btn:hover { color: var(--pi-gold); }
.navbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.nav-btn { display: flex; align-items: center; gap: 7px; padding: 0 14px; height: 38px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.85); transition: var(--transition); cursor: pointer; white-space: nowrap; }
.nav-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-btn-primary { background: var(--pi-gold); color: var(--primary); }
.nav-btn-primary:hover { background: var(--pi-gold-light); color: var(--primary); }
.nav-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.navbar-mobile-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-sm); color: var(--white); margin-left: auto; }
@media (max-width: 768px) { .navbar-search { display: none; } .navbar-actions { display: none; } .navbar-mobile-toggle { display: flex; } }
.mobile-menu { display: none; position: fixed; top: var(--navbar-h); left: 0; right: 0; background: var(--primary); padding: 16px 20px 24px; z-index: 99; flex-direction: column; gap: 8px; box-shadow: var(--shadow-lg); }
.mobile-menu.open { display: flex; }
.mobile-menu input { width: 100%; height: 44px; border-radius: var(--radius); border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: var(--white); padding: 0 16px; font-size: 0.9rem; outline: none; margin-bottom: 8px; }
.mobile-menu .nav-btn { width: 100%; justify-content: center; height: 44px; border-radius: var(--radius); }

/* ============================================================ CATEGORY BAR ============================================================ */
.category-bar { background: var(--white); border-bottom: 1px solid var(--gray-100); height: 48px; overflow: visible; }
.category-bar-inner { display: flex; align-items: center; height: 100%; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 0 4px; }
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-link { display: flex; align-items: center; gap: 6px; padding: 0 16px; height: 100%; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.cat-link:hover, .cat-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================ HERO ============================================================ */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #2D3250 50%, #1A1D2E 100%); padding: 56px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(240,165,0,0.15) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -80px; left: 30%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(240,165,0,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(240,165,0,0.15); border: 1px solid rgba(240,165,0,0.3); color: var(--pi-gold-light); font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; line-height: 1.2; }
.hero h1 span { color: var(--pi-gold); }
.hero p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.hero-visual { flex-shrink: 0; width: 260px; display: none; }
@media (min-width: 900px) { .hero-visual { display: block; } }
.hero-card-preview { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl); padding: 24px; backdrop-filter: blur(10px); }
.hero-card-preview-img { width: 100%; height: 140px; background: linear-gradient(135deg, rgba(240,165,0,0.2), rgba(240,165,0,0.05)); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 3rem; margin-bottom: 14px; }
.hero-card-preview h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 4px; }
.hero-card-preview p { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.hero-card-preview-price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--pi-gold); margin-top: 10px; }

/* ============================================================ BUTTONS ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; height: 44px; border-radius: 22px; font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; transition: var(--transition); cursor: pointer; border: 2px solid transparent; line-height: 1; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--pi-gold); color: var(--primary); }
.btn-primary:hover { background: var(--pi-gold-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(240,165,0,0.35); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-soft); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #059669; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.8rem; border-radius: 17px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; border-radius: 26px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================ CARDS ============================================================ */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: var(--transition-slow); }
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }

/* Product card */
.product-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: var(--transition-slow); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.product-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--gray-50); display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 2.5rem; overflow: hidden; position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-badge { position: absolute; top: 10px; left: 10px; background: var(--pi-gold); color: var(--primary); font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-category { font-size: 0.72rem; font-weight: 600; color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.product-card-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--gray-900); line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-store { font-size: 0.78rem; color: var(--gray-500); margin-bottom: 10px; }
.product-card-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--accent); margin-top: auto; display: flex; align-items: center; gap: 4px; }
.product-card-price-unit { font-size: 0.8rem; font-weight: 600; color: var(--gray-500); }
.product-card-footer { padding: 12px 16px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.delivery-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 8px; }
.delivery-digital { background: #EDE9FE; color: #7C3AED; }
.delivery-physical { background: var(--info-bg); color: var(--info); }
.delivery-service { background: var(--success-bg); color: #059669; }

/* ============================================================ SECTIONS ============================================================ */
.section { padding: 48px 0; }
.section-sm { padding: 32px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.section-title span { display: block; font-size: 0.82rem; font-weight: 500; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* ============================================================ TRUST STRIP ============================================================ */
.trust-strip { background: var(--white); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); padding: 20px 0; }
.trust-strip-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--gray-700); font-size: 0.85rem; font-weight: 600; }
.trust-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(240,165,0,0.12); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }

/* ============================================================ FORMS ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control { width: 100%; height: 44px; padding: 0 14px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 0.9rem; font-family: var(--font-body); color: var(--gray-900); background: var(--white); transition: var(--transition); outline: none; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,165,0,0.12); }
textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 5px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 5px; }

/* ============================================================ BADGES ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-created   { background: var(--gray-100); color: var(--gray-700); }
.badge-paid      { background: var(--info-bg); color: var(--info); }
.badge-delivered { background: #EDE9FE; color: #7C3AED; }
.badge-awaiting  { background: var(--warning-bg); color: var(--warning); }
.badge-disputed  { background: var(--danger-bg); color: var(--danger); }
.badge-completed { background: var(--success-bg); color: var(--success); }
.badge-refunded  { background: var(--gray-100); color: var(--gray-700); }
.badge-auto_released { background: var(--success-bg); color: var(--success); }

/* ============================================================ ESCROW TRACKER ============================================================ */
.escrow-tracker { background: var(--white); border: 2px solid var(--gray-100); border-radius: var(--radius-lg); padding: 20px 24px; }
.escrow-tracker-title { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.escrow-steps { display: flex; align-items: center; }
.escrow-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.escrow-step:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--gray-200); z-index: 0; }
.escrow-step.done:not(:last-child)::after { background: var(--success); }
.escrow-step.active:not(:last-child)::after { background: var(--warning); }
.escrow-step-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100); border: 2px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--gray-400); position: relative; z-index: 1; transition: var(--transition); }
.escrow-step.done .escrow-step-dot { background: var(--success); border-color: var(--success); color: var(--white); }
.escrow-step.active .escrow-step-dot { background: var(--warning); border-color: var(--warning); color: var(--white); }
.escrow-step-label { font-size: 0.65rem; font-weight: 600; color: var(--gray-400); margin-top: 6px; text-align: center; text-transform: uppercase; letter-spacing: 0.3px; }
.escrow-step.done .escrow-step-label, .escrow-step.active .escrow-step-label { color: var(--gray-700); }

/* ============================================================ ALERTS ============================================================ */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); font-size: 0.875rem; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: #065F46; }
.alert-warning { background: var(--warning-bg); color: #92400E; }
.alert-danger  { background: var(--danger-bg); color: #991B1B; }
.alert-info    { background: var(--info-bg); color: #1E40AF; }

/* ============================================================ TABLES ============================================================ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; padding: 11px 16px; background: var(--gray-50); font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--gray-50); }

/* ============================================================ MODAL ============================================================ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-xl); width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.1rem; }
.modal-close { color: var(--gray-400); transition: var(--transition); }
.modal-close:hover { color: var(--gray-700); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================ DASHBOARD ============================================================ */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--navbar-h)); }
.dashboard-sidebar { background: var(--white); border-right: 1px solid var(--gray-100); padding: 24px 0; position: sticky; top: var(--navbar-h); height: calc(100vh - var(--navbar-h)); overflow-y: auto; }
.sidebar-nav { padding: 0 12px; }
.sidebar-section-label { font-size: 0.7rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; padding: 0 12px; margin-bottom: 6px; margin-top: 20px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; color: var(--gray-700); transition: var(--transition); margin-bottom: 2px; }
.sidebar-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--gray-50); color: var(--gray-900); }
.sidebar-link.active { background: rgba(240,165,0,0.1); color: var(--accent); font-weight: 600; }
.dashboard-main { padding: 32px; background: var(--off-white); overflow: hidden; }
@media (max-width: 768px) { .dashboard-layout { grid-template-columns: 1fr; } .dashboard-sidebar { display: none; } .dashboard-main { padding: 20px; } }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; }
.stat-icon-gold { background: rgba(240,165,0,0.12); color: var(--accent); }
.stat-icon-blue { background: var(--info-bg); color: var(--info); }
.stat-icon-green { background: var(--success-bg); color: var(--success); }
.stat-icon-red { background: var(--danger-bg); color: var(--danger); }
.stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 3px; }

/* ============================================================ FOOTER ============================================================ */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 0.875rem; margin-top: 12px; line-height: 1.7; max-width: 260px; }
.footer-heading { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--pi-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--pi-gold); }
.pi-indicator { display: inline-flex; align-items: center; gap: 5px; background: rgba(240,165,0,0.15); color: var(--pi-gold); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 10px; }

/* ============================================================ MISC ============================================================ */
.spinner { width: 22px; height: 22px; border: 3px solid var(--gray-200); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 2000; align-items: center; justify-content: center; }
.loading-overlay.show { display: flex; }
.loading-box { background: var(--white); border-radius: var(--radius-lg); padding: 28px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loading-box p { font-size: 0.9rem; color: var(--gray-700); font-weight: 500; }
.page-header { background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 28px 0; }
.page-header h1 { font-size: 1.5rem; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--gray-500); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--gray-300); }
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { margin-bottom: 8px; color: var(--gray-700); }
.empty-state p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 20px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); background: var(--white); border: 1px solid var(--gray-200); transition: var(--transition); }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded-full { border-radius: 9999px; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--gray-100); margin: 20px 0; }
#scroll-top { position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px; background: var(--primary); color: var(--white); border-radius: 50%; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow); cursor: pointer; transition: var(--transition); z-index: 50; }
#scroll-top.show { display: flex; }
#scroll-top:hover { background: var(--accent); color: var(--primary); transform: translateY(-2px); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.45s ease both; }
.fade-in-delay-1 { animation-delay: 0.05s; }
.fade-in-delay-2 { animation-delay: 0.12s; }
.fade-in-delay-3 { animation-delay: 0.2s; }