:root {
  --bg-void: #030508;
  --bg-deep: #060a12;
  --bg-glass: rgba(12, 18, 32, 0.72);
  --bg-glass-light: rgba(20, 28, 48, 0.55);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.15);
  --purple: #a78bfa;
  --purple-dim: rgba(167, 139, 250, 0.12);
  --gold: #fbbf24;
  --gold-dim: rgba(251, 191, 36, 0.15);
  --green: #34d399;
  --green-glow: #6ee7b7;
  --text: #f0f4ff;
  --text-soft: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(34, 211, 238, 0.25);
  --radius: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font);
  background: var(--bg-void);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 10px;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 400px; height: 400px;
  background: rgba(34, 211, 238, 0.12);
  top: -10%; left: -5%;
}

.orb-2 {
  width: 350px; height: 350px;
  background: rgba(167, 139, 250, 0.1);
  bottom: -5%; right: -10%;
  animation-delay: -4s;
}

.orb-3 {
  width: 250px; height: 250px;
  background: rgba(251, 191, 36, 0.06);
  top: 40%; left: 50%;
  animation-delay: -8s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

/* App shell */
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  height: min(900px, 100dvh - 20px);
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.95) 0%, rgba(6, 10, 18, 0.98) 50%, rgba(4, 6, 12, 1) 100%);
  border-radius: 36px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 80px rgba(34, 211, 238, 0.06),
    0 32px 100px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shell-shine {
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), rgba(167, 139, 250, 0.5), transparent);
  z-index: 10;
}

/* Header */
.app-header {
  padding: 18px 22px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, transparent 100%);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.brand-icon svg { width: 26px; height: 26px; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tag {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--bg-glass-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.4s ease;
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: led-pulse 2s ease-in-out infinite;
}

.ai-status.scanning .status-led {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: led-blink 0.6s ease-in-out infinite;
}

.ai-status.found .status-led {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.ai-status.empty .status-led {
  background: #94a3b8;
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.5);
  animation: none;
}

.ai-status.limit .status-led {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: led-blink 1.2s ease-in-out infinite;
}

.stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.stat-value {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-value.accent {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Range selector */
.range-selector-wrap {
  position: relative;
}

.stat-pill--range {
  flex: 1.2;
  padding: 8px 12px;
  margin: -6px 4px;
  background: linear-gradient(
    145deg,
    rgba(34, 211, 238, 0.14) 0%,
    rgba(99, 102, 241, 0.1) 50%,
    rgba(167, 139, 250, 0.12) 100%
  );
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 12px;
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.12),
    inset 0 0 20px rgba(34, 211, 238, 0.06);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-pill--range:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.2),
    inset 0 0 24px rgba(34, 211, 238, 0.08);
}

.stat-pill--range .stat-value {
  font-size: 15px;
  font-weight: 700;
}

.stat-pill--range .stat-value.accent {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.35));
}

.stat-pill--range .stat-label {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.07em;
}

.stat-pill--range.open {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow:
    0 0 32px rgba(167, 139, 250, 0.18),
    inset 0 0 24px rgba(34, 211, 238, 0.1);
}

.range-chevron {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.6;
  transition: transform 0.25s ease;
}

.stat-pill--range.open .range-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.range-panel {
  margin-top: 8px;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  animation: slide-up 0.25s ease;
}

.range-panel-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding: 0 4px;
}

.range-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.range-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.range-option:hover:not(.locked) {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.06);
}

.range-option.selected {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.08);
}

.range-option.locked {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.3);
}

.range-option-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.range-option-label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.range-option-desc {
  font-size: 11px;
  color: var(--text-dim);
}

.range-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

