/* ============================================
   Directory Bear — Main Stylesheet
   Brand Color: Cornflower Blue #6495ED
   ============================================ */

:root {
  --brand: #6495ED;
  --brand-dark: #3A6FD8;
  --brand-darker: #2B5BB5;
  --brand-light: #A8C4F5;
  --brand-lighter: #DAE7FB;
  --brand-bg: #EDF2FE;

  --text: #1a2332;
  --text-secondary: #5a6577;
  --text-muted: #8b95a5;

  --bg: #F7F9FC;
  --bg-white: #FFFFFF;

  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --shadow-sm: 0 1px 3px rgba(100, 149, 237, 0.08);
  --shadow-md: 0 4px 12px rgba(100, 149, 237, 0.12);
  --shadow-lg: 0 8px 30px rgba(100, 149, 237, 0.15);
  --shadow-hover: 0 8px 25px rgba(100, 149, 237, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* BR Tier Colors — 4 distinct, vivid colors */
  --br-grizzly: #3B82F6;
  --br-grizzly-bg: #EFF6FF;
  --br-grizzly-border: #93C5FD;
  --br-kodiak: #F59E0B;
  --br-kodiak-bg: #FFFBEB;
  --br-kodiak-border: #FDE68A;
  --br-polar: #6B7280;
  --br-polar-bg: #F3F4F6;
  --br-polar-border: #D1D5DB;
  --br-cub: #D97706;
  --br-cub-bg: #FFF7ED;
  --br-cub-border: #FED7AA;

  /* Factor dot colors */
  --factor-pop: #3B82F6;
  --factor-auth: #22C55E;
  --factor-long: #F59E0B;
  --factor-safe: #8B5CF6;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================
   Header — text-only logo
   ============================================ */
.site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo-link {
  display: flex; align-items: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 1.3rem; color: var(--text);
}
.logo-link:hover { color: var(--text); }
.logo-text { color: var(--text); }
.logo-accent { color: var(--brand); }

.main-nav { display: flex; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-link:hover { background: var(--brand-bg); color: var(--brand-dark); }
.nav-link.active { background: var(--brand); color: white; }

.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* ============================================
   Hero — big bear, centered
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--brand-bg) 0%, var(--bg-white) 50%, var(--brand-lighter) 100%);
  padding: 2.5rem 0 4rem;
  text-align: center;
}
.hero-bear {
  width: 280px;
  height: auto;
  margin-bottom: 0.5rem;
}
.hero-title {
  font-size: 3.2rem; margin-bottom: 1rem; color: var(--text);
}
.hero-accent { color: var(--brand); }
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 2rem;
}

.search-box-hero { max-width: 600px; margin: 0 auto 2.5rem; position: relative; display: flex; align-items: center; }
.search-input {
  width: 100%; padding: 1rem 1.5rem; padding-right: 3.5rem;
  border: 2px solid var(--border); border-radius: var(--radius-full);
  font-size: 1rem; font-family: inherit;
  background: var(--bg-white); transition: all 0.3s; outline: none;
}
.search-input-domain {
  padding-left: 1.5rem; font-size: 1.15rem; color: #9CA3AF;
}

/* Search hint bubble */
.search-hint-bubble {
  position: absolute; left: 0; top: calc(100% + 8px);
  background: #EFF6FF; color: #3B82F6; border: 1px solid #BFDBFE;
  border-radius: var(--radius-full); padding: 0.4rem 1rem;
  font-size: 0.78rem; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none; z-index: 10;
}
.search-hint-bubble.visible {
  opacity: 1; transform: translateY(0);
}
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-lighter); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--brand-dark); }

.hero-stats { display: flex; justify-content: center; gap: 3rem; }
.stat { text-align: center; }
.stat-number {
  display: block; font-family: 'Nunito', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--brand);
}
.stat-label {
  font-size: 0.85rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 4rem 0; }
.section-title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-secondary); margin-bottom: 2rem; }
.section-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 2rem;
}
.see-all-link { font-weight: 600; font-size: 0.95rem; }

/* ============================================
   Home Category Grid
   ============================================ */
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.home-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.1rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: all 0.2s;
}
.home-cat-item:hover {
  border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--brand-dark);
}
.home-cat-name { font-weight: 600; font-size: 0.9rem; }
.home-cat-count {
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--bg); padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ============================================
   Categories Page — alphabetical list
   ============================================ */
