/* ==========================================================================
   GURUKRUPA MOTORS — 1-TAP AUTOMOTIVE REVIEW COCKPIT (100dvh Zero-Scroll)
   Motorsport Cockpit Simulation & Engine Push-Start Experience
   Version: 3.2.4 | Dark Asphalt (#080A0E) & Crimson / Nitro Green
   ========================================================================== */

:root {
  /* Surfaces & Backgrounds */
  --bg-cockpit: #080A0E;
  --bg-card: rgba(16, 22, 34, 0.72);
  --bg-card-border: rgba(255, 255, 255, 0.10);
  --bg-chip: rgba(22, 28, 42, 0.85);
  --bg-chip-active: rgba(255, 42, 42, 0.18);

  /* Accents */
  --accent-red: #FF2A2A;
  --accent-red-glow: rgba(255, 42, 42, 0.65);
  --accent-amber: #F59E0B;
  --accent-nitro: #10B981;
  --accent-nitro-dark: #059669;
  --accent-nitro-glow: rgba(16, 185, 129, 0.55);

  /* High-Contrast Typography */
  --text-pure: #FFFFFF;
  --text-head: #F1F5F9;
  --text-body: #CBD5E1;
  --text-muted: #8896AB;
  --text-dim: #94A3B8; /* High-visibility sunlight contrast */

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-review: 'Mukta', 'Noto Sans Marathi', 'Inter', system-ui, sans-serif;

  /* Bezels & Rings */
  --bezel-dark: #121620;
  --bezel-ring: #262E3D;
  --bezel-chrome: #475369;
}

/* 100dvh Dynamic Viewport & Keyboard Safe Flow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100dvh;
  height: auto;
  width: 100%;
  max-width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-cockpit);
  color: var(--text-body);
  font-family: var(--font-main);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Motorsport Cockpit Background */
.cockpit-body {
  min-height: 100dvh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle 500px at 50% 0%, rgba(255, 42, 42, 0.14) 0%, transparent 75%),
    radial-gradient(circle 450px at 50% 100%, rgba(16, 185, 129, 0.10) 0%, transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 20px 20px;
}

.cockpit-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, 100vw);
  max-width: 100%;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 42, 42, 0.18) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Single-Screen Cockpit Master Grid */
.cockpit-container {
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(8px, 1.8dvh, 16px) clamp(12px, 3.5vw, 18px) 28px;
  position: relative;
  z-index: 1;
  gap: clamp(8px, 1.4dvh, 12px);
  overflow: visible;
}

/* --- Header Branding & Trust --- */
.cockpit-header {
  flex-shrink: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px;
}

.logo-wrap {
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.brand-meta {
  flex: 1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: 0.8px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-red);
  margin-top: 2px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: rgba(22, 28, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  flex-shrink: 0;
}

.rating-val {
  font-size: 0.76rem;
  font-weight: 800;
  color: #FBBF24;
}

.review-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Horizontal Scroll Strips --- */
.cockpit-strip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.strip-tag {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.strip-hint {
  font-size: 0.62rem;
  color: var(--text-dim);
}

.scroll-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 2px 2px 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  scroll-padding: 2px;
  -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black calc(100% - 32px), transparent 100%);
}

.scroll-strip::-webkit-scrollbar {
  display: none;
}

/* Min 48px Touch Target Interactive Chips */
.cockpit-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--bg-chip);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  scroll-snap-align: start;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.chip-icon {
  font-size: 1rem;
}

.cockpit-chip:hover {
  background: rgba(30, 40, 60, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-pure);
}

.cockpit-chip:active {
  transform: scale(0.95) translateZ(0);
}

.cockpit-chip.active {
  background: var(--bg-chip-active);
  border-color: var(--accent-red);
  color: var(--text-pure);
  box-shadow: 0 0 14px rgba(255, 42, 42, 0.35), inset 0 0 8px rgba(255, 42, 42, 0.15);
}

/* --- Engine Push-Start Central Ignition --- */
.ignition-bay {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 0;
}

.push-start-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Realistic Machined Push-Start Ignition Button */
.engine-push-btn {
  position: relative;
  width: clamp(74px, 16vw, 84px);
  height: clamp(74px, 16vw, 84px);
  min-height: 48px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #374151 0%, #1F2937 60%, #111827 100%);
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.85);
  transition: transform 0.12s ease, filter 0.12s ease;
  transform: translateZ(0);
  will-change: transform, filter;
  backface-visibility: hidden;
}

