/* ==========================================================================
   NiftyHeatmap.com — Multi-Index Broadcast Heatmap Styles (Kiosk-Safe)
   Zero top bars / zero empty grid slots across all 6 indices & all devices
   ========================================================================== */

:root {
  --bg-canvas: #050809;
  --row-divider: rgba(212, 224, 214, 0.72);
  --col-divider: rgba(255, 255, 255, 0.16);
  --tile-bottom-shade: rgba(0, 0, 0, 0.42);
  --navy-top: #07124a;
  --navy-bottom: #030829;
  --navy-flash-top: #102585;
  --navy-flash-bottom: #07134e;
  --nifty-yellow: #fff200;
  --up-triangle: #27d64f;
  --down-triangle: #ff3b3b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
}

body {
  width: 100%;
  min-height: 100dvh;
  background-color: var(--bg-canvas);
  color: #ffffff;
  font-family: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Lock scroll & hide SEO footer in Fullscreen TV Kiosk Mode and Embed Mode */
body.embed-page,
:fullscreen,
:fullscreen body,
:-webkit-full-screen,
:-webkit-full-screen body {
  overflow: hidden !important;
  height: 100%;
}

:fullscreen .seo-section,
:-webkit-full-screen .seo-section {
  display: none !important;
}

/* ==========================================================================
   Base Full-Viewport Heatmap Grid + Per-Index Exact Desktop Geometries
   ========================================================================== */
.heatmap-grid {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-auto-flow: dense;
  background-color: #0b110c;
  border-top: 2px solid var(--row-divider);
}

/* 1. NIFTY 50 & NIFTY NEXT 50: 7x8 = 56 cells (50 stocks + 3x2 center) */
.heatmap-grid.grid-nifty50,
.heatmap-grid.grid-niftynext50 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
}
.grid-nifty50 .nifty-center,
.grid-niftynext50 .nifty-center {
  grid-column: 3 / span 3;
  grid-row: 4 / span 2;
}

/* 2. BANK NIFTY: 4x4 = 16 cells (12 stocks + 2x2 center) */
.heatmap-grid.grid-banknifty {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}
.grid-banknifty .nifty-center {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
}
.grid-banknifty .tile-symbol { font-size: clamp(18px, 3.4vw, 52px); }
.grid-banknifty .tile-pct    { font-size: clamp(15px, 2.5vw, 38px); }

/* 3. NIFTY IT: 4x3 = 12 cells (10 stocks + 2x1 center) */
.heatmap-grid.grid-niftyit {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.grid-niftyit .nifty-center {
  grid-column: 2 / span 2;
  grid-row: 2 / span 1;
}
.grid-niftyit .tile-symbol { font-size: clamp(18px, 3.4vw, 52px); }
.grid-niftyit .tile-pct    { font-size: clamp(15px, 2.6vw, 38px); }

/* 4. NIFTY PHARMA: 6x4 = 24 cells (20 stocks + 2x2 center) */
.heatmap-grid.grid-niftypharma {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}
.grid-niftypharma .nifty-center {
  grid-column: 3 / span 2;
  grid-row: 2 / span 2;
}
.grid-niftypharma .tile-symbol { font-size: clamp(15px, 2.55vw, 42px); }
.grid-niftypharma .tile-pct    { font-size: clamp(13px, 1.9vw, 30px); }

/* 5. SENSEX 30: 9x4 = 36 cells (30 stocks + 3x2 center, 100% symmetric!) */
.heatmap-grid.grid-sensex {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}
.grid-sensex .nifty-center {
  grid-column: 4 / span 3;
  grid-row: 2 / span 2;
}
.grid-sensex .tile-symbol { font-size: clamp(13px, 1.95vw, 34px); }
.grid-sensex .tile-pct    { font-size: clamp(12px, 1.55vw, 26px); }

/* ==========================================================================
   Individual Stock Tile — Authentic CNBC Awaaz Two-Tone Broadcast Look
   ========================================================================== */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--col-divider);
  border-bottom: 2px solid var(--row-divider);
  overflow: hidden;
  will-change: transform, background-color, filter;
  transition: background-color 0.45s ease;
}

