/* ===========================================
   BUSINESS IDEAS — MODERN AI STUDIO
   Page-scoped --bi-* vars re-pointed at the global
   studio tokens (static/css/theme/tokens.css).
   =========================================== */

:root {
  /* Light studio base palette */
  --bi-bg: var(--surface, #fffef7);
  --bi-bg-gradient: var(--surface, #fffef7);
  --bi-surface: var(--surface, #fffef7);
  --bi-surface-elevated: var(--surface-2, #faf8f5);
  --bi-surface-hover: rgba(26, 26, 46, 0.05);
  --bi-border: var(--line, rgba(26, 26, 46, 0.12));
  --bi-border-subtle: rgba(26, 26, 46, 0.08);
  --bi-border-light: rgba(26, 26, 46, 0.22);

  /* Text colors */
  --bi-text-primary: var(--ink, #1a1a2e);
  --bi-text-secondary: #4b4b5e;
  --bi-text-muted: var(--muted, #6b6b7b);

  /* Accents — interactive accent is the studio indigo; the
     rest are light-readable versions of the old palette */
  --bi-teal: var(--accent, #6366f1);
  --bi-teal-glow: rgba(99, 102, 241, 0.08);
  --bi-pink: #c24473;
  --bi-pink-glow: rgba(194, 68, 115, 0.08);
  --bi-coral: #c05621;
  --bi-coral-glow: rgba(192, 86, 33, 0.08);
  --bi-purple: #7a5ca8;
  --bi-purple-glow: rgba(122, 92, 168, 0.08);
  --bi-yellow: var(--warn, #f5d76e);      /* backgrounds only */
  --bi-yellow-glow: rgba(245, 215, 110, 0.22);
  --bi-amber: #a16207;                    /* text-safe yellow */
  --bi-blue: #4063cf;
  --bi-blue-glow: rgba(64, 99, 207, 0.08);

  /* Semantic (light-readable) */
  --bi-green: #059669;
  --bi-red: #dc2626;

  /* Soft studio shadows */
  --bi-shadow: var(--shadow, 0 1px 2px rgba(26,26,46,.06), 0 8px 24px rgba(26,26,46,.08));
  --bi-shadow-sm: var(--shadow-sm, 0 1px 2px rgba(26,26,46,.06), 0 2px 8px rgba(26,26,46,.06));
  --bi-shadow-hover: 0 2px 4px rgba(26, 26, 46, 0.06), 0 12px 32px rgba(26, 26, 46, 0.12);

  /* Radius */
  --bi-radius: var(--radius, 14px);
  --bi-radius-sm: var(--radius-sm, 10px);
  --bi-radius-xs: 6px;
}

/* ===========================================
   PAGE CONTAINER
   =========================================== */

/* Width + side padding match the navbar container:
   max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 */
.bi-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

@media (min-width: 640px) {
  .bi-page {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .bi-page {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 640px) {
  .bi-page {
    padding-top: 20px;
    padding-bottom: 60px;
  }
}

/* ===========================================
   TWO COLUMN LAYOUT
   =========================================== */

.bi-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.bi-main {
  min-width: 0;
}

.bi-sidebar {
  align-self: stretch;
  margin: 0;
  padding: 0;
}

.bi-sidebar-sticky {
  position: sticky;
  top: 88px; /* navbar height (64px) + padding (24px) */
}

@media (max-width: 1024px) {
  .bi-layout {
    grid-template-columns: 1fr;
  }

  .bi-sidebar {
    display: none;
  }
}

/* ===========================================
   NEWSLETTER WIDGET (Sidebar)
   =========================================== */

.bi-newsletter-widget {
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  padding: 24px;
  box-shadow: var(--bi-shadow);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.bi-newsletter-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bi-purple) 0%, var(--bi-teal) 100%);
}

.bi-newsletter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bi-purple);
  font-weight: 700;
  margin-bottom: 8px;
}

.bi-newsletter-heading {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--bi-text-primary);
  line-height: 1.3;
}

.bi-newsletter-desc {
  font-size: 13px;
  color: var(--bi-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.bi-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bi-newsletter-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bi-surface-elevated);
  border: 1px solid var(--bi-border);
  border-radius: 8px;
  color: var(--bi-text-primary);
  font-size: 14px;
  transition: border-color 0.2s;
}

.bi-newsletter-input::placeholder {
  color: var(--bi-text-muted);
}

.bi-newsletter-input:focus {
  outline: none;
  border-color: var(--bi-purple);
}

.bi-newsletter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--bi-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.bi-newsletter-button:hover:not(:disabled) {
  background: #6a4e93;
  transform: translateY(-1px);
}

.bi-newsletter-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.bi-newsletter-button-loading {
  display: inline-flex;
  align-items: center;
}

.bi-spinner {
  animation: bi-spin 1s linear infinite;
}

@keyframes bi-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bi-newsletter-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--bi-teal-glow);
  border: 1px solid var(--bi-teal);
  border-radius: 8px;
  color: var(--bi-teal);
  font-size: 14px;
  font-weight: 600;
}

.bi-newsletter-success svg {
  flex-shrink: 0;
}

.bi-newsletter-error {
  padding: 12px;
  background: var(--bi-pink-glow);
  border: 1px solid var(--bi-pink);
  border-radius: 8px;
  color: var(--bi-pink);
  font-size: 13px;
  margin-top: 10px;
}

.bi-newsletter-note {
  font-size: 11px;
  color: var(--bi-text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ===========================================
   CTA WIDGET (Sidebar)
   =========================================== */

.bi-cta-widget {
  background: linear-gradient(135deg, var(--bi-purple-glow) 0%, var(--bi-teal-glow) 100%);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  padding: 24px;
  box-shadow: var(--bi-shadow);
  margin: 0;
}

.bi-cta-widget .bi-cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bi-teal);
  font-weight: 700;
  margin-bottom: 8px;
}

.bi-cta-widget .bi-cta-heading {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--bi-text-primary);
  line-height: 1.3;
}

.bi-cta-widget .bi-cta-desc {
  font-size: 13px;
  color: var(--bi-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.bi-cta-widget .bi-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--bi-teal);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.bi-cta-widget .bi-cta-button:hover {
  background: var(--accent-strong, #4f46e5);
  transform: translateY(-2px);
  box-shadow: var(--bi-shadow);
}

.bi-cta-social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--bi-text-muted);
  margin-bottom: 16px;
}

.bi-cta-social svg {
  flex-shrink: 0;
  color: var(--bi-teal);
}

/* ===========================================
   PREVIEW BANNER
   =========================================== */

.bi-preview-banner {
  background: var(--bi-yellow-glow);
  border: 1px solid #e3c558;
  border-radius: var(--bi-radius-sm);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bi-preview-banner svg {
  flex-shrink: 0;
  color: var(--bi-amber);
}

.bi-preview-banner p {
  font-size: 14px;
  color: var(--bi-amber);
  font-weight: 500;
}

/* ===========================================
   BREADCRUMB
   =========================================== */

.bi-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bi-text-muted);
  margin-bottom: 24px;
}

.bi-breadcrumb a {
  color: var(--bi-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.bi-breadcrumb a:hover {
  color: var(--bi-teal);
}

.bi-breadcrumb .sep {
  opacity: 0.4;
}

/* ===========================================
   CARDS
   =========================================== */

.bi-card {
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  box-shadow: var(--bi-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bi-shadow-hover);
}

.bi-card-static {
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  box-shadow: var(--bi-shadow);
}

/* ===========================================
   SECTION HEADERS
   =========================================== */

.bi-section {
  margin-bottom: 48px;
}

.bi-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.bi-section-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--bi-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid;
}

.bi-section-icon--teal {
  background: var(--bi-teal-glow);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--bi-teal);
}

.bi-section-icon--blue {
  background: var(--bi-blue-glow);
  border-color: rgba(64, 99, 207, 0.25);
  color: var(--bi-blue);
}

.bi-section-icon--coral {
  background: var(--bi-coral-glow);
  border-color: rgba(192, 86, 33, 0.25);
  color: var(--bi-coral);
}

.bi-section-icon--purple {
  background: var(--bi-purple-glow);
  border-color: rgba(122, 92, 168, 0.25);
  color: var(--bi-purple);
}

.bi-section-icon--pink {
  background: var(--bi-pink-glow);
  border-color: rgba(194, 68, 115, 0.25);
  color: var(--bi-pink);
}

.bi-section-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--bi-text-primary);
  letter-spacing: -0.01em;
}

