/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #08080d;
  --bg-elevated: #111118;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --pink: #ec4899;
  --pink-light: #f472b6;
  --blue: #3b82f6;
  --green: #22c55e;
  --gradient: linear-gradient(135deg, var(--purple-light) 0%, var(--pink) 50%, var(--pink-light) 100%);
  --gradient-btn: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);
  --font: 'Outfit', system-ui, sans-serif;
  --nav-height: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Background Effects ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
  top: 30%;
  right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: calc(12px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1200px;
  overflow: visible;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px 8px 16px;
  background: rgba(14, 14, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-btn);
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.nav-links-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nav-link {
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.nav-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 130;
}

.nav-dropdown-wrap.is-open .nav-dropdown svg {
  transform: rotate(180deg);
}

.nav-dropdown svg {
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  transform: translateY(6px);
  min-width: 220px;
  padding: 8px;
  background: rgba(14, 14, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 140;
}

.nav-dropdown-wrap.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a,
.nav-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.08);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-white {
  background: white;
  color: #111;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--purple-light);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.btn-discord {
  background: var(--gradient-btn);
  color: white;
  padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
}

.btn-lg { padding: 16px 32px; font-size: 15px; }

.btn-surprise:hover {
  border-color: var(--pink);
  color: var(--pink-light);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  text-align: center;
}

.hero-content {
  max-width: 820px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--purple-light);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

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

.typewriter {
  display: inline-block;
  min-width: 0;
  text-align: center;
}

.typewriter::after {
  content: '|';
  -webkit-text-fill-color: var(--purple-light);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 8px 8px 8px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), var(--shadow-glow);
}

.search-icon { color: var(--text-dim); flex-shrink: 0; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
}

.search-input::placeholder { color: var(--text-dim); }

.search-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.search-image-btn svg {
  flex-shrink: 0;
}

.search-image-btn-label {
  line-height: 1;
}

.search-image-btn:hover {
  color: var(--purple-light);
  border-color: rgba(139, 92, 246, 0.4);
}

.search-box.has-image {
  padding-left: 12px;
}

.search-box.has-image .search-icon,
.search-box.has-image .search-input,
.search-box.has-image .btn-search,
.search-box.has-image .search-image-btn {
  display: none;
}

.search-box.has-image .search-image-preview,
.search-box.has-image .search-image-preview-label,
.search-box.has-image .search-image-clear,
.search-box.has-image .search-image-go {
  display: flex;
}

.search-image-preview {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.35);
  flex-shrink: 0;
  display: none;
}

.search-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-image-preview-label {
  flex: 1;
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.search-image-clear {
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-image-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.search-image-go {
  display: none;
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-search { flex-shrink: 0; padding: 12px 28px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.play-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-btn);
  border-radius: 50%;
  color: white;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--purple-light);
  display: inline;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== Categories ===== */
.categories {
  position: relative;
  z-index: 1;
  padding: 0 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-pill {
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.category-pill:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.06);
}

.category-pill.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--purple-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

.tab-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tab {
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover { color: var(--text); border-color: var(--border-hover); }

.tab.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--purple-light);
}

/* ===== Tool Cards ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.08);
}

.tool-card:hover::before { opacity: 1; }

.tool-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
}

.tool-icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple-light); }
.tool-icon-pink { background: rgba(236, 72, 153, 0.15); color: var(--pink-light); }
.tool-icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tool-icon-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.tool-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--purple-light);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: gap 0.2s ease;
  text-decoration: none;
}

.tool-cta:hover { gap: 10px; }

/* ===== Product Cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a24 0%, #252532 50%, #1a1a24 100%);
  transition: transform 0.5s ease;
}

.product-card:hover .product-placeholder { transform: scale(1.05); }

.product-placeholder-2 { background: linear-gradient(135deg, #1f1520 0%, #2a1a28 50%, #1f1520 100%); }
.product-placeholder-3 { background: linear-gradient(135deg, #151a1f 0%, #1a2530 50%, #151a1f 100%); }
.product-placeholder-4 { background: linear-gradient(135deg, #1a1815 0%, #2a2518 50%, #1a1815 100%); }
.product-placeholder-5 { background: linear-gradient(135deg, #181818 0%, #252525 50%, #181818 100%); }
.product-placeholder-6 { background: linear-gradient(135deg, #151520 0%, #1a1a30 50%, #151520 100%); }
.product-placeholder-7 { background: linear-gradient(135deg, #121820 0%, #1a2535 50%, #121820 100%); }
.product-placeholder-8 { background: linear-gradient(135deg, #201515 0%, #301a1a 50%, #201515 100%); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--gradient-btn);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.product-badge.hot {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.product-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
}

.product-card:hover .product-fav {
  opacity: 1;
  transform: scale(1);
}

.product-fav:hover {
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.4);
}

.product-info { padding: 16px; }

.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0 12px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-light);
}

.product-qc {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  padding: 4px 8px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 6px;
}

/* ===== QC Ticker ===== */
.qc-ticker {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.qc-ticker-header {
  text-align: center;
  margin-bottom: 28px;
}

.qc-ticker-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.qc-ticker-header p {
  font-size: 14px;
  color: var(--text-dim);
}

.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee {
  display: flex;
  gap: 16px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  padding: 12px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.marquee-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.08);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Steps ===== */
/* Guide teaser on homepage */
.guide-teaser {
  max-width: 860px;
  margin: 0 auto;
}

.guide-teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(255, 255, 255, 0.02));
}