/* Metallic Outer Ring */
.btn-bezel {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    #4B5563, #1F2937, #9CA3AF, #1F2937, #4B5563, #111827, #6B7280, #1F2937, #4B5563
  );
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

/* Pulsating Red LED Halo */
.btn-led-ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid var(--accent-red);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 14px var(--accent-red), inset 0 0 10px var(--accent-red-glow);
  animation: engine-halo-pulse 2.2s infinite ease-in-out;
  transform: translateZ(0);
  will-change: box-shadow, opacity;
  backface-visibility: hidden;
}

@keyframes engine-halo-pulse {
  0%, 100% {
    opacity: 0.65;
    box-shadow: 0 0 10px var(--accent-red), inset 0 0 6px var(--accent-red-glow);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 22px var(--accent-red), 0 0 35px rgba(255, 42, 42, 0.4), inset 0 0 12px var(--accent-red-glow);
  }
}

/* Core Push Surface */
.btn-inner-core {
  position: relative;
  z-index: 3;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #202736 0%, #0E131C 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lbl-engine {
  font-size: clamp(0.55rem, 1.8vw, 0.6rem);
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #94A3B8;
  line-height: 1;
}

.lbl-start {
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 3vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent-red);
  text-shadow: 0 0 8px rgba(255, 42, 42, 0.8);
  line-height: 1.2;
}

.lbl-stop {
  font-size: clamp(0.52rem, 1.6vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #94A3B8; /* High-visibility sunlight contrast */
  line-height: 1;
}

/* Active Mechanical Press Effect */
.engine-push-btn:active,
.engine-push-btn.is-pressed {
  transform: scale(0.93) translateZ(0);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 28px rgba(255, 42, 42, 0.85),
    inset 0 4px 12px rgba(0, 0, 0, 0.95);
  filter: brightness(1.25);
  transition: transform 0.06s ease, filter 0.06s ease, box-shadow 0.06s ease;
}

.engine-push-btn:disabled,
.engine-push-btn[aria-busy="true"] {
  cursor: not-allowed;
  opacity: 0.85;
}

/* 0.8s RPM Revving State */
.engine-push-btn.is-revving {
  animation: engine-rpm-shake 0.12s infinite alternate;
  filter: brightness(1.2);
  will-change: transform, filter;
}

.engine-push-btn.is-revving .btn-led-ring {
  border-color: #FF9900;
  box-shadow: 0 0 26px #FF9900, 0 0 45px rgba(255, 153, 0, 0.8), inset 0 0 15px rgba(255, 153, 0, 0.6);
  animation: none;
}

.engine-push-btn.is-revving .lbl-start {
  color: #FFB300;
  text-shadow: 0 0 12px #FFB300;
}

@keyframes engine-rpm-shake {
  0% { transform: scale(0.95) rotate(-1deg) translateZ(0); }
  100% { transform: scale(0.96) rotate(1deg) translateZ(0); }
}

/* Ignition Status Label */
.ignition-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-dot 1.5s infinite;
  transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(0.85) translateZ(0); }
  50% { opacity: 1; transform: scale(1.15) translateZ(0); }
}

.status-text {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

/* --- High-Precision OBD-II Diagnostic Review Card Chassis --- */
.review-cockpit-card {
  flex: 1 0 auto;
  flex-shrink: 0;
  min-height: 220px;
  height: auto;
  background-color: #0B101A;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 10px 10px;
  border: 1.5px solid #222C3D;
  border-radius: 12px;
  display: block;
  height: auto;
  overflow: visible;
  box-shadow: 
    0 10px 28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Corner Accent Rivets / Hardware Mounts */
.review-cockpit-card::before,
.review-cockpit-card::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #253142;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 0 1px #0A0F18;
  pointer-events: none;
  z-index: 4;
}

.review-cockpit-card::before {
  left: 8px;
}

.review-cockpit-card::after {
  right: 8px;
}

/* Active Tuning Pulse State on Card */
.review-cockpit-card.is-tuning {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 
    0 0 28px rgba(245, 158, 11, 0.22),
    0 10px 30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(245, 158, 11, 0.25);
}

.card-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(10, 14, 24, 0.88);
  border-bottom: 1.5px solid #1E2738;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  gap: 6px;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 9999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #34D399;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.hud-indicator-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  display: inline-block;
  transition: all 0.25s ease;
}