/* Category Grid (index page) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cat-card {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: var(--bg-white); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all 0.2s ease;
}
.cat-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(100,149,237,0.15);
  transform: translateY(-2px);
}
.cat-card-empty {
  opacity: 0.5; cursor: default;
}
.cat-card-top {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.cat-card-initial {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 8px; font-size: 1rem; font-weight: 800;
  color: var(--brand-dark); background: var(--brand-bg);
}
.cat-card:hover .cat-card-initial {
  background: var(--brand); color: white;
}
.cat-card-name {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
}
.cat-card:hover .cat-card-name { color: var(--brand-dark); }
.cat-card-desc {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.5;
  flex: 1; margin-bottom: 0.75rem;
}
.cat-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.cat-card-count {
  font-size: 0.75rem; font-weight: 600; color: var(--brand);
  background: var(--brand-bg); padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.cat-card-soon {
  color: var(--text-muted); background: var(--border-light);
}
.cat-card-arrow {
  font-size: 1.1rem; color: var(--border);
  transition: all 0.2s;
}
.cat-card:hover .cat-card-arrow {
  color: var(--brand); transform: translateX(3px);
}

/* Legacy cat-list (keep for category detail pages) */
.cat-list { display: flex; flex-direction: column; }
.cat-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border-light);
  color: var(--text); transition: background 0.15s;
}
.cat-list-item:first-child { border-top: 1px solid var(--border-light); }
.cat-list-item:hover { background: var(--brand-bg); }
.cat-list-name h3 { font-size: 0.95rem; font-weight: 600; }
.cat-list-desc { font-size: 0.8rem; color: var(--text-muted); }
.cat-list-count {
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted); white-space: nowrap;
}

/* Category Detail Page */
.category-stats { margin-top: 0.5rem; }
.cat-stat {
  display: inline-block; font-size: 0.9rem; color: var(--text-muted);
  background: rgba(100,149,237,0.1); padding: 0.3rem 0.75rem; border-radius: 20px;
}
.cat-sites-header { margin-bottom: 1.25rem; }
.cat-sites-header h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.cat-sites-list { margin-bottom: 2rem; }
.cat-site-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light);
  color: var(--text); transition: background 0.15s; text-decoration: none;
}
.cat-site-item:first-child { border-top: 1px solid var(--border-light); }
.cat-site-item:hover { background: var(--brand-bg); }
.cat-site-rank {
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
  min-width: 2.5rem; text-align: center;
}
.cat-site-favicon { border-radius: 4px; flex-shrink: 0; }
.cat-site-info { flex: 1; min-width: 0; }
.cat-site-info strong { display: block; font-size: 0.95rem; }
.cat-site-domain { font-size: 0.8rem; color: var(--text-muted); }
.cat-site-ranks { display: flex; gap: 0.4rem; flex-shrink: 0; }
.cat-empty {
  text-align: center; padding: 3rem; color: var(--text-muted);
  background: var(--card-bg); border-radius: 12px;
}
.cat-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.cat-pagination-info {
  font-size: 0.85rem; color: var(--text-muted); font-weight: 600;
}
.btn-disabled {
  opacity: 0.35; pointer-events: none;
}
.cat-page-footer {
  display: flex; gap: 1rem; justify-content: center;
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-light);
}

/* ============================================
   Site Cards
   ============================================ */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.site-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s;
}
.site-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-hover); transform: translateY(-3px);
}

/* Fix: preview link is a proper block */
.site-card-preview-link {
  display: block; text-decoration: none; color: inherit;
}
.site-card-preview {
  position: relative; height: 160px;
  background: #EDF2FE;
  overflow: hidden;
}
.site-placeholder-svg { width: 100%; height: 100%; object-fit: cover; }

.site-card-overlay {
  position: absolute; inset: 0;
  background: rgba(26,35,50,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.site-card:hover .site-card-overlay { opacity: 1; }

/* Fix: overlay button is styled as a visible pill */
.overlay-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: white; color: var(--text);
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.site-card-preview-link:hover .overlay-btn { transform: scale(1.05); }

.site-card-body { padding: 1.25rem; }
.site-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem;
}
.site-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.6rem; }
.site-card-favicon { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; flex-shrink: 0; }
.site-name { font-size: 1.05rem; margin-bottom: 0.15rem; }
.site-name a { color: var(--text); }
.site-name a:hover { color: var(--brand); }
.site-domain { font-size: 0.8rem; color: var(--text-muted); }
.site-desc {
  font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.site-card-meta { display: flex; align-items: center; gap: 0.5rem; }
.site-category-tag {
  font-size: 0.75rem; padding: 0.2rem 0.6rem;
  background: var(--brand-bg); color: var(--brand-dark);
  border-radius: var(--radius-full); font-weight: 500;
}
.new-badge {
  font-size: 0.7rem; padding: 0.15rem 0.5rem;
  background: #DCFCE7; color: #16A34A;
  border-radius: var(--radius-full);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ============================================
   BR Badge — Squared, "BR78" combined, color bar
   ============================================ */
.br-badge { flex-shrink: 0; }

.br-badge-box {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 3px solid var(--brand);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 3px 12px rgba(100, 149, 237, 0.2);
  gap: 2px;
}

/* Small "BR" label above the score */
.br-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text-muted);
}

