:root {
  --red: #ce1126;
  --blue: #0c1c8c;
  --green: #2f7d3b;
  --gold: #f1bd2b;
  --teal: #007a78;
  --ink: #071126;
  --panel: #111d3f;
  --panel-2: #1b2a52;
  --glass: rgba(255, 255, 255, 0.1);
  --muted: rgba(237, 244, 255, 0.68);
  --text: #edf4ff;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 76px rgba(0, 0, 0, 0.42);
  --panel-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050b1d;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(206, 17, 38, 0.24) 0 8%, transparent 8% 24%, rgba(12, 28, 140, 0.24) 24% 40%, transparent 40% 58%, rgba(47, 125, 59, 0.22) 58% 74%, transparent 74% 100%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #040916 0%, #071126 46%, #061d18 100%);
  letter-spacing: 0;
}

button,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  display: block;
  max-width: 100%;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(244, 196, 48, 0.14) 30% 31%, transparent 31% 61%, rgba(47, 125, 59, 0.12) 61% 62%, transparent 62%),
    linear-gradient(180deg, #071126 0%, #0b1736 43%, #06231d 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 72%);
  opacity: 0.76;
  z-index: 0;
}

.app-shell::after {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  top: 124px;
  height: 58px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(206, 17, 38, 0.24), rgba(244, 196, 48, 0.2), rgba(47, 125, 59, 0.22), transparent);
  transform: rotate(-7deg);
  opacity: 0.72;
  z-index: 0;
}

.status-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  background:
    linear-gradient(90deg, rgba(206, 17, 38, 0.2), rgba(12, 28, 140, 0.16), rgba(47, 125, 59, 0.18)),
    rgba(7, 17, 38, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.status-line,
.brand-row,
.input-actions,
.case-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-line {
  margin-bottom: 9px;
  color: rgba(237, 244, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.brand-row {
  justify-content: flex-start;
}

.edition-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.edition-switcher a {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(237, 244, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.edition-switcher a.active {
  color: #071126;
  background: linear-gradient(135deg, #fff4ad, var(--gold));
  box-shadow: 0 10px 22px rgba(244, 196, 48, 0.2);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 196, 48, 0.9));
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(244, 196, 48, 0.2);
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-row p,
.brand-row strong,
.screen-title h1,
.screen-title p,
.feature-story h2,
.feature-story p,
.news-list p,
.case-card p,
.overlay-card p {
  margin: 0;
}

.brand-row p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.brand-row strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 15px;
}

.icon-button {
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #071126;
  background: linear-gradient(135deg, #fff3aa, var(--gold));
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(244, 196, 48, 0.26);
}

.app-main {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 150px);
  padding: 16px 14px 88px;
}

.tab-screen {
  display: none;
  animation: screenIn 240ms ease;
}

.tab-screen.active {
  display: block;
}

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

.screen-title {
  position: relative;
  margin-bottom: 16px;
}

.screen-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 126px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  box-shadow: 0 0 18px rgba(244, 196, 48, 0.24);
}

.eyebrow,
.pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.eyebrow {
  margin-bottom: 9px;
  padding: 7px 10px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(206, 17, 38, 0.18), rgba(255, 255, 255, 0.1), rgba(47, 125, 59, 0.15));
  border: 1px solid var(--line);
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.screen-title h1 {
  color: #fff;
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}

.capture-hero,
.feature-story,
.studio-stage,
.input-card,
.result-card,
.case-card,
.trend-chart,
.news-list article,
.settings-list,
.saved-case-list,
.signal-list,
.photo-strip,
.trend-list article,
.intelligence-strip,
.intel-card,
.visual-verdict,
.artifact-grid article,
.story-carousel article,
.trend-map-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(8, 18, 42, 0.74);
  box-shadow: var(--panel-shadow);
}

.capture-hero {
  position: relative;
  min-height: 288px;
  margin-bottom: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(206, 17, 38, 0.26), transparent 34%),
    linear-gradient(220deg, rgba(47, 125, 59, 0.28), transparent 45%),
    #081329;
}

.capture-hero img {
  width: 100%;
  height: 288px;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(1.22) contrast(1.06);
}

.capture-hero::after,
.feature-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 38, 0.04), rgba(7, 17, 38, 0.74)),
    linear-gradient(90deg, rgba(206, 17, 38, 0.14), transparent 42%, rgba(47, 125, 59, 0.14));
  z-index: 1;
}

