/* ── Shape Design System: Sleek Editorial Fintech / Tactical Intelligence ── */
:root {
  --bg: #090b0e;
  --bg-subtle: #0f1318;
  --bg-card: #141920;
  --bg-card-hover: #1a222c;
  --bg-input: #12171e;
  
  --border: #222c38;
  --border-light: #2d3b4b;
  --border-subtle: rgba(255, 255, 255, 0.06);
  
  --text: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent: #00f2ad;
  --accent-dim: #00c78e;
  --accent-glow: rgba(0, 242, 173, 0.15);
  --accent-bg: rgba(0, 242, 173, 0.08);
  --accent-border: rgba(0, 242, 173, 0.25);
  
  --cyan: #38bdf8;
  --cyan-bg: rgba(56, 189, 248, 0.08);
  --cyan-border: rgba(56, 189, 248, 0.25);
  
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.08);
  --warn-border: rgba(251, 191, 36, 0.25);
  
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);
  --danger-border: rgba(248, 113, 113, 0.25);
  
  --purple: #c084fc;
  --purple-bg: rgba(192, 132, 252, 0.08);
  --purple-border: rgba(192, 132, 252, 0.25);
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px -8px rgba(0, 0, 0, 0.6);
  
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

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

body {
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse at 50% -20%, rgba(0, 242, 173, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #06080a 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-dim); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: all 0.2s var(--ease-spring);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--text-dim); }

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 36px);
  height: 68px;
  background: rgba(9, 11, 14, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.nav-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #18222d 0%, #0e141a 100%);
  border: 1px solid var(--border-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease;
}
.nav-brand:hover .nav-brand-icon {
  transform: scale(1.05) rotate(-3deg);
  border-color: var(--accent-border);
}
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-brand-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: #051a13;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 0 16px rgba(0, 242, 173, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 242, 173, 0.4);
  color: #051a13;
  text-decoration: none;
}

/* ── Layout & Animations ──────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.page {
  min-height: calc(100vh - 68px);
  animation: pageFadeIn 0.35s var(--ease-spring);
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero & Value Prop ────────────────────────── */
.hero {
  padding: clamp(48px, 9vw, 96px) 20px 48px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .accent-gradient {
  background: linear-gradient(135deg, #00f2ad 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-search-wrap {
  max-width: 620px;
  margin: 0 auto 36px;
  position: relative;
}
.hero-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow);
  transition: all 0.25s var(--ease-spring);
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow);
}
.hero-search-icon {
  padding-left: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
}
.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  box-shadow: none;
}
.hero-search input:focus { box-shadow: none; }
.hero-search button {
  background: var(--accent);
  color: #051a13;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-search button:hover {
  background: #26f7bd;
  transform: translateY(-1px);
}