.bi-section-subtitle {
  font-size: 13px;
  color: var(--bi-text-muted);
  margin-top: 2px;
}

/* ===========================================
   HERO SECTION
   =========================================== */

.bi-hero {
  margin-bottom: 48px;
}

.bi-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.bi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid;
}

.bi-badge--category {
  background: var(--bi-blue-glow);
  color: var(--bi-blue);
  border-color: rgba(64, 99, 207, 0.25);
}

.bi-badge--topic {
  background: var(--bi-surface-elevated);
  color: var(--bi-text-secondary);
  border-color: var(--bi-border);
}

.bi-badge--teal {
  background: var(--bi-teal-glow);
  color: var(--bi-teal);
  border-color: rgba(99, 102, 241, 0.25);
}

.bi-hero-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--bi-text-primary);
}

@media (max-width: 640px) {
  .bi-hero-title {
    font-size: 28px;
  }
}

.bi-hero-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--bi-text-secondary);
  max-width: 800px;
  margin-bottom: 24px;
}

.bi-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 20px;
}

.bi-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bi-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bi-text-muted);
  font-weight: 600;
}

.bi-meta-value {
  font-size: 14px;
  color: var(--bi-text-secondary);
  font-weight: 500;
}

/* Key Features */
.bi-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bi-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bi-surface-elevated);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius-xs);
  font-size: 13px;
  color: var(--bi-text-secondary);
}