.capture-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
  opacity: 0.34;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 22px rgba(244, 196, 48, 0.75);
  animation: scanLine 3s ease-in-out infinite;
  z-index: 4;
}

@keyframes scanLine {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(216px); opacity: 1; }
}

.capture-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: grid;
  gap: 6px;
}

.capture-copy span,
.overlay-card span {
  color: rgba(237, 244, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.capture-copy strong {
  max-width: 274px;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.intelligence-strip {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 9px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 22px;
  background:
    linear-gradient(100deg, rgba(244, 196, 48, 0.12), transparent 42%, rgba(87, 214, 210, 0.12)),
    rgba(255, 255, 255, 0.07);
}

.intel-card {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  padding: 12px;
  border-radius: 18px;
}

.intel-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.intel-card span,
.intel-card strong,
.artifact-grid strong,
.artifact-grid p,
.story-carousel span,
.trend-map-card strong {
  position: relative;
  z-index: 1;
}

.intel-card span,
.story-carousel span {
  color: rgba(237, 244, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.intel-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 14px;
}

.intel-card.map svg {
  width: 100%;
  height: 70px;
  margin-top: 2px;
}

.intel-card.map path {
  fill: none;
  stroke: rgba(244, 196, 48, 0.9);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: routeFlow 6s linear infinite;
}

.intel-card.map circle {
  fill: #8de39a;
  stroke: #fff;
  stroke-width: 4;
}

.micro-bars {
  height: 64px;
  margin-top: 10px;
  display: flex;
  align-items: end;
  gap: 6px;
}

.micro-bars i {
  flex: 1;
  min-width: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #57d6d2, var(--gold) 66%, var(--red));
  box-shadow: 0 0 18px rgba(87, 214, 210, 0.28);
  animation: barDance 1.9s ease-in-out infinite;
}

.micro-bars i:nth-child(1) { height: 36%; animation-delay: -120ms; }
.micro-bars i:nth-child(2) { height: 72%; animation-delay: -240ms; }
.micro-bars i:nth-child(3) { height: 54%; animation-delay: -360ms; }
.micro-bars i:nth-child(4) { height: 92%; animation-delay: -480ms; }
.micro-bars i:nth-child(5) { height: 62%; animation-delay: -600ms; }

@keyframes barDance {
  0%, 100% { transform: scaleY(0.82); transform-origin: bottom; }
  50% { transform: scaleY(1.08); transform-origin: bottom; }
}

.claim-routes {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.claim-routes path {
  fill: none;
  stroke: rgba(244, 196, 48, 0.82);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 10 13;
  filter: drop-shadow(0 0 8px rgba(244, 196, 48, 0.68));
  animation: routeFlow 7s linear infinite;
}

.claim-routes path:nth-child(2) {
  stroke: rgba(87, 214, 210, 0.78);
  animation-duration: 8.5s;
}

.claim-routes circle {
  fill: #fff4b5;
  stroke: rgba(7, 17, 38, 0.8);
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(244, 196, 48, 0.8));
}

@keyframes routeFlow {
  to { stroke-dashoffset: -92; }
}

.verification-lens {
  position: absolute;
  right: 15px;
  top: 16px;
  z-index: 5;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #071126;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 32%, rgba(244, 196, 48, 0.78) 33% 48%, rgba(87, 214, 210, 0.18) 49% 100%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), 0 20px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.verification-lens span {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 24deg, transparent, rgba(7, 17, 38, 0.42), transparent 34%);
  animation: lensSpin 4.5s linear infinite;
}

.verification-lens strong {
  position: relative;
  z-index: 1;
  font-size: 14px;
  letter-spacing: 0;
}

@keyframes lensSpin {
  to { transform: rotate(360deg); }
}

.mini-radar {
  position: absolute;
  right: 17px;
  bottom: 94px;
  z-index: 5;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(87, 214, 210, 0.5);
  background:
    repeating-radial-gradient(circle, rgba(87, 214, 210, 0.22) 0 1px, transparent 1px 14px),
    rgba(7, 17, 38, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.mini-radar i,
.mini-radar b {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
}

.mini-radar i {
  background: conic-gradient(from 0deg, rgba(87, 214, 210, 0.7), transparent 38%);
  animation: radarSweep 3s linear infinite;
}

.mini-radar b {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-radar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

@keyframes radarSweep {
  to { transform: rotate(360deg); }
}

.source-stack {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.source-stack span {
  min-width: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 8px;
  color: #fff;
  background: rgba(7, 17, 38, 0.66);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.input-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  margin-bottom: 12px;
}

.input-card::before {
  content: "";
  position: absolute;
  right: -24px;
  top: -38px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(244, 196, 48, 0.22);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(244, 196, 48, 0.18), rgba(87, 214, 210, 0.08));
  transform: rotate(18deg);
}

.input-card label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 94px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

textarea:focus {
  border-color: rgba(244, 196, 48, 0.74);
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.12);
}

.input-actions {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.primary-button,
.ghost-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

.primary-button {
  color: #071126;
  background: linear-gradient(135deg, #fff4ad, var(--gold) 62%, #f29438);
  box-shadow: 0 12px 26px rgba(244, 196, 48, 0.22);
}

.ghost-button {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  border: 1px solid var(--line);
}

.capture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.capture-tile,
.mode-button {
  border: 1px solid var(--line);
  border-radius: 18px;
  color: rgba(237, 244, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.capture-tile {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 6px;
}

.capture-tile span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #071126;
  background: linear-gradient(135deg, #fff3aa, var(--gold));
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(244, 196, 48, 0.18);
}

.result-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(206, 17, 38, 0.13), transparent 42%, rgba(47, 125, 59, 0.11)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.result-card > * {
  position: relative;
  z-index: 1;
}

.risk-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--red) 0 68%, rgba(255, 255, 255, 0.14) 68% 100%);
  box-shadow: 0 0 0 8px rgba(206, 17, 38, 0.1), 0 18px 32px rgba(0, 0, 0, 0.24);
}

.risk-ring span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #071126;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pill {
  padding: 6px 8px;
  color: #071126;
  background: #fff;
}

.pill.danger { background: #ff96a2; }
.pill.warning { background: var(--gold); }
.pill.success { background: #8de39a; }
.pill.info { background: #9aa8ff; }

.result-card h2 {
  margin: 8px 0 5px;
  color: #fff;
  font-size: 17px;
}

.result-card p,
.signal-row strong,
.signal-row em,
.news-list p,
.feature-story p,
.trend-list span,
.case-card p,
.settings-list button,
.saved-case-list {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.signal-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.signal-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 66px 1fr 42px;
  gap: 8px;
  align-items: center;
  border-radius: 16px;
  padding: 9px;
  background:
    linear-gradient(90deg, rgba(244, 196, 48, 0.11), rgba(255, 255, 255, 0.06));
}

.signal-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), #57d6d2);
}

.signal-row span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.signal-row strong {
  color: #fff;
}

.signal-row em {
  font-style: normal;
  text-align: right;
  font-weight: 900;
}

.visual-verdict {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.visual-verdict::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(244, 196, 48, 0.14), transparent 36%, rgba(87, 214, 210, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
}

.visual-verdict strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.verdict-illustration {
  position: relative;
  z-index: 1;
  height: 108px;
}

.shield-shape,
.doc-shape,
.spark-line {
  position: absolute;
  display: block;
}

.shield-shape {
  left: 8px;
  top: 7px;
  width: 72px;
  height: 82px;
  border-radius: 28px 28px 32px 32px;
  display: grid;
  place-items: center;
  color: #071126;
  background:
    linear-gradient(135deg, #8de39a, #57d6d2 58%, #fff4ad);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  font-size: 24px;
  font-weight: 900;
}

.doc-shape {
  right: 2px;
  top: 22px;
  width: 64px;
  height: 76px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(229, 238, 255, 0.86));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  transform: rotate(9deg);
}

.doc-shape::before,
.doc-shape::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 5px;
  border-radius: 999px;
  background: rgba(12, 28, 140, 0.26);
}

.doc-shape::before { top: 22px; }
.doc-shape::after { top: 39px; width: 64%; }

.spark-line {
  left: 24px;
  right: 10px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  box-shadow: 0 0 18px rgba(244, 196, 48, 0.5);
}

.mode-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mode-button {
  min-height: 44px;
}

.mode-button.active {
  color: #071126;
  background: linear-gradient(135deg, #fff4ad, var(--gold));
  border-color: var(--gold);
  box-shadow: 0 12px 24px rgba(244, 196, 48, 0.2);
}

.studio-stage {
  position: relative;
  overflow: hidden;
  min-height: 482px;
  margin-bottom: 12px;
  background:
    linear-gradient(145deg, rgba(206, 17, 38, 0.12), transparent 34%, rgba(47, 125, 59, 0.12)),
    rgba(255, 255, 255, 0.07);
}

.studio-scene {
  position: absolute;
  inset: 0;
  display: none;
  padding: 12px;
  animation: screenIn 220ms ease;
}

.studio-scene.active {
  display: block;
}

.studio-scene > img,
.studio-scene > video {
  width: 100%;
  height: 100%;
  min-height: 458px;
  border-radius: 20px;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.overlay-card,
.transcript-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 38, 0.92), rgba(22, 42, 82, 0.78));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.overlay-card strong {
  display: block;
  margin: 9px 0 5px;
  font-size: 16px;
}

.audio-scene {
  display: none;
  align-content: center;
  justify-items: center;
  gap: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 24px),
    linear-gradient(135deg, rgba(244, 196, 48, 0.22), transparent 38%, rgba(87, 214, 210, 0.2)),
    rgba(255, 255, 255, 0.04);
}

.audio-scene.active {
  display: grid;
}

.waveform {
  height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.waveform i {
  width: 8px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), #fff2a8);
  animation: wave 1.3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -80ms);
}

.waveform.playing i {
  background: linear-gradient(180deg, #57d6d2, var(--gold));
  animation-duration: 560ms;
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1.75); }
}

.transcript-card {
  position: static;
  width: 100%;
}

.spread-map {
  position: relative;
  height: 458px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, rgba(12, 28, 140, 0.28), rgba(47, 125, 59, 0.18)),
    rgba(255, 255, 255, 0.04);
  background-size: 30px 30px;
}

.node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #071126;
  background: var(--gold);
  border: 4px solid rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  z-index: 2;
}

.node.wa { left: 10%; top: 28%; background: #ff96a2; }
.node.fb { left: 44%; top: 46%; background: #9aa8ff; }
.node.src { right: 12%; top: 20%; background: #8de39a; }
.node.tv { right: 20%; bottom: 18%; }

.edge {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(244, 196, 48, 0.95), rgba(87, 214, 210, 0.2));
  box-shadow: 0 0 14px rgba(244, 196, 48, 0.36);
}

.edge-a { left: 21%; top: 35%; width: 36%; transform: rotate(21deg); }
.edge-b { left: 52%; top: 50%; width: 34%; transform: rotate(-35deg); }
.edge-c { left: 51%; top: 53%; width: 35%; transform: rotate(28deg); }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  margin-bottom: 12px;
}

.photo-strip img {
  width: 100%;
  height: 116px;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  filter: saturate(1.12) contrast(1.05);
}

.artifact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.artifact-grid article {
  position: relative;
  overflow: hidden;
  min-height: 144px;
  padding: 14px;
  border-radius: 20px;
}

.artifact-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(244, 196, 48, 0.14), transparent 42%, rgba(87, 214, 210, 0.12)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 15px);
}

.artifact-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #071126;
  background: linear-gradient(135deg, #57d6d2, #fff4ad);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(87, 214, 210, 0.18);
}

.artifact-grid strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
}

