/* ═══════════════════════════════════════════════════════════
   BusqueBuy — Premium Affiliate Store
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-d: 'Plus Jakarta Sans', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --accent: #ff5c00;
  --accent2: #ff7a2e;
  --accent-grad: linear-gradient(135deg, #ff5c00, #ff8a3d);
  --green: #00c97a;
  --red: #ef4444;
  --purple: #7c3aed;
  --blue: #0ea5e9;
  --gold: #f59e0b;
  --radius: 14px;
  --tr: .22s cubic-bezier(.4, 0, .2, 1);
}
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg2: #08080a;
  --surface: #131317;
  --surface2: #1a1a20;
  --surface3: #22222a;
  --border: #252530;
  --text: #eeedf5;
  --muted: #8a8a9c;
  --nav-bg: rgba(10, 10, 12, .82);
  --sh: rgba(0, 0, 0, .5);
}
[data-theme="light"] {
  --bg: #f4f4f8;
  --bg2: #ececf2;
  --surface: #fff;
  --surface2: #f1f1f6;
  --surface3: #e6e6ee;
  --border: #e0e0ea;
  --text: #15151d;
  --muted: #6b6b80;
  --nav-bg: rgba(244, 244, 248, .85);
  --sh: rgba(0, 0, 0, .1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  transition: background var(--tr), color var(--tr);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(255, 92, 0, .3); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ─────────────── NAV ─────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg); backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 18px; height: 70px;
}
.logo {
  font-family: var(--font-d); font-weight: 800; font-size: 1.35rem;
  letter-spacing: -.03em; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.logo i { color: var(--accent); }
.logo span { color: var(--accent); }
.nav-cats {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  position: relative;
}
.nav-cats-btn {
  display: flex; align-items: center; gap: 7px; background: var(--surface2);
  border: 1px solid var(--border); color: var(--text); padding: 9px 15px;
  border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  font-family: var(--font-d); transition: all var(--tr);
}
.nav-cats-btn:hover { border-color: var(--accent); }
.nav-cats-menu {
  position: absolute; top: 52px; left: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 8px;
  min-width: 220px; box-shadow: 0 18px 50px var(--sh); z-index: 50;
  display: none; flex-direction: column; gap: 2px;
}
.nav-cats-menu.open { display: flex; }
.nav-cats-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background var(--tr);
}
.nav-cats-menu a:hover { background: var(--surface2); color: var(--accent); }
.nav-search {
  flex: 1; max-width: 480px; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 0 16px; gap: 10px; transition: border-color var(--tr);
}
.nav-search:focus-within { border-color: var(--accent); }
.nav-search i { color: var(--muted); font-size: 14px; }
.nav-search input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-size: 14px; padding: 11px 0; font-family: var(--font-b);
}
.nav-search input::placeholder { color: var(--muted); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; background: var(--surface2);
  border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  font-size: 15px; transition: all var(--tr); position: relative;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon .badge-count {
  position: absolute; top: -5px; right: -5px; background: var(--accent);
  color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-family: var(--font-d);
}
.btn-admin {
  background: var(--accent-grad); color: #fff; padding: 10px 18px;
  border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  font-family: var(--font-d); border: none; transition: all var(--tr);
  display: flex; align-items: center; gap: 7px;
}
.btn-admin:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 92, 0, .35); }

/* ─────────────── CATEGORY BAR ─────────────── */
.cat-bar-wrap {
  background: var(--card); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cat-bar {
  display: flex; gap: 0; max-width: 1240px; margin: 0 auto; padding: 0 14px;
}
.cat-bar-btn {
  flex-shrink: 0; padding: 12px 16px; background: none; border: none;
  border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px;
  font-family: var(--font-d); font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.cat-bar-btn:hover { color: var(--text); border-bottom-color: var(--hover); }
.cat-bar-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─────────────── HERO ─────────────── */
.hero {
  padding: 60px 28px 40px; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 92, 0, .1); color: var(--accent);
  border: 1px solid rgba(255, 92, 0, .25); padding: 6px 15px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  font-family: var(--font-d); margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-d); font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -.035em; margin-bottom: 20px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  color: var(--muted); font-size: 16.5px; margin-bottom: 32px;
  max-width: 480px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent-grad); color: #fff; padding: 14px 28px;
  border-radius: 12px; font-weight: 700; font-size: 14.5px;
  transition: all var(--tr); border: none; cursor: pointer;
  font-family: var(--font-d); display: inline-flex; align-items: center; gap: 9px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 92, 0, .35); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 14px 26px; border-radius: 12px; font-size: 14.5px; cursor: pointer;
  font-family: var(--font-d); font-weight: 600; transition: all var(--tr);
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-trust {
  display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.trust-item i { color: var(--green); font-size: 15px; }
.trust-item .ti-text strong { display: block; font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--text); }
.trust-item .ti-text span { color: var(--muted); font-size: 11.5px; }