.bi-feature-tag svg {
  color: var(--bi-teal);
}

/* ===========================================
   TREND ANALYSIS
   =========================================== */

.bi-trend-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bi-trend-tab {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bi-surface-elevated);
  color: var(--bi-text-secondary);
  border: 1px solid var(--bi-border);
  cursor: pointer;
  transition: all 0.2s;
}

.bi-trend-tab:hover {
  border-color: var(--bi-border-light);
  color: var(--bi-text-primary);
}

.bi-trend-tab.active {
  background: var(--bi-teal-glow);
  color: var(--bi-teal);
  border-color: rgba(99, 102, 241, 0.35);
}

.bi-trend-chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .bi-trend-chart-container {
    height: 220px;
  }
}

.bi-trend-averages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.bi-trend-avg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bi-surface-elevated);
  border-radius: var(--bi-radius-sm);
  border: 1px solid var(--bi-border);
}

.bi-trend-avg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bi-trend-avg-label {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--bi-text-secondary);
}

.bi-trend-avg-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--bi-text-primary);
  margin-left: auto;
}

/* Related Queries */
.bi-related-queries {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--bi-border);
}

.bi-related-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bi-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.bi-query-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bi-query-tag {
  padding: 6px 12px;
  background: var(--bi-surface-elevated);
  border-radius: 100px;
  font-size: 12px;
  color: var(--bi-text-secondary);
  border: 1px solid var(--bi-border);
  font-family: 'JetBrains Mono', monospace;
}

.bi-query-tag--rising {
  background: var(--bi-coral-glow);
  color: var(--bi-coral);
  border-color: rgba(192, 86, 33, 0.25);
}

.bi-query-tag .rising-label {
  font-size: 10px;
  opacity: 0.8;
  margin-left: 4px;
}

/* ===========================================
   COMPETITORS
   =========================================== */

.bi-competitors-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bi-competitor-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  transition: all 0.2s;
}

.bi-competitor-card:hover {
  border-color: var(--bi-border-light);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .bi-competitor-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.bi-comp-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bi-comp-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bi-comp-favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bi-surface-elevated);
  flex-shrink: 0;
}

.bi-comp-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--bi-text-primary);
}

.bi-comp-url {
  font-size: 12px;
  color: var(--bi-text-muted);
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  transition: color 0.2s;
}

.bi-comp-url:hover {
  color: var(--bi-teal);
}

.bi-comp-desc {
  font-size: 14px;
  color: var(--bi-text-secondary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bi-comp-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .bi-comp-stats {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
}

.bi-comp-stat-value {
  font-size: 20px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--bi-text-primary);
}

.bi-comp-stat-label {
  font-size: 11px;
  color: var(--bi-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bi-comp-keywords {
  font-size: 12px;
  color: var(--bi-text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ===========================================
   KEYWORDS TABLE
   =========================================== */

.bi-keywords-wrapper {
  overflow-x: auto;
}

.bi-keywords-table {
  width: 100%;
  border-collapse: collapse;
}

.bi-keywords-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bi-text-muted);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--bi-border);
  background: var(--bi-surface-elevated);
}

.bi-keywords-table thead th:nth-child(2),
.bi-keywords-table thead th:nth-child(3),
.bi-keywords-table thead th:nth-child(4) {
  text-align: right;
}

.bi-keywords-table thead th:last-child {
  text-align: center;
}

.bi-keywords-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--bi-border-subtle);
  vertical-align: middle;
}

