/* ============================================
   ELITE SWIPE OFFERS - MAIN STYLESHEET
   Modern, polished design with dark/light modes
   ============================================ */

:root {
  /* Brand */
  --brand-primary: #ff6b00;
  --brand-secondary: #ff8c3b;
  --brand-accent: #ffa86b;
  --brand-gradient: linear-gradient(135deg, #ff6b00 0%, #ff8c3b 100%);
  --brand-gradient-hover: linear-gradient(135deg, #ff7f1f 0%, #ffa358 100%);

  /* Dark theme (default) */
  --bg: #0a0a0f;
  --bg-elevated: #13131b;
  --bg-card: #181821;
  --bg-card-hover: #1f1f2c;
  --bg-input: #1a1a25;
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --border: #2a2a38;
  --border-strong: #3a3a4d;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-faded: #6b7280;
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.12);
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.12);
  --purple: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.12);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-height: 72px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --shadow-brand: 0 6px 24px rgba(255, 107, 0, 0.35);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f7;
  --bg-input: #f3f4f6;
  --bg-overlay: rgba(255, 255, 255, 0.85);
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-muted: #6b7280;
  --text-faded: #9ca3af;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
}

/* ============================================
   RESET / BASE
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  transition: background var(--transition);
}

[data-theme="light"] .header { background: rgba(255, 255, 255, 0.85); }

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-right: 36px;
  white-space: nowrap;
}
.logo .swipe { color: var(--text); }
.logo .offers { color: var(--brand-primary); }
.logo::before {
  content: "";
  width: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav-item {
  position: relative;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-item:hover { color: var(--text); background: var(--bg-card); }
.nav-item.active {
  color: var(--brand-primary);
}
.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 3px 3px 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}
.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}
.icon-btn svg { width: 20px; height: 20px; }

.icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Side dropdown menu */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 28px;
  width: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 200;
}
.dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg-card); }
.dropdown-item svg { width: 20px; height: 20px; color: var(--text-muted); }
.dropdown-item.danger { color: var(--red); }
.dropdown-item.danger svg { color: var(--red); }
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title .count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  height: 56px;
  transition: all var(--transition);
  position: relative;
}
.search-bar:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(255,107,0,0.15);
}
.search-bar svg {
  width: 22px;
  height: 22px;
  color: var(--text-faded);
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  padding: 0 16px;
}
.search-bar input::placeholder { color: var(--text-faded); }
.search-bar .kbd {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 56px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-gradient-hover);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45);
}
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--brand-primary); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ============================================
   FILTERS GRID
   ============================================ */
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.filters.row2 {
  grid-template-columns: 1fr 1fr 1fr;
}

.filter-select {
  position: relative;
}
.filter-select select {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-select select:hover { border-color: var(--brand-primary); }
.filter-select select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(255,107,0,0.15);
}
.filter-select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { background: var(--bg-card-hover); color: var(--text); }
.chip.active {
  background: var(--brand-gradient);
  color: white;
  border-color: var(--brand-primary);
}
.chip .x {
  font-size: 16px;
  line-height: 1;
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-left: auto;
}
.view-toggle button {
  width: 40px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.view-toggle button.active {
  background: var(--bg-elevated);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}
.view-toggle button svg { width: 18px; height: 18px; }

/* ============================================
   OFFERS GRID
   ============================================ */
.offers-section {
  margin-top: 28px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.offers-grid.list-mode {
  grid-template-columns: 1fr;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.offer-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
[data-theme="light"] .offer-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.offer-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.offer-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 50%);
}
.offer-cover-emoji {
  font-size: 96px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
  transition: transform var(--transition-slow);
  z-index: 1;
}
.offer-card:hover .offer-cover-emoji {
  transform: scale(1.15) rotate(-4deg);
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  transition: all var(--transition);
}
.fav-btn:hover { background: rgba(0,0,0,0.8); transform: scale(1.1); }
.fav-btn.active { background: var(--red); }
.fav-btn.active svg { fill: white; }
.fav-btn svg { width: 18px; height: 18px; transition: all var(--transition); }

.ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0.95));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.offer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.offer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.offer-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-pill.green { color: var(--green); border-color: rgba(16, 185, 129, 0.3); background: var(--green-bg); }
.status-pill.green::before { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse-dot 2s infinite; }
.status-pill.blue { color: var(--blue); border-color: rgba(59, 130, 246, 0.3); background: var(--blue-bg); }
.status-pill.blue::before { background: var(--blue); }
.status-pill.red { color: var(--red); border-color: rgba(239, 68, 68, 0.3); background: var(--red-bg); }
.status-pill.red::before { background: var(--red); animation: pulse-dot 1.4s infinite; }

