/* ============================================================
   M3LON · VISUAL STORYBOARD · styles.css
   EXACT M3LON BRAND COLOURS FROM PDF — ZERO BLUE
   Dark BG: #101010 | Teal: #4ABFAA | Coral: #E8635A | Gold: #E8B84B
   Fonts: Syne (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ===== ROOT DESIGN TOKENS ===== */
:root {
  /* EXACT COLOURS FROM M3LON LOGO PDF */
  --dark-bg:     #101010;
  --dark-card:   #1A2E2E;
  --dark-elev:   #203030;
  --dark-press:  #2A3D3D;
  --teal-logo:   #407070;
  --teal-brand:  #4ABFAA;
  --teal-light:  #70C0A0;
  --teal-med:    #4A9E88;
  --teal-dark:   #2A7060;
  --coral:       #E8635A;
  --coral-dark:  #C0392B;
  --coral-light: #F09090;
  --gold:        #E8B84B;
  --gold-dark:   #C88020;
  --text-pri:    #E8F5F2;
  --text-sec:    #7ABFB0;
  --text-muted:  #405060;
  --light-bg:    #E8F5F2;
  --light-card:  #FFFFFF;

  /* GRADIENTS */
  --grad-teal:   linear-gradient(135deg, #2A7060, #70C0A0);
  --grad-coral:  linear-gradient(135deg, #C0392B, #E8635A);
  --grad-dark:   linear-gradient(145deg, #1A2E2E, #203030);
  --grad-gold:   linear-gradient(135deg, #C88020, #E8B84B);

  /* TYPOGRAPHY */
  --syne: 'Syne', sans-serif;
  --dm:   'DM Sans', sans-serif;

  /* SPACING */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark-bg);
  color: var(--text-pri);
  font-family: var(--dm);
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(74,191,170,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(232,99,90,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #050E0E 0%, #0A1A1A 60%, #101010 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
  text-align: center;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,191,170,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,191,170,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridDrift 25s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

.hero-content { position: relative; z-index: 2; max-width: 1000px; }

.top-chip {
  display: inline-block;
  font-family: var(--dm); font-size: 0.6rem;
  color: var(--teal-brand);
  border: 1px solid var(--teal-brand);
  padding: 4px 16px; border-radius: 999px;
  margin-bottom: 1.5rem; letter-spacing: 0.12em;
  animation: chipPulse 2.5s ease-in-out infinite;
}
@keyframes chipPulse {
  0%,100% { box-shadow: 0 0 5px rgba(74,191,170,0.3); }
  50%      { box-shadow: 0 0 20px rgba(74,191,170,0.6); }
}

.logo-block {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 0.4rem;
}

.hero-wm-icon {
  font-size: 4.5rem;
  filter: drop-shadow(0 0 20px rgba(74,191,170,0.5));
  animation: wmFloat 3s ease-in-out infinite;
}
@keyframes wmFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}

.logo-wordmark {
  font-family: var(--syne);
  font-size: 5rem; font-weight: 800; line-height: 1;
}
.lm  { color: var(--text-pri); }
.l3  { color: var(--coral); text-shadow: 0 0 25px rgba(232,99,90,0.6); }
.ll  { color: var(--teal-brand); text-shadow: 0 0 25px rgba(74,191,170,0.6); }

.hero-motto {
  font-family: var(--dm); font-size: 0.75rem;
  color: var(--teal-light); letter-spacing: 0.35em; margin-bottom: 0.3rem;
}
.hero-sub {
  font-family: var(--dm); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 2rem;
}

/* ===== WATERMELON BOT ===== */
.wm-scene {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap;
}

/* Floating bob animation */
.float-wm    { animation: wmBob 2.5s ease-in-out infinite; }
.float-wm-sm { animation: wmBob 2.5s ease-in-out infinite; }
@keyframes wmBob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

/* Full-size hero bot */
.wm-bot { display: flex; flex-direction: column; align-items: center; }

.wm-outer {
  position: relative;
  width: 90px; height: 90px;
  background: radial-gradient(ellipse at 40% 35%, #E8635A 0%, #C0392B 60%, #8B1A10 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 3px solid #A0251A;
  box-shadow: 0 0 25px rgba(232,99,90,0.45), inset 0 2px 0 rgba(255,255,255,0.12);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: visible;
}

.wm-inner {
  width: 70px; height: 70px;
  background: radial-gradient(ellipse at 40% 35%, #E8635A 0%, #C0392B 80%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; position: relative;
}

.wm-face { display: flex; align-items: center; gap: 10px; position: relative; }

.wm-eye {
  width: 13px; height: 13px;
  background: #0A1A1A; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  position: relative; transition: transform 0.1s;
}
.wm-eye::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 4px; height: 4px;
  background: white; border-radius: 50%;
}

.wm-mouth {
  position: absolute; bottom: -17px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 11px;
  border: 2px solid #0A1A1A;
  border-top: none;
  border-radius: 0 0 14px 14px;
}

.wm-seeds-row { display: flex; gap: 6px; margin-top: 4px; }
.wm-seed {
  width: 5px; height: 8px;
  background: #0A1A1A;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(-15deg);
}
.wm-seed:nth-child(2) { transform: rotate(0deg); }
.wm-seed:nth-child(3) { transform: rotate(15deg); }

/* Arms */
.wm-arms {
  position: absolute; top: 35%;
  display: flex; gap: 108px; font-size: 1.3rem;
}
.wm-arm-l { animation: armWaveL 2s ease-in-out infinite; }
.wm-arm-r { animation: armWaveR 2s ease-in-out infinite 0.3s; }
@keyframes armWaveL { 0%,100%{transform:rotate(-10deg)} 50%{transform:rotate(22deg)} }
@keyframes armWaveR { 0%,100%{transform:rotate(10deg)}  50%{transform:rotate(-22deg)} }

/* Legs */
.wm-legs { position: absolute; bottom: -20px; display: flex; gap: 22px; }
.wm-leg { width: 11px; height: 20px; background: #0A1A1A; border-radius: 0 0 7px 7px; }

/* Small bot (used in panels) */
.sm-wm { display: flex; flex-direction: column; align-items: center; }

.sm-outer {
  width: 56px; height: 56px;
  background: radial-gradient(ellipse at 40% 35%, #E8635A 0%, #C0392B 60%, #8B1A10 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 2px solid #A0251A;
  box-shadow: 0 0 16px rgba(232,99,90,0.35);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: visible;
}
.sm-inner {
  width: 44px; height: 44px;
  background: radial-gradient(ellipse at 40% 35%, #E8635A 0%, #C0392B 80%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
}
.sm-face { display: flex; gap: 7px; align-items: center; position: relative; }
.sm-face .wm-eye       { width: 8px; height: 8px; }
.sm-face .wm-eye::after{ width: 3px; height: 3px; }
.sm-mouth {
  position: absolute; bottom: -11px;
  width: 15px; height: 7px;
  border: 1.5px solid #0A1A1A;
  border-top: none; border-radius: 0 0 9px 9px;
}

.excited-wm {
  animation: wmBob 0.9s ease-in-out infinite !important;
  box-shadow: 0 0 30px rgba(232,184,75,0.5) !important;
}

.blink-eye { animation: blinkAnim 3.5s ease-in-out infinite; }
@keyframes blinkAnim {
  0%,88%,100% { transform: scaleY(1); }
  94%          { transform: scaleY(0.1); }
}

/* Hero bubble */
.hero-bubble {
  max-width: 460px;
  background: linear-gradient(135deg, #0D2020, #081510);
  border: 1.5px solid var(--teal-brand);
  border-radius: 18px; padding: 1.2rem 1.5rem;
  font-family: var(--dm); font-size: 0.82rem; line-height: 1.75;
  color: var(--text-pri);
  box-shadow: 0 0 25px rgba(74,191,170,0.12);
  position: relative; text-align: left;
}
.hero-bubble::before {
  content: '';
  position: absolute; left: -12px; top: 22px;
  border: 6px solid transparent;
  border-right-color: var(--teal-brand);
}
#heroText strong { color: var(--coral); }

/* Team chips */
.team-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.team-chips span {
  font-family: var(--dm); font-size: 0.55rem; color: var(--text-muted);
  border: 1px solid rgba(74,191,170,0.2);
  padding: 3px 10px; border-radius: 999px;
}

.scroll-cue {
  position: absolute; bottom: 1.5rem;
  font-family: var(--dm); font-size: 0.6rem;
  color: var(--teal-brand); letter-spacing: 0.3em;
  animation: scBounce 2s ease-in-out infinite; z-index: 2;
}
@keyframes scBounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: 0.45; }
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--dark-card);
  border-top: 1px solid var(--teal-brand);
  border-bottom: 1px solid var(--teal-brand);
  overflow: hidden; padding: 8px 0;
}
.ticker-inner {
  display: inline-flex; white-space: nowrap;
  animation: tickerRoll 22s linear infinite;
}
.ticker-inner span {
  font-family: var(--dm); font-size: 0.6rem;
  color: var(--teal-light); padding: 0 2.2rem; letter-spacing: 0.1em;
}
@keyframes tickerRoll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== DOC SECTIONS ===== */
.doc-section {
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.sec-label {
  font-family: var(--dm); font-size: 0.65rem;
  color: var(--teal-brand); letter-spacing: 0.2em;
  border-bottom: 1px solid var(--dark-card);
  padding-bottom: 0.5rem; margin-bottom: 2rem;
}

/* ===== PANEL ===== */
.panel {
  position: relative;
  background: var(--grad-dark);
  border: 1px solid rgba(74,191,170,0.15);
  border-radius: 18px; padding: 2.5rem 2rem 2rem;
  margin-bottom: 2.5rem; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.panel:hover {
  border-color: rgba(74,191,170,0.4);
  box-shadow: 0 0 30px rgba(74,191,170,0.07);
}

.pnum {
  position: absolute; top: -10px; left: 1.5rem;
  font-family: var(--syne); font-size: 5.5rem; font-weight: 800;
  color: rgba(74,191,170,0.04); pointer-events: none; line-height: 1;
}

/* Layout helpers */
.pbody { display: flex; flex-direction: column; gap: 1.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.pleft  { display: flex; flex-direction: column; gap: 1rem; }
.pright { }
.center-p { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

/* When inline-bot is present, make the talk-bub fill remaining space */
.inline-bot { margin-right: 1rem; flex-shrink: 0; align-self: flex-start; }

/* ===== TALK BUBBLE ===== */
.talk-bub {
  background: linear-gradient(135deg, #0D2020, #081510);
  border: 1.5px solid var(--teal-brand);
  border-radius: 16px; padding: 1.2rem;
  font-family: var(--dm); font-size: 0.78rem; line-height: 1.75;
  color: var(--text-pri);
  box-shadow: 0 0 20px rgba(74,191,170,0.08);
}
.wide-bub { width: 100%; }

.bub-label {
  font-family: var(--dm); font-size: 0.58rem;
  color: var(--teal-brand); letter-spacing: 0.15em;
  margin-bottom: 0.8rem; font-weight: 600;
}
.talk-bub strong { color: var(--coral); }
.talk-bub em     { color: var(--teal-light); font-style: normal; }
.talk-bub code {
  font-family: 'Courier New', monospace;
  background: rgba(74,191,170,0.1);
  color: var(--teal-brand); padding: 1px 5px;
  border-radius: 3px; font-size: 0.85em;
}
.talk-bub p + p { margin-top: 0.5rem; }

.bub-list { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.bub-list li { font-size: 0.76rem; color: var(--text-pri); }

/* Detail rows */
.drow { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.dk {
  font-family: var(--dm); font-size: 0.64rem;
  color: var(--teal-brand); font-weight: 600; white-space: nowrap;
}
.dv { font-family: var(--dm); font-size: 0.64rem; color: var(--text-sec); }

/* ===== APP ICON DISPLAY ===== */
.app-icon-block {
  background: radial-gradient(ellipse at center, #0D2020, #060E0E);
  border: 2px solid var(--teal-brand); border-radius: 20px;
  padding: 2rem; text-align: center;
  box-shadow: 0 0 30px rgba(74,191,170,0.18);
}
.aib-wm { font-size: 4rem; filter: drop-shadow(0 0 15px rgba(74,191,170,0.4)); margin-bottom: 0.4rem; }
.aib-name { font-family: var(--syne); font-size: 2.6rem; font-weight: 800; }
.ai-m { color: var(--text-pri); }
.ai-3 { color: var(--coral); }
.ai-l { color: var(--teal-brand); }
.aib-tag {
  font-family: var(--dm); font-size: 0.48rem;
  color: var(--text-muted); letter-spacing: 0.3em; margin-top: 0.3rem;
}

/* Colour palette swatches */
.colour-palette { width: 100%; }
.cp-title {
  font-family: var(--dm); font-size: 0.55rem;
  color: var(--teal-brand); letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.cp-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cp-swatch {
  width: 58px; height: 58px; border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 0.25rem; font-family: var(--dm); font-size: 0.34rem;
  color: rgba(255,255,255,0.9); cursor: default;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cp-swatch:hover { transform: translateY(-5px) scale(1.06); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.cp-swatch span { display: block; text-align: center; line-height: 1.35; }

/* ===== FEATURE CARDS (2.2) ===== */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.feat-card { border-radius: 12px; padding: 1rem; }
.fc-coral {
  background: linear-gradient(135deg, rgba(192,57,43,0.14), rgba(232,99,90,0.07));
  border: 1px solid rgba(232,99,90,0.28);
}
.fc-teal {
  background: linear-gradient(135deg, rgba(74,191,170,0.11), rgba(42,112,96,0.07));
  border: 1px solid rgba(74,191,170,0.28);
}
.fc-gold {
  background: linear-gradient(135deg, rgba(232,184,75,0.11), rgba(200,128,32,0.07));
  border: 1px solid rgba(232,184,75,0.28);
  grid-column: span 2;
}
.fc-icon  { font-size: 1.5rem; margin-bottom: 0.3rem; }
.fc-name  { font-family: var(--syne); font-size: 0.72rem; font-weight: 700; color: var(--text-pri); margin-bottom: 0.2rem; }
.fc-desc  { font-family: var(--dm); font-size: 0.65rem; color: var(--text-sec); line-height: 1.55; }

/* ===== INNOVATIVE ITEMS (2.3) ===== */
.innov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 0.6rem; }
.innov-item {
  background: rgba(74,191,170,0.05);
  border: 1px solid rgba(74,191,170,0.18);
  border-radius: 12px; padding: 1rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.innov-item:hover { transform: translateY(-4px); border-color: var(--teal-brand); box-shadow: 0 8px 25px rgba(74,191,170,0.1); }
.ii-icon  { font-size: 1.5rem; margin-bottom: 0.4rem; }
.ii-title { font-family: var(--syne); font-size: 0.7rem; font-weight: 700; color: var(--teal-brand); margin-bottom: 0.3rem; }
.ii-desc  { font-family: var(--dm); font-size: 0.64rem; color: var(--text-sec); line-height: 1.55; }
.ii-desc em { color: var(--gold); font-style: italic; }

/* ===== FUNCTIONAL REQUIREMENTS (3.1) ===== */
.fr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; margin-top: 0.6rem; }
.fr-card {
  background: rgba(74,191,170,0.04);
  border: 1px solid rgba(74,191,170,0.14);
  border-radius: 12px; padding: 1rem;
}
.fr-gold {
  background: rgba(232,184,75,0.05);
  border-color: rgba(232,184,75,0.22);
}
.fr-id       { font-family: var(--dm); font-size: 0.55rem; color: var(--teal-brand); letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.3rem; }
.fr-gold-id  { color: var(--gold); }
.fr-title    { font-family: var(--syne); font-size: 0.72rem; font-weight: 700; color: var(--text-pri); margin-bottom: 0.5rem; }
.fr-card ul  { padding-left: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.fr-card li  { font-family: var(--dm); font-size: 0.64rem; color: var(--text-sec); line-height: 1.55; }

/* Non-functional requirements */
.nfr-section { margin-top: 0.5rem; }
.nfr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 0.6rem; margin-top: 0.5rem; }
.nfr-item {
  background: rgba(74,191,170,0.04);
  border: 1px solid rgba(74,191,170,0.1);
  border-radius: 10px; padding: 0.8rem;
  font-family: var(--dm); font-size: 0.65rem;
  color: var(--text-sec); line-height: 1.55;
}
.nfr-k {
  display: block; color: var(--teal-brand);
  font-weight: 600; font-size: 0.58rem;
  letter-spacing: 0.08em; margin-bottom: 0.2rem;
}

/* ===== UI INTRO PANEL ===== */
.ui-intro-panel {
  background: var(--grad-dark);
  border: 1px solid rgba(74,191,170,0.15);
  border-radius: 18px; padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex; align-items: flex-start; gap: 1.5rem;
}

/* ===== SCREEN PANELS ===== */
.screen-panel {
  background: linear-gradient(145deg, #0C1A1A, #060E0E);
  border: 1px solid rgba(74,191,170,0.15);
  border-radius: 20px; padding: 2rem;
  margin-bottom: 2.5rem; overflow: hidden; position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.screen-panel:hover { border-color: rgba(74,191,170,0.35); }

.highlight-sp {
  border-color: rgba(232,184,75,0.28);
  background: linear-gradient(145deg, #1A1208, #0A0A0A);
}
.highlight-sp:hover { border-color: var(--gold); box-shadow: 0 0 30px rgba(232,184,75,0.08); }

.spanel-badge {
  display: inline-block;
  font-family: var(--syne); font-size: 0.78rem; font-weight: 700;
  color: var(--teal-brand); border: 1px solid var(--teal-brand);
  padding: 4px 14px; border-radius: 999px;
  margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.gold-spbadge { color: var(--gold); border-color: var(--gold); }

.spanel-body         { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.reverse-spanel      { grid-template-columns: auto 1fr; }

.screen-info { display: flex; flex-direction: column; gap: 1rem; }

.screen-talk {
  background: linear-gradient(135deg, #0D2020, #081510);
  border: 1.5px solid var(--teal-brand);
  border-radius: 16px; padding: 1.2rem;
  font-family: var(--dm); font-size: 0.76rem; line-height: 1.75;
  color: var(--text-pri);
}
.st-purpose {
  font-family: var(--syne); font-size: 0.74rem; font-weight: 600;
  color: var(--gold); margin-bottom: 0.6rem; font-style: italic;
}
.st-list { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.st-list li  { font-size: 0.73rem; }
.st-list strong { color: var(--coral); }
.screen-talk code {
  font-family: 'Courier New', monospace;
  background: rgba(74,191,170,0.1);
  color: var(--teal-brand); padding: 1px 4px; border-radius: 3px; font-size: 0.85em;
}
.four-views-note {
  font-family: var(--dm); font-size: 0.64rem; color: var(--gold);
  border: 1px solid rgba(232,184,75,0.3); border-radius: 8px;
  padding: 0.4rem 0.8rem; margin-top: 0.5rem; display: inline-block;
}

/* ===== CODE SNIPPET ===== */
.cs-block {
  background: #060D0D;
  border: 1px solid rgba(74,191,170,0.18);
  border-radius: 12px; overflow: hidden; margin-top: 1rem;
}
.cs-head {
  display: flex; align-items: center; gap: 6px;
  padding: 0.5rem 0.8rem;
  background: rgba(74,191,170,0.05);
  border-bottom: 1px solid rgba(74,191,170,0.1);
  font-family: var(--dm); font-size: 0.58rem; color: var(--text-muted);
}
.d    { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cr   { background: #FF5F57; }
.cy   { background: #FEBC2E; }
.cg   { background: #28C840; }
.cs-block pre {
  padding: 0.8rem; font-family: 'Courier New', monospace;
  font-size: 0.62rem; color: var(--teal-light);
  line-height: 1.75; overflow-x: auto;
}

/* ===== PHONES ROW ===== */
.phones-row {
  display: flex; gap: 1.5rem;
  align-items: flex-start;
  justify-content: center; flex-wrap: wrap;
}
.multi-pr { gap: 0.8rem; }

.pw  { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.plbl { font-family: var(--dm); font-size: 0.55rem; color: var(--teal-brand); letter-spacing: 0.1em; text-align: center; font-weight: 600; }

/* ===== PHONE FRAME ===== */
.phone {
  width: 222px;
  background: linear-gradient(180deg, #1C1C1C, #0D0D0D);
  border: 3px solid #252525;
  border-radius: 36px; position: relative;
  box-shadow:
    0 0 0 1px #0D0D0D,
    0 0 28px rgba(74,191,170,0.18),
    0 20px 60px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.phone:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 0 0 1px #0D0D0D,
    0 0 50px rgba(74,191,170,0.35),
    0 30px 80px rgba(0,0,0,0.7);
}
.mini-ph { width: 168px; border-radius: 28px; }

.pnotch      { width: 65px; height: 16px; background: #1C1C1C; border-radius: 0 0 12px 12px; margin: 0 auto; z-index: 5; position: relative; }
.mini-notch  { width: 50px; height: 12px; }
.phome       { width: 60px; height: 5px; background: rgba(255,255,255,0.12); border-radius: 3px; margin: 6px auto 8px; }

/* ===== PHONE SCREEN BASE ===== */
.pscreen {
  margin: 3px 5px 4px;
  border-radius: 4px; overflow: hidden;
  min-height: 400px;
  display: flex; flex-direction: column;
  position: relative;
  background: var(--dark-bg);
}
.mini-ph .pscreen { min-height: 310px; }

/* ===== SPLASH SCREEN ===== */
.ps-splash { background: linear-gradient(180deg, #1E5A48, #163D30); }
.psp-bg    { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.psp-dots  { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 16px 16px; }
.psp-center { text-align: center; position: relative; z-index: 2; padding: 1rem; }
.psp-wm    { font-size: 2.5rem; filter: drop-shadow(0 0 12px rgba(255,255,255,0.3)); }
.sm-wm-icon { font-size: 1.5rem; }
.psp-name  { font-family: var(--syne); font-size: 2rem; font-weight: 800; color: white; text-shadow: 0 0 15px rgba(255,255,255,0.35); }
.sm-pname  { font-size: 1.1rem; }
.psp-tag   { font-family: var(--dm); font-size: 0.48rem; color: rgba(255,255,255,0.75); letter-spacing: 0.05em; line-height: 1.5; margin-top: 4px; }
.sm-ptag   { font-size: 0.36rem; }
.psp-btn   { margin-top: 1.5rem; background: var(--coral); color: white; font-family: var(--syne); font-size: 0.55rem; font-weight: 700; padding: 0.5rem 1.5rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(192,57,43,0.4); display: inline-block; }
.psp-link  { font-family: var(--dm); font-size: 0.38rem; color: rgba(255,255,255,0.65); margin-top: 0.5rem; }

/* ===== LOGIN SCREEN ===== */
.ps-login   { background: var(--dark-bg); }
.pl-top     { padding: 0.8rem; text-align: center; background: linear-gradient(180deg, #1E5A48, #0D2020); }
.compact-top{ padding: 0.5rem; }
.pl-form    { padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.compact-form{ gap: 0.3rem; padding: 0.5rem 0.7rem; }
.pl-field   { background: var(--dark-card); border: 1px solid rgba(74,191,170,0.28); border-radius: 10px; padding: 0.45rem 0.6rem; }
.sm-f       { padding: 0.3rem 0.5rem; border-radius: 8px; }
.pl-ph      { font-family: var(--dm); font-size: 0.42rem; color: var(--text-muted); font-style: italic; }
.pl-remember{ display: flex; align-items: center; gap: 0.3rem; font-family: var(--dm); font-size: 0.38rem; color: var(--text-muted); }
.pl-chk     { width: 10px; height: 10px; border: 1.5px solid var(--teal-brand); border-radius: 2px; background: var(--teal-brand); }
.pl-btn     { background: var(--grad-teal); color: white; font-family: var(--syne); font-size: 0.46rem; font-weight: 700; letter-spacing: 0.05em; text-align: center; padding: 0.5rem; border-radius: 10px; box-shadow: 0 4px 12px rgba(74,191,170,0.28); }
.sm-btn     { font-size: 0.4rem; padding: 0.4rem; }
.pl-link    { font-family: var(--dm); font-size: 0.4rem; color: var(--teal-light); text-align: center; }
.sm-link    { font-size: 0.35rem; }

/* ===== REGISTER SCREEN ===== */
.ps-register { background: var(--dark-bg); }
.reg-title-t { font-family: var(--syne); font-size: 0.55rem; font-weight: 700; color: var(--text-pri); text-align: center; padding: 0.35rem 0; }
.pw-strength-wrap { display: flex; align-items: center; gap: 0.4rem; }
.pw-str-bar  { flex: 1; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.pw-str-fill { height: 100%; width: 60%; background: var(--gold); border-radius: 2px; }
.pw-str-label{ font-family: var(--dm); font-size: 0.32rem; color: var(--gold); }

/* ===== HOME / DASHBOARD SCREEN ===== */
.ps-home    { background: var(--dark-bg); padding: 0.5rem 0.5rem 0; }
.ph-header  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.4rem; }
.sm-ph-header { margin-bottom: 0.25rem; }
.ph-greet   { font-family: var(--syne); font-size: 0.62rem; font-weight: 700; color: white; }
.sm-phgreet { font-size: 0.46rem; }
.ph-date    { font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); }
.ph-avatar  { width: 22px; height: 22px; background: var(--grad-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--syne); font-size: 0.36rem; font-weight: 700; color: white; }

/* Monthly budget card — coral gradient, never changes */
.ph-budget-card { background: var(--grad-coral); border-radius: 10px; padding: 0.5rem 0.6rem; margin-bottom: 0.35rem; }
.sm-phcard      { padding: 0.35rem 0.5rem; margin-bottom: 0.25rem; border-radius: 8px; }
.phb-row  { display: flex; justify-content: space-between; align-items: center; }
.phb-lbl  { font-family: var(--dm); font-size: 0.31rem; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.08em; }
.phb-rem  { font-family: var(--dm); font-size: 0.34rem; color: rgba(255,255,255,0.95); font-weight: 600; }
.phb-bar  { height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; margin: 0.3rem 0; }
.phb-fill { height: 100%; background: white; border-radius: 2px; }
.phb-pct  { font-family: var(--dm); font-size: 0.27rem; color: rgba(255,255,255,0.65); text-align: right; }

/* Safe-to-spend card */
.ph-safe  { background: var(--dark-card); border: 1px solid rgba(74,191,170,0.28); border-radius: 8px; padding: 0.4rem 0.5rem; margin-bottom: 0.35rem; }
.phs-lbl  { font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.phs-amt  { font-family: var(--syne); font-size: 1.1rem; font-weight: 700; color: var(--teal-brand); }
.phs-sub  { font-family: var(--dm); font-size: 0.25rem; color: var(--text-muted); }

/* Category grid */
.ph-cat-lbl  { font-family: var(--dm); font-size: 0.31rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ph-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; margin-bottom: 0.3rem; }
.ph-cat      { background: var(--dark-elev); border: 1px solid rgba(74,191,170,0.1); border-radius: 8px; padding: 0.3rem; display: flex; flex-direction: column; align-items: center; gap: 0.14rem; }
.over-phcat  { border-color: rgba(192,57,43,0.38); background: rgba(192,57,43,0.1); }
.phc-icon    { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.phc-n       { font-family: var(--dm); font-size: 0.25rem; color: var(--text-muted); }
.phc-ring    { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.24rem; }
.teal-r      { background: conic-gradient(var(--teal-brand) 80%, rgba(255,255,255,0.07) 80%); }
.warn-r      { background: conic-gradient(var(--gold) 81%, rgba(255,255,255,0.07) 81%); }
.over-r      { background: conic-gradient(var(--coral-dark) 100%, rgba(255,255,255,0.07) 100%); }
.phc-ring span { font-family: var(--dm); color: white; }
.phc-rem     { font-family: var(--dm); font-size: 0.28rem; color: var(--text-pri); font-weight: 600; }

/* FAB */
.ph-fab {
  position: absolute; bottom: 38px; right: 10px;
  width: 28px; height: 28px;
  background: var(--grad-coral); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: white; font-weight: 700;
  box-shadow: 0 4px 12px rgba(192,57,43,0.5); z-index: 10;
  animation: fabGlow 2s ease-in-out infinite;
}
@keyframes fabGlow {
  0%,100% { box-shadow: 0 4px 12px rgba(192,57,43,0.5); }
  50%      { box-shadow: 0 4px 25px rgba(232,99,90,0.85); }
}
.pulse-fab { animation: fabPulse 0.75s ease-in-out infinite !important; }
@keyframes fabPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
.sm-fab-p { width: 22px; height: 22px; bottom: 30px; right: 8px; font-size: 0.8rem; }

/* Bottom nav */
.ph-nav     { display: flex; background: var(--dark-elev); border-top: 1px solid rgba(74,191,170,0.13); padding: 4px 0; margin-top: auto; }
.mini-nav   { }
.phn        { flex: 1; text-align: center; font-size: 0.7rem; color: var(--text-muted); font-family: var(--dm); }
.phn span   { display: block; font-size: 0.26rem; color: var(--text-muted); }
.active-phn { color: var(--teal-brand); }
.active-phn span { color: var(--teal-brand); }

/* ===== ADD EXPENSE SCREEN ===== */
.ps-add     { background: var(--dark-bg); padding: 0.5rem 0.5rem 0; }
.pa-topbar  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.pa-back, .pa-cancel { font-family: var(--dm); font-size: 0.4rem; color: var(--teal-brand); }
.pa-title   { font-family: var(--syne); font-size: 0.55rem; font-weight: 700; color: white; }
.pa-amount-section { background: var(--dark-card); border: 1px solid rgba(74,191,170,0.2); border-radius: 10px; padding: 0.6rem; margin-bottom: 0.4rem; }
.pa-amt-lbl { font-family: var(--dm); font-size: 0.31rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.pa-amt-val { font-family: var(--syne); font-size: 1.2rem; font-weight: 700; color: var(--coral); }
.pa-row     { display: flex; align-items: center; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pa-lbl     { font-family: var(--dm); font-size: 0.35rem; color: var(--text-muted); }
.pa-val     { font-family: var(--dm); font-size: 0.35rem; color: var(--teal-light); }
.pa-chips   { display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.3rem 0; scrollbar-width: none; }
.pach       { font-family: var(--dm); font-size: 0.31rem; padding: 0.2rem 0.4rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(74,191,170,0.18); border-radius: 999px; white-space: nowrap; color: var(--text-muted); }
.active-pach{ background: rgba(74,191,170,0.14); border-color: var(--teal-brand); color: var(--teal-brand); }
.pa-desc    { font-family: var(--dm); font-size: 0.31rem; color: rgba(255,255,255,0.2); padding: 0.3rem 0; border-bottom: 1px solid rgba(74,191,170,0.1); margin-bottom: 0.3rem; }
.pa-receipt-row { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0; margin-bottom: 0.4rem; }
.pa-receipt-t{ font-family: var(--dm); font-size: 0.35rem; color: var(--teal-brand); }
.pa-save-btn{ background: var(--grad-teal); color: white; font-family: var(--syne); font-size: 0.4rem; font-weight: 700; text-align: center; padding: 0.5rem; border-radius: 10px; margin: 0 0.4rem 0.4rem; box-shadow: 0 4px 12px rgba(74,191,170,0.28); }

/* ===== EXPENSE LIST ===== */
.ps-list    { background: var(--dark-bg); padding: 0.5rem 0.5rem 0; }
.pel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.pel-title  { font-family: var(--syne); font-size: 0.65rem; font-weight: 700; color: white; }
.pel-tabs   { display: flex; gap: 0.3rem; margin-bottom: 0.3rem; }
.pel-tab    { font-family: var(--dm); font-size: 0.31rem; padding: 0.2rem 0.5rem; background: rgba(255,255,255,0.05); border-radius: 999px; color: var(--text-muted); }
.active-pelt{ background: rgba(74,191,170,0.14); color: var(--teal-brand); border: 1px solid var(--teal-brand); }
.pel-filter { font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.pel-total  { font-family: var(--dm); font-size: 0.35rem; color: var(--text-pri); margin-bottom: 0.3rem; }
.pel-total strong { color: var(--teal-brand); font-family: 'Courier New', monospace; }
.pel-items  { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.pel-item   { display: flex; align-items: center; gap: 0.35rem; background: var(--dark-card); border-radius: 8px; padding: 0.35rem 0.4rem; border-left: 2px solid var(--teal-brand); }
.pel-dot    { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; flex-shrink: 0; }
.pel-info   { flex: 1; }
.pel-desc   { font-family: var(--dm); font-size: 0.33rem; color: var(--text-pri); font-weight: 600; }
.pel-date   { font-family: var(--dm); font-size: 0.27rem; color: var(--text-muted); }
.pel-amt    { font-family: 'Courier New', monospace; font-size: 0.34rem; color: var(--coral); font-weight: 700; }
.search-active-icon { font-size: 0.5rem; color: var(--teal-brand); }
/* Year summary bars */
.year-bars  { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; padding: 0.3rem 0; }
.yb-item    { display: flex; align-items: center; gap: 0.3rem; font-family: var(--dm); font-size: 0.27rem; color: var(--text-muted); }
.yb-item span:first-child { width: 30px; text-align: right; }
.yb-bar     { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.yb-fill    { height: 100%; border-radius: 2px; }
.yb-val     { font-size: 0.27rem; color: var(--text-pri); width: 20px; }

/* ===== CATEGORY SUMMARY ===== */
.ps-summary { background: var(--dark-bg); padding: 0.5rem 0.5rem 0; }
.psu-header { display: flex; justify-content: space-between; align-items: center; font-family: var(--dm); font-size: 0.31rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.psu-title  { font-family: var(--syne); font-size: 0.5rem; font-weight: 700; color: var(--text-pri); }
.psu-pie-row{ display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.psu-pie    { width: 78px; height: 78px; flex-shrink: 0; }
.psu-legend { display: flex; flex-direction: column; gap: 0.2rem; }
.psu-leg    { display: flex; align-items: center; gap: 0.3rem; font-family: var(--dm); font-size: 0.29rem; color: var(--text-sec); }
.psu-dot    { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.psu-list   { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.psu-item   { display: flex; align-items: center; gap: 0.3rem; }
.psu-over   { background: rgba(192,57,43,0.06); border-radius: 6px; padding: 0.15rem; }
.psu-ic     { font-size: 0.7rem; }
.psu-inf    { flex: 1; }
.psu-nm     { font-family: var(--dm); font-size: 0.29rem; color: var(--text-pri); margin-bottom: 0.1rem; }
.psu-bar    { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.psu-fill   { height: 100%; border-radius: 2px; }
.psu-v      { font-family: 'Courier New', monospace; font-size: 0.26rem; color: var(--text-muted); white-space: nowrap; }

/* ===== GRAPHS SCREEN ===== */
.ps-graphs  { background: var(--dark-bg); padding: 0.5rem 0.5rem 0; }
.pgr-title  { font-family: var(--syne); font-size: 0.65rem; font-weight: 700; color: white; margin-bottom: 0.35rem; }
.pgr-tabs   { display: flex; gap: 0.2rem; margin-bottom: 0.3rem; flex-wrap: wrap; }
.pgr-tab    { font-family: var(--dm); font-size: 0.27rem; padding: 0.18rem 0.4rem; background: rgba(255,255,255,0.05); border-radius: 999px; color: var(--text-muted); }
.active-pgrt{ background: rgba(74,191,170,0.14); color: var(--teal-brand); border: 1px solid var(--teal-brand); }
.pgr-lbl-sm { font-family: var(--dm); font-size: 0.29rem; color: var(--text-sec); margin-bottom: 0.2rem; }
.pgr-area   { background: var(--dark-card); border: 1px solid rgba(74,191,170,0.11); border-radius: 8px; padding: 0.4rem; margin-bottom: 0.35rem; }
.pgr-svg    { width: 100%; }
.pgr-xlabels{ display: flex; justify-content: space-between; font-family: var(--dm); font-size: 0.23rem; color: var(--text-muted); margin-top: 0.15rem; }
.pgr-legend { display: flex; gap: 0.4rem; flex-wrap: wrap; font-family: var(--dm); font-size: 0.24rem; margin-top: 0.2rem; }
.pgr-summary{ display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.pgrs-row   { display: flex; justify-content: space-between; font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); padding: 0.18rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pgrs-v     { font-family: 'Courier New', monospace; color: var(--teal-brand); }

/* ===== BUDGET SCREEN ===== */
.ps-budget  { background: var(--dark-bg); padding: 0.5rem 0.5rem 0; }
.pbu-title  { font-family: var(--syne); font-size: 0.7rem; font-weight: 700; color: white; }
.pbu-sub    { font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.pbu-overall{ background: var(--dark-card); border: 1px solid rgba(74,191,170,0.28); border-radius: 10px; padding: 0.5rem 0.6rem; margin-bottom: 0.4rem; }
.pbu-ov-lbl { font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.pbu-ov-val { font-family: var(--syne); font-size: 1rem; font-weight: 700; color: var(--teal-brand); }
.pbu-cat-lbl{ font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pbu-list   { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.pbu-row    { display: flex; align-items: center; gap: 0.3rem; background: var(--dark-card); border-radius: 8px; padding: 0.3rem 0.4rem; }
.pbu-ic     { font-size: 0.75rem; }
.pbu-nm     { flex: 1; font-family: var(--dm); font-size: 0.31rem; color: var(--text-pri); }
.pbu-inp    { font-family: 'Courier New', monospace; font-size: 0.31rem; color: var(--teal-brand); }
.pbu-sw     { width: 20px; height: 10px; border-radius: 999px; position: relative; }
.on-psw     { background: var(--teal-brand); }
.off-psw    { background: var(--text-muted); }
.pbu-sw::after{ content:''; position:absolute; width:8px; height:8px; background:white; border-radius:50%; top:1px; }
.on-psw::after  { left: 11px; }
.off-psw::after { left: 1px; }
.pbu-add    { text-align: center; font-size: 1rem; color: var(--teal-brand); margin: 0.2rem 0; cursor: pointer; }
.pbu-btns   { display: flex; gap: 0.3rem; margin-bottom: 0.4rem; }
.pbu-save   { flex: 2; background: var(--grad-teal); color: white; font-family: var(--syne); font-size: 0.38rem; font-weight: 700; text-align: center; padding: 0.4rem; border-radius: 8px; }
.pbu-reset  { flex: 1; background: transparent; color: var(--teal-brand); border: 1px solid var(--teal-brand); font-family: var(--dm); font-size: 0.34rem; text-align: center; padding: 0.4rem; border-radius: 8px; }

/* ===== PROFILE SCREEN ===== */
.ps-profile { background: var(--dark-bg); padding: 0.5rem 0.5rem 0; }
.ppr-top    { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.ppr-av     { width: 28px; height: 28px; background: var(--grad-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--syne); font-size: 0.4rem; font-weight: 700; color: white; flex-shrink: 0; }
.sm-pav     { width: 22px; height: 22px; font-size: 0.34rem; }
.ppr-info   { flex: 1; }
.ppr-name   { font-family: var(--syne); font-size: 0.42rem; font-weight: 700; color: white; }
.ppr-email  { font-family: var(--dm); font-size: 0.27rem; color: var(--text-muted); }
.ppr-settings-icon { font-family: var(--dm); font-size: 0.29rem; color: var(--teal-brand); }
.ppr-level-lbl   { font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); }
.ppr-level-title { font-family: var(--syne); font-size: 0.42rem; font-weight: 700; color: var(--gold); margin-bottom: 0.3rem; }
.ppr-xp-bar-wrap { margin-bottom: 0.35rem; }
.ppr-xp-bar  { height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 0.1rem; }
.ppr-xp-fill { height: 100%; width: 65%; background: var(--grad-gold); border-radius: 3px; animation: xpAnim 2s ease-in-out infinite; }
@keyframes xpAnim { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 8px var(--gold)} }
.ppr-xp-text { font-family: var(--dm); font-size: 0.25rem; color: var(--text-muted); }
.ppr-stats-row{ display: flex; gap: 0.3rem; margin-bottom: 0.35rem; }
.ppr-stat    { flex: 1; background: var(--dark-card); border-radius: 8px; padding: 0.35rem; text-align: center; border: 1px solid rgba(74,191,170,0.13); }
.ppr-stat-icon{ font-size: 0.7rem; }
.ppr-stat-val { font-family: var(--syne); font-size: 0.68rem; font-weight: 700; color: var(--teal-brand); }
.ppr-stat-lbl { font-family: var(--dm); font-size: 0.25rem; color: var(--text-muted); }
.ppr-badges-lbl { font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.2rem; }
.ppr-badges  { display: grid; grid-template-columns: repeat(6,1fr); gap: 0.2rem; margin-bottom: 0.15rem; }
.ppr-badge   { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.earned-pb   { font-size: 0.7rem; background: linear-gradient(135deg,#1A2A08,#2A4010); border: 1.5px solid var(--gold); box-shadow: 0 0 6px rgba(232,184,75,0.28); }
.locked-pb   { font-size: 0.48rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
.ppr-count   { font-family: var(--dm); font-size: 0.27rem; color: var(--text-muted); }

/* ===== SETTINGS SCREEN ===== */
.ps-settings { background: var(--dark-bg); padding: 0.5rem 0.5rem 0; }
.pse-title   { font-family: var(--syne); font-size: 0.6rem; font-weight: 700; color: white; margin-bottom: 0.4rem; }
.pse-av-row  { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.pse-menu    { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.4rem; }
.pse-item    { display: flex; justify-content: space-between; align-items: center; font-family: var(--dm); font-size: 0.31rem; color: var(--text-pri); padding: 0.28rem 0.4rem; background: var(--dark-card); border-radius: 7px; }
.pse-arr     { color: var(--teal-brand); }
.pse-theme   { background: var(--dark-elev); border: 1px solid rgba(74,191,170,0.18); border-radius: 10px; padding: 0.4rem; margin-bottom: 0.3rem; }
.pse-theme-title{ font-family: var(--syne); font-size: 0.36rem; font-weight: 700; color: var(--text-pri); margin-bottom: 0.28rem; }
.pse-th      { font-family: var(--dm); font-size: 0.29rem; color: var(--text-muted); padding: 0.2rem 0; }
.active-pth  { color: var(--teal-brand); }
.pse-logout  { font-family: var(--dm); font-size: 0.31rem; color: var(--coral); text-align: center; padding: 0.3rem; border: 1px solid rgba(232,99,90,0.28); border-radius: 8px; margin-bottom: 0.3rem; }

/* ===== GLOBAL UTILITY ===== */
.r-txt { color: var(--coral-dark) !important; }

/* ===== NAV SECTION ===== */
.nav-sec { background: radial-gradient(ellipse at 50% 50%, rgba(74,191,170,0.03), transparent); }

/* Nav flow diagram */
.flow-vis   { margin: 1.5rem 0; }
.fv-row1    { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.fv-row2    { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.fv-node    {
  background: linear-gradient(135deg, #0D2020, #061010);
  border: 1.5px solid rgba(74,191,170,0.4);
  border-radius: 12px; padding: 0.5rem 0.8rem;
  font-family: var(--dm); font-size: 0.6rem;
  color: var(--teal-light); text-align: center; line-height: 1.35;
  cursor: default; transition: all 0.3s; position: relative;
}
.fv-node:hover { border-color: var(--teal-brand); box-shadow: 0 0 20px rgba(74,191,170,0.22); transform: translateY(-3px); }
.fv-splash  { border-color: var(--teal-light); }
.fv-purple  { border-color: rgba(156,39,176,0.5); color: #CE93D8; }
.fv-home    { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(232,184,75,0.14); }
.fv-gold    { border-color: var(--gold); background: linear-gradient(135deg,#1A1000,#261500); color: var(--gold); }
.fv-sm      { font-size: 0.5rem; padding: 0.4rem 0.6rem; }
.fv-a       { font-family: var(--syne); color: var(--teal-brand); font-size: 1.2rem; font-weight: 700; }
.fv-big-a   { font-size: 1.5rem; }
.fv-down    { text-align: center; font-family: var(--dm); font-size: 0.6rem; color: var(--teal-brand); margin: 0.5rem 0; letter-spacing: 0.05em; }

/* Navigation table */
.nav-tbl-wrap { margin-top: 1.5rem; overflow-x: auto; }
.nav-tbl      { width: 100%; border-collapse: collapse; font-family: var(--dm); font-size: 0.68rem; }
.nav-tbl th   { background: var(--dark-card); color: var(--teal-brand); padding: 0.7rem 1rem; text-align: left; font-weight: 600; border-bottom: 1px solid rgba(74,191,170,0.28); font-size: 0.6rem; letter-spacing: 0.05em; }
.nav-tbl td   { padding: 0.6rem 1rem; color: var(--text-sec); border-bottom: 1px solid rgba(255,255,255,0.04); }
.nav-tbl tr:hover td { background: rgba(74,191,170,0.04); color: var(--text-pri); }
.gold-tr td   { color: var(--gold) !important; background: rgba(232,184,75,0.05); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, #060E0E, #030808);
  border-top: 1px solid rgba(74,191,170,0.13);
  padding: 3rem 2rem; text-align: center;
}
.sf-wm   { font-size: 3rem; filter: drop-shadow(0 0 15px rgba(74,191,170,0.4)); margin-bottom: 0.3rem; }
.sf-name { font-family: var(--syne); font-size: 2.5rem; font-weight: 800; color: var(--teal-brand); text-shadow: 0 0 20px rgba(74,191,170,0.38); margin-bottom: 0.2rem; }
.sf-tag  { font-family: var(--dm); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.35em; margin-bottom: 1rem; }
.sf-team { font-family: var(--dm); font-size: 0.7rem; color: var(--text-sec); margin-bottom: 0.3rem; }
.sf-names{ font-family: var(--dm); font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.sf-note { font-family: var(--dm); font-size: 0.55rem; color: rgba(74,191,170,0.35); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .spanel-body, .reverse-spanel { grid-template-columns: 1fr; }
  .screen-info { order: 0; }
  .phones-row  { order: 1; }
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .logo-wordmark { font-size: 3rem; }
  .wm-scene { flex-direction: column; }
  .hero-bubble::before { display: none; }
  .phones-row { flex-wrap: wrap; justify-content: center; }
  .fr-grid  { grid-template-columns: 1fr; }
  .innov-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid  { grid-template-columns: 1fr; }
  .fc-gold    { grid-column: span 1; }
  .fv-row1, .fv-row2 { justify-content: center; }
  .doc-section { padding: 1.5rem 1rem; }
  .panel       { padding: 1.5rem 1rem 1rem; }
  .screen-panel{ padding: 1.2rem 1rem; }
  .ui-intro-panel { flex-direction: column; }
}
@media (max-width: 500px) {
  .logo-wordmark { font-size: 2rem; }
  .hero-wm-icon  { font-size: 2.5rem; }
  .phone    { width: 185px; }
  .mini-ph  { width: 145px; }
  .cp-row   { gap: 0.3rem; }
  .cp-swatch{ width: 46px; height: 46px; }
  .innov-grid{ grid-template-columns: 1fr; }
}