.bi-keywords-table tbody tr:last-child td {
  border-bottom: none;
}

.bi-keywords-table tbody tr {
  transition: background 0.15s;
}

.bi-keywords-table tbody tr:hover {
  background: var(--bi-surface-elevated);
}

.bi-kw-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--bi-text-primary);
}

.bi-kw-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-align: right;
  color: var(--bi-text-secondary);
}

.bi-kw-vol {
  color: var(--bi-text-primary);
  font-weight: 700;
}

.bi-kw-sparkline {
  width: 80px;
  height: 28px;
}

.bi-comp-bar-container {
  width: 60px;
  height: 6px;
  background: var(--bi-surface-elevated);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.bi-comp-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.bi-comp-bar--low {
  background: var(--bi-teal);
}

.bi-comp-bar--med {
  background: #f59e0b;
}

.bi-comp-bar--high {
  background: var(--bi-coral);
}

/* ===========================================
   TECH STACK
   =========================================== */

.bi-tech-summary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--bi-text-secondary);
  padding: 16px 20px;
  background: var(--bi-surface-elevated);
  border-radius: var(--bi-radius-sm);
  border: 1px solid var(--bi-border);
  margin-bottom: 20px;
  line-height: 1.7;
}

.bi-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .bi-tech-grid {
    grid-template-columns: 1fr;
  }
}

.bi-tech-card {
  padding: 18px 20px;
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  transition: all 0.2s;
}

.bi-tech-card:hover {
  border-color: var(--bi-border-light);
  transform: translateY(-2px);
}

.bi-tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.bi-tech-card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--bi-text-primary);
}

.bi-tech-card-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
  flex-shrink: 0;
}

.bi-cat-ai {
  background: var(--bi-purple-glow);
  color: var(--bi-purple);
}

.bi-cat-payments {
  background: var(--bi-teal-glow);
  color: var(--bi-teal);
}

.bi-cat-database {
  background: var(--bi-blue-glow);
  color: var(--bi-blue);
}

.bi-cat-auth {
  background: var(--bi-pink-glow);
  color: var(--bi-pink);
}

.bi-cat-storage {
  background: var(--bi-coral-glow);
  color: var(--bi-coral);
}

.bi-cat-hosting {
  background: rgba(220, 38, 38, 0.15);
  color: var(--bi-red);
}

.bi-cat-other {
  background: var(--bi-surface-elevated);
  color: var(--bi-text-secondary);
}

.bi-tech-card-purpose {
  font-size: 13px;
  color: var(--bi-text-secondary);
  line-height: 1.6;
}

.bi-tech-disclaimer {
  font-size: 13px;
  color: var(--bi-text-muted);
  padding: 14px 18px;
  background: var(--bi-surface-elevated);
  border-radius: var(--bi-radius-sm);
  border: 1px solid var(--bi-border);
  border-left: 4px solid var(--bi-border-light);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bi-tech-disclaimer svg {
  flex-shrink: 0;
  opacity: 0.6;
  margin-top: 2px;
}

/* ===========================================
   SELF HOSTING COURSE CTA
   =========================================== */

.bi-selfhost-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--bi-coral-glow) 0%, var(--bi-pink-glow) 100%);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  box-shadow: var(--bi-shadow);
  align-items: center;
}

.bi-selfhost-savings {
  text-align: center;
  padding: 24px 28px;
  background: var(--bi-surface);
  border-radius: var(--bi-radius-sm);
  border: 1px solid var(--bi-coral);
  min-width: 160px;
}

.bi-selfhost-savings-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bi-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.bi-selfhost-savings-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 800;
  color: var(--bi-coral);
  line-height: 1;
}

.bi-selfhost-savings-amount span {
  font-size: 32px;
  opacity: 0.8;
}

.bi-selfhost-savings-note {
  font-size: 11px;
  color: var(--bi-text-muted);
  margin-top: 8px;
}

.bi-selfhost-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bi-selfhost-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--bi-coral);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.bi-selfhost-heading {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--bi-text-primary);
  line-height: 1.3;
  margin: 0;
}