/* Large score number */
.br-score {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Green color bar at bottom */
.br-color-bar {
  width: 100%;
  background: var(--border-light);
}
.br-color-bar-fill {
  height: 100%;
  background: #22C55E;
  transition: width 0.8s ease-out;
}

/* ---- BR Sizes ---- */
.br-small .br-badge-box {
  width: 72px; height: 72px;
  padding: 8px 8px 0;
}
.br-small .br-label { font-size: 0.6rem; }
.br-small .br-score { font-size: 1.5rem; }
.br-small .br-color-bar { height: 4px; }

.br-medium .br-badge-box {
  width: 90px; height: 90px;
  padding: 10px 10px 0;
}
.br-medium .br-label { font-size: 0.7rem; }
.br-medium .br-score { font-size: 1.9rem; }
.br-medium .br-color-bar { height: 5px; }

.br-large .br-badge-box {
  width: 140px; height: 140px;
  padding: 16px 16px 0;
}
.br-large .br-label { font-size: 0.9rem; }
.br-large .br-score { font-size: 3rem; }
.br-large .br-color-bar { height: 7px; }

/* ---- BR Tier Colors — 4 distinct vivid colors ---- */
.br-grizzly .br-score { color: var(--br-grizzly); }
.br-grizzly .br-badge-box {
  background: var(--br-grizzly-bg);
  border-color: var(--br-grizzly-border);
}

.br-kodiak .br-score { color: var(--br-kodiak); }
.br-kodiak .br-badge-box {
  background: var(--br-kodiak-bg);
  border-color: var(--br-kodiak-border);
}

.br-polar .br-score { color: var(--br-polar); }
.br-polar .br-badge-box {
  background: var(--br-polar-bg);
  border-color: var(--br-polar-border);
}

.br-cub .br-score { color: var(--br-cub); }
.br-cub .br-badge-box {
  background: var(--br-cub-bg);
  border-color: var(--br-cub-border);
}

/* ============================================
   Factor Dots (replace emojis)
   ============================================ */
.factor-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  margin-top: 3px;
}
.factor-dot-pop { background: var(--factor-pop); }
.factor-dot-auth { background: var(--factor-auth); }
.factor-dot-long { background: var(--factor-long); }
.factor-dot-safe { background: var(--factor-safe); }

/* Larger version for About BR detail cards */
.factor-detail-card .factor-dot {
  width: 20px; height: 20px;
}

/* ============================================
   BR Explainer Section
   ============================================ */
.br-explain-card {
  display: flex; gap: 3rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 3rem; align-items: center;
}
.br-explain-left { flex-shrink: 0; }
.br-explain-right h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.br-explain-right p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.br-factors {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1.5rem;
}
.br-factor { display: flex; gap: 0.75rem; align-items: flex-start; }
.br-factor strong { display: block; font-size: 0.9rem; }
.br-factor span { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   Top List
   ============================================ */
/* List view (default) */
.top-list { display: flex; flex-direction: column; gap: 1rem; }
.top-list-item {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  transition: all 0.2s;
}
.top-list-item:hover { border-color: var(--brand-light); box-shadow: var(--shadow-md); }
.top-rank {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--brand); min-width: 50px; text-align: center;
}
.top-favicon { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; flex-shrink: 0; }
.top-site-info { flex: 1; min-width: 0; }
.top-site-header { margin-bottom: 0.3rem; }
.top-site-header h3 { font-size: 1.1rem; display: inline; }
.top-site-header h3 a { color: var(--text); }
.top-site-header h3 a:hover { color: var(--brand); }
.top-site-header .site-domain { margin-left: 0.5rem; }

