/* ============================================================
   TEKSERVIX — Premium Design System v2.0
   ============================================================ */

:root {
  --primary:      #6C63FF;
  --primary-d:    #5A52E0;
  --primary-l:    #EEF0FF;
  --secondary:    #FF6B6B;
  --accent:       #4ECDC4;
  --success:      #10B981;
  --warning:      #F59E0B;
  --danger:       #EF4444;
  --bg:           #FFFFFF;
  --bg-2:         #F8FAFC;
  --bg-3:         #F1F5F9;
  --text:         #1E293B;
  --text-2:       #475569;
  --text-3:       #94A3B8;
  --border:       #E2E8F0;
  --border-d:     #CBD5E1;
  --card-bg:      #FFFFFF;
  --nav-bg:       rgba(255,255,255,0.95);
  --nav-text:     #1E293B;
  --sidebar-bg:   #F8FAFC;
  --sidebar-text: #475569;
  --dark:         #1E293B;
  --dark-2:       #334155;
  --dark-3:       #475569;
  --slate:        #64748B;
  --light:        #F8FAFC;
  --lighter:      #FFFFFF;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.08);
  --shadow-xl:    0 24px 64px rgba(0,0,0,.10);
  --shadow-glow:  0 0 40px rgba(108,99,255,.25);
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition:   .2s cubic-bezier(.4,0,.2,1);
}