.bi-selfhost-desc {
  font-size: 14px;
  color: var(--bi-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.bi-selfhost-social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bi-text-muted);
}

.bi-selfhost-social svg {
  color: var(--bi-coral);
  flex-shrink: 0;
}

.bi-selfhost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bi-coral);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  width: fit-content;
  box-shadow: var(--bi-shadow-sm);
}

.bi-selfhost-button:hover {
  background: #a8481a;
  transform: translateY(-2px);
  box-shadow: var(--bi-shadow);
}

@media (max-width: 768px) {
  .bi-selfhost-cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .bi-selfhost-savings {
    padding: 20px;
  }

  .bi-selfhost-savings-amount {
    font-size: 40px;
  }

  .bi-selfhost-heading {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .bi-selfhost-cta {
    text-align: center;
  }

  .bi-selfhost-badge {
    margin: 0 auto;
  }

  .bi-selfhost-social {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .bi-selfhost-button {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================================
   CTA BOX
   =========================================== */

.bi-cta-box {
  background: linear-gradient(135deg, var(--bi-blue-glow) 0%, var(--bi-purple-glow) 100%);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  padding: 32px 28px;
  text-align: center;
  margin-top: 24px;
}

.bi-cta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bi-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.bi-cta-heading {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--bi-text-primary);
}

.bi-cta-desc {
  font-size: 14px;
  color: var(--bi-text-secondary);
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.bi-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--bi-teal);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  box-shadow: var(--bi-shadow-sm);
}

.bi-cta-button:hover {
  background: var(--accent-strong, #4f46e5);
  transform: translateY(-2px);
  box-shadow: var(--bi-shadow);
}

/* ===========================================
   RELATED IDEAS
   =========================================== */

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

.bi-related-card {
  padding: 20px;
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius);
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.bi-related-card:hover {
  border-color: var(--bi-teal);
  transform: translateY(-4px);
  box-shadow: var(--bi-shadow-hover);
}

.bi-related-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--bi-text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.bi-related-card-desc {
  font-size: 13px;
  color: var(--bi-text-secondary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bi-related-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.bi-related-card-topic {
  font-size: 11px;
  padding: 4px 8px;
  background: var(--bi-surface-elevated);
  border-radius: 100px;
  color: var(--bi-text-muted);
}

/* ===========================================
   ANIMATIONS
   =========================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bi-section {
  animation: fadeUp 0.5s ease-out both;
}

.bi-section:nth-child(1) { animation-delay: 0s; }
.bi-section:nth-child(2) { animation-delay: 0.05s; }
.bi-section:nth-child(3) { animation-delay: 0.1s; }
.bi-section:nth-child(4) { animation-delay: 0.15s; }
.bi-section:nth-child(5) { animation-delay: 0.2s; }
.bi-section:nth-child(6) { animation-delay: 0.25s; }
.bi-section:nth-child(7) { animation-delay: 0.3s; }

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.bi-mono {
  font-family: 'JetBrains Mono', monospace;
}

.bi-text-teal { color: var(--bi-teal); }
.bi-text-pink { color: var(--bi-pink); }
.bi-text-coral { color: var(--bi-coral); }
.bi-text-purple { color: var(--bi-purple); }
.bi-text-yellow { color: var(--bi-yellow); }
.bi-text-blue { color: var(--bi-blue); }

/* ===========================================
   AI VIABILITY SCORE SECTION
   =========================================== */

.bi-score-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bi-surface-elevated);
  border-radius: var(--bi-radius-sm);
  border: 1px solid var(--bi-border-subtle);
}

@media (max-width: 640px) {
  .bi-score-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
}

.bi-score-gauge {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.bi-score-ring {
  width: 100%;
  height: 100%;
}

.bi-score-progress {
  transition: stroke-dasharray 1s ease-out;
}

.bi-score-progress.bi-score--high {
  stroke: var(--bi-green);
}

.bi-score-progress.bi-score--medium {
  stroke: #f59e0b;
}

.bi-score-progress.bi-score--low {
  stroke: var(--bi-red);
}

.bi-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
}

.bi-score-value.bi-score--high {
  color: var(--bi-green);
}

.bi-score-value.bi-score--medium {
  color: #b45309;
}

.bi-score-value.bi-score--low {
  color: var(--bi-red);
}

.bi-score-content {
  flex: 1;
}

.bi-score-explanation {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bi-text-secondary);
  margin-bottom: 20px;
}

.bi-score-badges {
  margin-bottom: 16px;
}

.bi-score-badges:last-child {
  margin-bottom: 0;
}

.bi-score-badges-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bi-text-muted);
  margin-bottom: 8px;
}