/* HERO VISUAL — product showcase */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-stage {
  width: 100%; max-width: 420px; aspect-ratio: 1/1;
  background: radial-gradient(circle at 50% 35%, rgba(255, 92, 0, .22), transparent 60%);
  border-radius: 28px; display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.hero-product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px; width: 100%; max-width: 290px; position: absolute; bottom: 8px;
  box-shadow: 0 24px 64px var(--sh); z-index: 2;
}
.hpc-badge {
  position: absolute; top: -12px; right: 16px; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; font-family: var(--font-d);
}
.hpc-img {
  width: 100%; aspect-ratio: 16/10; background: var(--surface2); border-radius: 13px;
  margin-bottom: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; overflow: hidden;
}
.hpc-img img { width: 100%; height: 100%; object-fit: cover; }
.hpc-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; font-family: var(--font-d); margin-bottom: 5px; }
.hpc-title { font-family: var(--font-d); font-weight: 700; font-size: .98rem; margin-bottom: 8px; }
.hpc-rating { color: var(--gold); font-size: 12px; margin-bottom: 10px; }
.hpc-rating span { color: var(--muted); }
.hpc-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hpc-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); font-family: var(--font-d); }
.hpc-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.hpc-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-grad); color: #fff; padding: 12px; border-radius: 11px;
  font-weight: 700; font-size: 13.5px; font-family: var(--font-d); cursor: pointer;
  transition: all var(--tr);
}
.hpc-cta:hover { transform: translateY(-1px); }
.float-pill {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  padding: 9px 15px; border-radius: 999px; font-size: 12px; font-weight: 600;
  font-family: var(--font-d); box-shadow: 0 8px 24px var(--sh); display: flex;
  align-items: center; gap: 7px; z-index: 3; animation: floatY 3.5s ease-in-out infinite;
}
.float-pill i { color: var(--green); }
.fp1 { top: 4%; left: -4%; }
.fp2 { top: 30%; right: -6%; animation-delay: 1.2s; }
.fp2 i { color: var(--gold); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ─────────────── SECTION HEADERS ─────────────── */
.section { padding: 26px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.section-head h2 {
  font-family: var(--font-d); font-weight: 800; font-size: 1.45rem;
  letter-spacing: -.025em; display: flex; align-items: center; gap: 10px;
}
.section-head h2 i { color: var(--accent); }
.section-link {
  color: var(--accent); font-weight: 600; font-size: 13.5px; cursor: pointer;
  font-family: var(--font-d); display: flex; align-items: center; gap: 6px;
  transition: gap var(--tr);
}
.section-link:hover { gap: 10px; }

/* ─────────────── CATEGORIES ─────────────── */
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px;
}
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 10px; cursor: pointer; transition: all var(--tr); text-align: center;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(255, 92, 0, .5); box-shadow: 0 14px 36px rgba(255, 92, 0, .1); }
.cat-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  margin: 0 auto 10px; transition: all var(--tr);
}
.cat-card:hover .cat-icon { background: rgba(255, 92, 0, .12); }
.cat-name { font-family: var(--font-d); font-weight: 700; font-size: .84rem; margin-bottom: 2px; }
.cat-count { color: var(--muted); font-size: 11px; }

/* ─────────────── TOOLBAR / FILTERS ─────────────── */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--font-d); transition: all var(--tr); white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sort-select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-family: var(--font-b);
  cursor: pointer; outline: none; transition: border-color var(--tr);
}
.sort-select:focus { border-color: var(--accent); }

