/* RIVALIX — UNIFIED DESIGN OVERRIDE */

.sentinel-core,
.money-moment,
.decision-timeline,
.ai-command,
.money-leak,
.ai-opportunity,
.ai-decision-timeline,
.revenue-flow,
.revenue-flow-map {
    box-sizing: border-box;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.sentinel-title,
.money-title,
.timeline-title,
.command-title,
.leak-title,
.ai-opportunity h2,
.ai-decision-timeline h2,
.revenue-flow .flow-title,
.revenue-flow-map h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .025em;
}

.sentinel-title,
.money-title,
.command-title,
.leak-title {
    font-size: 28px;
}

.timeline-title {
    font-size: 26px;
}

.ai-opportunity h2,
.ai-decision-timeline h2 {
    font-size: 22px;
}

.sentinel-text,
.money-info,
.timeline,
.ai-command,
.money-leak,
.ai-opportunity,
.ai-decision-timeline {
    font-size: 14px;
    line-height: 1.65;
}

.sentinel-text {
    line-height: 1.9;
}

.money-info h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.money-info p {
    margin: 8px 0 14px;
    font-size: 14px;
    line-height: 1.6;
}

.money-row {
    width: min(350px, 100%);
    padding: 9px 0;
}

.money-icon {
    font-size: 58px;
}

.ai-decision-timeline .timeline-item {
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 10px;
}

.leak-status {
    font-size: 13px;
}

.revenue-flow .flow-title,
.revenue-flow-map h2 {
    font-size: 13px;
}

.revenue-flow .flow-node,
.revenue-flow-map .flow-node {
    font-size: 11px;
}

@media (max-width: 799px) {
    .sentinel-core,
    .money-moment,
    .decision-timeline,
    .ai-command,
    .money-leak,
    .ai-opportunity,
    .ai-decision-timeline,
    .revenue-flow,
    .revenue-flow-map {
        padding: 18px;
        border-radius: 14px;
    }

    .sentinel-title,
    .money-title,
    .command-title,
    .leak-title {
        font-size: 23px;
    }

    .timeline-title {
        font-size: 22px;
    }

    .money-icon {
        font-size: 46px;
    }
}

/* RIVALIX — FLOW MAP FINAL POLISH */

.revenue-flow .flow-title,
.revenue-flow-map h2 {
    font-size: 15px;
    letter-spacing: .08em;
    margin-bottom: 20px;
}

.revenue-flow .flow-node,
.revenue-flow-map .flow-node {
    width: min(290px, 86%);
    min-height: 40px;
    padding: 9px 14px;
    font-size: 12px;
    letter-spacing: .04em;
}

.revenue-flow .flow-node.green {
    min-width: 125px;
    min-height: 32px;
    padding: 6px 12px;
    font-size: 11px;
}

.revenue-flow .flow-arrow,
.revenue-flow-map .flow-arrow {
    height: 15px;
    font-size: 13px;
}

@media (max-width: 799px) {
    .revenue-flow .flow-node,
    .revenue-flow-map .flow-node {
        width: min(250px, 90%);
        min-height: 38px;
        font-size: 11px;
    }

    .revenue-flow .flow-node.green {
        min-width: 115px;
    }
}

/* RIVALIX — FLOW MAP READABILITY */

.revenue-flow .flow-title,
.revenue-flow-map h2 {
    font-size: 16px;
}

.revenue-flow .flow-node,
.revenue-flow-map .flow-node {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .045em;
}

.revenue-flow .flow-node.green {
    font-size: 13px;
    font-weight: 700;
}

.revenue-flow .flow-arrow,
.revenue-flow-map .flow-arrow {
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 799px) {
    .revenue-flow .flow-node,
    .revenue-flow-map .flow-node {
        font-size: 13px;
    }

    .revenue-flow .flow-node.green {
        font-size: 12px;
    }
}

/* RIVALIX — FLOW MAP TYPOGRAPHY */

.revenue-flow .flow-title,
.revenue-flow-map h2 {
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .06em;
}