.tile-symbol {
  flex: 1.18;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px 0;
  font-size: clamp(14px, 2.25vw, 38px);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-pct {
  flex: 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1px;
  background: var(--tile-bottom-shade);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(12px, 1.65vw, 27px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #f6fff6;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

/* Real-Time Tick Flash Animations */
@keyframes tickFlashUp {
  0% {
    filter: brightness(1.65) saturate(1.25);
    box-shadow: inset 0 0 0 2px rgba(105, 255, 138, 0.95);
  }
  45% {
    filter: brightness(1.28) saturate(1.12);
    box-shadow: inset 0 0 0 1px rgba(105, 255, 138, 0.45);
  }
  100% {
    filter: brightness(1) saturate(1);
    box-shadow: inset 0 0 0 0 transparent;
  }
}

@keyframes tickFlashDown {
  0% {
    filter: brightness(1.65) saturate(1.3);
    box-shadow: inset 0 0 0 2px rgba(255, 108, 108, 0.95);
  }
  45% {
    filter: brightness(1.28) saturate(1.12);
    box-shadow: inset 0 0 0 1px rgba(255, 108, 108, 0.45);
  }
  100% {
    filter: brightness(1) saturate(1);
    box-shadow: inset 0 0 0 0 transparent;
  }
}

.tile.flash-up   { animation: tickFlashUp 0.85s ease-out; }
.tile.flash-down { animation: tickFlashDown 0.85s ease-out; }

/* ==========================================================================
   Center Index Block (Permanent on Desktop, 4s-per-10s Overlay on Mobile)
   ========================================================================== */
.nifty-center {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  padding: 6px 10px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-top) 0%, var(--navy-bottom) 100%);
  border: 2px solid rgba(190, 210, 255, 0.45);
  box-shadow:
    inset 0 0 32px rgba(0, 0, 0, 0.55),
    0 4px 20px rgba(0, 0, 0, 0.6);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s ease;
}

.nifty-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 20%,
    rgba(255, 242, 0, 0.24) 48%,
    rgba(255, 255, 255, 0.32) 52%,
    transparent 78%
  );
  transform: translateX(-130%);
  pointer-events: none;
}

.nifty-center.is-flashing {
  background: linear-gradient(180deg, var(--navy-flash-top) 0%, var(--navy-flash-bottom) 100%);
  border-color: var(--nifty-yellow);
  box-shadow:
    0 0 28px rgba(255, 242, 0, 0.52),
    inset 0 0 28px rgba(255, 242, 0, 0.24);
  transform: scale(1.018);
}

.nifty-center.is-flashing .nifty-sweep {
  animation: broadcastSweep 1.05s ease-in-out forwards;
}

@keyframes broadcastSweep {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

.nifty-title {
  display: block;
  color: var(--nifty-yellow);
  font-size: clamp(24px, 4.1vw, 68px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.98;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.nifty-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.24em;
  margin-top: 2px;
  color: var(--nifty-yellow);
  font-size: clamp(20px, 3.3vw, 54px);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.nifty-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

.nifty-arrow.up {
  border-left: 0.35em solid transparent;
  border-right: 0.35em solid transparent;
  border-bottom: 0.6em solid var(--up-triangle);
}

.nifty-arrow.down {
  border-left: 0.35em solid transparent;
  border-right: 0.35em solid transparent;
  border-top: 0.6em solid var(--down-triangle);
}

.nifty-pct-sub {
  margin-top: 3px;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(255, 242, 0, 0.14);
  border: 1px solid rgba(255, 242, 0, 0.35);
  color: #fff9a6;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(10px, 1.05vw, 15px);
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.84;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nifty-center.is-flashing .nifty-pct-sub {
  opacity: 1;
  background: rgba(255, 242, 0, 0.28);
  color: #ffffff;
  transform: scale(1.06);
}

/* ==========================================================================
   Floating Auto-Hiding Control Pill (100% Kiosk-Safe!)
   In Fullscreen Kiosk Mode, disappears completely when idle until mouse moves
   ========================================================================== */
.hud-bar {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100vw - 24px);
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.58);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: #e8eef8;
  transition: opacity 0.45s ease, transform 0.35s ease;
}

.hud-bar.is-idle {
  opacity: 0.14;
  transform: translateY(4px);
}

/* Pure unobstructed TV/Kiosk display in Fullscreen when idle */
:fullscreen .hud-bar.is-idle,
:-webkit-full-screen .hud-bar.is-idle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.hud-bar:hover,
.hud-bar:focus-within {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #cfe4d6;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d64f;
  box-shadow: 0 0 8px #22d64f;
  animation: livePulse 1.6s infinite;
}

.status-dot.demo {
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.78); }
}