.offer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.offer-meta .ads-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
}

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.tag.solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
[data-theme="light"] .tag.solid { background: #111; color: #fff; }

.offer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.offer-stat {
  text-align: center;
}
.offer-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.offer-stat-label {
  font-size: 11px;
  color: var(--text-faded);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(139,92,246,0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin-bottom: 32px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  max-width: 720px;
  margin-bottom: 16px;
}
.hero h1 .accent {
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 28px;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
}
.stat-card-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-card-label svg { width: 16px; height: 16px; color: var(--brand-primary); }
.stat-card-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}
.stat-card-trend {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-card-trend.down { color: var(--red); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition: all var(--transition);
}
.page-btn:hover { background: var(--bg-card-hover); border-color: var(--brand-primary); }
.page-btn.active {
  background: var(--brand-gradient);
  color: white;
  border-color: var(--brand-primary);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-primary);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  min-width: 280px;
  transform: translateX(120%);
  transition: transform var(--transition-slow);
}
.toast.show { transform: translateX(0); }
.toast svg { width: 24px; height: 24px; color: var(--brand-primary); }
.toast strong { display: block; margin-bottom: 2px; }
.toast small { color: var(--text-muted); font-size: 13px; }

/* ============================================
   COPYWRITERS PAGE
   ============================================ */
.copywriter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.copywriter-card:hover { transform: translateY(-6px); border-color: var(--brand-primary); }
.copywriter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
}
.copywriter-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 3px solid var(--border);
}
.copywriter-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.copywriter-nick {
  font-size: 13px;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 600;
}
.copywriter-quote {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 60px;
}
.copywriter-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   SPY PAGE
   ============================================ */
.live-feed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.live-feed-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red);
}
.live-indicator::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
.feed-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideIn 0.4s ease-out;
}
.feed-item:last-child { border-bottom: none; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.feed-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.feed-content { flex: 1; }
.feed-content strong { font-weight: 600; }
.feed-time { font-size: 12px; color: var(--text-faded); }

/* ============================================
   OFFER DETAIL PAGE
   ============================================ */
.offer-detail-hero {
  position: relative;
  height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  margin-bottom: 32px;
  color: white;
}
.offer-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
  z-index: 1;
}
.offer-detail-hero > * { position: relative; z-index: 2; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}
.detail-content { display: flex; flex-direction: column; gap: 24px; }
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.detail-card h2 {
  font-size: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 4px;
}
.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.swipe-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.swipe-item {
  aspect-ratio: 9 / 16;
  background: var(--bg-input);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.swipe-item:hover { transform: scale(1.05); }
.swipe-item::after {
  content: "▶";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  opacity: 0;
  transition: opacity var(--transition);
}
.swipe-item:hover::after { opacity: 1; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty h3 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.empty p { max-width: 400px; margin: 0 auto; }

/* ============================================
   LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
  .detail-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .logo { font-size: 18px; margin-right: 12px; }
  .nav-item { padding: 8px 10px; font-size: 13px; }
  .nav-item.active::after { display: none; }
  .page { padding: 20px 16px 60px; }
  .filters { grid-template-columns: 1fr; }
  .offers-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 22px; }
  .search-row { flex-direction: column; }
  .btn { width: 100%; }
  .swipe-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   UTILS
   ============================================ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.font-bold { font-weight: 700; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ============================================
   MODAL
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition);
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-card); color: var(--text); }
.modal-body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.tag-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.tag-checkbox:hover { color: var(--brand-primary); }
.tag-checkbox:last-child { border-bottom: none; }
.tag-checkbox input { accent-color: var(--brand-primary); width: 18px; height: 18px; cursor: pointer; }

/* Tag filter trigger button */
.btn-tag-filter {
  height: 52px;
  padding: 0 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-tag-filter:hover { border-color: var(--brand-primary); }
.btn-tag-filter .tag-count {
  background: var(--brand-primary);
  color: white;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

/* Nav person icon for Afiliado */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease-out backwards; }

/* ============================================
   ACERVO — COLEÇÕES & PRODUTOS DIGITAIS
   ============================================ */
:root {
  --gold: #e8b75a;
  --gold-soft: #f4d18a;
  --gold-deep: #b9892f;
  --gold-gradient: linear-gradient(135deg, #f4d18a 0%, #e8b75a 45%, #b9892f 100%);
}

.acervo-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 8px 0 48px;
  min-height: 280px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
}
.acervo-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.acervo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,8,12,0.92) 0%, rgba(8,8,12,0.7) 45%, rgba(8,8,12,0.25) 100%);
  z-index: 1;
}
[data-theme="light"] .acervo-hero::after {
  background: linear-gradient(100deg, rgba(20,16,8,0.88) 0%, rgba(20,16,8,0.6) 45%, rgba(20,16,8,0.15) 100%);
}
.acervo-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 44px;
  max-width: 640px;
}
.acervo-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.acervo-hero-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 14px;
}
.acervo-hero-content h2 .gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.acervo-hero-content p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
}