.revenue-flow .flow-node,
.revenue-flow-map .flow-node {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
}

.revenue-flow .flow-node.green {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}

.revenue-flow .flow-arrow,
.revenue-flow-map .flow-arrow {
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 799px) {
    .revenue-flow .flow-node,
    .revenue-flow-map .flow-node {
        font-size: 15px;
    }

    .revenue-flow .flow-node.green {
        font-size: 14px;
    }
}

/* RIVALIX — FLOW MAP BIG TYPE */

.revenue-flow .flow-title,
.revenue-flow-map h2 {
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .05em;
}

.revenue-flow .flow-node,
.revenue-flow-map .flow-node {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .01em;
}

.revenue-flow .flow-node.green {
    font-size: 18px;
    font-weight: 700;
}

.revenue-flow .flow-arrow,
.revenue-flow-map .flow-arrow {
    font-size: 19px;
    font-weight: 700;
}

/* RIVALIX — FLOW NODES: READABLE BUTTON TEXT */

.revenue-flow .flow-node,
.revenue-flow-map .flow-node {
    width: min(260px, 82%);
    min-height: 34px;
    padding: 7px 12px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
}

.revenue-flow .flow-node.green {
    width: auto;
    min-width: 110px;
    min-height: 28px;
    padding: 5px 10px;
    font-size: 15px;
}

.revenue-flow .flow-arrow,
.revenue-flow-map .flow-arrow {
    height: 14px;
    font-size: 13px;
}

.revenue-flow .flow-title,
.revenue-flow-map h2 {
    font-family: var(--mono);
    font-size: 13px;
}

@media (max-width: 799px) {
    .revenue-flow .flow-node,
    .revenue-flow-map .flow-node {
        width: min(230px, 88%);
        font-size: 15px;
    }

    .revenue-flow .flow-node.green {
        min-width: 105px;
        font-size: 14px;
    }
}

/* RIVALIX — FLOW MAP: MATCH DASHBOARD TYPOGRAPHY */

.revenue-flow .flow-node,
.revenue-flow-map .flow-node {
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25;
    letter-spacing: .01em;
}

.revenue-flow .flow-node.green,
.revenue-flow-map .flow-node.green {
    font-size: 18px !important;
    font-weight: 700 !important;
}

.revenue-flow .flow-arrow,
.revenue-flow-map .flow-arrow {
    font-size: 17px !important;
}

@media (max-width: 799px) {
    .revenue-flow .flow-node,
    .revenue-flow-map .flow-node {
        font-size: 18px !important;
    }

    .revenue-flow .flow-node.green,
    .revenue-flow-map .flow-node.green {
        font-size: 16px !important;
    }
}

/* =========================================================
   RIVALIX — FLOW MAP FINAL PRODUCT POLISH
   2026-09-03
   Last override: visual layer only
   ========================================================= */

.revenue-flow {
    position: relative;
    overflow: hidden;
    padding: 30px 28px 34px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0,212,255,.10), transparent 42%),
        linear-gradient(180deg, rgba(12,20,32,.96), rgba(5,9,16,.98));
    border: 1px solid rgba(0,212,255,.28);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 18px 45px rgba(0,0,0,.28);
}

.revenue-flow::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(0,212,255,.035), transparent);
    opacity: .8;
}

.revenue-flow .flow-title {
    position: relative;
    margin-bottom: 24px;
    color: #00d4ff;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(0,212,255,.25);
}

.revenue-flow .flow {
    position: relative;
    gap: 0;
}

/* CHANNELS */

.revenue-flow .flow-node.green {
    width: auto;
    min-width: 128px;
    min-height: 38px;
    margin: 5px 0;
    padding: 8px 18px;
    border: 1px solid rgba(0,255,65,.62);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(0,255,65,.10), rgba(0,255,65,.035)),
        rgba(7,16,15,.94);
    color: #8affaa;
    font-family: var(--mono);
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .07em;
    box-shadow:
        0 0 16px rgba(0,255,65,.08),
        inset 0 0 12px rgba(0,255,65,.035);
    transition: all .22s ease;
}