.range-badge.available {
  color: var(--green-glow);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.range-badge.unavailable {
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
}

.range-badge.locked {
  color: var(--text-dim);
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Main */
.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: none;
}

.app-main::-webkit-scrollbar { display: none; }

/* Neural stage */
.neural-stage {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(34, 211, 238, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.9) 0%, rgba(6, 10, 18, 0.95) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stage-hud {
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(34, 211, 238, 0.4);
  border-style: solid;
}

.hud-corner.tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.hud-corner.tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.hud-corner.bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.hud-corner.br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

/* AI Core */
.ai-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.core-rings {
  position: absolute;
  width: 160px;
  height: 160px;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-outer {
  border-color: rgba(34, 211, 238, 0.15);
  animation: ring-spin 20s linear infinite;
}

.ring-mid {
  inset: 12px;
  border-color: rgba(167, 139, 250, 0.2);
  animation: ring-spin 14s linear infinite reverse;
}

.ring-inner {
  inset: 24px;
  border-color: rgba(34, 211, 238, 0.25);
  border-style: dashed;
  animation: ring-spin 8s linear infinite;
}

.ai-core.scanning .ring-outer { animation-duration: 4s; border-color: rgba(34, 211, 238, 0.4); }
.ai-core.scanning .ring-mid { animation-duration: 3s; }
.ai-core.scanning .ring-inner { animation-duration: 2s; }

.core-orb {
  position: relative;
  width: 100px;
  height: 100px;
}

.orb-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(34, 211, 238, 0.25) 0%, transparent 50%),
    linear-gradient(145deg, #0f1a2e 0%, #0a1020 50%, #060a14 100%);
  border: 2px solid rgba(34, 211, 238, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.2),
    0 0 80px rgba(167, 139, 250, 0.1),
    inset 0 0 30px rgba(34, 211, 238, 0.08);
  transition: all 0.5s ease;
}

.ai-core.scanning .orb-inner {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow:
    0 0 60px rgba(34, 211, 238, 0.35),
    0 0 100px rgba(167, 139, 250, 0.2),
    inset 0 0 40px rgba(34, 211, 238, 0.15);
  animation: core-breathe 1.2s ease-in-out infinite;
}

.ai-core.found .orb-inner {
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow:
    0 0 60px rgba(52, 211, 153, 0.3),
    inset 0 0 40px rgba(52, 211, 153, 0.1);
}

.core-face { width: 64px; height: 64px; }

.ai-core.scanning .pupil-l,
.ai-core.scanning .pupil-r {
  animation: eye-dart 0.8s ease-in-out infinite alternate;
}

.ai-core.found .mouth {
  stroke: var(--green);
  stroke-width: 2.5;
}

.orb-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  z-index: 1;
  animation: glow-pulse 3s ease-in-out infinite;
}

.scan-beam {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
  animation: scan-beam-sweep 2s ease-in-out infinite;
  z-index: 4;
  box-shadow: 0 0 20px var(--cyan);
}

/* Progress HUD */
.progress-hud {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  z-index: 5;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.1);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke: url(#progressGrad);
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 4px var(--cyan));
}

.progress-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
}

/* Data stream */
.data-stream {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 4;
  opacity: 0.5;
}

.stream-line {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  border-radius: 2px;
  animation: stream-flow 1.5s ease-in-out infinite;
}

.stream-line:nth-child(2) { animation-delay: 0.3s; width: 80%; }
.stream-line:nth-child(3) { animation-delay: 0.6s; width: 60%; }

/* Intel panel */
.intel-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intel-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intel-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  border-radius: 14px;
  color: var(--cyan);
  border: 1px solid var(--border-glow);
}

.intel-avatar svg { width: 22px; height: 22px; }

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  animation: ring-pulse 2s ease-in-out infinite;
}

.intel-meta { flex: 1; }

.intel-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.intel-role {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.intel-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.message-glass {
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.message-glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
}

.message-glass p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.message-glass.typing p::after {
  content: "▍";
  color: var(--cyan);
  animation: cursor-blink 0.7s step-end infinite;
  margin-left: 1px;
}

/* Terminal log */
.terminal-log {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(4, 8, 16, 0.9);
  animation: slide-up 0.4s ease;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #eab308; }
.term-dot.green { background: #22c55e; }

.term-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 4px;
  flex: 1;
}

.term-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: led-blink 1s ease-in-out infinite;
}

.term-output {
  list-style: none;
  padding: 10px 12px;
  max-height: 130px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.term-output li {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  animation: log-in 0.3s ease;
  display: flex;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 6px;
  border-left: 2px solid var(--cyan);
}

.term-output li.found {
  border-left-color: var(--green);
}

.term-output li.warning {
  border-left-color: #fbbf24;
}

.term-time {
  color: var(--text-dim);
  flex-shrink: 0;
}

.term-msg { color: var(--text-soft); }
.term-msg.success { color: var(--green-glow); font-weight: 500; }
.term-msg.warning { color: #fbbf24; font-weight: 500; }

/* Opportunity card */
.opportunity-card {
  position: relative;
  border-radius: 18px;
  padding: 14px 16px;
  background:
    linear-gradient(160deg, rgba(52, 211, 153, 0.08) 0%, rgba(12, 18, 32, 0.95) 35%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid rgba(52, 211, 153, 0.2);
  overflow: hidden;
  animation: card-reveal 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
  flex-shrink: 0;
}

.card-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.card-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.opp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

.opp-verified {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--green-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-align: right;
}

.score-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-value {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.opp-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

.opp-amount-block {
  flex-shrink: 0;
  position: relative;
}

.opp-amount {
  display: block;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--green-glow) 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.25));
}

.opp-sub {
  display: block;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 3px;
}

.countdown-strip {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-soft);
  position: relative;
}

.countdown-strip svg { color: var(--gold); flex-shrink: 0; }

.countdown-strip strong {
  color: var(--text);
}

.countdown-timer {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--gold);
  font-size: 11px;
  flex-shrink: 0;
}