/* ─────────────── PRODUCT GRID ─────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.products-grid.scroll {
  display: flex; overflow-x: auto; gap: 18px; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.products-grid.scroll .product-card { min-width: 250px; max-width: 250px; scroll-snap-align: start; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(255, 92, 0, .5); box-shadow: 0 18px 50px rgba(255, 92, 0, .12); }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px;
  font-weight: 700; padding: 4px 10px; border-radius: 999px; font-family: var(--font-d);
}
.badge-desconto { background: var(--accent); color: #fff; }
.badge-novo { background: var(--green); color: #022; }
.badge-top { background: var(--purple); color: #fff; }
.badge-exclusivo { background: var(--blue); color: #fff; }
.badge-hot { background: var(--gold); color: #221500; }
.card-fav {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(10, 10, 12, .65); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 15px; transition: all var(--tr); backdrop-filter: blur(8px); color: #fff;
}
.card-fav:hover { border-color: var(--accent); transform: scale(1.1); }
.card-fav.active { color: var(--red); border-color: var(--red); }
.card-img {
  width: 100%; aspect-ratio: 4/3; background: var(--surface2); display: flex;
  align-items: center; justify-content: center; font-size: 3.5rem; overflow: hidden; cursor: pointer;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: 6px; font-family: var(--font-d); }
.card-title {
  font-family: var(--font-d); font-weight: 700; font-size: .94rem; margin-bottom: 7px;
  line-height: 1.35; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.card-stars { color: var(--gold); font-size: 12px; }
.card-rating-num { color: var(--muted); font-size: 11.5px; }
.card-platform { font-size: 11px; color: var(--muted); margin-left: auto; }
.card-price-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.price-main { font-family: var(--font-d); font-weight: 800; font-size: 1.32rem; color: var(--accent); letter-spacing: -.02em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .82rem; }
.price-disc { background: rgba(255, 92, 0, .12); color: var(--accent); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; font-family: var(--font-d); }
.card-coupon {
  background: rgba(0, 201, 122, .08); border: 1px dashed var(--green); border-radius: 8px;
  padding: 6px 10px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: 11.5px;
}
.card-coupon .coupon-code { font-family: var(--font-d); font-weight: 700; color: var(--green); cursor: pointer; letter-spacing: .04em; }
.card-footer { display: flex; gap: 7px; margin-top: auto; }
.btn-buy {
  flex: 1; background: var(--accent-grad); color: #fff; padding: 11px; border-radius: 10px;
  font-weight: 700; font-size: 13px; text-align: center; transition: all var(--tr);
  border: none; cursor: pointer; font-family: var(--font-d); display: flex;
  align-items: center; justify-content: center; gap: 7px;
}
.btn-buy:hover { box-shadow: 0 6px 18px rgba(255, 92, 0, .4); }
.btn-mini {
  width: 40px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 14px; transition: all var(--tr);
  background: var(--surface2); border: 1px solid var(--border); color: var(--muted);
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent); }
.btn-mini.wpp { color: #25d366; border-color: rgba(37, 211, 102, .3); }
.btn-mini.wpp:hover { background: rgba(37, 211, 102, .15); }

/* ─────────────── BANNERS / OFERTAS ─────────────── */
.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.offer-banner {
  border-radius: 18px; padding: 28px; position: relative; overflow: hidden;
  min-height: 200px; display: flex; flex-direction: column; justify-content: center;
  cursor: pointer; transition: transform var(--tr); color: #fff;
}
.offer-banner:hover { transform: translateY(-3px); }
.offer-banner::after {
  content: ''; position: absolute; top: -40%; right: -10%; width: 220px; height: 220px;
  background: rgba(255, 255, 255, .12); border-radius: 50%;
}
.offer-emoji { font-size: 3.4rem; position: absolute; right: 28px; bottom: 18px; z-index: 1; opacity: .9; }
.offer-tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-bottom: 6px; font-family: var(--font-d); }
.offer-title { font-family: var(--font-d); font-weight: 800; font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -.02em; max-width: 70%; }
.offer-sub { font-size: 13px; opacity: .85; margin-bottom: 4px; }
.offer-price { font-family: var(--font-d); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; }
.offer-old { text-decoration: line-through; opacity: .7; font-size: .9rem; margin-left: 8px; }
.offer-cta {
  margin-top: 16px; background: rgba(255, 255, 255, .95); color: #15151d; padding: 9px 20px;
  border-radius: 10px; font-family: var(--font-d); font-weight: 700; font-size: 13px;
  align-self: flex-start; z-index: 1;
}

