/* ============================================================
   MarketPro — Main Stylesheet
   Green #2d8a2d | Accent Orange #f07c1a
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --green:        #2d8a2d;
  --green-dark:   #1a5c1a;
  --green-light:  #e8f5e8;
  --green-mid:    #4aa84a;
  --orange:       #f07c1a;
  --orange-dark:  #c85e00;
  --orange-light: #fff3e0;
  --white:        #ffffff;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-300:     #d1d5db;
  --gray-500:     #6b7280;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-900:     #111827;
  --text:         #1f2937;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-md:    0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.16);
  --transition:   all .25s cubic-bezier(.4,0,.2,1);
  --font-sans:    'Nunito', sans-serif;
  --font-display: 'Poppins', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--gray-50); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── Scroll Bar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ── Container ──────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem,4vw,3.2rem); }
h2 { font-size: clamp(1.4rem,3vw,2.4rem); }
h3 { font-size: clamp(1.1rem,2vw,1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: .75rem; }
.text-green  { color: var(--green); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--gray-500); }
.text-center { text-align: center; }
.text-sm     { font-size: .875rem; }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-green  { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover  { background: var(--green-dark); border-color: var(--green-dark); }
.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-sm  { padding: 7px 16px; font-size: .8rem; }
.btn-lg  { padding: 15px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

/* ── Form Controls ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; color: var(--gray-700); }
.form-control {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: .9rem; transition: var(--transition); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,138,45,.12); }
.form-control.error { border-color: #dc2626; }
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: .78rem; color: #dc2626; margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:640px) { .form-row { grid-template-columns: 1fr; } }

/* ── Cards ──────────────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 24px; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ── Alerts ─────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; position: relative; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error, .alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }
.alert-close { position: absolute; right: 12px; top: 10px; background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: .6; }
.alert-close:hover { opacity: 1; }

/* ── Badges ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-green   { background: var(--green-light); color: var(--green-dark); }
.badge-orange  { background: var(--orange-light); color: var(--orange-dark); }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-blue    { background: #dbeafe; color: #1e40af; }

/* ═══════════════════════════════════════════════════════════
   HEADER / NAVIGATION
═══════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); box-shadow: 0 1px 8px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.header-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; color: var(--green); flex-shrink: 0;
}
.header-logo img { height: 40px; width: auto; }
.header-search { flex: 1; max-width: 480px; position: relative; }
.header-search input {
  width: 100%; padding: 10px 42px 10px 16px;
  border-radius: 999px; border: 1.5px solid var(--gray-200);
  background: var(--gray-50); font-size: .9rem; transition: var(--transition);
}
.header-search input:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(45,138,45,.1); }
.header-search button { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--green); }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a { padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; transition: var(--transition); color: var(--gray-700); }
.header-nav a:hover { background: var(--green-light); color: var(--green); }
.header-nav a.active { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gray-200);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); position: relative; color: var(--gray-700);
}
.header-icon-btn:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }
.notif-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; border: 1.5px solid #fff; }
.user-avatar-btn { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white); cursor: pointer; transition: var(--transition); }
.user-avatar-btn:hover { border-color: var(--green); background: var(--green-light); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--green); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; overflow: hidden; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100); overflow: hidden; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: var(--transition); z-index: 200;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  font-size: .875rem; font-weight: 600; color: var(--gray-700); transition: var(--transition);
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--green-light); color: var(--green); }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }

/* Mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.menu-toggle span { display: block; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.menu-toggle span:first-child { width: 24px; }
.menu-toggle span:last-child  { width: 18px; }

@media(max-width:900px) {
  .header-nav { display: none; }
  .header-search { max-width: 220px; }
}
@media(max-width:640px) {
  .header-search { display: none; }
  .menu-toggle { display: flex; }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 2000; display: flex;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-backdrop { flex: 1; background: rgba(0,0,0,.5); }
.mobile-nav-drawer {
  width: 300px; background: var(--white); overflow-y: auto;
  transform: translateX(-100%); transition: transform .3s ease;
  padding: 24px 0; flex-shrink: 0;
}
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-logo { padding: 0 20px 20px; border-bottom: 1px solid var(--gray-100); }
.mobile-nav-links { padding: 12px 0; }
.mobile-nav-links a {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  font-weight: 600; color: var(--gray-700); transition: var(--transition);
}
.mobile-nav-links a:hover { background: var(--green-light); color: var(--green); }
.mobile-nav-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-500); }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #3aa83a 100%);
  position: relative; overflow: hidden; padding: 80px 0 90px;
  color: var(--white);
}
.hero::before {
  content: ''; position: absolute; top: -40px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; left: 10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(240,124,26,.15); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-title { font-size: clamp(2rem,5vw,3.6rem); font-weight: 900; line-height: 1.1; margin-bottom: 16px; }
.hero-title span { color: var(--orange); }
.hero-subtitle { font-size: 1.05rem; opacity: .9; margin-bottom: 32px; max-width: 480px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-number { font-size: 1.8rem; font-weight: 900; font-family: var(--font-display); color: var(--orange); }
.hero-stat-label { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-mockup { max-height: 420px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media(max-width:820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }
  .hero-mockup { max-height: 240px; }
}

/* ── Search Bar in Hero ──────────────────────────────────── */
.hero-search { background: rgba(255,255,255,.12); backdrop-filter: blur(10px); padding: 6px 6px 6px 18px; border-radius: 999px; display: flex; align-items: center; gap: 8px; max-width: 500px; border: 1px solid rgba(255,255,255,.2); }
.hero-search input { background: none; border: none; color: #fff; flex: 1; font-size: 1rem; outline: none; }
.hero-search input::placeholder { color: rgba(255,255,255,.7); }
.hero-search .btn { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   SECTION LAYOUT
═══════════════════════════════════════════════════════════ */
.section { padding: 70px 0; }
.section-sm { padding: 50px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); margin-bottom: 8px; background: var(--orange-light); padding: 4px 14px; border-radius: 999px; }
.section-title { margin-bottom: 12px; }
.section-desc { max-width: 540px; margin: 0 auto; color: var(--gray-500); font-size: 1rem; }

/* ── Section dividers ────────────────────────────────────── */
.section-alt { background: var(--white); }
.section-green { background: linear-gradient(135deg, var(--green), var(--green-mid)); color: #fff; }
.section-green .section-label { background: rgba(255,255,255,.2); color: #fff; }
.section-green .section-desc { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════════
   STORES GRID + SLIDER
═══════════════════════════════════════════════════════════ */
.stores-slider-wrap { position: relative; overflow: hidden; }
.stores-slider { display: flex; gap: 20px; padding: 16px 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.stores-slider::-webkit-scrollbar { display: none; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--white); box-shadow: var(--shadow-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1.1rem; transition: var(--transition); z-index: 10;
}
.slider-btn:hover { background: var(--green); color: #fff; }
.slider-btn-prev { left: -16px; }
.slider-btn-next { right: -16px; }

.store-logo-card {
  flex-shrink: 0; width: 100px; text-align: center;
  animation: fadeInUp .4s ease both;
}
.store-logo-circle {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 8px;
  overflow: hidden; border: 3px solid var(--gray-100);
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  color: var(--green); transition: var(--transition);
}
.store-logo-card:hover .store-logo-circle { border-color: var(--green); transform: scale(1.06); box-shadow: 0 6px 20px rgba(45,138,45,.2); }
.store-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.store-logo-name { font-size: .78rem; font-weight: 700; color: var(--gray-700); line-height: 1.3; }

/* Stores grid */
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.store-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-100);
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.store-card-banner { height: 120px; background: linear-gradient(135deg, var(--green), var(--green-mid)); position: relative; overflow: hidden; }
.store-card-banner img { width: 100%; height: 100%; object-fit: cover; }
.store-card-logo {
  position: absolute; bottom: -24px; left: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--white); overflow: hidden;
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--green);
}
.store-card-body { padding: 32px 20px 20px; }
.store-card-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.store-card-tagline { font-size: .8rem; color: var(--gray-500); margin-bottom: 10px; line-height: 1.4; }
.store-card-meta { display: flex; align-items: center; justify-content: space-between; }
.store-card-category { font-size: .75rem; background: var(--green-light); color: var(--green); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.store-products-count { font-size: .75rem; color: var(--gray-500); }

/* ═══════════════════════════════════════════════════════════
   PRODUCTS GRID
═══════════════════════════════════════════════════════════ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-100);
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img { aspect-ratio: 1; overflow: hidden; background: var(--gray-50); position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-badge { position: absolute; top: 10px; left: 10px; }
.product-card-body { padding: 14px; }
.product-card-store { font-size: .72rem; color: var(--green); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.product-card-name { font-weight: 700; font-size: .9rem; margin-bottom: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-price { display: flex; align-items: baseline; gap: 8px; }
.product-price { font-size: 1rem; font-weight: 800; color: var(--green); }
.product-price-old { font-size: .8rem; color: var(--gray-400); text-decoration: line-through; }
.product-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.product-card-actions .btn { flex: 1; }
.product-wishlist {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.9);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gray-400); transition: var(--transition);
}
.product-wishlist:hover, .product-wishlist.active { color: #ef4444; }

/* ═══════════════════════════════════════════════════════════
   CATEGORIES GRID
═══════════════════════════════════════════════════════════ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.category-card {
  background: var(--white); border-radius: var(--radius); padding: 24px 16px;
  text-align: center; box-shadow: var(--shadow); transition: var(--transition);
  border: 1.5px solid var(--gray-100); cursor: pointer;
}
.category-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-3px); background: var(--green-light); }
.category-icon { font-size: 1.8rem; margin-bottom: 8px; display: flex; justify-content: center; }
.category-card svg { width: 32px; height: 32px; stroke: var(--green); }
.category-card:hover svg { stroke: var(--green-dark); }
.category-name { font-size: .82rem; font-weight: 700; color: var(--gray-700); }
.category-card:hover .category-name { color: var(--green-dark); }

/* ═══════════════════════════════════════════════════════════
   PRICING PLANS
═══════════════════════════════════════════════════════════ */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.plan-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px;
  border: 2px solid var(--gray-100); text-align: center; transition: var(--transition);
  position: relative; overflow: hidden;
}
.plan-card:hover { border-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-card.popular { border-color: var(--orange); box-shadow: 0 8px 40px rgba(240,124,26,.2); }
.plan-popular-badge { position: absolute; top: 20px; right: -30px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 800; padding: 4px 40px; transform: rotate(35deg); letter-spacing: 1px; }
.plan-name { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-600); margin-bottom: 6px; }
.plan-price-wrap { margin: 20px 0; }
.plan-price { font-size: 2.8rem; font-weight: 900; font-family: var(--font-display); color: var(--green); }
.plan-price sup { font-size: 1rem; vertical-align: super; font-weight: 700; }
.plan-price sub { font-size: .9rem; font-weight: 600; color: var(--gray-500); }
.plan-card.popular .plan-price { color: var(--orange); }
.plan-features { text-align: left; margin: 24px 0; }
.plan-feature { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .875rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-50); }
.plan-feature::before { content: '✓'; background: var(--green); color: #fff; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 900; flex-shrink: 0; }
.plan-card.popular .plan-feature::before { background: var(--orange); }

/* ═══════════════════════════════════════════════════════════
   STORE PAGE
═══════════════════════════════════════════════════════════ */
.store-hero { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.store-hero-banner { height: 220px; overflow: hidden; position: relative; }
.store-hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.store-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.5)); }
.store-hero-info { padding: 0 0 28px; }
.store-hero-inner { display: flex; align-items: flex-end; gap: 24px; margin-top: -48px; position: relative; z-index: 2; flex-wrap: wrap; }
.store-hero-logo {
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid #fff; overflow: hidden; flex-shrink: 0;
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: 2rem; color: var(--green);
}
.store-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-hero-details { flex: 1; padding-top: 20px; min-width: 200px; }
.store-hero-name { font-size: 1.6rem; font-weight: 900; }
.store-hero-tagline { opacity: .8; font-size: .9rem; margin-top: 2px; }
.store-social { display: flex; gap: 10px; margin-top: 10px; }
.store-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; transition: var(--transition); }
.store-social a:hover { background: rgba(255,255,255,.3); transform: scale(1.1); }
.store-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.store-stat { text-align: center; }
.store-stat-n { font-size: 1.4rem; font-weight: 900; }
.store-stat-l { font-size: .75rem; opacity: .7; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════════ */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--white); border-right: 1px solid var(--gray-100);
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
  padding: 24px 0;
}
.sidebar-logo { padding: 0 20px 20px; border-bottom: 1px solid var(--gray-100); }
.sidebar-menu { padding: 12px 0; }
.sidebar-section { padding: 14px 16px 4px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gray-400); }
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  font-weight: 600; font-size: .875rem; color: var(--gray-600); transition: var(--transition);
  border-radius: var(--radius-sm); margin: 2px 8px;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--green-light); color: var(--green); }