.collection-block { margin-bottom: 56px; }
.collection-head { margin-bottom: 24px; }
.collection-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.collection-emoji { font-size: 24px; }
.collection-intro {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 760px;
  line-height: 1.55;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), border-color var(--transition), box-shadow var(--transition-slow);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 22px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,183,90,0.25);
}
[data-theme="light"] .product-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(185,137,47,0.3);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0c0c12;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,12,0.55), transparent 45%);
  pointer-events: none;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #1a1407;
  background: var(--gold-gradient);
  box-shadow: 0 6px 18px rgba(232,183,90,0.4);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.product-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.product-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.product-price { display: flex; flex-direction: column; }
.product-price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-faded);
  font-weight: 600;
}
.product-price-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.product-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

/* Faixa de pilares "Por que o cofre" */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.pillar-card .pillar-icon { font-size: 30px; }
.pillar-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--text);
}
.pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* CTA final */
.acervo-cta {
  position: relative;
  margin: 56px 0 12px;
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(232,183,90,0.16), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.acervo-cta h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 12px;
}
.acervo-cta p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 26px;
  line-height: 1.55;
}
.acervo-cta .btn-gold {
  background: var(--gold-gradient);
  color: #1a1407;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(232,183,90,0.35);
}
.acervo-cta .btn-gold:hover { filter: brightness(1.06); transform: translateY(-2px); }
.acervo-cta .trust-line {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-faded);
  letter-spacing: 0.3px;
}

/* About */
.about-block {
  max-width: 820px;
  margin: 8px auto 0;
}
.about-block h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-bottom: 18px;
}
.about-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Página de produto */
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}
.product-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: 96px;
  background: #0c0c12;
}
.product-detail-media img { width: 100%; display: block; }
.product-detail-info h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 6px;
}
.product-detail-info .pd-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0;
}
.pd-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pd-price-label { font-size: 14px; color: var(--text-faded); }
.pd-desc { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin-bottom: 24px; }
.pd-includes { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 8px 0 28px; }
.pd-includes li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.pd-includes li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }
.pd-buy { display: flex; flex-direction: column; gap: 10px; }
.pd-buy .btn-gold {
  background: var(--gold-gradient);
  color: #1a1407;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(232,183,90,0.3);
}
.pd-buy .btn-gold:hover { filter: brightness(1.06); }
.pd-trust { margin-top: 14px; font-size: 13px; color: var(--text-faded); text-align: center; }

@media (max-width: 860px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-media { position: relative; top: 0; }
  .acervo-hero-content { padding: 36px 24px; }
}