.revenue-flow .flow-node.green:hover {
    transform: translateY(-2px) scale(1.025);
    border-color: #00ff41;
    color: #ffffff;
    box-shadow:
        0 0 24px rgba(0,255,65,.20),
        inset 0 0 18px rgba(0,255,65,.06);
}

/* PIPELINE NODES */

.revenue-flow .flow-node:not(.green) {
    width: min(330px, 88%);
    min-height: 48px;
    margin: 6px 0;
    padding: 11px 20px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
        rgba(8,14,24,.94);
    color: #f2f7ff;
    font-family: var(--mono);
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: .035em;
    box-shadow:
        0 8px 22px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.035);
}

/* AI / ANALYSIS */

.revenue-flow .flow-node.blue {
    border-color: rgba(0,212,255,.70);
    background:
        linear-gradient(180deg, rgba(0,212,255,.11), rgba(0,212,255,.025)),
        rgba(7,16,25,.96);
    color: #72e7ff;
    box-shadow:
        0 0 22px rgba(0,212,255,.10),
        inset 0 0 20px rgba(0,212,255,.035);
}

/* MONEY */

.revenue-flow .flow-node.money {
    border-color: rgba(255,196,0,.72);
    background:
        linear-gradient(180deg, rgba(255,196,0,.12), rgba(255,196,0,.025)),
        rgba(18,15,7,.96);
    color: #ffd85a;
    box-shadow:
        0 0 22px rgba(255,196,0,.10),
        inset 0 0 18px rgba(255,196,0,.035);
}

/* ACTION / RECOVERY */

.revenue-flow .flow-node.action {
    border-color: rgba(0,255,65,.82);
    background:
        linear-gradient(180deg, rgba(0,255,65,.13), rgba(0,255,65,.035)),
        rgba(7,18,12,.96);
    color: #9affb4;
    box-shadow:
        0 0 26px rgba(0,255,65,.14),
        inset 0 0 20px rgba(0,255,65,.045);
}

/* ARROWS */

.revenue-flow .flow-arrow {
    width: 100%;
    height: 24px;
    margin: 0;
    color: #00d4ff;
    font-family: Arial, sans-serif;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 24px;
    text-shadow: 0 0 14px rgba(0,212,255,.45);
    opacity: .85;
}

/* MOBILE */

@media (max-width: 799px) {
    .revenue-flow {
        padding: 24px 16px 28px;
        border-radius: 20px;
    }

    .revenue-flow .flow-title {
        font-size: 13px;
        letter-spacing: .08em;
    }

    .revenue-flow .flow-node.green {
        min-width: 112px;
        min-height: 36px;
        padding: 7px 14px;
        font-size: 12px !important;
    }

    .revenue-flow .flow-node:not(.green) {
        width: min(300px, 92%);
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px !important;
    }
}


/* =========================================================
   RIVALIX — FLOW MAP / FINAL UNIFIED UI
   Visual only. Do not modify business logic, metrics or JS.
   ========================================================= */

.revenue-flow,
.revenue-flow-map {
  width: 100%;
  box-sizing: border-box;
}

.revenue-flow .flow-title {
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: .10em !important;
}

.revenue-flow .flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px !important;
}

.revenue-flow .flow-node,
.revenue-flow .flow-node.green,
.revenue-flow .flow-node.blue,
.revenue-flow .flow-node.money,
.revenue-flow .flow-node.action,
.revenue-flow-map .flow-node,
.revenue-flow-map .flow-node.green {
  box-sizing: border-box;
  width: min(360px, 90%) !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 11px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  font-family: var(--mono) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: .035em !important;
  text-align: center;
}

.revenue-flow .flow-arrow,
.revenue-flow-map .flow-arrow {
  width: auto !important;
  height: 24px !important;
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 24px !important;
  font-weight: 800 !important;
}