.sidebar-link.active { background: var(--green); color: #fff; }
.sidebar-link.active:hover { background: var(--green-dark); }
.sidebar-badge { margin-left: auto; background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .7rem; font-weight: 800; }
.dashboard-main { padding: 32px; background: var(--gray-50); }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.dashboard-title { font-size: 1.5rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon-green  { background: var(--green-light); color: var(--green); }
.stat-icon-orange { background: var(--orange-light); color: var(--orange); }
.stat-icon-blue   { background: #dbeafe; color: #2563eb; }
.stat-icon-red    { background: #fee2e2; color: #dc2626; }
.stat-icon svg    { width: 24px; height: 24px; }
.stat-body {}
.stat-value { font-size: 1.6rem; font-weight: 900; font-family: var(--font-display); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--gray-500); margin-top: 4px; }
.stat-change { font-size: .75rem; font-weight: 700; display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.stat-change.up   { color: #10b981; }
.stat-change.down { color: #ef4444; }

@media(max-width:900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; top: 0; height: 100vh; z-index: 1500; transition: left .3s ease; width: 280px; }
  .sidebar.open { left: 0; }
  .dashboard-main { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead tr { background: var(--gray-50); }
th { padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--gray-500); border-bottom: 2px solid var(--gray-100); white-space: nowrap; }
td { padding: 14px 16px; font-size: .875rem; border-bottom: 1px solid var(--gray-50); vertical-align: middle; }
tbody tr:hover { background: var(--gray-50); }
tbody tr:last-child td { border-bottom: none; }
.table-avatar { display: flex; align-items: center; gap: 10px; }
.table-avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; overflow: hidden; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual {
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; padding: 60px 48px; position: relative; overflow: hidden;
}
.auth-visual::before { content: ''; position: absolute; top: -100px; right: -80px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.05); }
.auth-visual::after  { content: ''; position: absolute; bottom: -80px; left: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(240,124,26,.1); }
.auth-visual-content { position: relative; z-index: 1; text-align: center; }
.auth-visual h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 16px; }
.auth-visual p  { font-size: 1rem; opacity: .85; line-height: 1.7; max-width: 360px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; background: var(--white); padding: 40px 32px; overflow-y: auto; }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; font-size: 1.4rem; font-weight: 800; color: var(--green); font-family: var(--font-display); }
.auth-title { font-size: 1.6rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--gray-500); font-size: .9rem; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--gray-400); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-switch { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--gray-600); }
.auth-switch a { color: var(--green); font-weight: 700; }
@media(max-width:760px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--gray-700); transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.page-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.page-btn:not(.active):not([href]) { pointer-events: none; padding: 0 12px; width: auto; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer { background: var(--gray-900); color: #d1d5db; margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 48px; }
.footer-brand .footer-logo { font-size: 1.6rem; font-weight: 900; color: var(--white); font-family: var(--font-display); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: var(--transition); }
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-col h4 { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: .875rem; color: #9ca3af; transition: var(--transition); }
.footer-col ul a:hover { color: var(--green); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: #9ca3af; }
.footer-bottom a { color: #9ca3af; transition: var(--transition); }
.footer-bottom a:hover { color: var(--green); }
@media(max-width:900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media(max-width:540px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   STEP / WIZARD
═══════════════════════════════════════════════════════════ */
.wizard-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; flex-wrap: wrap; }
.wizard-step { display: flex; align-items: center; gap: 0; }
.step-circle {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; border: 2px solid var(--gray-200);
  background: var(--white); color: var(--gray-400); transition: var(--transition);
}
.step-label { font-size: .78rem; font-weight: 700; color: var(--gray-400); margin: 0 8px; white-space: nowrap; }
.wizard-step.active .step-circle { border-color: var(--green); background: var(--green); color: #fff; }
.wizard-step.active .step-label  { color: var(--green); }
.wizard-step.done .step-circle   { border-color: var(--green); background: var(--green-light); color: var(--green); }
.wizard-step.done .step-label    { color: var(--green); }
.step-line { width: 60px; height: 2px; background: var(--gray-200); margin: 0 4px; }
.wizard-step.done + .wizard-step .step-line { background: var(--green); }
@media(max-width:600px) { .step-line { width: 24px; } .step-label { display: none; } }

/* ═══════════════════════════════════════════════════════════
   UPLOAD AREAS
═══════════════════════════════════════════════════════════ */
.upload-area {
  border: 2px dashed var(--gray-300); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; cursor: pointer; transition: var(--transition);
  background: var(--gray-50); position: relative;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--green); background: var(--green-light); }
.upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 2.5rem; color: var(--green); margin-bottom: 10px; }
.upload-text { font-weight: 700; color: var(--gray-700); }
.upload-hint { font-size: .78rem; color: var(--gray-400); margin-top: 4px; }
.upload-preview { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.upload-preview-item { position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--gray-200); }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: .65rem; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   PAYMENT METHOD CARDS
═══════════════════════════════════════════════════════════ */
.payment-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.payment-method-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 24px 20px;
  text-align: center; cursor: pointer; transition: var(--transition);
  position: relative;
}
.payment-method-card input { position: absolute; opacity: 0; }
.payment-method-card:has(input:checked),
.payment-method-card.selected { border-color: var(--green); background: var(--green-light); }
.payment-method-card:hover { border-color: var(--green); }
.payment-method-icon { font-size: 2rem; margin-bottom: 8px; }
.payment-method-name { font-weight: 700; font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════
   MISC / UTILITIES
═══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; opacity: .3; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); max-width: 360px; margin: 0 auto 24px; }
.divider { height: 1px; background: var(--gray-100); margin: 24px 0; }
.mt-auto { margin-top: auto; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mb-0   { margin-bottom: 0; }
.mb-1   { margin-bottom: 8px; }
.mb-2   { margin-bottom: 16px; }
.mb-3   { margin-bottom: 24px; }
.mb-4   { margin-bottom: 32px; }
.mt-2   { margin-top: 16px; }
.mt-3   { margin-top: 24px; }
.w-100  { width: 100%; }
.rounded-full { border-radius: 9999px; }
.hidden { display: none !important; }
.visible { display: block !important; }
.loader { width: 32px; height: 32px; border: 3px solid var(--gray-200); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scroll Animations ──────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(-24px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(24px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(.92); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ── Back to top ────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%; background: var(--green);
  color: #fff; border: none; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ── Sticky CTA bar on store page ───────────────────────── */
.store-sticky-bar {
  position: sticky; bottom: 0; left: 0; right: 0; z-index: 80;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--gray-100); box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: 12px 20px; display: none; align-items: center; justify-content: space-between; gap: 12px;
}
.store-sticky-bar.visible { display: flex; }

/* ── KYC steps ──────────────────────────────────────────── */
.kyc-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow-lg); }

/* ── Toggle switch ──────────────────────────────────────── */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--gray-300); border-radius: 999px; transition: .3s; }
.toggle-slider::before { content: ''; position: absolute; left: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Color Swatch ───────────────────────────────────────── */
.color-swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--gray-300); cursor: pointer; transition: var(--transition); }
.color-swatch.active { box-shadow: 0 0 0 2px var(--green); }

/* Print styles */
@media print { .header, .footer, .sidebar, .back-to-top, .store-sticky-bar { display: none !important; } }