.bi-score-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .bi-score-badges-list {
    justify-content: center;
  }
}

.bi-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid;
}

.bi-score-badge--strength {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--bi-green);
}

.bi-score-badge--concern {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--bi-red);
}

.bi-score-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bi-border-subtle);
}

@media (max-width: 640px) {
  .bi-score-legend {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

.bi-score-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bi-text-muted);
}

.bi-score-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bi-score-legend-dot.bi-score--high {
  background: var(--bi-green);
}

.bi-score-legend-dot.bi-score--medium {
  background: #f59e0b;
}

.bi-score-legend-dot.bi-score--low {
  background: var(--bi-red);
}

/* ===========================================
   COMPACT AI SCORE BADGE (Hero)
   =========================================== */

.bi-score-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bi-score-compact:hover {
  transform: translateY(-2px);
}

.bi-score-compact--high {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.4);
  color: var(--bi-green);
}

.bi-score-compact--high:hover {
  background: rgba(5, 150, 105, 0.25);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.bi-score-compact--medium {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #b45309;
}

.bi-score-compact--medium:hover {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.bi-score-compact--low {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.4);
  color: var(--bi-red);
}

.bi-score-compact--low:hover {
  background: rgba(220, 38, 38, 0.25);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.bi-score-compact-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.bi-score-compact-label {
  opacity: 0.9;
}

.bi-score-compact svg {
  opacity: 0.7;
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}


/* ===========================================
   HERO SECTION ENHANCEMENTS
   =========================================== */

.bi-hero-primary-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bi-hero-topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bi-badge--lg {
  padding: 8px 18px;
  font-size: 13px;
}

.bi-score-compact--lg {
  padding: 8px 16px;
  font-size: 14px;
}

.bi-score-compact--lg .bi-score-compact-value {
  font-size: 18px;
}

/* Features Section Enhancement */
.bi-features {
  margin-top: 24px;
  padding: 20px;
  background: var(--bi-surface-elevated);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius-sm);
}

.bi-features-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bi-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.bi-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bi-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius-xs);
  font-size: 13px;
  color: var(--bi-text-secondary);
  transition: all 0.2s;
}

.bi-feature-tag:hover {
  border-color: var(--bi-teal);
  background: var(--bi-teal-glow);
}

.bi-feature-tag svg {
  color: var(--bi-teal);
  flex-shrink: 0;
}

/* Hero Meta Enhancement */
.bi-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding: 20px;
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius-sm);
  margin-top: 24px;
}