/* -- Dark Mode -- */
html.dark-mode {
  --bg:           #0F172A;
  --bg-2:         #1E293B;
  --bg-3:         #334155;
  --text:         #F1F5F9;
  --text-2:       #CBD5E1;
  --text-3:       #94A3B8;
  --border:       #334155;
  --border-d:     #475569;
  --card-bg:      #1E293B;
  --nav-bg:       rgba(15,23,42,0.95);
  --nav-text:     #F1F5F9;
  --sidebar-bg:   #1E293B;
  --sidebar-text: #CBD5E1;
  --dark:         #F1F5F9;
  --light:        #1E293B;
  --lighter:      #0F172A;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ── Announcement Bar ───────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  font-size: .85rem;
  font-weight: 500;
}
.announcement-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.5rem; border: none; border-radius: 50px;
  font-family: var(--font); font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); white-space: nowrap; position: relative;
}
.btn--primary  { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,.4); }
.btn--glow { box-shadow: 0 4px 20px rgba(108,99,255,.35); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn--outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn--white { background: #fff; color: var(--primary); font-weight: 700; }
.btn--white:hover { background: var(--primary-l); }
.btn--light { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.25); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--lg  { padding: .85rem 2rem; font-size: 1rem; }
.btn--sm  { padding: .4rem 1rem; font-size: .82rem; }
.btn--full { width: 100%; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.nav__container {
  max-width: 1280px; margin: 0 auto; padding: .8rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__logo {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.3rem; font-weight: 800; color: var(--dark); text-decoration: none; white-space: nowrap;
}
.logo-mark {
  height: 40px; width: auto; border-radius: 10px;
  object-fit: contain; flex-shrink: 0;
}
.logo-mark.sm { height: 40px; width: auto; border-radius: 10px; object-fit: contain; }
.logo-text { display: none; }

.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  padding: .45rem .85rem; border-radius: var(--radius); color: #374151;
  font-weight: 500; font-size: .9rem; transition: all var(--transition); white-space: nowrap;
}
.nav__link:hover { background: var(--primary-l); color: var(--primary); text-decoration: none; }
.nav__link--ai { background: linear-gradient(135deg, var(--primary-l), #fff0ff); color: var(--primary); font-weight: 600; }
.nav__link--ai:hover { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }

.nav__right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.nav__search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 50px; padding: .45rem 1rem;
  transition: all var(--transition); min-width: 220px;
}
.nav__search:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.nav__search input { border: none; outline: none; background: transparent; font-family: var(--font); font-size: .88rem; width: 100%; color: var(--dark); }
.search-icon { font-size: .9rem; color: var(--slate); flex-shrink: 0; }

.btn-nav {
  padding: .45rem 1.1rem; border: 1.5px solid var(--border);
  border-radius: 50px; background: transparent;
  font-weight: 600; font-size: .88rem; cursor: pointer; font-family: var(--font);
  color: var(--dark); transition: all var(--transition);
}
.btn-nav:hover { border-color: var(--primary); color: var(--primary); }
.btn-nav--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-nav--primary:hover { background: var(--primary-d); transform: translateY(-1px); }

.cart-btn {
  position: relative; padding: .45rem .9rem;
  border: 1.5px solid var(--border); border-radius: 50px;
  background: transparent; cursor: pointer; font-family: var(--font);
  font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: .4rem;
  transition: all var(--transition); color: var(--dark);
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-badge {
  background: var(--secondary); color: #fff; border-radius: 50%;
  min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; padding: 0 4px;
}
.nav__hamburger {
  display: none; background: none; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: .4rem .7rem; cursor: pointer;
  font-size: 1.1rem; color: var(--dark);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 50%, #FF6B6B 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 5rem 2rem; gap: 3rem; max-width: 100%; overflow: hidden; position: relative; min-height: 88vh;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(108,99,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero__left { flex: 1; max-width: 580px; position: relative; z-index: 1; padding-left: calc((100vw - 1280px)/2 + 2rem); }
@media (max-width: 1280px) { .hero__left { padding-left: 2rem; } }

.hero__pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(108,99,255,.2); color: #a99dff;
  border: 1px solid rgba(108,99,255,.3); border-radius: 50px;
  padding: .4rem 1.1rem; font-size: .82rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -.02em;
}
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, var(--accent), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { color: #94a3b8; font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.75; max-width: 480px; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero__trust { display: flex; flex-direction: column; gap: .6rem; }
.trust-label { color: #64748b; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.trust-logos { display: flex; gap: 1rem; flex-wrap: wrap; }
.trust-logo {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: .4rem .9rem; color: #94a3b8;
  font-size: .82rem; font-weight: 600; backdrop-filter: blur(4px);
}

/* ── Platform Preview ───────────────────────────────────── */
.hero__right {
  flex: 1; max-width: 560px; position: relative; z-index: 1;
  padding-right: calc((100vw - 1280px)/2 + 2rem);
}
@media (max-width: 1280px) { .hero__right { padding-right: 2rem; } }

.platform-preview {
  background: #1e1e2e; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(108,99,255,.2);
}
.preview-topbar {
  background: #2a2a3e; padding: .75rem 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.preview-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.preview-dot.red    { background: #FF5F57; }
.preview-dot.yellow { background: #FFBD2E; }
.preview-dot.green  { background: #28C840; }
.preview-url {
  flex: 1; text-align: center; color: #64748b; font-size: .75rem;
  background: #1a1a2e; border-radius: 6px; padding: .25rem .75rem;
}
.preview-body { display: flex; min-height: 280px; }
.preview-sidebar {
  background: #141426; width: 130px; padding: 1rem .75rem;
  display: flex; flex-direction: column; gap: .3rem; flex-shrink: 0;
}
.ps-logo { color: #a99dff; font-size: .8rem; font-weight: 700; margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.ps-link {
  padding: .4rem .6rem; border-radius: 6px; color: #64748b;
  font-size: .72rem; font-weight: 500; cursor: pointer;
}
.ps-link.active { background: rgba(108,99,255,.25); color: #a99dff; }
.preview-main { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.preview-stats { display: flex; gap: .5rem; }
.ps-stat {
  flex: 1; background: rgba(255,255,255,.05); border-radius: 8px;
  padding: .6rem; text-align: center;
}
.ps-stat-val   { color: #fff; font-size: .9rem; font-weight: 700; }
.ps-stat-label { color: #64748b; font-size: .65rem; margin-top: .1rem; }
.preview-chart {
  height: 80px; display: flex; align-items: flex-end; gap: 4px;
  background: rgba(255,255,255,.03); border-radius: 8px; padding: .5rem;
}
.chart-bar {
  flex: 1; background: rgba(108,99,255,.3); border-radius: 3px;
  transition: height .3s;
}
.chart-bar.active { background: var(--primary); }
.preview-orders { display: flex; flex-direction: column; gap: .4rem; }
.po-row { display: flex; align-items: center; gap: .5rem; color: #94a3b8; font-size: .72rem; }
.po-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.po-dot.green  { background: var(--success); }
.po-dot.blue   { background: var(--primary); }
.po-dot.yellow { background: var(--warning); }

.float-badge {
  position: absolute; background: #fff; border-radius: var(--radius-lg);
  padding: .75rem 1rem; box-shadow: var(--shadow-lg);
  font-size: .78rem; line-height: 1.4;
}
.float-badge strong { display: block; font-size: .9rem; color: var(--primary); }
.float-badge--tl { top: -12px; left: -12px; }
.float-badge--br { bottom: -12px; right: -12px; }

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar { background: var(--bg); border-bottom: 1px solid var(--border); }
.stats-bar__inner {
  max-width: 1280px; margin: 0 auto; padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem;
}
.stats-item { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.stats-item strong { font-size: 1.8rem; font-weight: 900; color: var(--dark); line-height: 1; }
.stats-item span   { color: var(--slate); font-size: .82rem; margin-top: .2rem; }
.stats-divider { width: 1px; height: 48px; background: var(--border); }

/* ── Section Headers ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem; letter-spacing: -.02em; }
.section-header p  { color: var(--slate); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-badge {
  display: inline-block; background: var(--primary-l); color: var(--primary);
  border-radius: 50px; padding: .3rem .9rem; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem;
}
.section-badge.light { background: rgba(255,255,255,.15); color: #fff; }

/* ── How It Works ────────────────────────────────────────── */
.how-it-works { padding: 5rem 0; background: var(--bg-2); }
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 2rem 1.75rem; text-align: center; flex: 1; min-width: 200px; max-width: 240px;
  position: relative; transition: all var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; border-radius: 50px;
  padding: .2rem .8rem; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.step-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.step h3   { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step p    { color: var(--slate); font-size: .85rem; line-height: 1.6; }
.step-arrow { font-size: 1.5rem; color: var(--border-d); flex-shrink: 0; }

/* ── Modules ─────────────────────────────────────────────── */
.modules { padding: 5rem 0; background: #fff; }
.modules__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.module-card {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  transition: all var(--transition); cursor: pointer; display: flex; flex-direction: column;
}
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); background: #fff; }
.module-card__icon  { font-size: 2.8rem; margin-bottom: 1rem; }
.module-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.module-card__desc  { color: var(--slate); font-size: .87rem; line-height: 1.65; flex: 1; }
.module-card__footer{ display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.module-card__tags  { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  background: var(--primary-l); color: var(--primary);
  border-radius: 50px; padding: .2rem .65rem; font-size: .72rem; font-weight: 600;
}
.module-card__link {
  color: var(--primary); font-size: .82rem; font-weight: 700; white-space: nowrap;
  opacity: 0; transition: opacity var(--transition);
}
.module-card:hover .module-card__link { opacity: 1; }

/* ── Products ────────────────────────────────────────────── */
.products-section { padding: 5rem 0; background: var(--bg-2); }
.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.section-header-row h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.product-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.ptab {
  padding: .4rem 1rem; border: 1.5px solid var(--border);
  border-radius: 50px; background: #fff; cursor: pointer;
  font-family: var(--font); font-size: .82rem; font-weight: 600;
  color: var(--slate); transition: all var(--transition);
}
.ptab:hover, .ptab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.link-more { color: var(--primary); font-weight: 700; font-size: .9rem; white-space: nowrap; }

.products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.product-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; transition: all var(--transition); cursor: pointer;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card__img {
  aspect-ratio: 1; background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--secondary); color: #fff;
  border-radius: 50px; padding: .15rem .6rem; font-size: .7rem; font-weight: 700;
}
.product-card__body { padding: 1rem; }
.product-card__name   { font-weight: 700; margin-bottom: .2rem; font-size: .9rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card__vendor { color: var(--slate); font-size: .75rem; margin-bottom: .5rem; }
.product-card__rating { color: #f59e0b; font-size: .78rem; margin-bottom: .5rem; }
.product-card__price  { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-bottom: .75rem; }
.product-card__price del { color: var(--slate); font-size: .82rem; font-weight: 400; margin-left: .4rem; }

/* ── AI Section ──────────────────────────────────────────── */
.ai-section { padding: 5rem 0; background: linear-gradient(135deg, var(--primary-d) 0%, #FF6B6B 100%); }
.ai-inner { display: flex; gap: 4rem; align-items: center; }
.ai-left  { flex: 1; max-width: 500px; }
.ai-left h2 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.ai-left p  { color: #94a3b8; font-size: 1rem; margin-bottom: 1.75rem; line-height: 1.75; }
.ai-features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.ai-feat {
  display: flex; align-items: center; gap: .75rem;
  color: #cbd5e1; font-size: .9rem;
}
.ai-feat span { font-weight: 500; }
.ai-right { flex: 1; max-width: 440px; }
.ai-demo-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl); padding: 1.75rem; backdrop-filter: blur(12px);
}
.ai-demo-header { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1.25rem; }
.ai-demo-input { margin-bottom: 1rem; }
.ai-demo-input label { display: block; color: #94a3b8; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.ai-demo-input input {
  width: 100%; padding: .75rem 1rem; background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15); border-radius: var(--radius);
  color: #fff; font-family: var(--font); font-size: .9rem; outline: none;
  transition: border-color var(--transition);
}
.ai-demo-input input:focus { border-color: var(--primary); }
.ai-demo-output {
  margin-top: 1rem; min-height: 80px;
  background: rgba(255,255,255,.05); border-radius: var(--radius);
  padding: 1rem; color: #cbd5e1; font-size: .88rem; line-height: 1.65;
}
.ai-typing { color: #a99dff; font-size: .85rem; font-style: italic; }
.dots::after { content: ''; animation: dots 1.2s infinite; }
@keyframes dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials { padding: 5rem 0; background: #fff; }
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.testi-card {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.75rem;
  transition: all var(--transition);
}
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testi-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-text  { color: #374151; font-size: .92rem; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--primary-l); flex-shrink: 0; }
.testi-name   { font-weight: 700; font-size: .9rem; }
.testi-role   { color: var(--slate); font-size: .78rem; }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 5rem 0; text-align: center;
}
.cta-inner h2 { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 1rem; letter-spacing: -.02em; }
.cta-inner p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Mega Footer ─────────────────────────────────────────── */
.footer { background: var(--sidebar-bg); color: var(--sidebar-text); padding: 5rem 0 0; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand p { color: #64748b; font-size: .88rem; line-height: 1.75; margin-top: .75rem; }
.footer-logo { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; font-weight: 800; }
.footer-logo .logo-mark { height: 36px; width: auto; border-radius: 8px; object-fit: contain; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }
.footer__col h4 { color: #e2e8f0; font-size: .88rem; font-weight: 700; margin-bottom: 1rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer__col ul a { color: #64748b; font-size: .85rem; transition: color var(--transition); }
.footer__col ul a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  padding: 1.75rem 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer__bottom p { color: #475569; font-size: .82rem; }
.footer-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.f-badge {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px; padding: .25rem .75rem;
  color: #64748b; font-size: .72rem; font-weight: 600;
}

/* ── Mobile Bottom Nav ───────────────────────────────────── */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: #fff; border-top: 1px solid var(--border);
  padding: .5rem 1rem .75rem; justify-content: space-around;
}
.mbn-item {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  color: var(--slate); font-size: .78rem; font-weight: 500;
  background: none; border: none; cursor: pointer; font-family: var(--font);
  padding: .35rem .75rem; border-radius: var(--radius); transition: all var(--transition);
  text-decoration: none;
}
.mbn-item span { font-size: 1.4rem; }
.mbn-item.active, .mbn-item:hover { color: var(--primary); }

/* ── Cart Panel ──────────────────────────────────────────── */
.cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 1100; backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }
.cart-panel {
  position: fixed; top: 0; right: -420px; width: 400px; height: 100vh; z-index: 1200;
  background: #fff; box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-panel.open { right: 0; }
.cart-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.cart-panel__header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-panel__header button {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border);
  background: #fff; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.cart-panel__items { flex: 1; overflow-y: auto; padding: 1.25rem; }
.cart-empty { text-align: center; color: var(--slate); padding: 3rem 1rem; font-size: .95rem; }
.cart-item { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 60px; height: 60px; border-radius: var(--radius); background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name  { font-weight: 600; font-size: .88rem; margin-bottom: .2rem; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: .92rem; }
.cart-item-qty   { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.qty-btn { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.cart-panel__footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

/* ── Chatbot Widget ──────────────────────────────────────── */
.chatbot-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.chatbot-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 20px rgba(108,99,255,.5);
  transition: transform var(--transition);
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-panel {
  width: 340px; background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column;
}
.chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
}
.chatbot-header button { background: rgba(255,255,255,.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: .9rem; }
.chatbot-agent { display: flex; align-items: center; gap: .75rem; }
.agent-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chatbot-agent strong { color: #fff; font-size: .95rem; display: block; }
.chatbot-agent small  { color: rgba(255,255,255,.75); font-size: .72rem; }
.chat-messages { height: 260px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.chat-msg { max-width: 82%; padding: .65rem 1rem; border-radius: var(--radius-lg); font-size: .85rem; line-height: 1.5; }
.chat-msg.bot  { background: var(--bg-2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.chat-suggestions button {
  background: #fff; border: 1.5px solid var(--border); border-radius: 50px;
  padding: .3rem .75rem; font-size: .75rem; cursor: pointer; font-family: var(--font);
  color: var(--primary); font-weight: 600; transition: all var(--transition);
}
.chat-suggestions button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-input-row { display: flex; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; padding: .8rem 1rem; border: none; outline: none; font-family: var(--font); font-size: .88rem; }
.chat-send { padding: .8rem 1.1rem; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 1rem; transition: background var(--transition); }
.chat-send:hover { background: var(--primary-d); }

/* ── Modals ──────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  z-index: 2000; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-xl); padding: 2.5rem;
  width: min(500px, 100%); box-shadow: var(--shadow-xl);
  position: relative; animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.modal-logo { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--dark); }
.modal h2    { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; color: var(--dark); }
.modal-sub   { color: var(--slate); font-size: .9rem; margin-bottom: 1.75rem; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group  { margin-bottom: 1.1rem; }
.form-group label  { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; color: #374151; }
.form-group input,
.form-group select { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: .92rem; outline: none; transition: border-color var(--transition); color: var(--dark); }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.form-hint   { float: right; color: var(--primary); font-size: .78rem; margin-top: .25rem; }
.form-error  { color: var(--danger); font-size: .82rem; margin-bottom: .75rem; min-height: 1rem; background: #fff1f2; border-radius: var(--radius); padding: .5rem .75rem; display: none; }
.form-error:not(:empty) { display: block; }

.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; }
.role-opt {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem .9rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer; font-size: .85rem;
  font-weight: 500; transition: all var(--transition);
}
.role-opt input { display: none; }
.role-opt:hover, .role-opt.active { border-color: var(--primary); background: var(--primary-l); color: var(--primary); font-weight: 600; }

.modal-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--slate); font-size: .82rem; }
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-logins { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.social-login-btn {
  padding: .65rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: #fff; cursor: pointer; font-family: var(--font); font-size: .88rem;
  font-weight: 600; transition: all var(--transition); color: var(--dark);
}
.social-login-btn:hover { border-color: var(--primary); background: var(--primary-l); }
.modal-switch { text-align: center; margin-top: 1.25rem; font-size: .88rem; color: var(--slate); }
.modal-switch a { color: var(--primary); cursor: pointer; font-weight: 700; }
.modal-terms { text-align: center; margin-top: .75rem; font-size: .75rem; color: var(--slate); }
.modal-terms a { color: var(--primary); }

/* ── Dashboard Styles ────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--sidebar-bg); color: var(--sidebar-text);
  padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-top { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-user { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.5rem; margin-top: .5rem; }
.sidebar-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.sidebar-username { font-weight: 700; font-size: .9rem; }
.sidebar-role { color: #64748b; font-size: .75rem; }
.sidebar-nav { padding: .75rem 1rem; flex: 1; }
.sidebar-section { color: #475569; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .75rem .75rem .4rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .75rem; border-radius: var(--radius); color: #94a3b8;
  font-weight: 500; font-size: .88rem; cursor: pointer;
  transition: all var(--transition); text-decoration: none; margin-bottom: .15rem;
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(108,99,255,.2); color: #fff; text-decoration: none; }
.sidebar-link span { font-size: 1.1rem; flex-shrink: 0; }

.dashboard-main { background: var(--bg-2); padding: 2rem; overflow-y: auto; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-header h1 { font-size: 1.6rem; font-weight: 800; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; }
.stat-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.stat-card__value { font-size: 2rem; font-weight: 900; color: var(--dark); line-height: 1; margin-bottom: .25rem; }
.stat-card__label { color: var(--slate); font-size: .85rem; }
.stat-card__change { font-size: .8rem; font-weight: 700; margin-top: .5rem; }
.stat-card__change.up   { color: var(--success); }
.stat-card__change.down { color: var(--danger); }

/* ── Tables ──────────────────────────────────────────────── */
.card { background: var(--card-bg); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.card-header h3 { font-size: 1rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { background: var(--bg-2); padding: .75rem 1rem; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); font-size: .8rem; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); color: var(--dark); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(108,99,255,.02); }

.badge-status { display: inline-block; padding: .2rem .8rem; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-active    { background: rgba(0,200,150,.12); color: #00a67d; }
.badge-pending   { background: rgba(255,184,0,.15);  color: #b37d00; }
.badge-cancelled { background: rgba(255,71,87,.12);  color: #cc2233; }
.badge-shipped   { background: rgba(108,99,255,.12); color: var(--primary); }
.badge-delivered { background: rgba(0,200,150,.12);  color: #00a67d; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { flex-direction: column; text-align: center; min-height: auto; padding: 4rem 2rem; }
  .hero__left { padding-left: 0; max-width: 100%; }
  .hero__right { padding-right: 0; max-width: 100%; width: 100%; }
  .hero__sub { max-width: 100%; }
  .hero__cta { justify-content: center; }
  .hero__trust { align-items: center; }
  .hero__right { order: -1; }
  .float-badge--tl, .float-badge--br { display: none; }
  .ai-inner { flex-direction: column; }
  .ai-left, .ai-right { max-width: 100%; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav__links   { display: none; }
  .nav__search  { display: none; }
  .btn-nav      { display: none; }
  .nav__hamburger { display: flex; }
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .form-row { grid-template-columns: 1fr; }
  .role-picker { grid-template-columns: 1fr; }
  .stats-bar__inner { gap: .75rem; }
  .stats-divider { display: none; }
  .cart-panel { width: 100%; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 2.4rem; }
  .footer__top { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}


:root {
  --primary:    #6C63FF;
  --primary-d:  #5A52E0;
  --secondary:  #FF6B6B;
  --accent:     #4ECDC4;
  --success:    #2ECC71;
  --warning:    #F39C12;
  --danger:     #E74C3C;
  --dark:       #1A1A2E;
  --dark-2:     #16213E;
  --dark-3:     #0F3460;
  --light:      #F8F9FA;
  --muted:      #6C757D;
  --border:     #E2E8F0;
  --white:      #FFFFFF;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.15);
  --radius:     12px;
  --radius-lg:  20px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Container ─────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary  { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); transform: translateY(-1px); }
.btn--outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--danger   { background: var(--danger); color: #fff; }
.btn--lg       { padding: .85rem 2rem; font-size: 1rem; }
.btn--full     { width: 100%; justify-content: center; }
.btn--sm       { padding: .4rem 1rem; font-size: .85rem; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.nav__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}
.logo-icon { font-size: 1.6rem; }
.logo-text  { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav__search {
  flex: 1;
  max-width: 600px;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color .2s;
}
.nav__search:focus-within { border-color: var(--primary); }
.nav__search input {
  flex: 1;
  padding: .6rem 1.2rem;
  border: none;
  outline: none;
  font-size: .95rem;
  font-family: var(--font);
  background: transparent;
}
.btn-search {
  padding: .6rem 1.2rem;
  background: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.btn-search:hover { background: var(--primary-d); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav__link {
  color: var(--dark);
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: var(--radius);
  transition: background .2s;
  white-space: nowrap;
}
.nav__link:hover { background: var(--primary-l); text-decoration: none; }
.btn-nav {
  padding: .5rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}
.btn-nav:hover { border-color: var(--primary); color: var(--primary); }
.btn-nav--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-nav--primary:hover { background: var(--primary-d); }
.cart-btn {
  padding: .5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  position: relative;
}
#cartCount {
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  padding: .1rem .4rem;
  font-size: .75rem;
  min-width: 20px;
  text-align: center;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 60%, #FF6B6B 100%);
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}
.hero__content { flex: 1; max-width: 600px; }
.badge {
  display: inline-block;
  background: rgba(108,99,255,.2);
  color: #a99dff;
  border: 1px solid rgba(108,99,255,.4);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub { color: #a0aec0; font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.7; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__stats { display: flex; gap: 2rem; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; }
.stat span { color: #a0aec0; font-size: .85rem; }

.hero__visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero__mockup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 340px;
}
.mockup-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
  transition: transform .3s, background .3s;
  cursor: default;
}
.mockup-card:hover { transform: translateY(-4px); background: rgba(108,99,255,.3); }
.mockup-card:nth-child(odd)  { transform: translateY( 12px); }
.mockup-card:nth-child(even) { transform: translateY(-12px); }
.mockup-card:nth-child(odd):hover  { transform: translateY( 8px); }
.mockup-card:nth-child(even):hover { transform: translateY(-16px); }

/* ── Modules Grid ──────────────────────────────────────── */
.modules { padding: 5rem 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem; }
.section-header p  { color: var(--muted); font-size: 1.05rem; }
.link-more { color: var(--primary); font-weight: 600; font-size: .95rem; }

.modules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.module-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all .3s;
  cursor: pointer;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.module-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.module-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.module-card__desc  { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.module-card__tags  { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag {
  background: rgba(108,99,255,.1);
  color: var(--primary);
  border-radius: 50px;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 600;
}

/* ── Products ──────────────────────────────────────────── */
.products-section { padding: 4rem 0; }
.products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__img  { aspect-ratio: 1; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.product-card__body { padding: 1.25rem; }
.product-card__name { font-weight: 700; margin-bottom: .25rem; font-size: .95rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-card__vendor { color: var(--muted); font-size: .8rem; margin-bottom: .5rem; }
.product-card__price { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.product-card__rating { color: #f39c12; font-size: .85rem; margin-bottom: .75rem; }
.product-card__btn { width: 100%; }

/* ── Loading Skeleton ──────────────────────────────────── */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-lg);
  height: 320px;
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Chatbot Widget ────────────────────────────────────── */
.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow: hidden;
}
.chatbot-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}
.chatbot-body { display: flex; flex-direction: column; }
.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.chat-msg {
  max-width: 80%;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  line-height: 1.5;
}
.chat-msg.bot  { background: var(--bg-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: .75rem 1rem; border: none; outline: none; font-family: var(--font); font-size: .9rem; }
.chat-input button { padding: .75rem 1.2rem; background: var(--primary); color: #fff; border: none; cursor: pointer; font-weight: 600; font-family: var(--font); }

/* ── Modals ────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: min(460px, calc(100vw - 2rem));
  box-shadow: var(--shadow-lg);
}
.modal h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--dark); }

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--primary); }
.form-error { color: var(--danger); font-size: .85rem; margin-bottom: .75rem; min-height: 1.2rem; }
.modal-switch { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.modal-switch a { color: var(--primary); cursor: pointer; font-weight: 600; }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: var(--sidebar-bg); color: var(--sidebar-text); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.footer h4 { font-size: .95rem; margin-bottom: 1rem; color: #a0aec0; }
.footer p  { color: #a0aec0; font-size: .9rem; line-height: 1.7; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .6rem; }
.footer ul a  { color: #a0aec0; font-size: .9rem; transition: color .2s; }
.footer ul a:hover { color: #fff; text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; }
.footer__bottom p { color: #a0aec0; font-size: .85rem; }

/* ── Dashboard Layout ──────────────────────────────────── */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--dark);
  color: #fff;
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar__logo { font-size: 1.4rem; font-weight: 800; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar__nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  color: #a0aec0;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
}
.sidebar__link:hover, .sidebar__link.active {
  background: rgba(108,99,255,.2);
  color: #fff;
  text-decoration: none;
}
.dashboard__main { background: var(--bg-2); padding: 2rem; overflow-y: auto; }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.stat-card { display: flex; flex-direction: column; gap: .5rem; }
.stat-card__value { font-size: 2rem; font-weight: 800; color: var(--dark); }
.stat-card__label { color: var(--muted); font-size: .9rem; }
.stat-card__change { font-size: .85rem; font-weight: 600; }
.stat-card__change.up   { color: var(--success); }
.stat-card__change.down { color: var(--danger); }

/* ── Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--bg-2); padding: .75rem 1rem; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); }
td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
tr:hover td { background: rgba(108,99,255,.03); }

/* ── Badges ────────────────────────────────────────────── */
.badge-status {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-active    { background: rgba(46,204,113,.15); color: #27ae60; }
.badge-pending   { background: rgba(243,156,18,.15);  color: #e67e22; }
.badge-cancelled { background: rgba(231,76,60,.15);   color: #c0392b; }
.badge-shipped   { background: rgba(52,152,219,.15);  color: #2980b9; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav__search { display: none; }
  .nav__link   { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__mockup { grid-template-columns: 1fr 1fr; }
  .chatbot-widget { width: calc(100vw - 2rem); }
}

/* ── Shared page utilities (inner pages) ────────────────── */
.sort-select {
  padding: .45rem 1rem; border: 1.5px solid var(--border); border-radius: 50px;
  font-family: var(--font); font-size: .85rem; outline: none; cursor: pointer;
  background: #fff; color: var(--dark); transition: border var(--transition);
}
.sort-select:focus { border-color: var(--primary); }

.filter-check {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .5rem; cursor: pointer; font-size: .88rem;
}
.filter-check input { accent-color: var(--primary); }

.modal-box {
  background: #fff; border-radius: var(--radius-xl); padding: 2rem;
  width: min(460px, calc(100vw - 2rem)); box-shadow: var(--shadow-xl);
  position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--light); border: none; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--slate);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--dark); }

.footer-logo {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.2rem; font-weight: 800; color: #fff; text-decoration: none;
}

.products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }

/* product-card position needed for badge overlay */
.product-card { position: relative; }

/* mobile bottom nav (used by inner pages too) */
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── Dropdown Navigation ─────────────────────────────────── */
.nav__dropdown-wrap { position: relative; display: inline-block; }
.nav__link--drop { cursor: pointer; }
.nav__dropdown {
  position: absolute; top: calc(100% + .5rem); left: 0;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); min-width: 220px; padding: .5rem; z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); pointer-events: none;
}
.nav__dropdown-wrap:hover .nav__dropdown,
.nav__dropdown-wrap:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all;
}
.nav__drop-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem; border-radius: var(--radius); color: var(--dark);
  font-size: .88rem; font-weight: 500; transition: all var(--transition);
  text-decoration: none;
}
.nav__drop-item:hover { background: var(--primary-l); color: var(--primary); text-decoration: none; }

/* ── Section badge (for module headings) ─────────────────── */
.section-badge {
  display: inline-block; background: var(--primary-l); color: var(--primary);
  border-radius: 50px; padding: .25rem .85rem; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem;
}

/* -- Dark Mode Toggle -- */
.dark-toggle {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: .3rem .7rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.dark-toggle:hover { background: var(--primary-l); border-color: var(--primary); }
html.dark-mode .dark-toggle { background: var(--bg-2); }