.artifact-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.feature-story {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  margin-bottom: 12px;
  background:
    linear-gradient(145deg, rgba(206, 17, 38, 0.16), transparent 40%, rgba(47, 125, 59, 0.14)),
    rgba(255, 255, 255, 0.08);
}

.feature-story img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(1.2) contrast(1.08);
}

.feature-story div {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

.feature-story h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.news-list,
.trend-list,
.settings-list,
.saved-case-list {
  display: grid;
  gap: 10px;
}

.news-list article,
.trend-list article {
  position: relative;
  overflow: hidden;
  padding: 13px;
}

.news-list article::before,
.trend-list article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--red), var(--gold), var(--green));
}

.news-list span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.news-list strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.news-list p {
  position: relative;
  z-index: 1;
}

.story-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.story-carousel::-webkit-scrollbar {
  display: none;
}

.story-carousel article {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 0;
  scroll-snap-align: start;
  border-radius: 24px;
}

.story-carousel img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.06);
}

.story-carousel article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(7, 17, 38, 0.82));
}

.story-carousel span {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}

.trend-chart {
  position: relative;
  overflow: hidden;
  height: 180px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  padding: 14px 12px 0;
}

.trend-chart::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 35px),
    linear-gradient(135deg, rgba(244, 196, 48, 0.1), transparent 48%, rgba(206, 17, 38, 0.1));
}

