
:root {
  --bg-space-black: #02040a;
  --bg-space-deep: #060b16;
  --glass-surface: rgba(12, 20, 38, 0.62);
  --glass-sub-surface: rgba(15, 23, 42, 0.58);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(34, 197, 94, 0.32);


  --dark-green-2x: #16a34a;
  --dark-green-deep: #15803d;
  --dark-green-glow: rgba(22, 163, 74, 0.45);
  --light-white: #f1f5f9;
  --muted-white: rgba(241, 245, 249, 0.72);

  --zone-red: #ef4444;       
  --zone-orange: #f97316;    
  --zone-yellow: #eab308;    
  --zone-green: #15803d;     


  --amazon-orange: #ff9900;
  --amazon-dark: #131921;
  --flipkart-blue: #2874f0;
  --flipkart-yellow: #ffe500;
  --meesho-pink: #f43397;
  --meesho-purple: #3b0764;

  --base-font-size: 1rem;
  --two-x-font-size: 2rem;   /* Strict 2x font size */
  --line-height-unit: 1.5rem;
}

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

html,
body {
  min-height: 100%;
  background-color: var(--bg-space-black);
  color: var(--light-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}


.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.blackspace-body {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(21, 128, 61, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 25%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(244, 51, 151, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #010206 0%, #050a14 55%, #020308 100%);
}

.starfield-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 25px 35px, #ffffff, transparent),
    radial-gradient(1px 1px at 90px 140px, #bae6fd, transparent),
    radial-gradient(2px 2px at 180px 70px, #86efac, transparent),
    radial-gradient(1.2px 1.2px at 260px 210px, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 340px 110px, #fde047, transparent),
    radial-gradient(1px 1px at 420px 290px, #e2e8f0, transparent),
    radial-gradient(1.8px 1.8px at 510px 60px, #ffffff, transparent),
    radial-gradient(1.2px 1.2px at 630px 190px, #7dd3fc, transparent);
  background-size: 680px 340px;
  opacity: 0.72;
  animation: cosmicDrift 90s linear infinite;
}

@keyframes cosmicDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -680px 340px;
  }
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.75rem 3.5rem;
}


.top-left-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-orb {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(21, 128, 61, 0.35), rgba(2, 6, 23, 0.92));
  border: 1.5px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 24px rgba(21, 128, 61, 0.45), inset 0 0 12px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.logo-orb:hover {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.7);
}

.brand-svg-icon {
  width: 58px;
  height: 58px;
}

.brand-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-monogram-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.35), rgba(14, 165, 233, 0.35));
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #fde047;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ffffff 0%, #86efac 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  font-size: 0.84rem;
  color: var(--muted-white);
  margin-top: 0.15rem;
}

.header-status-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--light-white);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.ghost-chip-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fde047;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.ghost-chip-btn:hover {
  background: rgba(234, 179, 8, 0.24);
  transform: translateY(-1px);
}

.eight-to-ten-line-gap-zone {
  position: relative;
  /* 10 line-heights vertical span (~15rem-20rem interactive showcase) */
  min-height: calc(var(--line-height-unit) * 10);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  align-items: stretch;
}

.gap-line-ruler {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.65rem 0.5rem;
  border-left: 2px dashed rgba(74, 222, 128, 0.35);
  background: rgba(2, 6, 23, 0.55);
  border-radius: 0 10px 10px 0;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  color: rgba(134, 239, 172, 0.65);
  user-select: none;
}

.gap-line-ruler span {
  display: block;
  line-height: 1.35;
  padding-left: 0.35rem;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.06);
}

.robot-stage-wrapper {
  background: rgba(2, 4, 12, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), inset 0 0 40px rgba(21, 128, 61, 0.12);
  display: flex;
  flex-direction: column;
}

.robot-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.robot-stage-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #86efac;
}

.mini-sv-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.robot-camera-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cam-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--light-white);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.cam-btn:hover,
.cam-btn.active {
  background: linear-gradient(135deg, #15803d, #0284c7);
  border-color: #4ade80;
  color: #ffffff;
}

.robot-canvas-box {
  position: relative;
  width: 100%;
  height: 310px;
  background: radial-gradient(circle at 50% 50%, #061024 0%, #010206 78%);
  cursor: grab;
}

.robot-canvas-box:active {
  cursor: grabbing;
}

.robot-hud-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 2;
}

.hud-badge {
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  font-size: 0.74rem;
  color: #cbd5e1;
}

.hud-badge strong {
  color: #4ade80;
}

.hud-hint {
  font-size: 0.72rem;
  color: rgba(241, 245, 249, 0.65);
  background: rgba(2, 6, 23, 0.65);
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
}

.main-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 1.75rem;
  align-items: start;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
}