.hud-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hud-btn:hover { background: rgba(255, 255, 255, 0.22); }

.hud-btn.playing {
  background: rgba(22, 163, 74, 0.88);
  border-color: #4ade80;
}

.hud-btn.icon-only {
  padding: 5px 9px;
  font-size: 14px;
  line-height: 1;
}

.hud-select {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 185px;
}

.hud-select.index-select {
  background: rgba(255, 242, 0, 0.14);
  border-color: rgba(255, 242, 0, 0.4);
  color: #fff68a;
  max-width: 132px;
}

.hud-select option,
.hud-select optgroup {
  background: #0b1020;
  color: #ffffff;
}

.hud-slider {
  width: 58px;
  accent-color: #22d64f;
  cursor: pointer;
}

/* Hidden semantic SEO nav links (crawlable by Google, zero visual clutter in kiosk mode) */
.sr-only-nav {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Responsive Mobile & Tablet (< 1024px)
   Exact zero-gap grids + Center Index Box Visible for 4 FULL SECONDS / 10s
   ========================================================================== */
@media (max-width: 1023px) {
  .heatmap-grid.grid-nifty50,
  .heatmap-grid.grid-niftynext50 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
  }

  .heatmap-grid.grid-banknifty {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .heatmap-grid.grid-niftyit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  .heatmap-grid.grid-niftypharma {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  .heatmap-grid.grid-sensex {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }

  .tile { border-bottom-width: 1.5px; }

  .tile-symbol {
    font-size: clamp(11px, 3.4vw, 22px);
    letter-spacing: 0.015em;
  }

  .tile-pct {
    font-size: clamp(10px, 2.75vw, 18px);
  }

  .grid-banknifty .tile-symbol,
  .grid-niftyit .tile-symbol { font-size: clamp(15px, 5.2vw, 30px); }
  .grid-banknifty .tile-pct,
  .grid-niftyit .tile-pct    { font-size: clamp(13px, 4.1vw, 24px); }

  /* Center overlay on mobile: pops in for 4 FULL SECONDS every 10s */
  .heatmap-grid .nifty-center {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    left: 50%;
    top: 50%;
    width: 68vw;
    height: 22dvh;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    border-width: 2px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.85);
  }

  .heatmap-grid .nifty-center.is-flashing {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
  }

  .nifty-title   { font-size: clamp(22px, 7.2vw, 44px); }
  .nifty-metrics { font-size: clamp(16px, 5.3vw, 34px); gap: 0.22em; }
  .nifty-pct-sub { font-size: clamp(10px, 2.7vw, 14px); }

  /* Compact mobile floating pill */
  .hud-bar {
    right: 8px;
    bottom: 8px;
    padding: 5px 8px;
    gap: 5px;
  }

  .hud-status,
  .hud-slider {
    display: none;
  }

  .hud-select {
    max-width: 125px;
    font-size: 10.5px;
  }

  .hud-select.index-select {
    max-width: 98px;
  }
}

@media (min-width: 1800px) {
  .tile { border-bottom-width: 3px; }
}


/* ==========================================================================
   Below-the-Fold SEO Section (Live Summary, Breadth, FAQ & Free Embed Widget)
   Invisible above the 100dvh fold; completely hidden in Fullscreen Kiosk Mode
   ========================================================================== */
.seo-section {
  background: linear-gradient(180deg, #060914 0%, #090e1c 55%, #050811 100%);
  border-top: 2px solid rgba(255, 242, 0, 0.22);
  color: #dbe6f5;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  user-select: text;
  padding: 44px 20px 88px;
}

.seo-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.seo-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.seo-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff200;
  margin-bottom: 6px;
}

.seo-hero p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #a9bbd4;
  max-width: 720px;
}