.opp-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  position: relative;
}

.detail-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: var(--bg-glass-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.chip-label {
  display: block;
  font-size: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip-value {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.chip-value.low { color: var(--green-glow); }

.cta-premium {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #059669 0%, #10b981 40%, #34d399 100%);
  box-shadow:
    0 6px 24px rgba(52, 211, 153, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-premium:hover, .cta-premium:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(52, 211, 153, 0.4);
}

.cta-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: cta-shine 2.5s ease-in-out infinite;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  position: relative;
}

/* Found mode — kampanya sonrası ekran optimizasyonu */
.app-shell.found-mode .app-header {
  padding-bottom: 10px;
}

.app-shell.found-mode .stats-strip {
  padding: 8px 12px;
}

.app-shell.found-mode .stat-value {
  font-size: 12px;
}

.app-shell.found-mode .app-main {
  gap: 8px;
  padding: 8px 16px 6px;
  overflow-y: auto;
}

.app-shell.found-mode .neural-stage {
  height: 88px;
  border-radius: 16px;
}

.app-shell.found-mode .core-orb {
  width: 56px;
  height: 56px;
}

.app-shell.found-mode .core-face {
  width: 40px;
  height: 40px;
}

.app-shell.found-mode .core-rings {
  width: 100px;
  height: 100px;
}

.app-shell.found-mode .progress-hud {
  width: 40px;
  height: 40px;
  top: 8px;
  right: 8px;
}

.app-shell.found-mode .progress-pct {
  font-size: 9px;
}

.app-shell.found-mode .intel-header {
  display: none;
}

.app-shell.found-mode .terminal-log {
  display: none;
}

.app-shell.found-mode .progress-hud {
  display: none;
}

.app-shell.found-mode .intel-panel {
  gap: 6px;
}

.app-shell.found-mode .message-glass {
  padding: 8px 12px;
  border-radius: 12px;
}

.app-shell.found-mode .message-glass p {
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-shell.found-mode .app-footer {
  padding: 8px 16px calc(12px + var(--safe-bottom));
}

.app-shell.found-mode .engine-btn-body {
  padding: 11px 14px;
}

.app-shell.found-mode .engine-icon {
  width: 36px;
  height: 36px;
}

.app-shell.found-mode .engine-label {
  font-size: 13px;
}

.app-shell.found-mode .engine-hint {
  font-size: 10px;
}

/* Footer */
.app-footer {
  padding: 12px 20px calc(18px + var(--safe-bottom));
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(0deg, rgba(4, 6, 12, 0.98) 0%, rgba(6, 10, 18, 0.85) 100%);
  backdrop-filter: blur(20px);
}

.engine-btn {
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  isolation: isolate;
}

.engine-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.engine-beam-streak {
  position: absolute;
  top: -30%;
  height: 160%;
  width: 24%;
  left: -42%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.08) 18%,
    rgba(34, 211, 238, 0.9) 45%,
    rgba(167, 139, 250, 0.75) 55%,
    rgba(34, 211, 238, 0.08) 82%,
    transparent 100%
  );
  transform: skewX(-22deg);
  filter: blur(0.6px);
  opacity: 0;
  animation: beam-flow-right 5.5s linear infinite;
}

.engine-btn.cta-highlight {
  padding: 2px;
  overflow: hidden;
  filter: drop-shadow(0 6px 28px rgba(34, 211, 238, 0.4));
}

.engine-btn.cta-highlight .engine-beam {
  opacity: 1;
}

.engine-btn.cta-highlight .engine-btn-body {
  background: linear-gradient(
    135deg,
    rgba(6, 120, 150, 0.85) 0%,
    rgba(37, 99, 235, 0.8) 45%,
    rgba(109, 40, 217, 0.75) 100%
  );
  border-color: rgba(103, 232, 249, 0.7);
  box-shadow:
    0 8px 36px rgba(34, 211, 238, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: cta-body-pulse 2.2s ease-in-out infinite;
}

.engine-btn.cta-highlight .engine-btn-body::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.engine-btn.cta-highlight .engine-label {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.engine-btn.cta-highlight .engine-hint {
  color: rgba(255, 255, 255, 0.8);
}

.engine-btn.cta-highlight .engine-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
  animation: cta-icon-pulse 2.2s ease-in-out infinite;
}

.engine-btn.cta-highlight .engine-arrow {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.engine-btn-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.engine-btn-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent);
}

.engine-btn:hover:not(:disabled).cta-highlight .engine-btn-body {
  border-color: rgba(165, 243, 252, 0.9);
  box-shadow:
    0 10px 40px rgba(34, 211, 238, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  filter: brightness(1.06);
}

.engine-btn:hover:not(:disabled):not(.cta-highlight) .engine-btn-body {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.1);
  background: rgba(34, 211, 238, 0.06);
}

.engine-btn.active .engine-btn-body {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.15);
  animation: engine-pulse 1.4s ease-in-out infinite;
}

.engine-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 12px;
  color: var(--cyan);
}