.glassmorphism-card {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--dark-green-2x);
  border-radius: 20px;
  padding: 1.65rem 1.75rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  text-align: left;
}

.glass-card-top-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.glass-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #86efac;
  text-transform: uppercase;
}

/* PART 1: First Line -> 2x Font Size & Dark Green Color */
.part-1-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--two-x-font-size); /* Strict 2x (2rem) */
  line-height: 1.2;
  font-weight: 800;
  color: var(--dark-green-2x);
  text-shadow: 0 0 18px var(--dark-green-glow);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}


.mission-four-parts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mission-part {
  position: relative;
  padding: 0.55rem 0.85rem 0.55rem 2.6rem;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: var(--base-font-size);
  line-height: 1.45;
}

.mission-part::before {
  content: attr(data-part);
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(21, 128, 61, 0.25);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

/* First text inside the 4-part mission is 2x Dark Green */
.lead-2x-dark-green {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--two-x-font-size); /* Strict 2x */
  font-weight: 800;
  color: var(--dark-green-2x);
  text-shadow: 0 0 14px var(--dark-green-glow);
  vertical-align: baseline;
  margin-right: 0.2rem;
}


.light-white-text {
  color: var(--light-white);
  font-size: var(--base-font-size);
  font-weight: 500;
}


.one-to-two-line-gap {
  height: calc(var(--line-height-unit) * 1.75);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0.75rem;
  font-size: 0.72rem;
  font-family: 'Space Grotesk', monospace;
  color: rgba(148, 163, 184, 0.55);
  letter-spacing: 0.08em;
}


.glassmorphism-subcard {
  background: var(--glass-sub-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.chart-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chart-title-group h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
}

.chart-sub {
  font-size: 0.76rem;
  color: var(--muted-white);
}

.chart-sub code {
  color: #fde047;
  background: rgba(253, 224, 71, 0.12);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.live-score-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--zone-green);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(21, 128, 61, 0.6);
}

/* Spectrum Gauge */
.spectrum-gauge-wrap {
  position: relative;
  padding-bottom: 1.9rem;
  margin-bottom: 1rem;
}

.spectrum-bar {
  display: grid;
  grid-template-columns: 20fr 20fr 20fr 40fr;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 26px;
}

.spec-seg {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
}

.seg-red {
  background: linear-gradient(90deg, #b91c1c, var(--zone-red));
}
.seg-orange {
  background: linear-gradient(90deg, #ea580c, var(--zone-orange));
}
.seg-yellow {
  background: linear-gradient(90deg, #ca8a04, var(--zone-yellow));
}
.seg-green {
  background: linear-gradient(90deg, #16a34a, var(--zone-green));
}

.spectrum-pointer {
  position: absolute;
  top: 26px;
  left: 78%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pointer-diamond {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 2px solid #020617;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.pointer-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  background: #ffffff;
  color: #020617;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

/* 4-Range Bars */
.range-bars-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.range-bar-row {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.range-bar-row.active-range-row {
  border-color: #4ade80;
  background: rgba(21, 128, 61, 0.18);
  box-shadow: 0 0 20px rgba(21, 128, 61, 0.25);
  transform: translateX(4px);
}

.range-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.38rem;
}

.range-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.dot-red { background: var(--zone-red); }
.dot-orange { background: var(--zone-orange); }
.dot-yellow { background: var(--zone-yellow); }
.dot-green { background: var(--zone-green); }

.range-verdict-tag {
  font-size: 0.74rem;
  color: var(--muted-white);
}

.range-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.range-fill {
  height: 100%;
  border-radius: 999px;
}

.fill-red { background: var(--zone-red); }
.fill-orange { background: var(--zone-orange); }
.fill-yellow { background: var(--zone-yellow); }
.fill-green { background: #22c55e; }


.satyavadi-court-card {
  margin-bottom: 1.35rem;
  border-top: 3px solid #38bdf8;
}

.court-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.court-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.court-sv-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.court-kicker {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #38bdf8;
}

.court-title-wrap h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.court-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 153, 0, 0.18);
  border: 1px solid var(--amazon-orange);
  color: #fde047;
}

.court-form {
  margin-bottom: 1.15rem;
}

.input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--light-white);
  margin-bottom: 0.45rem;
}

.url-input-row {
  display: flex;
  gap: 0.65rem;
}

.url-input {
  flex: 1;
  background: rgba(2, 6, 23, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.78rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.url-input:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.audit-submit-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #15803d 0%, #0d9488 100%);
  color: #ffffff;
  border: 1px solid #4ade80;
  border-radius: 12px;
  padding: 0.78rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audit-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.6);
}

.btn-sv-icon {
  width: 22px;
  height: 22px;
}

.test-controls-bar {
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.Quick-Presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.preset-label {
  font-size: 0.74rem;
  color: var(--muted-white);
  margin-right: 0.25rem;
}

.sample-url-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.62rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.sample-url-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.25);
}

.manual-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: var(--muted-white);
}

.manual-score-row input[type="range"] {
  width: 180px;
  accent-color: #22c55e;
  cursor: pointer;
}


.audit-verdict-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.28), rgba(2, 6, 23, 0.85));
  border: 1px solid rgba(74, 222, 128, 0.45);
  margin-bottom: 1rem;
}