.back-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 242, 0, 0.14);
  border: 1px solid rgba(255, 242, 0, 0.4);
  color: #fff68a;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.back-top-btn:hover {
  background: rgba(255, 242, 0, 0.26);
}

/* Live Market Breadth & Advance/Decline Bar */
.breadth-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px;
}

.breadth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.adv-count { color: #4ade80; }
.dec-count { color: #f87171; }
.breadth-label { color: #94a3b8; font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }

.breadth-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #8f1418;
  overflow: hidden;
  display: flex;
}

.breadth-bar-adv {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  transition: width 0.5s ease;
}

/* Live Top Gainers & Top Losers Grid */
.movers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mover-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px;
}

.mover-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mover-card.gainers h2 { color: #4ade80; }
.mover-card.losers h2  { color: #f87171; }

.mover-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mover-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  font-weight: 600;
}

.mover-sym {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.mover-pct.up   { color: #4ade80; font-variant-numeric: tabular-nums; }
.mover-pct.down { color: #f87171; font-variant-numeric: tabular-nums; }

/* All Indian Market Indices Internal Linking Hub */
.indices-hub h2,
.embed-card h2,
.faq-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.indices-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.index-link-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.index-link-tile:hover,
.index-link-tile.active {
  border-color: rgba(255, 242, 0, 0.55);
  background: rgba(255, 242, 0, 0.08);
  transform: translateY(-1px);
}

.index-link-tile strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: #fff200;
}

.index-link-tile span {
  font-size: 11.5px;
  color: #94a3b8;
}

/* Free Embeddable Widget Generator Card (Backlink Engine) */
.embed-card {
  background: linear-gradient(135deg, rgba(7, 18, 74, 0.72), rgba(12, 20, 44, 0.85));
  border: 1px solid rgba(255, 242, 0, 0.28);
  border-radius: 16px;
  padding: 22px 24px;
}

.embed-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #b8c9e0;
  margin-bottom: 16px;
}

.embed-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.embed-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.embed-field select {
  background: rgba(5, 8, 18, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.embed-btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 242, 0, 0.5);
  background: #fff200;
  color: #040c38;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.embed-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.embed-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-weight: 600;
}

.embed-code-box {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(3, 6, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #86efac;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

.embed-preview-wrap {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: none;
}

.embed-preview-wrap.open { display: block; }

.embed-preview-wrap iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
}

/* Collapsible SEO FAQ Accordions */
.faq-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 20px 22px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.faq-item summary {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: #fff200;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 16px 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #a9bbd4;
}

.seo-footer-note {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Embeddable Widget Page (embed.html) — Ultra-Clean Frame + Backlink Strip
   ========================================================================== */
body.embed-page {
  display: flex;
  flex-direction: column;
}

body.embed-page .heatmap-grid {
  flex: 1;
  height: calc(100dvh - 28px);
}

.embed-brand-bar {
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #040a24;
  border-top: 1px solid rgba(255, 242, 0, 0.3);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  color: #cbd5e1;
}

.embed-brand-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.embed-brand-link {
  color: #fff200;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.embed-brand-link:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .movers-grid { grid-template-columns: 1fr; }
  .seo-section { padding: 28px 14px 80px; }
}