@media (max-width: 640px) {
  .bi-hero-meta {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===========================================
   MOBILE EXPERIENCE ENHANCEMENTS
   =========================================== */

/* Larger touch targets */
@media (max-width: 768px) {
  .bi-trend-tab,
  .bi-badge,
  .bi-feature-tag,
  .bi-query-tag {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .bi-cta-button,
  .bi-selfhost-button {
    min-height: 48px;
    padding: 14px 24px;
  }

  /* Improved spacing on small screens */
  .bi-section {
    margin-bottom: 40px;
  }

  .bi-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bi-section-icon {
    width: 48px;
    height: 48px;
  }

  /* Better readability */
  .bi-hero-description {
    font-size: 16px;
    line-height: 1.75;
  }

  .bi-comp-desc,
  .bi-tech-card-purpose {
    font-size: 14px;
    line-height: 1.6;
  }
}


/* ===========================================
   ACCESSIBILITY ENHANCEMENTS
   =========================================== */

/* Focus states for all interactive elements */
.bi-score-compact:focus-visible,
.bi-trend-tab:focus-visible,
.bi-cta-button:focus-visible,
.bi-selfhost-button:focus-visible,
.bi-related-card:focus-visible,
.bi-breadcrumb a:focus-visible {
  outline: 3px solid var(--bi-teal);
  outline-offset: 2px;
}

/* Smooth transitions for micro-interactions */
.bi-card,
.bi-competitor-card,
.bi-tech-card,
.bi-related-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .bi-section,
  .bi-card,
  .bi-competitor-card,
  .bi-tech-card {
    animation: none;
    transition: none;
  }

  .bi-score-compact svg {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ===========================================
   VISUAL POLISH & SPACING
   =========================================== */

/* Consistent section spacing */
.bi-section {
  margin-bottom: 56px;
}

.bi-section:last-child {
  margin-bottom: 32px;
}

/* Section title sizing hierarchy */
.bi-section-title {
  font-size: 24px;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .bi-section-title {
    font-size: 20px;
  }
}

/* Card content spacing */
.bi-card-static {
  padding: 28px;
}

@media (max-width: 640px) {
  .bi-card-static {
    padding: 20px;
  }
}

/* Improved typography scale */
.bi-hero-title {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin-bottom: 20px;
}

/* ===========================================
   AI SCORE BREAKDOWN SECTION
   =========================================== */

.bi-score-breakdown {
  margin-top: 24px;
  border-top: 2px solid var(--bi-border-subtle);
  padding-top: 20px;
}

.bi-breakdown-details {
  background: var(--bi-surface);
  border: 1px solid var(--bi-border);
  border-radius: var(--bi-radius-sm);
  overflow: hidden;
}

.bi-breakdown-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--bi-text-secondary);
  background: var(--bi-surface-elevated);
  transition: all 0.2s;
  list-style: none;
}

.bi-breakdown-summary::-webkit-details-marker {
  display: none;
}

.bi-breakdown-summary:hover {
  color: var(--bi-text-primary);
  background: var(--bi-surface-hover);
}

.bi-breakdown-summary svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.bi-breakdown-details[open] .bi-breakdown-summary svg {
  transform: rotate(90deg);
}

.bi-breakdown-hint {
  font-size: 12px;
  color: var(--bi-text-muted);
  font-weight: 400;
  margin-left: auto;
}

.bi-breakdown-content {
  padding: 20px;
}

.bi-breakdown-section {
  margin-bottom: 24px;
}

.bi-breakdown-section:last-child {
  margin-bottom: 0;
}

.bi-breakdown-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bi-border-subtle);
}

.bi-breakdown-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bi-text-muted);
}

.bi-breakdown-section-weight {
  font-size: 11px;
  color: var(--bi-text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Individual Criterion Styles */
.bi-criterion {
  padding: 16px;
  background: var(--bi-surface-elevated);
  border: 1px solid var(--bi-border-subtle);
  border-radius: var(--bi-radius-xs);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.bi-criterion:last-child {
  margin-bottom: 0;
}

.bi-criterion:hover {
  border-color: var(--bi-border);
}

.bi-criterion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}

.bi-criterion-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bi-text-primary);
}

.bi-criterion-name svg {
  color: var(--bi-text-muted);
  flex-shrink: 0;
}

.bi-criterion-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.bi-criterion-score.bi-criterion--high {
  background: rgba(5, 150, 105, 0.15);
  color: var(--bi-green);
}

.bi-criterion-score.bi-criterion--medium {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.bi-criterion-score.bi-criterion--low {
  background: rgba(220, 38, 38, 0.15);
  color: var(--bi-red);
}

/* Progress Bar */
.bi-criterion-bar {
  height: 6px;
  background: rgba(26, 26, 46, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.bi-criterion-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

.bi-criterion-fill.bi-criterion--high {
  background: linear-gradient(90deg, var(--bi-green), #34d399);
}

.bi-criterion-fill.bi-criterion--medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.bi-criterion-fill.bi-criterion--low {
  background: linear-gradient(90deg, var(--bi-red), #f87171);
}

/* Reasoning Text */
.bi-criterion-reasoning {
  font-size: 13px;
  color: var(--bi-text-secondary);
  line-height: 1.5;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .bi-breakdown-summary {
    padding: 12px 16px;
    font-size: 13px;
  }

  .bi-breakdown-hint {
    display: none;
  }

  .bi-breakdown-content {
    padding: 16px;
  }

  .bi-criterion {
    padding: 14px;
  }

  .bi-criterion-header {
    flex-wrap: wrap;
  }

  .bi-criterion-name {
    font-size: 13px;
  }

  .bi-criterion-reasoning {
    font-size: 12px;
  }
}

/* ===========================================
   CONTENT LOCKING (Non-authenticated users)
   =========================================== */

.bi-locked-section {
  position: relative;
}

.bi-locked-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

/* Lock overlay positioned over blurred content */
.bi-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,
    rgba(255, 254, 247, 0.7) 0%,
    rgba(255, 254, 247, 0.95) 100%);
  border-radius: var(--bi-radius);
  z-index: 10;
  backdrop-filter: blur(2px);
}

/* CTA card inside overlay */
.bi-lock-cta {
  text-align: center;
  padding: 48px 32px;
  max-width: 380px;
}

.bi-lock-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--bi-yellow-glow);
  border: 1px solid #e3c558;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bi-amber);
}

.bi-lock-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--bi-text-primary);
  margin: 0 0 10px;
}