/* Grid view — compact cards */
.top-list.view-grid {
  flex-direction: row; flex-wrap: wrap;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.top-list.view-grid .top-list-item {
  flex-direction: column; align-items: flex-start;
  padding: 1rem 1.15rem; gap: 0.6rem;
}
.top-list.view-grid .top-list-item .top-rank {
  font-size: 0.85rem; min-width: auto;
  position: absolute; top: 0.6rem; right: 0.75rem;
}
.top-list.view-grid .top-list-item {
  position: relative;
}
.top-list.view-grid .top-site-header h3 { font-size: 0.95rem; display: block; }
.top-list.view-grid .top-site-header .site-domain {
  margin-left: 0; display: block; font-size: 0.8rem; margin-top: 0.15rem;
}
.top-list.view-grid .top-site-info { width: 100%; }
.top-list.view-grid .top-favicon { width: 20px; height: 20px; }
.top-list.view-grid .br-badge { align-self: flex-start; }
.top-list.view-grid .top-list-item > .br-badge {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
}

/* ============================================
   Site Profile Page (/w/)
   ============================================ */
.site-profile-hero {
  background: linear-gradient(135deg, var(--brand-bg), var(--brand-lighter));
  padding: 2.5rem 0;
}
.profile-header { max-width: 900px; }
.profile-title-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1.5rem; margin-bottom: 0.75rem;
}
.profile-title-left {
  display: flex; align-items: center; gap: 1rem;
}
.profile-favicon {
  width: 48px; height: 48px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-white);
  object-fit: contain;
}
.profile-title-row h1 { font-size: 2rem; margin-bottom: 0.15rem; }
.profile-domain { font-size: 1rem; color: var(--text-muted); }
.profile-meta-row {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.profile-rank {
  font-size: 0.82rem; color: var(--text-muted);
  background: var(--bg-white); padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full); border: 1px solid var(--border);
}
.profile-tier-badge {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.75rem; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full); text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tier-grizzly { background: var(--br-grizzly-bg); color: var(--br-grizzly); border: 1px solid var(--br-grizzly-border); }
.tier-kodiak { background: var(--br-kodiak-bg); color: var(--br-kodiak); border: 1px solid var(--br-kodiak-border); }
.tier-polar { background: var(--br-polar-bg); color: var(--br-polar); border: 1px solid var(--br-polar-border); }
.tier-cub { background: var(--br-cub-bg); color: var(--br-cub); border: 1px solid var(--br-cub-border); }
.profile-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.verified-link-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 600; color: #2563EB;
  background: #DBEAFE; padding: 0.3rem 0.75rem; border-radius: 99px;
}
.verified-link-badge svg { flex-shrink: 0; }
.profile-cat { font-size: 0.85rem; padding: 0.3rem 0.8rem; }
.profile-about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  text-align: center; padding: 1rem 0;
}
.about-stat-val {
  display: block; font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 1.4rem; color: var(--text);
}
.about-stat-label {
  font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em;
}
.similar-favicon {
  width: 20px; height: 20px; border-radius: 4px;
  object-fit: contain; flex-shrink: 0;
}
.screenshot-fallback {
  display: flex; align-items: center; justify-content: center;
  height: 200px; background: var(--bg); color: var(--text-muted);
}
.profile-preview-placeholder {
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand-bg), var(--brand-lighter));
  min-height: 220px; display: flex; align-items: center; justify-content: center;
}
.preview-placeholder-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 2rem;
}
.preview-placeholder-favicon {
  border-radius: 12px; object-fit: contain;
  background: white; padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.preview-placeholder-domain {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--text-secondary);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

.profile-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 2rem; align-items: start;
}
.profile-main { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
}
.profile-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.profile-description { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.95rem; }
.profile-oneliner {
  color: var(--brand-dark); font-weight: 600; font-size: 0.92rem;
  margin-bottom: 1.25rem; line-height: 1.5;
  padding-left: 0.75rem; border-left: 3px solid var(--brand-light);
}
.profile-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* What You Can Do */
.profile-features {
  list-style: none; padding: 0; margin: 0;
}
.profile-features li {
  padding: 0.6rem 0; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light); line-height: 1.5;
}
.profile-features li:last-child { border-bottom: none; }
.profile-features li::before {
  content: '✓'; color: var(--brand); font-weight: 700;
  margin-right: 0.6rem;
}

/* Profile FAQs */
.profile-faq-list { display: flex; flex-direction: column; }
.profile-faq-item {
  border-bottom: 1px solid var(--border-light);
}
.profile-faq-item:first-child { border-top: 1px solid var(--border-light); }
.profile-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; font-size: 0.9rem; font-weight: 600;
  color: var(--text); cursor: pointer; list-style: none;
}
.profile-faq-q::-webkit-details-marker { display: none; }
.profile-faq-q::after {
  content: '+'; font-size: 1rem; font-weight: 600;
  color: var(--text-muted); flex-shrink: 0; margin-left: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%; border: 2px solid var(--border);
  transition: all 0.2s;
}
.profile-faq-item[open] .profile-faq-q::after {
  content: '−'; color: white;
  background: var(--brand); border-color: var(--brand);
}
.profile-faq-item[open] .profile-faq-q { color: var(--brand-dark); }
.profile-faq-a {
  padding: 0 0 0.85rem 0;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}
