:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: rgba(249,115,22,0.15);
  --blue: #38BDF8;
  --blue-dark: #0EA5E9;
  --teal: #14B8A6;
  --black: #0A0F1E;
  --dark: #111827;
  --mid: #1E293B;
  --mid2: #263244;
  --shell: #F8F4F0;
  --shell-dim: rgba(248,244,240,0.65);
  --shell-faint: rgba(248,244,240,0.35);
  --muted: #64748B;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sidebar-w: 64px;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--shell);
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: var(--sidebar-w);
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== PERSISTENT SIDEBAR ===== */
.persistent-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: rgba(10,15,30,0.97);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 6px;
  z-index: 200;
  backdrop-filter: blur(20px);
}

.sidebar-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 18px;
  position: relative;
  text-decoration: none;
}
.sidebar-btn:hover { background: rgba(255,255,255,0.07); color: var(--shell); }
.sidebar-btn.active { background: var(--orange-light); color: var(--orange); }
.sidebar-btn .sb-label { font-size: 9px; margin-top: 2px; font-weight: 600; letter-spacing: 0.3px; }
.sidebar-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--orange);
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-divider {
  width: 32px; height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.sidebar-logo-mini {
  width: 36px; height: 36px;
  margin-bottom: 4px;
}

/* PENGU HELP WIDGET */
.pengu-widget {
  position: fixed;
  bottom: 20px; left: 72px;
  width: 360px;
  background: var(--mid);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 520px;
}
.pengu-widget.open { display: flex; }
.pengu-header {
  background: linear-gradient(135deg, #0F2A3A, #0A1E2E);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.pengu-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1E3A5F, #0EA5E9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pengu-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--shell); }
.pengu-status { font-size: 11px; color: var(--teal); }
.pengu-close {
  margin-left: auto;
  background: none; border: none;
  color: var(--muted); cursor: pointer; font-size: 18px;
  transition: color var(--transition);
}
.pengu-close:hover { color: var(--shell); }
.pengu-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.pengu-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.pengu-msg.bot {
  background: var(--mid2);
  color: var(--shell-dim);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.pengu-msg.user {
  background: var(--orange);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.pengu-input-row {
  padding: 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.pengu-input {
  flex: 1;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 14px;
  color: var(--shell);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
}
.pengu-input:focus { border-color: var(--blue); }
.pengu-send {
  background: var(--orange);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.pengu-send:hover { background: var(--orange-dark); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,30,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-wave { width: 42px; height: 25px; }
.logo-text { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--shell); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; }
.nav-link { font-size: 14px; color: var(--muted); transition: color var(--transition); font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--shell); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--mid); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 14px 6px 8px;
  font-size: 13px; color: var(--shell-dim); cursor: pointer;
  transition: border-color var(--transition);
}
.nav-user-btn:hover { border-color: var(--border2); }
.nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}
.cart-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--orange); color: white;
  padding: 7px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--orange-dark); }
.cart-count {
  background: white; color: var(--orange);
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 540px;
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(135deg, #0A0F1E 0%, #0F1E2E 50%, #0A1A15 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.wave-bg { position: absolute; bottom: 0; left: 0; width: 100%; height: 65%; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.hero-badge {
  display: inline-block;
  background: var(--orange-light); border: 1px solid rgba(249,115,22,0.3);
  color: var(--orange); padding: 5px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 20px; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800; line-height: 1.05; letter-spacing: -2px;
  color: var(--shell); margin-bottom: 18px;
}
.accent { color: var(--orange); }
.hero-sub { font-size: 17px; color: var(--shell-dim); max-width: 500px; margin-bottom: 32px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
  background: var(--orange); color: white;
  padding: 13px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  transition: background var(--transition), transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--shell);
  padding: 13px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  border: 1px solid rgba(248,244,240,0.2);
  transition: border-color var(--transition), transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { border-color: rgba(248,244,240,0.45); transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: #0F9689; }

.hero-stats { display: flex; gap: 44px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--shell); }
.stat-label { font-size: 12px; color: var(--muted); }

/* ===== TRENDING BANNER ===== */
.trending-section { padding: 40px 0 0; background: var(--dark); }
.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--shell); margin-bottom: 18px; }
.section-sub { font-size: 13px; color: var(--muted); margin-left: 10px; font-weight: 400; }
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ===== CATEGORIES SECTION ===== */
.categories-section { padding: 40px 0; background: var(--dark); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
  background: var(--mid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 16px;
  text-align: center; cursor: pointer;
  transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cat-card:hover { border-color: rgba(249,115,22,0.3); transform: translateY(-2px); }
.cat-card.active { border-color: var(--orange); background: var(--orange-light); }
.cat-icon { font-size: 26px; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--shell-dim); }
.cat-count { font-size: 11px; color: var(--muted); }

/* ===== PRODUCTS ===== */
.products-section { padding: 40px 0 80px; background: var(--dark); }
.products-toolbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

.product-card {
  background: var(--mid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  position: relative; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); border-color: rgba(249,115,22,0.3); }
.product-card.affiliate { border-color: rgba(56,189,248,0.15); }
.product-card.affiliate:hover { border-color: rgba(56,189,248,0.35); }

.product-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 50px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase; z-index: 2;
}
.badge-research { background: rgba(249,115,22,0.15); color: var(--orange); border: 1px solid rgba(249,115,22,0.3); }
.badge-affiliate { background: rgba(56,189,248,0.15); color: var(--blue); border: 1px solid rgba(56,189,248,0.3); }
.badge-hot { background: rgba(20,184,166,0.15); color: var(--teal); border: 1px solid rgba(20,184,166,0.3); }
.badge-deal { background: rgba(239,68,68,0.15); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }

.product-img {
  height: 130px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.025); border-bottom: 1px solid var(--border);
  position: relative;
}
.wishlist-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(10,15,30,0.6); border: none;
  border-radius: 50%; width: 28px; height: 28px;
  color: var(--muted); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.wishlist-btn:hover { background: rgba(249,115,22,0.2); color: var(--orange); }
.wishlist-btn.saved { color: var(--orange); }

.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-vendor { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; font-weight: 600; }
.product-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--shell); margin-bottom: 6px; line-height: 1.3; }
.product-desc { font-size: 12px; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.product-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price-stack { display: flex; flex-direction: column; }
.product-price { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--shell); }
.member-price { font-size: 11px; color: var(--teal); font-weight: 600; }
.add-cart {
  background: var(--orange); color: white; border: none;
  padding: 7px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background var(--transition); white-space: nowrap;
}
.add-cart:hover { background: var(--orange-dark); }
.affiliate-link {
  background: rgba(56,189,248,0.12); color: var(--blue);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 7px 12px; border-radius: 50px;
  font-size: 12px; font-weight: 600; transition: background var(--transition); white-space: nowrap;
}
.affiliate-link:hover { background: rgba(56,189,248,0.22); }

/* ===== AUTH MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--mid); border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 420px;
  position: relative; box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; transition: color var(--transition);
}
.modal-close:hover { color: var(--shell); }
.modal h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--shell); margin-bottom: 6px; letter-spacing: -0.5px; }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.modal-tabs { display: flex; gap: 4px; background: var(--black); border-radius: 50px; padding: 4px; margin-bottom: 24px; }
.modal-tab {
  flex: 1; padding: 8px; border-radius: 50px; border: none;
  background: none; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--transition);
}
.modal-tab.active { background: var(--orange); color: white; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  width: 100%; background: var(--black); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px;
  color: var(--shell); font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--orange); }
.form-input::placeholder { color: var(--muted); }
.form-error { font-size: 12px; color: #EF4444; margin-top: 6px; }
.form-submit {
  width: 100%; background: var(--orange); color: white; border: none;
  padding: 14px; border-radius: 50px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background var(--transition); margin-top: 4px;
}
.form-submit:hover { background: var(--orange-dark); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== DISCLAIMER ===== */
.disclaimer-section { padding: 28px 0; background: var(--black); }
.disclaimer-box {
  display: flex; gap: 12px;
  background: rgba(249,115,22,0.06); border: 1px solid rgba(249,115,22,0.18);
  border-radius: var(--radius); padding: 16px 18px;
  font-size: 12px; color: var(--shell-faint); line-height: 1.7;
}
.disclaimer-box strong { color: var(--orange); }

/* ===== MEMBERSHIP BANNER ===== */
.membership-banner {
  background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(56,189,248,0.08));
  border: 1px solid rgba(20,184,166,0.2); border-radius: var(--radius-lg);
  padding: 24px 28px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; margin: 32px 0;
}
.membership-banner h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--shell); margin-bottom: 6px; }
.membership-banner p { font-size: 14px; color: var(--shell-dim); }

/* ===== VENDOR CTA ===== */
.vendor-cta-section { padding: 56px 0; background: var(--black); }
.vendor-cta-card {
  background: linear-gradient(135deg, var(--mid), rgba(15,30,46,0.8));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 52px 44px; display: flex;
  align-items: center; justify-content: space-between; gap: 40px; overflow: hidden;
}
.vendor-cta-text h2 { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--shell); margin-bottom: 14px; letter-spacing: -1px; }
.vendor-cta-text p { color: var(--shell-dim); font-size: 15px; max-width: 420px; margin-bottom: 26px; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer { background: #060A14; border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 10px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--shell); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); margin-bottom: 9px; transition: color var(--transition); }
.footer-col a:hover { color: var(--shell); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--mid); border: 1px solid rgba(20,184,166,0.35);
  color: var(--teal); padding: 11px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 600; z-index: 999;
  opacity: 0; transform: translateY(10px);
  transition: all 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== LANG SELECTOR ===== */
.lang-selector {
  background: var(--mid); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 5px 10px;
  color: var(--shell-dim); font-size: 13px;
  font-family: var(--font-body); outline: none; cursor: pointer;
}
.lang-selector option { background: var(--dark); }

/* ===== DROPDOWN MENUS ===== */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--mid); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 8px;
  min-width: 200px; z-index: 150;
  display: none; box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 13px; color: var(--shell-dim); cursor: pointer;
  transition: background var(--transition);
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--shell); }
.dropdown-item.danger { color: #EF4444; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ===== HIDDEN ===== */
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  body { padding-left: 0; padding-bottom: 64px; }
  .persistent-sidebar { 
    bottom: auto; top: auto; left: 0; right: 0;
    bottom: 0; width: 100%; height: 60px;
    flex-direction: row; justify-content: space-around;
    padding: 0 8px; border-right: none; border-top: 1px solid var(--border);
  }
  .sidebar-btn .sb-label { display: none; }
  .sidebar-logo-mini { display: none; }
  .sidebar-divider { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .vendor-cta-card { flex-direction: column; padding: 32px 24px; }
  .pengu-widget { left: 8px; right: 8px; width: auto; bottom: 72px; }
}