.guide-teaser-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-teaser-copy h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-teaser-copy p:last-child {
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 720px) {
  .guide-teaser-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .guide-teaser-card .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Features Grid ===== */
.features-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  padding-left: max(24px, calc((100% - 1200px) / 2));
  padding-right: max(24px, calc((100% - 1200px) / 2));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255,255,255,0.03);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--purple-light);
}

.faq-item summary:hover { color: var(--purple-light); }

.faq-item p {
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.cta-section > p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
}

.trust-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: var(--gradient-btn);
}

.avatar:first-child { margin-left: 0; }
.avatar:nth-child(2) { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.avatar:nth-child(3) { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.avatar:nth-child(4) { background: linear-gradient(135deg, #22c55e, #3b82f6); }

.cta-trust strong { color: var(--text); }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--purple-light); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== FAB ===== */
.fab {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(12, 12, 18, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.fab svg {
  padding: 6px;
  background: var(--gradient-btn);
  border-radius: 8px;
  width: 32px;
  height: 32px;
}

.fab:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

/* ===== Agent Modal ===== */
.agent-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.agent-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.agent-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 32px;
  background: rgba(14, 14, 20, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 28px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(139, 92, 246, 0.12);
  transform: scale(0.88) translateY(32px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.agent-modal-overlay.is-open .agent-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.agent-modal-overlay.is-closing .agent-modal {
  transform: scale(0.94) translateY(16px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.agent-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.agent-modal-close:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.agent-modal-header {
  margin-bottom: 28px;
  padding-right: 40px;
}

.agent-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.agent-modal-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 4px;
}

.agent-modal-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.agent-modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.agent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  text-align: center;
  font-family: var(--font);
  color: var(--text);
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(16px);
}

.agent-modal-overlay.is-open .agent-card {
  animation: agentCardIn 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.agent-modal-overlay.is-open .agent-card:nth-child(1) { animation-delay: 0.08s; }
.agent-modal-overlay.is-open .agent-card:nth-child(2) { animation-delay: 0.14s; }
.agent-modal-overlay.is-open .agent-card:nth-child(3) { animation-delay: 0.2s; }
.agent-modal-overlay.is-open .agent-card:nth-child(4) { animation-delay: 0.26s; }

@keyframes agentCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agent-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
}

.agent-card.is-selected {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(236, 72, 153, 0.08) 100%);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 8px 32px rgba(139, 92, 246, 0.15);
}

.agent-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.agent-card.is-selected .agent-check {
  background: var(--gradient-btn);
  border-color: transparent;
  color: white;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}

.agent-avatar.has-agent-logo {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
}

.agent-avatar.has-agent-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.agent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.agent-icon-fallback {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.agent-icon-xs {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 8px;
}

.agent-icon-sm {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 9px;
}

.agent-icon-md {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 11px;
}

.agent-icon-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 13px;
}

.agent-name {
  font-size: 16px;
  font-weight: 700;
}

.agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.agent-tag-recommended {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.agent-modal-footer {
  text-align: center;
}

.agent-confirm {
  width: 100%;
  margin-bottom: 12px;
}

.agent-confirm:not(:disabled) {
  animation: confirmPulse 2s ease-in-out infinite;
}

@keyframes confirmPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35); }
  50% { box-shadow: 0 4px 32px rgba(236, 72, 153, 0.45); }
}

.agent-modal-note {
  font-size: 12px;
  color: var(--text-dim);
}

/* Signup / Coupons Modal */
.signup-modal-header {
  text-align: center;
  padding-right: 0;
}

.signup-modal-header h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.signup-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 20px;
}

.signup-agent-name {
  font-size: 14px;
  font-weight: 700;
}

.signup-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.signup-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: left;
}

.signup-perk-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.signup-perk strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.signup-perk span {
  font-size: 13px;
  color: var(--text-muted);
}

.signup-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
  margin: 0 auto 24px;
  width: fit-content;
}

.signup-modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.signup-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s ease;
}