.hud-diag-id {
  font-family: var(--font-head);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

/* Standby & Tuning HUD Variations */
.review-cockpit-card.is-tuning .hud-pill {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.review-cockpit-card.is-tuning .hud-indicator-dot {
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
  animation: pulse-hud-amber 0.8s infinite alternate ease-in-out;
}

.review-cockpit-card.is-tuning .hud-diag-id {
  color: #FBBF24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

@keyframes pulse-hud-amber {
  0% { opacity: 0.5; transform: scale(0.85) translateZ(0); }
  100% { opacity: 1; transform: scale(1.25) translateZ(0); }
}

/* Re-tune Button (Min 44px touch target) */
.retune-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: var(--text-body);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  transform: translateZ(0);
  will-change: transform;
  flex-shrink: 0;
}

.retune-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
}

.retune-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-pure);
}

.retune-btn:active {
  transform: scale(0.94) translateZ(0);
}

.retune-btn.is-tuning {
  opacity: 0.75;
  pointer-events: none;
  border-color: rgba(245, 158, 11, 0.35);
}

.retune-btn.is-tuning .retune-svg {
  animation: retune-spin 0.85s linear infinite;
  transform: translateZ(0);
  will-change: transform;
}

@keyframes retune-spin {
  0% { transform: rotate(0deg) translateZ(0); }
  100% { transform: rotate(360deg) translateZ(0); }
}

/* --- High-Tech OBD-II Diagnostic Tuning Overlay --- */
.cockpit-tuning-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  user-select: none;
  padding: 8px 12px;
}

.review-cockpit-card.is-tuning .cockpit-tuning-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.review-cockpit-card.is-tuning .card-quote-glyph {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.review-cockpit-card.is-tuning .cockpit-textarea::before,
.review-cockpit-card.is-tuning .cockpit-textarea::placeholder {
  color: transparent;
  opacity: 0;
}

.telemetry-scanner-bay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 200px;
}

.ecu-waveform-wrap {
  position: relative;
  width: 100%;
  height: 28px;
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.ecu-waveform-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ecu-wave-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecu-wave-pulse {
  fill: none;
  stroke: #10B981;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50 150;
  stroke-dashoffset: 200;
  animation: ecu-wave-sweep 2.2s linear infinite;
  filter: drop-shadow(0 0 5px #10B981);
}

@keyframes ecu-wave-sweep {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: -200; }
}

.ecu-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #34D399, transparent);
  box-shadow: 0 0 8px #10B981;
  animation: ecu-laser-scan 1.8s ease-in-out infinite alternate;
}

@keyframes ecu-laser-scan {
  0% { left: 4%; opacity: 0.4; }
  100% { left: 96%; opacity: 1; }
}

.telemetry-readout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.telemetry-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
  display: inline-block;
}

.telemetry-dot.pulse {
  animation: pulse-telemetry-dot 0.9s infinite alternate ease-in-out;
}

@keyframes pulse-telemetry-dot {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 8px #F59E0B; }
}

.telemetry-code {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: #FBBF24;
}

.tuning-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
}

.tuning-title-mr {
  font-family: 'Noto Sans Marathi', 'Mukta', sans-serif;
  font-size: clamp(0.84rem, 2.8vw, 0.92rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  line-height: 1.25;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.tuning-sub-en {
  font-family: var(--font-main);
  font-size: clamp(0.6rem, 1.9vw, 0.66rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.tuning-progress-track {
  width: 160px;
  max-width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 2px;
}

.tuning-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-red), var(--accent-amber), var(--accent-nitro), transparent);
  border-radius: 999px;
  animation: tuning-laser-sweep 3.4s cubic-bezier(0.22, 0.1, 0.25, 1) infinite;
  transform: translateX(-100%);
  will-change: transform;
}

@keyframes tuning-laser-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  .ecu-wave-pulse {
    animation: none;
    stroke-dashoffset: 0;
  }
  .ecu-scan-line {
    animation: none;
    display: none;
  }
  .telemetry-dot.pulse {
    animation: none;
  }
  .tuning-progress-bar {
    animation: none;
    left: 0;
    transform: none;
    width: 100%;
  }
  .nitro-shine {
    animation: none;
    display: none;
  }
  .retune-btn.is-tuning .retune-svg {
    animation: none;
  }
}