.bi-lock-desc {
  font-size: 14px;
  color: var(--bi-text-secondary);
  margin: 0 0 20px;
  line-height: 1.6;
}

.bi-lock-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bi-yellow);
  color: var(--bi-text-primary);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.bi-lock-button:hover {
  background: #eec94f;
  transform: translateY(-2px);
  box-shadow: var(--bi-shadow);
}

.bi-lock-note {
  font-size: 13px;
  color: var(--bi-text-muted);
  margin: 16px 0 0;
}

.bi-lock-note a {
  color: var(--bi-teal);
  text-decoration: underline;
}

.bi-lock-note a:hover {
  color: var(--bi-text-primary);
}

/* Teaser text showing data counts */
.bi-lock-teaser {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.bi-lock-teaser span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bi-surface-elevated);
  border: 1px solid var(--bi-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bi-text-secondary);
}

.bi-lock-teaser svg {
  width: 14px;
  height: 14px;
  color: var(--bi-teal);
}

/* ===========================================
   FLOATING SIGNUP BAR
   =========================================== */

.bi-floating-signup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.bi-floating-signup.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bi-floating-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bi-surface-elevated);
  border: 1px solid var(--bi-border);
  border-radius: 100px;
  box-shadow: var(--bi-shadow-hover);
}

.bi-floating-icon {
  width: 40px;
  height: 40px;
  background: var(--bi-yellow-glow);
  border: 1px solid #e3c558;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bi-amber);
  flex-shrink: 0;
}

.bi-floating-content {
  text-align: left;
}

.bi-floating-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bi-text-primary);
  margin: 0;
  line-height: 1.2;
}

.bi-floating-desc {
  font-size: 12px;
  color: var(--bi-text-muted);
  margin: 2px 0 0;
}

.bi-floating-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--bi-yellow);
  color: var(--bi-text-primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.bi-floating-btn:hover {
  background: #eec94f;
  transform: scale(1.02);
}

.bi-floating-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--bi-text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bi-floating-close:hover {
  background: var(--bi-surface-hover);
  color: var(--bi-text-primary);
}

/* Mobile responsive floating bar */
@media (max-width: 640px) {
  .bi-floating-signup {
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(120px);
  }

  .bi-floating-signup.visible {
    transform: translateX(0) translateY(0);
  }

  .bi-floating-card {
    border-radius: 16px;
    padding: 12px 16px;
    gap: 12px;
  }

  .bi-floating-icon {
    display: none;
  }

  .bi-floating-content {
    flex: 1;
  }
}

/* ===========================================
   PARTIAL LOCK STYLES (Show some, blur rest)
   =========================================== */

/* For sections that show first item(s) then blur rest */
.bi-partial-lock-wrapper {
  position: relative;
}

.bi-partial-visible {
  /* Items that remain visible */
}

.bi-partial-locked {
  position: relative;
}

.bi-partial-locked .bi-locked-content {
  filter: blur(5px);
}

/* Compact lock overlay for partial sections */
.bi-lock-overlay--compact {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,
    rgba(255, 254, 247, 0.6) 0%,
    rgba(255, 254, 247, 0.92) 100%);
  border-radius: var(--bi-radius);
  z-index: 10;
}

.bi-lock-overlay--compact .bi-lock-cta {
  padding: 24px;
}

.bi-lock-overlay--compact .bi-lock-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.bi-lock-overlay--compact .bi-lock-icon svg {
  width: 22px;
  height: 22px;
}

.bi-lock-overlay--compact .bi-lock-title {
  font-size: 17px;
}

.bi-lock-overlay--compact .bi-lock-desc {
  font-size: 13px;
  margin-bottom: 16px;
}

.bi-lock-overlay--compact .bi-lock-button {
  padding: 12px 24px;
  font-size: 14px;
}