.hero-quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.hero-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.hero-chip:hover {
  border-color: var(--accent-border);
  color: var(--text);
  background: var(--bg-hover);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px clamp(16px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 820px;
  margin: 0 auto 56px;
  box-shadow: var(--shadow-sm);
}
.stat {
  text-align: center;
  padding: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* ── Section Title & Header ───────────────────── */
.section-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Business Cards Grid ──────────────────────── */
.featured-grid, .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.biz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: all 0.25s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.biz-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
}
.biz-card-top {
  margin-bottom: 14px;
}
.biz-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.biz-card-oneliner {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biz-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Badges & Tags ────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag-verdict-go {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-border);
}
.tag-verdict-strategy {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-border);
}
.tag-shape {
  background: var(--cyan-bg);
  color: var(--cyan);
  border-color: var(--cyan-border);
}
.tag-score {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

/* ── Browse Page Layout ───────────────────────── */
.browse-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 32px);
}
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: 86px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}
.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.filters-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.filter-group {
  margin-bottom: 18px;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.filter-select {
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.results-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Business Detail Page ─────────────────────── */
.detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 32px) 64px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.detail-back:hover {
  color: var(--text);
  border-color: var(--border-light);
  transform: translateX(-2px);
}

.detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.detail-oneliner {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.detail-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.detail-problem {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
}

.shape-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.shape-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}
.shape-card-arch {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.shape-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.shape-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.pattern-tag {
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.evidence-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}
.evidence-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}
.evidence-content {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.5;
}
.evidence-source {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 4px;
}
.evidence-source a {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.locked-overlay {
  background: linear-gradient(180deg, rgba(20, 25, 32, 0.4) 0%, rgba(20, 25, 32, 0.95) 100%);
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.locked-overlay strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.locked-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--accent);
  color: #051a13;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-spring);
}
.locked-cta:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  color: #051a13;
  text-decoration: none;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.channel-name { font-size: 14px; font-weight: 500; }
.channel-fit { display: flex; gap: 4px; }
.fit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
}
.fit-dot.active {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.same-shape-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.same-shape-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.same-shape-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

/* ── Auth Cards & Flow ────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: calc(100vh - 120px);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 44px);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.auth-tabs {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--text);
}
.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.auth-form input {
  padding: 12px 14px;
  font-size: 14.5px;
}
.auth-btn {
  background: var(--accent);
  color: #051a13;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(0, 242, 173, 0.25);
}
.auth-btn:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 173, 0.35);
}
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 20px;
}
.auth-switch a {
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}
.auth-switch a:hover { color: var(--accent); }

.auth-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 6px;
  animation: shake 0.3s ease;
}
.auth-success {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 6px;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Pricing ─────────────────────────────────── */
.pricing-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(16px, 3vw, 32px);
}
.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.pricing-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.pricing-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  background: linear-gradient(180deg, #182029 0%, #121820 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 0 32px rgba(0, 242, 173, 0.15), var(--shadow);
  transform: scale(1.03);
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #051a13;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 242, 173, 0.3);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-period {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  font-size: 14px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  text-align: center;
}
.pricing-btn.primary {
  background: var(--accent);
  color: #051a13;
  box-shadow: 0 4px 16px rgba(0, 242, 173, 0.25);
}
.pricing-btn.primary:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 173, 0.35);
  text-decoration: none;
}
.pricing-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.pricing-btn.secondary:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}

/* ── Account Page ─────────────────────────────── */
.account-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 32px);
}
.account-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.account-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.account-info {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.account-info:last-child { border-bottom: none; }
.account-label { color: var(--text-muted); font-size: 14px; }
.account-value { font-weight: 600; font-size: 14px; }

/* ── Watchlist Page ───────────────────────────── */
.watchlist-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 32px);
}
.watchlist-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 600px;
  margin: 0 auto;
}
.watchlist-empty-icon {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--text-dim);
}

/* ── General Buttons ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.btn-primary {
  background: var(--accent);
  color: #051a13;
  box-shadow: 0 4px 14px rgba(0, 242, 173, 0.2);
}
.btn-primary:hover {
  background: #26f7bd;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-ghost {
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  background: var(--bg-card);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--bg-card-hover);
  text-decoration: none;
}
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ── Spinner & Feedback ───────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 242, 173, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #141a22;
  color: var(--text);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  animation: slideUp 0.3s var(--ease-spring);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* ── Evaluator & PRD Modal UI ────────────────── */
.eval-card {
  background: linear-gradient(180deg, #141b24 0%, #0e141a 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.eval-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--purple));
}
.eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.eval-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.eval-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.eval-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pageFadeIn 0.2s var(--ease-spring);
}
.modal-window {
  background: #11171f;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #151d27;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}
.modal-close:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 14.5px;
  line-height: 1.7;
  color: #cbd5e1;
}
.modal-body pre {
  background: #090c10;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  color: #94a3b8;
  margin: 14px 0;
  white-space: pre-wrap;
}
.modal-body h1, .modal-body h2, .modal-body h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 20px 0 10px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #151d27;
}
/* ── Responsive Media Queries ─────────────────── */
@media (max-width: 900px) {
  .browse-page { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav-links { gap: 4px; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .nav-cta { padding: 6px 12px; font-size: 12.5px; }
  .stats-row { grid-template-columns: 1fr; gap: 8px; }
}