.verdict-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #86efac;
}

.verdict-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.15rem 0;
}

.verdict-desc {
  font-size: 0.8rem;
  color: var(--light-white);
}

.verdict-score-orb {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.9);
  border: 3px solid #22c55e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.orb-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.orb-max {
  font-size: 0.66rem;
  color: var(--muted-white);
}

/* Dynamic Product Metrics Grid */
.dynamic-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.metric-tile {
  padding: 0.68rem 0.85rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.metric-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-white);
}

.metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

/* Platform Ranking Banner (Best Platform & Below Best Platform) */
.platform-ranking-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rank-slot {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.7);
}

.best-platform-slot {
  border: 1.5px solid #4ade80;
  background: linear-gradient(160deg, rgba(21, 128, 61, 0.24), rgba(2, 6, 23, 0.8));
}

.below-best-platform-slot {
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.16), rgba(2, 6, 23, 0.8));
}

.rank-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.rank-crown {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.06em;
}

.rank-runner {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.06em;
}

.rank-sv-icon {
  width: 20px;
  height: 20px;
}

.rank-platform-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
}

.rank-platform-detail {
  font-size: 0.74rem;
  color: var(--muted-white);
  margin-top: 0.15rem;
}

.ecommerce-platforms-section {
  background: var(--glass-sub-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
}

.platforms-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.platforms-sec-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.platforms-sub {
  font-size: 0.75rem;
  color: #86efac;
}

.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.ecom-card {
  position: relative;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ecom-card:hover {
  transform: translateY(-3px);
}


.card-amazon {
  border-top: 4px solid var(--amazon-orange);
}
.card-flipkart {
  border-top: 4px solid var(--flipkart-blue);
}
.card-meesho {
  border-top: 4px solid var(--meesho-pink);
}

.ecom-card.winner-platform-card {
  border-color: #4ade80;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.3);
}

.ecom-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.ecom-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ecom-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.ecom-brand-lockup h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

.ecom-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fde047;
}

.sv-connected-seal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-sv-svg {
  width: 22px;
  height: 22px;
}

.ecom-card-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
}

.ecom-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.ecom-stat span {
  color: var(--muted-white);
}

.ecom-stat strong {
  font-family: 'Space Grotesk', sans-serif;
  color: #ffffff;
}


.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(1, 3, 10, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.popup-backdrop.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.popup-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border: 1.5px solid rgba(74, 222, 128, 0.55);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(21, 128, 61, 0.35);
  animation: modalPopIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalPopIn {
  from {
    transform: scale(0.92) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.popup-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.popup-logo-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.22);
  border: 1.5px solid #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popup-sv-svg {
  width: 46px;
  height: 46px;
}

.popup-kicker {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fde047;
}

.popup-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
}

.popup-score-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(21, 128, 61, 0.25);
  border: 1.5px solid #22c55e;
  margin-bottom: 1.15rem;
}

.popup-score-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.popup-zone-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.popup-zone-info strong {
  font-size: 0.92rem;
  color: #ffffff;
}

.popup-zone-info span {
  font-size: 0.8rem;
  color: #fde047;
}

.popup-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.popup-detail-item {
  padding: 0.7rem 0.85rem;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.popup-detail-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-white);
}

.popup-detail-item strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: #ffffff;
}

.truncate-url {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-green {
  color: #4ade80 !important;
}

.popup-footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .main-split-grid {
    grid-template-columns: 1fr;
  }
  .platform-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .eight-to-ten-line-gap-zone {
    grid-template-columns: 1fr;
  }
  .gap-line-ruler {
    display: none;
  }
  .url-input-row,
  .platform-ranking-banner,
  .platform-cards-grid,
  .popup-details-grid,
  .dynamic-metrics-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