.signup-skip:hover {
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile nav ===== */
.nav-toggle {
  display: none;
}

.nav-toggle-icon.nav-toggle-close {
  display: none;
}

.navbar.is-nav-open .nav-toggle-open {
  display: none;
}

.navbar.is-nav-open .nav-toggle-close {
  display: block;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.nav-open {
  overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .section {
    padding: 56px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .navbar {
    width: calc(100% - 20px);
  }

  .navbar-inner {
    border-radius: 20px;
    padding: 8px 10px 8px 14px;
  }

  .logo-text {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--safe-top) + 68px);
    left: 10px;
    right: 10px;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    max-height: min(calc(100vh - var(--safe-top) - 84px), 520px);
    overflow-y: auto;
    background: rgba(14, 14, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 101;
  }

  .navbar.is-nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links-inner {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    overflow: visible;
    mask-image: none;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    flex-shrink: 1;
    white-space: normal;
  }

  .nav-dropdown-wrap {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    padding: 0 0 4px 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, visibility 0.2s ease;
  }

  .nav-dropdown-wrap.is-open .nav-dropdown-menu {
    visibility: visible;
    pointer-events: auto;
    max-height: 320px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--safe-top) + 32px) 16px 56px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-stats {
    gap: 16px 24px;
  }

  .stat-value {
    font-size: 26px;
  }

  .section {
    padding: 48px 16px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cta-trust {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .search-box {
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: 12px;
  }

  .search-input {
    width: 100%;
    order: -1;
    margin-bottom: 8px;
  }

  .btn-search {
    width: 100%;
  }

  .search-image-btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .fab span {
    display: none;
  }

  .fab {
    padding: 14px;
    border-radius: 50%;
  }

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .agent-modal {
    padding: 24px 20px;
    border-radius: 22px;
    margin: 12px;
    max-height: calc(100vh - 24px - var(--safe-top) - var(--safe-bottom));
    overflow-y: auto;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .guide-teaser-card {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Settings Modal ===== */
.settings-modal {
  max-width: 640px;
  max-height: min(90vh, 820px);
  overflow-y: auto;
  padding: 28px;
}

.settings-onboard-modal {
  max-width: 520px;
  padding: 28px;
}

.settings-modal-header {
  margin-bottom: 22px;
}

.settings-modal-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.settings-modal-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.settings-modal-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.settings-modal-title-wrap p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.settings-section {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.settings-section-head h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-section-head p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.settings-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-option-grid-2 .settings-option {
  flex: 1 1 calc(50% - 10px);
}

.settings-option-grid-4 .settings-option {
  flex: 1 1 calc(25% - 10px);
  min-width: 72px;
}

.settings-agent-grid .settings-option {
  flex: 1 1 calc(50% - 10px);
}

.settings-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.settings-option:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.settings-option.is-active {
  border-color: rgba(59, 130, 246, 0.85);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.15);
}

.settings-flag {
  font-size: 1rem;
  line-height: 1;
}

.settings-agent-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-agent-dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.settings-agent-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--purple-light);
  margin-left: 4px;
}

.settings-onboard-overlay .agent-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition: none;
}

.agent-modal-overlay.settings-onboard-overlay {
  transition: none;
}

.agent-modal-overlay.settings-onboard-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 640px) {
  .settings-option-grid-2 .settings-option,
  .settings-agent-grid .settings-option {
    flex: 1 1 100%;
  }

  .settings-option-grid-4 .settings-option {
    flex: 1 1 calc(50% - 10px);
  }
}