.trend-chart span {
  position: relative;
  z-index: 1;
  min-height: 34px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #fff3aa, var(--gold) 50%, var(--red));
  box-shadow: 0 -12px 24px rgba(244, 196, 48, 0.12);
}

.trend-map-card {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 14px;
}

.trend-map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(12, 28, 140, 0.16), transparent 42%, rgba(47, 125, 59, 0.14)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
}

.trend-map-card svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 154px;
}

.trend-map-card path {
  fill: none;
  stroke: rgba(244, 196, 48, 0.82);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 12 14;
  filter: drop-shadow(0 0 9px rgba(244, 196, 48, 0.44));
  animation: routeFlow 7s linear infinite;
}

.trend-map-card path:nth-child(2) {
  stroke: rgba(87, 214, 210, 0.62);
  animation-duration: 8.5s;
}

.trend-map-card circle {
  fill: rgba(206, 17, 38, 0.88);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 6;
}

.trend-map-card circle:nth-of-type(2) {
  fill: rgba(244, 196, 48, 0.9);
}

.trend-map-card circle:nth-of-type(3) {
  fill: rgba(47, 125, 59, 0.9);
}

.trend-map-card div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.trend-map-card strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.28;
}

.trend-list article {
  display: grid;
  grid-template-columns: 34px 1fr 46px;
  gap: 10px;
  align-items: center;
}