/* PageRank Card */
.pagerank-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F7FF 100%);
  border: 1px solid #BFDBFE;
}
.pagerank-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.pagerank-header h2 { font-size: 1rem; margin: 0; color: #1E40AF; }
.pagerank-score {
  font-size: 1.75rem; font-weight: 800; color: #2563EB;
}
.pagerank-max { font-size: 0.9rem; font-weight: 500; color: #60A5FA; }
.pagerank-bar-track {
  height: 8px; background: #DBEAFE; border-radius: 4px; overflow: hidden;
  margin-bottom: 0.75rem;
}
.pagerank-bar-fill {
  height: 100%; background: linear-gradient(90deg, #3B82F6, #2563EB);
  border-radius: 4px; transition: width 0.6s ease;
}
.pagerank-desc {
  font-size: 0.78rem; color: #4B6A9B; line-height: 1.5; margin: 0 0 0.5rem 0;
}
.pagerank-rank {
  font-size: 0.78rem; font-weight: 600; color: #2563EB;
}

.profile-card-muted { background: var(--bg); border: none; text-align: center; }
.profile-card-muted p { font-size: 0.85rem; color: var(--text-muted); }

.profile-screenshot { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.screenshot-img { width: 100%; display: block; }
.screenshot-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; background: var(--bg);
  font-size: 0.8rem; color: var(--text-muted);
}
.screenshot-footer a { font-size: 0.8rem; font-weight: 600; }
.profile-link { font-size: 0.85rem; font-weight: 600; display: inline-block; margin-top: 0.75rem; }
.profile-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* BR Breakdown Bars */
.br-breakdown { display: flex; flex-direction: column; gap: 1rem; }
.br-breakdown-header {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; margin-bottom: 0.3rem;
}
.br-breakdown-header span:nth-child(2) { flex: 1; }
.br-breakdown-val { font-weight: 700; }
.br-bar { height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.br-bar-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.br-bar-pop { background: var(--factor-pop); }
.br-bar-auth { background: var(--factor-auth); }
.br-bar-long { background: var(--factor-long); }
.br-bar-safe { background: var(--factor-safe); }

/* Quick Facts */
.quick-facts { display: flex; flex-direction: column; }
.fact-row {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); }
.fact-value { font-weight: 600; }
.status-active { color: #16A34A; }

/* Similar Sites */
.similar-sites-list { display: flex; flex-direction: column; margin-top: 0.5rem; }
.similar-site-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); color: var(--text);
  text-decoration: none; gap: 0.75rem;
}
.similar-site-item:last-child { border-bottom: none; }
.similar-site-item:hover { color: var(--brand); }
.similar-site-left {
  display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0;
}
.similar-domain {
  font-size: 0.9rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.similar-site-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.similar-site-ranks { display: flex; gap: 0.4rem; flex-shrink: 0; }
.rank-bubble {
  display: inline-block; padding: 0.2rem 0.5rem; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.rank-bubble.rank-global {
  background: #EFF6FF; color: #3B82F6; border: 1px solid #BFDBFE;
}
.rank-bubble.rank-authority {
  background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
  background: var(--brand-bg); border-bottom: 1px solid var(--border-light);
  padding: 0.6rem 0;
}
.breadcrumb-list {
  display: flex; align-items: center; gap: 0.4rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb-list li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb-list li:not(:last-child)::after {
  content: "›"; color: var(--text-muted); font-size: 1rem;
}
.breadcrumb-list a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--brand); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* ============================================
   Page Hero
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--brand-bg), var(--brand-lighter));
  padding: 3rem 0; text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.page-subtitle { color: var(--text-secondary); font-size: 1.1rem; }

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem;
}
.filter-select { max-width: 250px; }
.view-toggle { display: flex; gap: 0.25rem; }
.view-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border); background: var(--bg-white);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
}
.view-btn.active { background: var(--brand); color: white; border-color: var(--brand); }

/* ============================================
   Forms
   ============================================ */
/* Plan Selector */
.plan-selector { text-align: center; margin-bottom: 2.5rem; }
.plan-heading { font-size: 1.5rem; margin-bottom: 0.4rem; }
.plan-subtext { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 860px; margin: 0 auto; }
.plan-cards-two { grid-template-columns: repeat(2, 1fr); max-width: 600px; }

.plan-card {
  position: relative; background: var(--bg-white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.25rem 1.5rem; cursor: pointer;
  transition: all 0.2s; text-align: left;
}
.plan-card:hover { border-color: var(--brand-light); box-shadow: 0 4px 16px rgba(37,99,235,0.08); }
.plan-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-lighter); }