@media (max-width: 799px) {
  .revenue-flow .flow-node,
  .revenue-flow .flow-node.green,
  .revenue-flow .flow-node.blue,
  .revenue-flow .flow-node.money,
  .revenue-flow .flow-node.action,
  .revenue-flow-map .flow-node,
  .revenue-flow-map .flow-node.green {
    width: min(320px, 92%) !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  .revenue-flow .flow-arrow,
  .revenue-flow-map .flow-arrow {
    font-size: 18px !important;
  }
}

/* =========================================================
   RIVALIX — DASHBOARD DESIGN SYSTEM V1
   FINAL VISUAL NORMALIZATION
   UI ONLY — NO BUSINESS LOGIC / JS / METRICS CHANGES
   ========================================================= */

:root {
  --r-gap: 16px;
  --r-radius: 18px;
  --r-card-padding: 20px;
  --r-title: 22px;
  --r-subtitle: 14px;
  --r-body: 14px;
  --r-small: 12px;
}

/* ---------- GLOBAL CONTAINER ---------- */

.wrap {
  width: min(1200px, 100%) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.wrap > section {
  box-sizing: border-box !important;
  width: 100% !important;
}

/* ---------- UNIFIED SECTION RHYTHM ---------- */

.reality-layer,
.mission-start,
.brain-visualizer,
.revenue-alarm,
.command-center,
.threat-center,
.heartbeat-core,
.advisor-owner,
.sentinel-core,
.money-moment,
.decision-timeline,
.revenue-flow,
.ai-command,
.money-leak,
.live-stream {
  box-sizing: border-box !important;
  width: 100% !important;
  margin-bottom: var(--r-gap) !important;
  border-radius: var(--r-radius) !important;
}

/* ---------- UNIFIED SECTION HEADERS ---------- */

.reality-title,
.mission-title,
.brain-title,
.alarm-header,
.command-title,
.threat-title,
.heartbeat-title,
.owner-title,
.sentinel-title,
.money-title,
.timeline-title,
.flow-title,
.leak-title,
.stream-title {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  font-size: var(--r-title) !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: .045em !important;
}

/* ---------- BODY TYPOGRAPHY ---------- */

.mission-line,
.reality-label,
.leak-label,
.stream-item,
.command-message,
.owner-message,
.sentinel-text,
.timeline-desc {
  line-height: 1.5 !important;
}

.reality-label,
.leak-label,
.stream-time {
  font-size: var(--r-small) !important;
}

/* ---------- CARD GEOMETRY ---------- */

.reality-card,
.advisor-card,
.card,
.brain-node {
  box-sizing: border-box !important;
  border-radius: 14px !important;
}

/* ---------- REALITY ---------- */

.reality-grid {
  gap: var(--r-gap) !important;
}

.reality-card {
  padding: var(--r-card-padding) !important;
}

.reality-icon {
  font-size: 26px !important;
}

.reality-value {
  margin-top: 7px !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
}

/* ---------- MISSION ---------- */

.mission-start {
  padding: var(--r-card-padding) !important;
}

.mission-line {
  padding: 6px 0 !important;
  font-size: var(--r-body) !important;
}

.mission-ready {
  margin-top: 12px !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
}

/* ---------- AI BRAIN ---------- */

.brain-visualizer {
  padding: var(--r-card-padding) !important;
}

.brain-flow {
  gap: 10px !important;
}

.brain-node {
  min-width: 130px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

/* ---------- REVENUE ALARM ---------- */

.revenue-alarm {
  padding: var(--r-card-padding) !important;
}

.alarm-main {
  gap: 24px !important;
}

.alarm-number {
  font-size: clamp(42px, 5vw, 56px) !important;
  line-height: 1 !important;
}

.alarm-text {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

/* ---------- COMMAND CENTER ---------- */

.command-center {
  padding: var(--r-card-padding) !important;
}

.advisor-grid {
  gap: var(--r-gap) !important;
}

.advisor-card {
  padding: var(--r-card-padding) !important;
}

.advisor-card p {
  line-height: 1.6 !important;
}

.money-number {
  font-size: clamp(38px, 4vw, 48px) !important;
  line-height: 1 !important;
}

.score {
  font-size: clamp(48px, 5vw, 64px) !important;
  line-height: 1 !important;
}

/* ---------- THREAT / HEARTBEAT / SENTINEL ---------- */

.threat-grid,
.heartbeat-grid {
  gap: var(--r-gap) !important;
}

.heartbeat-item {
  padding: 10px 14px !important;
  font-size: var(--r-small) !important;
}

/* ---------- MONEY / LEAK ---------- */

.leak-number {
  font-size: clamp(40px, 4vw, 48px) !important;
  line-height: 1 !important;
  margin: 12px 0 !important;
}

.leak-message {
  margin-top: 10px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* ---------- TIMELINE ---------- */

.timeline {
  gap: 10px !important;
}

.timeline-item {
  box-sizing: border-box !important;
}

/* ---------- FLOW MAP ---------- */

.revenue-flow {
  padding: var(--r-card-padding) !important;
}

.revenue-flow .flow {
  gap: 8px !important;
}

.revenue-flow .flow-node,
.revenue-flow .flow-node.green,
.revenue-flow .flow-node.blue,
.revenue-flow .flow-node.money,
.revenue-flow .flow-node.action,
.revenue-flow-map .flow-node,
.revenue-flow-map .flow-node.green {
  width: min(360px, 90%) !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 11px 20px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.revenue-flow .flow-arrow,
.revenue-flow-map .flow-arrow {
  height: 24px !important;
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 24px !important;
}

/* ---------- LIVE STREAM ---------- */

.live-stream {
  padding: var(--r-card-padding) !important;
}

.stream-item {
  padding: 10px 12px !important;
  margin-bottom: 6px !important;
  gap: 10px !important;
  font-size: var(--r-body) !important;
}

/* ---------- AI COMMAND ---------- */

.ai-command {
  padding: var(--r-card-padding) !important;
}

.command-box {
  padding: 16px !important;
  border-radius: 14px !important;
}

.command-message {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.command-message strong {
  font-size: 18px !important;
}

/* ---------- KPI CARDS ---------- */

.grid {
  gap: var(--r-gap) !important;
}

.card {
  padding: var(--r-card-padding) !important;
}

.card h2 {
  margin-bottom: 8px !important;
}

/* ---------- BUTTONS ---------- */

.button {
  box-sizing: border-box !important;
  min-height: 40px !important;
  padding: 9px 16px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

/* ---------- FOOTER ---------- */

footer {
  margin-top: var(--r-gap) !important;
  padding-top: 12px !important;
}

/* ---------- MOBILE ---------- */

@media (max-width: 700px) {
  :root {
    --r-gap: 12px;
    --r-card-padding: 15px;
    --r-title: 19px;
  }

  .wrap {
    padding: 10px 12px 18px !important;
  }

  .reality-layer,
  .mission-start,
  .brain-visualizer,
  .revenue-alarm,
  .command-center,
  .threat-center,
  .heartbeat-core,
  .advisor-owner,
  .sentinel-core,
  .money-moment,
  .decision-timeline,
  .revenue-flow,
  .ai-command,
  .money-leak,
  .live-stream {
    margin-bottom: var(--r-gap) !important;
    padding: var(--r-card-padding) !important;
  }

  .advisor-grid {
    grid-template-columns: 1fr !important;
  }

  .alarm-main {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .revenue-flow .flow-node,
  .revenue-flow .flow-node.green,
  .revenue-flow .flow-node.blue,
  .revenue-flow .flow-node.money,
  .revenue-flow .flow-node.action,
  .revenue-flow-map .flow-node,
  .revenue-flow-map .flow-node.green {
    width: min(320px, 92%) !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  .button {
    min-height: 38px !important;
  }
}

/* =========================================================
   RIVALIX — DASHBOARD HIERARCHY V1
   TOP SCREEN / VISUAL ONLY
   NO JS / NO BUSINESS LOGIC / NO METRICS CHANGES
   ========================================================= */

/* HERO = PRIMARY PRODUCT MESSAGE */
.hero {
  margin-bottom: var(--r-gap) !important;
  padding: 26px 24px !important;
  border-radius: var(--r-radius) !important;
  text-align: center !important;
}

.hero h1 {
  margin: 0 !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  letter-spacing: -.025em !important;
}

.hero p {
  margin: 10px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  letter-spacing: .08em !important;
}

/* REALITY = STATUS STRIP, NOT HERO */
.reality-layer {
  padding: 14px 18px !important;
}

.reality-layer .reality-title {
  margin-bottom: 10px !important;
  font-size: 14px !important;
  letter-spacing: .09em !important;
}

.reality-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.reality-card {
  padding: 12px 10px !important;
  border-radius: 12px !important;
}

.reality-icon {
  font-size: 20px !important;
}

.reality-value {
  margin-top: 5px !important;
  font-size: 16px !important;
}

.reality-label {
  margin-top: 3px !important;
  font-size: 10px !important;
  letter-spacing: .04em !important;
}

/* MISSION = COMPACT SYSTEM STATUS */
.mission-start {
  padding: 14px 18px !important;
}

.mission-title {
  margin-bottom: 9px !important;
  font-size: 15px !important;
}

.mission-lines {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.mission-line {
  padding: 8px 10px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.mission-ready {
  margin-top: 9px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}

/* AI BRAIN = CORE EXPLANATION */
.brain-visualizer {
  padding: 18px 20px !important;
}

.brain-title {
  margin-bottom: 12px !important;
  font-size: 18px !important;
}

.brain-flow {
  gap: 7px !important;
}

.brain-node {
  min-width: 115px !important;
  padding: 10px 9px !important;
  border-radius: 12px !important;
}

.brain-node strong {
  font-size: 13px !important;
}

.brain-node small {
  font-size: 10px !important;
}

/* REVENUE ALARM = PRIMARY MONEY SIGNAL */
.revenue-alarm {
  padding: 22px 24px !important;
}

.alarm-header {
  margin-bottom: 12px !important;
  font-size: 17px !important;
  letter-spacing: .06em !important;
}

.alarm-main {
  gap: 28px !important;
}

.alarm-number {
  font-size: clamp(48px, 6vw, 68px) !important;
  font-weight: 900 !important;
}

.alarm-text {
  font-size: 15px !important;
}

/* BUSINESS ADVISOR = SECONDARY COMMAND LAYER */
.command-center {
  padding: 20px !important;
}

.command-title {
  font-size: 19px !important;
}

.advisor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.advisor-card {
  padding: 16px !important;
}

.advisor-card h3 {
  margin-bottom: 9px !important;
  font-size: 13px !important;
}

@media (max-width: 900px) {
  .reality-grid,
  .mission-lines,
  .advisor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .reality-grid,
  .mission-lines,
  .advisor-grid {
    grid-template-columns: 1fr !important;
  }

  .hero {
    padding: 20px 16px !important;
  }

  .hero h1 {
    font-size: 28px !important;
  }

  .alarm-main {
    gap: 16px !important;
  }
}

/* ===== RIVALIX HERO IMPACT ===== */
header h2 {
    font-size: 2.4rem !important;
    animation: typing 4.5s steps(40), titlePulse 3s infinite !important;
}

/* ===== RIVALIX HERO SUBTITLE IMPACT ===== */
header .hero-subtitle {
    margin-top: 12px;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: .12em;
    color: #ff4444;
    text-shadow: 0 0 18px rgba(255,0,0,.8);
    opacity: 0;
    animation: heroSubtitleReveal 1.2s ease-out 4.5s forwards;
}

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

/* ===== RIVALIX SUBTITLE PUNCH ===== */
header .hero-subtitle {
    margin-top: 14px;
    font-size: 2.6rem !important;
    font-weight: 1000;
    letter-spacing: .16em;
    color: #ff3333;
    text-shadow:
        0 0 12px rgba(255,0,0,.85),
        0 0 28px rgba(255,0,0,.55);
    animation:
        heroSubtitleReveal 1.2s ease-out 4.5s forwards,
        heroSubtitlePulse 2.2s ease-in-out 5.7s infinite !important;
}

@keyframes heroSubtitlePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow:
            0 0 12px rgba(255,0,0,.85),
            0 0 28px rgba(255,0,0,.55);
    }
    50% {
        transform: scale(1.06);
        text-shadow:
            0 0 20px rgba(255,0,0,1),
            0 0 42px rgba(255,0,0,.8);
    }
}

/* ===== RIVALIX MOBILE HERO ===== */
@media (max-width: 600px) {
    header h2 {
        font-size: 1.65rem !important;
        line-height: 1.12 !important;
        letter-spacing: .04em !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    header .hero-subtitle {
        font-size: 1.9rem !important;
        letter-spacing: .08em !important;
        line-height: 1.05 !important;
    }
}

/* ===== RIVALIX MOBILE HERO — STAIRCASE ===== */
@media (max-width: 600px) {

    header h2 {
        font-size: 2rem !important;
        line-height: 1.05 !important;
        font-weight: 1000 !important;
        letter-spacing: .02em !important;
        text-align: left !important;
    }

    header h2 span {
        display: block;
        white-space: nowrap;
    }

    header h2 span:nth-child(1) {
        margin-left: 0;
    }

    header h2 span:nth-child(2) {
        margin-left: 14px;
    }

    header h2 span:nth-child(3) {
        margin-left: 28px;
    }
}

/* ===== RIVALIX MOBILE HERO — SEQUENTIAL STAIRCASE ===== */
@media (max-width: 600px) {

    header h2 {
        font-size: 1.72rem !important;
        line-height: 1.08 !important;
        font-weight: 1000 !important;
        letter-spacing: .025em !important;
        text-align: left !important;
        margin-top: 14px !important;
    }

    header h2 span {
        display: block;
        width: fit-content;
        opacity: 0;
        transform: translateX(-18px);
        animation: mobileHeroLineReveal .8s ease-out forwards;
    }

    header h2 span:nth-child(1) {
        margin-left: 0;
        animation-delay: 0.7s;
    }

    header h2 span:nth-child(2) {
        margin-left: 12px;
        animation-delay: 2.0s;
    }

    header h2 span:nth-child(3) {
        margin-left: 24px;
        animation-delay: 3.3s;
    }
}

@keyframes mobileHeroLineReveal {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RIVALIX MOBILE HERO — LETTER BY LETTER ===== */
@media (max-width: 600px) {

    header h2 {
        animation: none !important;
        font-size: 1.72rem !important;
        line-height: 1.08 !important;
        font-weight: 1000 !important;
        letter-spacing: .025em !important;
        text-align: left !important;
        margin-top: 14px !important;
    }

    header h2 span {
        display: block;
        width: 0;
        max-width: max-content;
        overflow: hidden;
        white-space: nowrap;
        opacity: 1 !important;
        transform: none !important;
        animation: mobileHeroTyping 1.1s steps(13, end) forwards;
    }

    header h2 span:nth-child(1) {
        margin-left: 0;
        animation-delay: .7s;
    }

    header h2 span:nth-child(2) {
        margin-left: 12px;
        animation-delay: 2.9s;
    }

    header h2 span:nth-child(3) {
        margin-left: 24px;
        animation-delay: 5.1s;
    }

    header .hero-subtitle {
        animation:
            heroSubtitleReveal 1.2s ease-out 6.8s forwards,
            heroSubtitlePulse 2.2s ease-in-out 8s infinite !important;
    }
}

@keyframes mobileHeroTyping {
    from {
        width: 0;
    }
    to {
        width: 13ch;
    }
}