.trend-list b {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #071126;
  background: linear-gradient(135deg, #fff4ad, var(--gold));
}

.trend-list strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 13px;
}

.trend-list em {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.trend-list span {
  position: relative;
  z-index: 1;
}

.case-card {
  position: relative;
  overflow: hidden;
  padding: 15px;
  margin-bottom: 12px;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(87, 214, 210, 0.12), transparent 48%, rgba(244, 196, 48, 0.1)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
}

.case-card > * {
  position: relative;
  z-index: 1;
}

.case-topline strong {
  color: #fff;
  font-size: 17px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.timeline span {
  border-radius: 999px;
  padding: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.timeline .done {
  color: #071126;
  background: #8de39a;
}

.settings-list {
  margin-bottom: 12px;
  padding: 12px;
}

.settings-list button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  font-weight: 900;
  text-align: left;
  padding: 10px 12px;
}

.saved-case-list {
  padding: 12px;
}

.saved-case-list:empty::before {
  content: attr(data-empty-label);
  color: var(--muted);
  font-size: 12px;
}

.saved-case-item {
  border-radius: 15px;
  padding: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(360px, calc(100% - 28px));
  transform: translate(-50%, 20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 15px;
  color: #071126;
  background: var(--gold);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 35;
  width: min(402px, calc(100% - 20px));
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 5px;
  background:
    linear-gradient(90deg, rgba(206, 17, 38, 0.16), rgba(12, 28, 140, 0.18), rgba(47, 125, 59, 0.14)),
    rgba(7, 17, 38, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.bottom-nav button {
  min-height: 50px;
  border: 0;
  border-radius: 19px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: rgba(237, 244, 255, 0.68);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-icon {
  width: 21px;
  height: 21px;
  display: block;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}

.nav-label {
  font-size: 10px;
  line-height: 1;
}

.bottom-nav button.active {
  color: #071126;
  background: linear-gradient(135deg, #fff4ad, var(--gold));
  box-shadow: 0 10px 22px rgba(244, 196, 48, 0.2);
}

.bottom-nav button:active {
  transform: translateY(1px);
}

@media (max-width: 360px) {
  .capture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .mode-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}