/* Text Display Body (Auto-Expanding AI Response Window) */
.card-body-wrap {
  flex: 1 0 auto;
  position: relative;
  display: block;
  padding: 12px 14px;
  min-height: 120px;
  height: auto;
  overflow: visible;
}

.card-quote-glyph {
  position: absolute;
  top: -6px;
  left: 6px;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

.cockpit-textarea {
  display: block;
  width: 100%;
  height: auto;
  min-height: 96px;
  background: transparent;
  border: none;
  outline: none;
  color: #E2E8F0;
  font-family: 'Noto Sans Marathi', 'Mukta', 'Inter', system-ui, sans-serif;
  font-size: clamp(0.88rem, 2.5vw, 0.96rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.15px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: visible;
  cursor: text;
}

.cockpit-textarea:empty::before {
  content: attr(data-placeholder);
  display: block;
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: clamp(0.68rem, 2vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.45;
  text-align: center;
  padding-top: 20px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.card-hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  background: rgba(10, 14, 22, 0.6);
  border-top: 1.5px solid #1E2738;
  border-radius: 0 0 10px 10px;
  flex-shrink: 0;
}

.hud-stars {
  font-size: 0.65rem;
  font-weight: 700;
  color: #FBBF24;
}

.char-counter {
  font-size: 0.64rem;
  color: var(--text-dim);
}

/* --- Hero Launch Bay: Glowing Nitro Green CTA --- */
.cockpit-launch-bay {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nitro-cta-btn {
  position: relative;
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #10B981 0%, #059669 60%, #047857 100%);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: clamp(0.88rem, 3.4vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-shadow: 
    0 0 20px var(--accent-nitro-glow),
    0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  transform: translateZ(0);
  will-change: transform, filter, box-shadow;
  backface-visibility: hidden;
}

.nitro-cta-btn:hover {
  filter: brightness(1.08);
  box-shadow: 
    0 0 28px rgba(16, 185, 129, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.6);
}

.nitro-cta-btn:active {
  transform: scale(0.93) translateZ(0);
  filter: brightness(1.22);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 0 24px rgba(16, 185, 129, 0.85),
    inset 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.06s ease, filter 0.06s ease, box-shadow 0.06s ease;
}

.nitro-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-160%) skewX(-22deg);
  animation: nitro-shine-sweep 3s infinite ease-in-out;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
  contain: paint;
}

@keyframes nitro-shine-sweep {
  0%, 40% { transform: translateX(-160%) skewX(-22deg); }
  70%, 100% { transform: translateX(250%) skewX(-22deg); }
}

.nitro-label {
  position: relative;
  z-index: 1;
}

/* Cockpit Direct Links */
.cockpit-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 0;
}

.cockpit-direct-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  position: relative;
}

.cockpit-direct-url:hover {
  color: var(--accent-nitro);
}

/* --- High-Visibility Toast Banner (Copy & Paste Google Prompt) --- */
.cockpit-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -150%);
  width: min(92%, 420px);
  padding: 12px 18px;
  background: rgba(14, 20, 32, 0.96);
  border: 1.5px solid #10B981;
  border-radius: 14px;
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(16, 185, 129, 0.35);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cockpit-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.cockpit-toast .toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cockpit-toast .toast-text {
  flex: 1;
  color: #FFFFFF;
}

/* --- iOS Safari Auto-Zoom Fix (16px standard on focus) --- */
@media (max-width: 768px) {
  .cockpit-textarea {
    font-size: 16px; /* Prevents abrupt iOS Safari zoom & layout shifts on focus */
    line-height: 1.65;
    min-height: 96px;
    height: auto;
  }
}

/* --- Small Screen & Virtual Keyboard Overflow Protection --- */
@media (max-height: 650px) {
  .cockpit-container {
    justify-content: flex-start;
    min-height: 100dvh;
    height: auto;
    padding-bottom: 28px;
    gap: 10px;
  }
  .review-cockpit-card {
    min-height: 180px;
    flex: 0 0 auto;
    height: auto;
  }
}