.engine-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.engine-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.engine-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  font-family: var(--mono);
}

.engine-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: var(--purple);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.engine-arrow .icon-block {
  display: none;
}

.engine-btn.unavailable-range .engine-arrow .icon-arrow,
.engine-btn.daily-locked .engine-arrow .icon-arrow {
  display: none;
}

.engine-btn.unavailable-range .engine-arrow .icon-block,
.engine-btn.daily-locked .engine-arrow .icon-block {
  display: block;
}

.engine-btn.unavailable-range .engine-arrow {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.engine-btn.daily-locked .engine-arrow {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--gold);
}

.engine-btn:hover:not(:disabled):not(.unavailable-range):not(.daily-locked) .engine-arrow {
  transform: translateX(2px);
  background: rgba(167, 139, 250, 0.18);
}

.engine-btn:disabled {
  cursor: not-allowed;
}

.engine-btn:disabled:not(.daily-locked):not(.unavailable-range) {
  opacity: 0.5;
}

.engine-btn:disabled.daily-locked,
.engine-btn:disabled.unavailable-range {
  opacity: 1;
}

.engine-btn:disabled .engine-btn-body {
  animation: none;
  box-shadow: none;
}

.engine-btn.daily-locked .engine-btn-body {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
  opacity: 1;
}

.engine-btn.daily-locked .engine-icon {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--gold);
}

.engine-btn.daily-locked .engine-label {
  color: var(--gold);
}

.engine-btn.daily-locked .engine-hint {
  color: rgba(251, 191, 36, 0.75);
  font-family: var(--mono);
}

.engine-btn.unavailable-range .engine-btn-body {
  border-color: rgba(100, 116, 139, 0.25);
  background: rgba(15, 23, 42, 0.5);
  opacity: 0.65;
}

.engine-btn.unavailable-range .engine-icon {
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.2);
  color: var(--text-dim);
}

.engine-btn.unavailable-range .engine-label,
.engine-btn.unavailable-range .engine-hint {
  color: var(--text-dim);
}

/* Animations */
@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes core-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes eye-dart {
  0% { transform: translateX(-3px); }
  100% { transform: translateX(3px); }
}

@keyframes scan-beam-sweep {
  0% { left: 10%; opacity: 0; }
  50% { opacity: 0.8; }
  100% { left: 90%; opacity: 0; }
}

@keyframes stream-flow {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes log-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes card-reveal {
  from { opacity: 0; transform: translateY(30px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes cta-shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes engine-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.1); }
  50% { box-shadow: 0 0 32px rgba(34, 211, 238, 0.22); }
}

@keyframes beam-flow-right {
  0% {
    left: -42%;
    opacity: 0;
  }
  4% {
    opacity: 0.85;
  }
  38% {
    left: 115%;
    opacity: 0.85;
  }
  42% {
    left: 115%;
    opacity: 0;
  }
  100% {
    left: 115%;
    opacity: 0;
  }
}

@keyframes cta-body-pulse {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(34, 211, 238, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  }
  50% {
    box-shadow:
      0 12px 44px rgba(34, 211, 238, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }
}

@keyframes cta-icon-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(34, 211, 238, 0); }
  50% { box-shadow: 0 0 14px rgba(34, 211, 238, 0.45); }
}

.dev-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 200;
  padding: 10px 16px;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.dev-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 380px) {
  .neural-stage { height: 210px; }
  .opp-amount { font-size: 32px; }
  .opp-hero { flex-direction: column; align-items: stretch; gap: 8px; }
  .countdown-strip { width: 100%; }

  .app-shell.found-mode .neural-stage { height: 76px; }
  .app-shell.found-mode .opp-amount { font-size: 30px; }
}