/* ─────────────── TRUST STRIP ─────────────── */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  margin: 20px 0;
}
.trust-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px;
}
.trust-card i { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; }
.trust-card strong { display: block; font-family: var(--font-d); font-weight: 700; font-size: .92rem; }
.trust-card span { color: var(--muted); font-size: 12.5px; }

/* ─────────────── EMPTY STATE ─────────────── */
.empty-state { grid-column: 1/-1; text-align: center; padding: 70px 28px; color: var(--muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; color: var(--surface3); }
.empty-state h3 { font-family: var(--font-d); font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: 1.15rem; }

/* ─────────────── PRODUCT PAGE / MODAL ─────────────── */
.pp-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .7);
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity var(--tr); backdrop-filter: blur(6px);
}
.pp-overlay.open { display: flex; opacity: 1; }
.pp-modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  width: 100%; max-width: 880px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 32px 80px var(--sh); transform: translateY(20px); transition: transform .3s;
}
.pp-overlay.open .pp-modal { transform: translateY(0); }
.pp-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pp-left { background: var(--surface2); padding: 32px; display: flex; align-items: center; justify-content: center; position: relative; }
.pp-img { width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 6rem; background: var(--surface); }
.pp-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: all var(--tr); z-index: 2;
}
.pp-close:hover { border-color: var(--accent); color: var(--accent); }
.pp-right { padding: 32px; }
.pp-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; font-family: var(--font-d); margin-bottom: 10px; }
.pp-title { font-family: var(--font-d); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1.18; margin-bottom: 12px; }
.pp-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.pp-stars { color: var(--gold); font-size: 14px; }
.pp-meta .pp-rev { color: var(--muted); font-size: 13px; }
.pp-platform-tag { background: var(--surface2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 8px; font-size: 11.5px; font-family: var(--font-d); font-weight: 600; }
.pp-desc { color: var(--muted); line-height: 1.75; margin-bottom: 20px; font-size: 14.5px; }
.pp-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.pp-price { font-family: var(--font-d); font-weight: 800; font-size: 2.1rem; color: var(--accent); letter-spacing: -.03em; }
.pp-old { color: var(--muted); text-decoration: line-through; font-size: 1.05rem; }
.pp-disc { background: rgba(255, 92, 0, .12); color: var(--accent); padding: 4px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; font-family: var(--font-d); }
.pp-coupon { background: rgba(0, 201, 122, .08); border: 1px dashed var(--green); border-radius: 10px; padding: 10px 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pp-coupon .coupon-code { font-family: var(--font-d); font-weight: 700; color: var(--green); cursor: pointer; }
.pp-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pp-buy { background: var(--accent-grad); color: #fff; padding: 16px; border-radius: 13px; font-weight: 700; font-size: 15.5px; text-align: center; transition: all var(--tr); font-family: var(--font-d); display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; }
.pp-buy:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 92, 0, .4); }
.pp-share { display: flex; gap: 8px; }
.pp-share button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-radius: 11px; font-family: var(--font-d); font-weight: 600; font-size: 13px; cursor: pointer; transition: all var(--tr); }
.pp-copy { background: var(--surface2); border: 1px solid var(--border); color: var(--text); }
.pp-copy:hover { border-color: var(--accent); color: var(--accent); }
.pp-wpp { background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .3); color: #25d366; }
.pp-wpp:hover { background: rgba(37, 211, 102, .2); }
.pp-trust { display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pp-trust div { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pp-trust i { color: var(--green); }

/* ─────────────── MOBILE BOTTOM NAV ─────────────── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 250;
  background: var(--nav-bg); backdrop-filter: blur(22px); border-top: 1px solid var(--border);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom)); justify-content: space-around;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
  color: var(--muted); font-size: 10.5px; font-weight: 600; font-family: var(--font-d);
  padding: 4px 12px; transition: color var(--tr); position: relative;
}
.bn-item i { font-size: 19px; }
.bn-item.active { color: var(--accent); }
.bn-item .badge-count {
  position: absolute; top: -2px; right: 6px; background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ─────────────── MODALS (admin/login) ─────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .75); display: flex;
  align-items: center; justify-content: center; z-index: 400; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity var(--tr); backdrop-filter: blur(6px);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  width: 100%; max-width: 920px; max-height: 92vh; overflow-y: auto;
  transform: translateY(20px); transition: transform .25s; box-shadow: 0 32px 80px var(--sh);
}
.modal.sm { max-width: 420px; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex;
  align-items: center; justify-content: space-between; position: sticky; top: 0;
  background: var(--surface); z-index: 3; gap: 12px;
}
.modal-header h3 { font-family: var(--font-d); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.modal-header-right { display: flex; align-items: center; gap: 10px; }
.modal-who { font-size: 12px; color: var(--green); font-family: var(--font-d); font-weight: 600; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all var(--tr); }
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-body { padding: 24px; }

/* ─────────────── ADMIN LAYOUT ─────────────── */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 0; min-height: 60vh; }
.admin-sidebar { border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav-btn {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px;
  background: transparent; border: none; color: var(--muted); font-size: 13.5px;
  font-weight: 600; cursor: pointer; font-family: var(--font-d); transition: all var(--tr);
  text-align: left; width: 100%;
}
.admin-nav-btn i { width: 18px; text-align: center; }
.admin-nav-btn:hover { background: var(--surface2); color: var(--text); }
.admin-nav-btn.active { background: rgba(255, 92, 0, .12); color: var(--accent); }
.admin-content { padding: 24px; overflow-y: auto; max-height: 80vh; }
.admin-section-title { font-family: var(--font-d); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; letter-spacing: -.02em; }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 7px; letter-spacing: .04em; font-family: var(--font-d); text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: 14px; font-family: var(--font-b);
  outline: none; transition: border-color var(--tr);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.img-preview { width: 100%; aspect-ratio: 16/9; background: var(--surface2); border-radius: 10px; margin-top: 8px; display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; border: 1px solid var(--border); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.emoji-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 8px; }
.emoji-opt { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; border-radius: 8px; cursor: pointer; transition: all var(--tr); border: 2px solid transparent; }
.emoji-opt:hover { background: var(--surface2); }
.emoji-opt.selected { border-color: var(--accent); background: rgba(255, 92, 0, .1); }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.checkbox-row label { margin: 0; text-transform: none; font-size: 13.5px; color: var(--text); cursor: pointer; }

/* ADMIN LIST ROWS */
.admin-row { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 13px; margin-bottom: 9px; }
.ar-img { width: 48px; height: 48px; border-radius: 10px; background: var(--surface3); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; overflow: hidden; flex-shrink: 0; }
.ar-img img { width: 100%; height: 100%; object-fit: cover; }
.ar-info { flex: 1; min-width: 0; }
.ar-name { font-weight: 700; font-size: .9rem; font-family: var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-sub { color: var(--muted); font-size: .76rem; margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.ar-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-sm { padding: 7px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font-b); border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: all var(--tr); }
.btn-sm.edit:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm.danger:hover { border-color: var(--red); color: var(--red); }

/* ANALYTICS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.stat-card .sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-card .sc-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.stat-card .sc-num { font-family: var(--font-d); font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; }
.stat-card .sc-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.chart-wrap { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.chart-wrap h4 { font-family: var(--font-d); font-weight: 700; font-size: .95rem; margin-bottom: 16px; }
.top-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.top-row:last-child { border-bottom: none; }
.top-rank { font-family: var(--font-d); font-weight: 800; font-size: .9rem; color: var(--muted); width: 22px; }
.top-img { width: 40px; height: 40px; border-radius: 9px; background: var(--surface3); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; overflow: hidden; flex-shrink: 0; }
.top-img img { width: 100%; height: 100%; object-fit: cover; }
.top-info { flex: 1; min-width: 0; }
.top-name { font-weight: 600; font-size: .88rem; font-family: var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-clicks { font-size: .75rem; color: var(--accent); font-weight: 700; }

/* LOGIN */
.login-box { text-align: center; padding: 8px 0; }
.login-icon { font-size: 2.6rem; margin-bottom: 14px; }
.login-box h3 { font-family: var(--font-d); font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; }
.login-box p { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

/* TABLE (recent clicks) */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; color: var(--muted); font-family: var(--font-d); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }

/* TOAST */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 2000;
  background: var(--surface); border: 1px solid var(--green); color: var(--text);
  padding: 13px 22px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  font-family: var(--font-d); opacity: 0; transition: all .3s; box-shadow: 0 12px 32px var(--sh);
  transform: translateX(-50%) translateY(100px); display: flex; align-items: center; gap: 9px;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i { color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.error i { color: var(--red); }

/* FOOTER */
footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 28px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--font-d); font-weight: 800; font-size: 1.2rem; }
.footer-logo span { color: var(--accent); }
.footer-text { color: var(--muted); font-size: 13px; }

/* LOADING */
.loader { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .hero-visual { display: none; }
  .pp-content { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 10px; }
  .admin-nav-btn { white-space: nowrap; }
  .admin-content { max-height: none; }
  .offers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; height: 60px; gap: 10px; }
  .nav-cats, .nav-search { display: none; }
  .btn-admin span { display: none; }
  .btn-admin { padding: 10px 12px; }
  .hero { padding: 28px 16px 20px; }
  .hero h1 { font-size: 2rem; }
  .hero-trust { gap: 14px; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .section { padding: 18px 0; }
  .section-head h2 { font-size: 1.25rem; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .cat-card { padding: 16px 10px; }
  .cat-icon { width: 46px; height: 46px; font-size: 1.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .price-main { font-size: 1.15rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .modal-body { padding: 16px; }
  .pp-left, .pp-right { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .mobile-search-wrap { display: block !important; }
}
/* mobile search bar (shown below nav on mobile) */
.mobile-search-wrap { display: none; padding: 10px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 60px; background: var(--nav-bg); backdrop-filter: blur(22px); z-index: 199; }
.mobile-search-wrap .nav-search { display: flex; max-width: none; }

/* ─────────────── SKELETON LOADING ─────────────── */
.skeleton-shell { pointer-events: none; }
.skeleton-nav {
  position: sticky; top: 0; z-index: 200; background: var(--nav-bg);
  backdrop-filter: blur(22px); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 18px; padding: 0 28px; height: 70px;
  max-width: 1240px; margin: 0 auto;
}
.skeleton-logo {
  width: 140px; height: 32px; border-radius: 8px;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-search {
  flex: 1; max-width: 480px; height: 42px; border-radius: 11px;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite .1s;
}
.skeleton-actions {
  width: 200px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite .2s;
}
.skeleton-hero {
  width: 100%; max-width: 1240px; margin: 60px auto 20px; padding: 0 28px; height: 280px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite .15s;
}
.skeleton-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
  padding: 20px 28px;
}
.skeleton-card {
  height: 360px; border-radius: 14px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-card:nth-child(2) { animation-delay: .05s; }
.skeleton-card:nth-child(3) { animation-delay: .1s; }
.skeleton-card:nth-child(4) { animation-delay: .15s; }
.skeleton-card:nth-child(5) { animation-delay: .2s; }
.skeleton-card:nth-child(6) { animation-delay: .25s; }
.skeleton-card:nth-child(7) { animation-delay: .3s; }
.skeleton-card:nth-child(8) { animation-delay: .35s; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─────────────── PULSE BUTTON ─────────────── */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 0, .4); }
  70% { box-shadow: 0 0 0 14px rgba(255, 92, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 0, 0); }
}
.btn-buy.cta-pulse {
  animation: pulse-ring 2s ease-out infinite;
}

/* ─────────────── COUPON COPY FEEDBACK ─────────────── */
.coupon-code.copied {
  animation: couponFlash .6s ease;
}
@keyframes couponFlash {
  0%, 100% { background: rgba(0, 201, 122, .08); }
  50% { background: rgba(0, 201, 122, .35); }
}

/* ─────────────── ADMIN FULL PAGE ─────────────── */
.admin-page {
  display: flex; min-height: 100vh; background: var(--bg);
}
.admin-page .admin-sidebar {
  width: 220px; min-width: 220px; background: var(--card);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  padding: 12px 0;
}
.admin-page .admin-sidebar-logo {
  padding: 16px 20px; font-size: 18px; font-weight: 700; display: flex;
  align-items: center; gap: 4px; color: var(--text);
  border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.admin-page .admin-sidebar-logo span { color: var(--accent); }
.admin-page .admin-main {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.admin-page .admin-header {
  padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-page .admin-header h3 {
  margin: 0; font-size: 16px; color: var(--text); display: flex; align-items: center; gap: 8px;
}
.admin-page .admin-who {
  font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.admin-page .admin-content {
  flex: 1; overflow-y: auto; padding: 24px;
}
.admin-nav-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 20px;
  background: none; border: none; color: var(--muted); font-size: 14px;
  cursor: pointer; transition: all .15s; text-align: left; font-family: inherit;
  border-left: 3px solid transparent;
}
.admin-nav-btn:hover { background: var(--hover); color: var(--text); }
.admin-nav-btn.active {
  background: rgba(255,92,0,.08); color: var(--accent); border-left-color: var(--accent); font-weight: 600;
}

/* ─────────────── ADMIN LOGIN FULL PAGE ─────────────── */
.admin-login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg); padding: 24px;
}
.admin-login-page .login-card {
  width: 100%; max-width: 400px; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 40px 32px;
  text-align: center;
}

/* ─────────────── CATEGORY PAGE ─────────────── */
.category-page { padding-top: 24px; }
.category-page .section-head { margin-bottom: 10px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  color: var(--muted); font-size: 14px; cursor: pointer; background: none;
  border: none; font-family: inherit; margin-bottom: 8px; transition: color .15s;
}
.back-link:hover { color: var(--accent); }

/* ─────────────── ADMIN LAYOUT (modal view) ─────────────── */
.admin-layout {
  display: flex; min-height: 400px;
}
.admin-layout .admin-sidebar {
  width: 200px; min-width: 200px; background: var(--card); border-right: 1px solid var(--border);
  padding: 8px 0; display: flex; flex-direction: column;
}
.admin-layout .admin-content {
  flex: 1; overflow-y: auto; padding: 20px;
}

/* ─────────────── IMAGE PREVIEW (admin form) ─────────────── */
.img-preview {
  width: 100%; height: 140px; border: 1px dashed var(--border);
  border-radius: 10px; margin-top: 8px; overflow: hidden;
  background: var(--hover); display: flex; align-items: center;
  justify-content: center; font-size: 48px;
}
.img-preview img {
  width: 100%; height: 100%; object-fit: contain;
}


@media (max-width: 768px) {
  .admin-page { flex-direction: column; }
  .admin-page .admin-sidebar {
    width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap;
    padding: 8px; gap: 4px; border-right: none; border-bottom: 1px solid var(--border);
  }
  .admin-page .admin-sidebar-logo { display: none; }
  .admin-page .admin-nav-btn { width: auto; padding: 8px 12px; font-size: 12px; border-left: none; border-radius: 8px; }
  .admin-page .admin-nav-btn.active { border-left: none; }
  .admin-layout { flex-direction: column; }
  .admin-layout .admin-sidebar { width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; }
}

/* ─────────────── SMART IMPORT ─────────────── */
.smart-import {
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px;
  overflow: hidden; background: var(--surface);
}
.smart-import-header {
  padding: 12px 16px; cursor: pointer; display: flex; align-items: center;
  gap: 6px; font-size: 14px; font-weight: 600; color: var(--text);
  user-select: none;
}
.smart-import-header:hover { background: var(--hover); }
.smart-import-body {
  display: none; padding: 0 16px 16px;
}
.smart-import-body.open { display: block; }
.smart-import-body textarea {
  width: 100%; height: 100px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px; color: var(--text); font-size: 13px;
  font-family: inherit; resize: vertical;
}
.smart-item {
  padding: 8px 0; font-size: 13px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.smart-item:last-child { border-bottom: none; }

.intelligence-page { max-width: 100%; }
.intelligence-header { margin-bottom: 4px; }
.intelligence-tabs {
  display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap;
}
.intel-tab {
  padding: 8px 16px; border: 1px solid var(--border); background: var(--card);
  color: var(--muted); border-radius: 10px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: all .15s;
  font-family: inherit;
}
.intel-tab:hover { border-color: var(--accent); color: var(--text); }
.intel-tab.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.intelligence-content { min-height: 300px; }

/* ─────────────── CATEGORY DISTRIBUTION BARS ─────────────── */
.cat-distribution { display: flex; flex-direction: column; gap: 8px; }
.cat-bar-row { display: flex; align-items: center; gap: 10px; }
.cat-bar-label { width: 120px; font-size: 13px; color: var(--text); text-align: right; flex-shrink: 0; }
.cat-bar-track { flex: 1; height: 8px; background: var(--hover); border-radius: 4px; overflow: hidden; }
.cat-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s ease; }
.cat-bar-num { width: 32px; font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* ─────────────── INSIGHTS LIST ─────────────── */
.insights-list { display: flex; flex-direction: column; gap: 10px; }
.insight-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px;
  background: var(--hover); border-radius: 10px; font-size: 13px; color: var(--text);
  line-height: 1.5;
}
.insight-item i { margin-top: 2px; flex-shrink: 0; }

/* ─────────────── SEASONAL PRODUCTS ─────────────── */
.season-group { margin-bottom: 24px; }
.season-product-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; transition: border-color .15s;
}
.season-product-card:hover { border-color: var(--accent); }
.spc-img {
  width: 48px; height: 48px; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--hover); font-size: 24px; flex-shrink: 0;
}
.spc-img img { width: 100%; height: 100%; object-fit: cover; }
.spc-info { flex: 1; min-width: 0; }
.spc-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.spc-cat { font-size: 11px; color: var(--muted); }

/* ─────────────── IMPROVEMENT ITEMS ─────────────── */
.impr-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text);
}

/* ─────────────── MINI CARDS ─────────────── */
.mini-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; text-align: center;
}
.mini-card-img {
  width: 60px; height: 60px; margin: 0 auto 6px; border-radius: 8px; overflow: hidden;
  background: var(--hover); display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.mini-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-card-name { font-size: 12px; color: var(--text); line-height: 1.3; margin-bottom: 4px; }

/* ─────────────── TAG ─────────────── */
.tag {
  display: inline-block; padding: 4px 10px; background: var(--hover);
  border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--muted);
}

/* ─────────────── CHAT ─────────────── */
.chat-container {
  display: flex; flex-direction: column; height: 500px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.chat-msg {
  display: flex; gap: 10px; max-width: 85%;
}
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.assistant { align-self: flex-start; }
.chat-msg-icon {
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px;
}
.chat-msg.assistant .chat-msg-icon { background: rgba(255,92,0,.12); color: var(--accent); }
.chat-msg.user .chat-msg-icon { background: rgba(14,165,233,.12); color: var(--blue); }
.chat-msg-text {
  background: var(--hover); padding: 10px 14px; border-radius: 14px;
  font-size: 13px; color: var(--text); line-height: 1.5; white-space: pre-wrap;
}
.chat-msg.user .chat-msg-text { background: var(--accent); color: #fff; }
.chat-input-wrap {
  display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border);
  background: var(--card);
}
.chat-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-size: 13px; font-family: inherit;
  outline: none;
}
.chat-input:focus { border-color: var(--accent); }
.chat-send-btn {
  width: 40px; height: 40px; border: none; background: var(--accent); color: #fff;
  border-radius: 10px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 14px; transition: opacity .15s;
}
.chat-send-btn:hover { opacity: .85; }

/* ─────────────── TYPING DOTS ─────────────── */
.typing-dots { display: inline-flex; gap: 3px; padding: 2px 0; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: typingBounce 1.4s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 768px) {
  .intel-tab { padding: 6px 10px; font-size: 11px; }
  .cat-bar-label { width: 80px; font-size: 11px; }
  .chat-container { height: 400px; }
}

@media (max-width: 768px) {
  .skeleton-hero { height: 180px; margin-top: 30px; }
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .skeleton-card { height: 270px; }
  .skeleton-search, .skeleton-actions { display: none; }
}