/* Verified card — subtle blue highlight */
.plan-card.plan-popular { background: #F0F7FF; }
.plan-card.plan-popular.selected { background: #E8F1FD; border-color: var(--brand); }

.plan-card-check {
  position: absolute; top: 12px; right: 12px; width: 24px; height: 24px;
  border-radius: 50%; border: 2px solid var(--border); background: var(--bg-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: transparent; transition: all 0.2s;
}
.plan-card.selected .plan-card-check {
  background: var(--brand); border-color: var(--brand); color: white;
}

.plan-card-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.25rem; }
.plan-card-price {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.6rem;
  color: var(--brand); margin-bottom: 1rem;
}
.plan-card-price small { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }

.plan-card-perks { list-style: none; margin: 0; padding: 0; }
.plan-card-perks li {
  font-size: 0.82rem; color: var(--text-secondary); padding: 0.35rem 0;
  border-top: 1px solid var(--border-light, #f0f0f0);
}
.plan-card-perks li:first-child { border-top: none; }
.perk-highlight { color: var(--text-primary); }

.plan-ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: white; font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.75rem; border-radius: var(--radius-full); white-space: nowrap;
}

.verified-icon-sm { vertical-align: -2px; margin-left: 2px; }

/* Trust badges below submit button */
.form-trust {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin-top: 1.25rem; flex-wrap: wrap;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; color: #6B7280;
  background: #F9FAFB; border: 1px solid #E5E7EB;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}
.trust-badge svg { flex-shrink: 0; }

/* Sidebar checklist */
.sidebar-checklist { list-style: none; margin: 0; padding: 0; }
.sidebar-checklist li {
  font-size: 0.85rem; color: var(--text-secondary); padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}
.sidebar-checklist li::before {
  content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}

/* Highlighted sidebar card — light blue */
.sidebar-card-highlight {
  background: #EFF6FF; border-color: #BFDBFE;
}
.sidebar-card-highlight h3 { color: var(--brand); }
.sidebar-card-highlight p { color: var(--text-secondary); }

/* Payment Success Page */
.success-page {
  max-width: 600px; margin: 2rem auto; text-align: center;
}
.success-page-icon { margin-bottom: 1.5rem; }
.success-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.success-page-lead { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.success-page-details {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem;
  text-align: left;
}
.success-detail-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border-light, #f0f0f0);
}
.success-detail-row:last-child { border-bottom: none; }
.success-detail-label { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); white-space: nowrap; }
.success-detail-value { font-size: 0.88rem; color: var(--text-secondary); text-align: right; }
.success-page-note {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; font-style: italic;
}
.success-page-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Highlighter marker effect — yellow like a real marker pen */
.highlight-mark {
  background: linear-gradient(180deg, transparent 40%, #FEF08A 40%);
  padding: 0 3px; margin: 0 -3px;
  border-radius: 2px;
}

/* Testimonial nudge bubble */
.testimonial-nudge {
  position: relative;
  margin-top: -2rem;
}
.testimonial-bubble {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.testimonial-stars {
  color: #F59E0B; font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.6rem;
}
.testimonial-quote {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.6;
  margin: 0 0 1rem; font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.7rem;
}
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
}
.testimonial-author strong {
  display: block; font-size: 0.88rem; color: var(--text-primary);
}
.testimonial-author span {
  font-size: 0.78rem; color: var(--text-muted);
}

/* Arrow pointing from testimonial up toward button */
.testimonial-arrow-wrap {
  width: 80px; height: 80px;
  margin-bottom: -4px; margin-left: 40px;
  opacity: 0.5;
}
.testimonial-arrow {
  width: 100%; height: 100%;
  transition: transform 0.3s ease;
}
.testimonial-arrow.arrow-wiggle {
  animation: wiggle 0.6s ease-in-out;
}
@keyframes wiggle {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(4px, -8px) rotate(-5deg); }
  40% { transform: translate(-2px, -4px) rotate(3deg); }
  60% { transform: translate(3px, -10px) rotate(-4deg); }
  80% { transform: translate(-1px, -6px) rotate(2deg); }
}

/* Submit Layout — form + sidebar */
.submit-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 2.5rem; align-items: start;
}
.submit-form-wrapper { display: inline; }
.submit-form {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.required { color: #EF4444; }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit;
  background: var(--bg-white); transition: all 0.2s; outline: none;
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-lighter); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-input { resize: vertical; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.5rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--brand); color: white; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: white; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: white; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ============================================
   Submit Success & Sidebar
   ============================================ */
.submit-success {
  text-align: center; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem;
}
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.submit-success h2 { margin-bottom: 0.75rem; }
.submit-success p { color: var(--text-secondary); max-width: 400px; margin: 0 auto 1rem; }
.success-note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

.submit-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
}
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.sidebar-card p { font-size: 0.9rem; color: var(--text-secondary); }
.steps-list { display: flex; flex-direction: column; gap: 1rem; }
.step { display: flex; gap: 0.75rem; align-items: flex-start; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.step strong { display: block; font-size: 0.9rem; }
.step p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ============================================
   CTA — with faded bear background
   ============================================ */
.cta-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white; border-radius: var(--radius-xl);
  padding: 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-card::after {
  content: '';
  position: absolute;
  right: -60px; top: 65%;
  transform: translateY(-50%) rotate(-15deg);
  width: 360px; height: 360px;
  background: url('/images/bear-white.svg') no-repeat center / contain;
  opacity: 0.10;
  pointer-events: none;
}
.cta-card h2 { color: white !important; margin-bottom: 0.75rem; font-size: 1.9rem !important; position: relative; z-index: 1; }
.cta-card p {
  color: white !important; margin-bottom: 1.5rem;
  max-width: 550px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
  font-size: 1.15rem;
  line-height: 1.6;
}
.cta-card .btn { position: relative; z-index: 1; }
.cta-card .btn-primary {
  background: linear-gradient(160deg, #F5D990 0%, #D4A843 40%, #C4913A 70%, #B8802E 100%);
  color: #3A2A0A;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 2px 8px rgba(180, 140, 50, 0.25);
  letter-spacing: 0.01em;
}
.cta-card .btn-primary:hover {
  background: linear-gradient(160deg, #FBE4A8 0%, #DCBA55 40%, #CFA046 70%, #C18A35 100%);
  color: #3A2A0A;
  box-shadow: 0 3px 12px rgba(180, 140, 50, 0.35);
  transform: translateY(-1px);
}

/* ============================================
   About BR Page
   ============================================ */
.content-page h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.content-page p { color: var(--text-secondary); margin-bottom: 1rem; }
.content-page ul { color: var(--text-secondary); margin-bottom: 1rem; padding-left: 1.25rem; }
.content-page ul li { margin-bottom: 0.4rem; line-height: 1.6; }
.verified-badge-inline { vertical-align: -2px; }

/* (about-tier cards removed — pricing now on submit page) */

/* ---- Interactive BR Explorer ---- */
.br-explorer {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 2.5rem 0 3rem;
  padding: 2.5rem 3rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  min-height: 480px;
}

/* -- Left Column: Badge on top, signals below -- */
.br-explorer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.br-explorer-badge {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 20px;
  border: 4px solid var(--br-polar-border);
  background: var(--br-polar-bg);
  box-shadow: 0 6px 24px rgba(107, 114, 128, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.br-explorer-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1;
}

.br-explorer-score {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  color: var(--br-polar);
}

/* Green bar at bottom of badge */
.br-explorer-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: var(--border-light);
}
.br-explorer-bar-fill {
  height: 100%;
  background: #22C55E;
}

/* Signal cards below badge */
.br-explorer-signals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.br-signal-card {
  padding: 0.7rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.br-signal-card:hover,
.br-signal-card.signal-hover {
  background: var(--bg-white);
}

.br-signal-card[data-signal="pop"]:hover,
.br-signal-card[data-signal="pop"].signal-hover { border-color: var(--factor-pop); box-shadow: -3px 0 0 var(--factor-pop) inset; }
.br-signal-card[data-signal="auth"]:hover,
.br-signal-card[data-signal="auth"].signal-hover { border-color: var(--factor-auth); box-shadow: -3px 0 0 var(--factor-auth) inset; }
.br-signal-card[data-signal="long"]:hover,
.br-signal-card[data-signal="long"].signal-hover { border-color: var(--factor-long); box-shadow: -3px 0 0 var(--factor-long) inset; }
.br-signal-card[data-signal="safe"]:hover,
.br-signal-card[data-signal="safe"].signal-hover { border-color: var(--factor-safe); box-shadow: -3px 0 0 var(--factor-safe) inset; }

/* Dim non-active cards */
.br-explorer.signal-active .br-signal-card {
  opacity: 0.4;
}
.br-explorer.signal-active .br-signal-card.signal-hover {
  opacity: 1;
}

.br-signal-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.br-signal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.br-signal-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
}

.br-signal-pct {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -- Right Column: Hint + Detail Panel -- */
.br-explorer-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
}

/* Big hint with arrow pointing left to signals */
.br-explorer-hint {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.br-explorer.signal-active .br-explorer-hint {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-10px);
}

.br-hint-arrow {
  width: 32px;
  height: 60px;
  flex-shrink: 0;
}

.br-hint-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #C0C7D1;
  max-width: 280px;
}

/* -- Detail Panel (fills right column on hover) -- */
.br-detail-panel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  pointer-events: none;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(8px);
}
.br-detail-panel.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.br-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.br-detail-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.br-detail-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  flex: 1;
}

.br-detail-pts {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Main fill bar */
.br-detail-fill-track {
  width: 100%;
  height: 14px;
  background: var(--border-light);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.br-detail-fill-bar {
  height: 100%;
  border-radius: 7px;
  width: 0%;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.br-detail-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

/* Sub-factor breakdown rows */
.br-detail-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.br-detail-factor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.br-detail-factor-name {
  width: 130px;
  flex-shrink: 0;
  color: var(--text-secondary);
  font-weight: 600;
}

.br-detail-factor-track {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.br-detail-factor-bar {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.br-detail-factor-val {
  width: 32px;
  text-align: right;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Old factor detail cards (kept for compatibility) ---- */
.br-factors-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin: 1.5rem 0;
}
.factor-detail-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
}
.factor-header { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.factor-detail-card h3 { font-size: 1rem; }
.factor-detail-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

.br-tiers { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0; }
.tier-row {
  display: flex; gap: 1.5rem; align-items: center;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
}
.tier-badge-col { flex-shrink: 0; }
.tier-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.tier-info p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* ============================================
   Footer — bear background, text-only logo
   ============================================ */
.site-footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem; margin-top: 2rem;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: -60px; bottom: -40px;
  width: 320px; height: 320px;
  background: url('/images/bear-white.svg') no-repeat center / contain;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
  position: relative; z-index: 1;
}

/* Text-only footer logo — white "dirbear.com" */
.footer-logo-text {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo-text:hover { color: white; }
.footer-logo-text span { color: var(--brand-light); }

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-social { margin-top: 0.75rem; display: flex; gap: 0.75rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.2); color: white; }
.footer-links h4 {
  color: white; font-size: 0.9rem; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-links a {
  display: block; color: rgba(255,255,255,0.6);
  font-size: 0.9rem; padding: 0.2rem 0; transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.85rem;
  position: relative; z-index: 1;
}
.footer-stats strong { color: var(--brand-light); }
.footer-note {
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  margin-top: 1rem; text-align: center;
  position: relative; z-index: 1;
}

/* ============================================
   Search on Pages
   ============================================ */
.search-box-page { max-width: 500px; margin-bottom: 2rem; }

/* Search Results */
.search-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.search-results { display: flex; flex-direction: column; gap: 0.5rem; }
.search-result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.25rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  text-decoration: none; color: var(--text); transition: all 0.2s;
}
.search-result-item:hover { border-color: var(--brand-light); box-shadow: var(--shadow-md); }
.search-rank { font-weight: 700; color: var(--text-muted); min-width: 50px; font-size: 0.85rem; }
.search-favicon { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-info strong { display: block; font-size: 1rem; }
.search-result-info mark { background: var(--brand-lighter); color: var(--brand-dark); padding: 0 2px; border-radius: 2px; }
.search-result-cat { font-size: 0.8rem; color: var(--text-muted); }
.br-pill {
  display: inline-block; padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.br-pill.br-grizzly { background: var(--br-grizzly-bg); color: var(--br-grizzly); border: 1px solid var(--br-grizzly-border); }
.br-pill.br-kodiak { background: var(--br-kodiak-bg); color: var(--br-kodiak); border: 1px solid var(--br-kodiak-border); }
.br-pill.br-polar { background: var(--br-polar-bg); color: var(--br-polar); border: 1px solid var(--br-polar-border); }
.br-pill.br-cub { background: var(--br-cub-bg); color: var(--br-cub); border: 1px solid var(--br-cub-border); }
.search-empty { text-align: center; padding: 3rem; color: var(--text-muted); }
.search-loading { text-align: center; padding: 2rem; color: var(--text-muted); }

/* ============================================
   FAQ Page
   ============================================ */
/* faq-container inherits .container width — no override needed */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 0; font-size: 1rem; font-weight: 700;
  color: var(--text); cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+'; font-size: 1.1rem; font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0; margin-left: 1rem;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%; border: 2px solid var(--border);
  transition: all 0.2s;
}
.faq-item[open] .faq-question::after {
  content: '−';
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}
.faq-item[open] .faq-question { color: var(--brand-dark); }
.faq-answer {
  padding: 0 0 1.25rem 0;
}
.faq-answer p {
  font-size: 0.92rem; color: var(--text-secondary);
  line-height: 1.7; margin: 0;
}
.faq-answer a { color: var(--brand); text-decoration: underline; }

/* ============================================
   Profile Sidebar CTA
   ============================================ */
.profile-cta-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none; text-align: center;
  position: relative; overflow: hidden;
}
.profile-cta-card::after {
  content: '';
  position: absolute;
  right: -20px; top: 65%;
  transform: translateY(-50%) rotate(-15deg);
  width: 130px; height: 130px;
  background: url('/images/bear-white.svg') no-repeat center / contain;
  opacity: 0.12;
}
.profile-cta-card h3 {
  font-size: 1rem; font-weight: 800;
  margin-bottom: 0.85rem; color: white;
  position: relative; z-index: 1;
  line-height: 1.4;
}
.profile-cta-card .btn {
  display: inline-block; font-size: 0.95rem;
  padding: 0.6rem 1.75rem;
  position: relative; z-index: 1;
  background: linear-gradient(160deg, #F5D990 0%, #D4A843 40%, #C4913A 70%, #B8802E 100%);
  color: #3A2A0A; border: none; font-weight: 700;
}
.profile-cta-card .btn:hover {
  background: linear-gradient(160deg, #FBE4A8 0%, #DCBA55 40%, #CFA046 70%, #C18A35 100%);
  box-shadow: 0 3px 12px rgba(180, 140, 50, 0.35);
  transform: translateY(-1px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 2rem 0 3rem; }
  .hero-bear { width: 180px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.5rem; }
  .home-cat-grid { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: 1fr; }
  .br-explain-card { flex-direction: column; text-align: center; padding: 2rem; }
  .br-factors { grid-template-columns: 1fr; }
  .br-factors-detail { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; max-width: 400px; }
  .submit-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-title-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .top-list-item { flex-wrap: wrap; gap: 0.75rem; }
  .br-explorer { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; min-height: auto; }
  .br-explorer-left { flex-direction: column; }
  .br-explorer-badge { width: 160px; height: 160px; }
  .br-explorer-score { font-size: 3.5rem; }
  .br-explorer-right { min-height: 280px; }
  .br-hint-text { font-size: 1.2rem; }
  .br-detail-name { font-size: 1.2rem; }
  .br-detail-text { font-size: 0.88rem; }
  .br-detail-factor-name { width: 100px; }
  .cta-card::after { width: 180px; height: 180px; right: -20px; bottom: -30px; }
  .site-footer::before { width: 220px; height: 220px; }
}

@media (max-width: 480px) {
  .hero-bear { width: 140px; }
  .hero-title { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .cat-card { padding: 1rem 1.1rem; }
  .cat-card-desc { display: none; }
  .cat-card-initial { width: 30px; height: 30px; min-width: 30px; font-size: 0.85rem; }
}
