:root {
  --neon-lime: #A3E635;
  --neon-yellow: #FACC15;
  --space-carbon: #1E293B;
  --glass-surface: rgba(13, 19, 34, 0.78);
  --glass-surface-strong: rgba(13, 19, 34, 0.90);
  --glass-border: rgba(163, 230, 53, 0.35);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --danger: #F87171;
  --accent-primary: #A3E635;
  --accent-secondary: #FACC15;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body[data-theme="yellow"] {
  --accent-primary: #FACC15;
  --accent-secondary: #A3E635;
  --glass-border: rgba(250, 204, 21, 0.42);
}

body[data-theme="dual"] {
  --accent-primary: #A3E635;
  --accent-secondary: #FACC15;
  --glass-border: rgba(250, 204, 21, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-stack);
  color: var(--text-main);
  background-color: var(--space-carbon);
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

button, select, input, textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--text-main);
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:active {
  transform: scale(0.97);
}

/* ==================== WELCOME SCREEN (SINGLE VIEWPORT NO SCROLL) ==================== */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

.welcome-screen.active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.welcome-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
}

.welcome-header {
  text-align: center;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 14px 14px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(250, 204, 21, 0.12);
}

.welcome-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.welcome-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1.5px solid var(--accent-primary);
  box-shadow: 0 0 16px rgba(163, 230, 53, 0.45);
}

.orbital-ring-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #0D1322;
  background: linear-gradient(90deg, var(--neon-lime), var(--neon-yellow));
  padding: 3px 10px;
  border-radius: 999px;
}

.welcome-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #FFFFFF 10%, var(--neon-lime) 65%, var(--neon-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.welcome-subtitle {
  font-size: 12.5px;
  line-height: 1.35;
  color: #CBD5E1;
}

.welcome-bento-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.welcome-bento-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.welcome-bento-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.welcome-bento-wide {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.wb-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-icon-box svg {
  width: 22px;
  height: 22px;
}

.wb-icon-box.lime-glow {
  background: rgba(163, 230, 53, 0.16);
  color: var(--neon-lime);
  border: 1px solid rgba(163, 230, 53, 0.45);
}

.wb-icon-box.yellow-glow {
  background: rgba(250, 204, 21, 0.16);
  color: var(--neon-yellow);
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.wb-text h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.wb-text p {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text-muted);
}

.welcome-footer {
  padding-top: 2px;
}

.btn-primary-cta {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon-lime) 0%, var(--neon-yellow) 100%);
  color: #0B101D;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  box-shadow: 0 6px 22px rgba(163, 230, 53, 0.4);
}

/* ==================== PERSISTENT TOP HEADER ==================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 10px;
  background: rgba(13, 19, 34, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--accent-primary);
}

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: #FFFFFF;
}

.header-rank-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.18);
  color: var(--neon-lime);
  border: 1px solid rgba(163, 230, 53, 0.4);
}

.header-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-pill-btn {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--neon-yellow);
  font-weight: 800;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.streak-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-lime);
  box-shadow: 0 0 8px var(--neon-lime);
}

.header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-lime), var(--neon-yellow));
  color: #0D1322;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(163, 230, 53, 0.35);
}

/* ==================== APP CONTENT SCREENS ==================== */
.app-screen {
  padding: 14px 14px calc(env(safe-area-inset-bottom, 0px) + 92px);
  flex: 1;
}

.glass-card {
  background: var(--glass-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(250, 204, 21, 0.08);
}

.eyebrow-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.card-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.card-desc-sm {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.card-header-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

/* ==================== HERO BENTO CARD & 2x2 TILES ==================== */
.hero-bento-card {
  border-image: linear-gradient(135deg, var(--neon-lime), var(--neon-yellow)) 1;
  border: 1.5px solid rgba(163, 230, 53, 0.55);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-main-title {
  font-size: 19px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

.hero-score-badge {
  background: rgba(163, 230, 53, 0.14);
  border: 1px solid rgba(163, 230, 53, 0.45);
  border-radius: 12px;
  padding: 6px 10px;
  text-align: right;
  min-width: 88px;
}

.score-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.7px;
}

.score-value {
  font-size: 19px;
  font-weight: 900;
  color: var(--neon-lime);
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.hero-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hms-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.hero-mini-stat strong {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.text-lime {
  color: var(--neon-lime) !important;
}

.text-yellow {
  color: var(--neon-yellow) !important;
}

.hero-action-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-glass-sm {
  min-height: 44px;
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(163, 230, 53, 0.32);
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
}

.bento-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.bento-tile {
  margin-bottom: 0;
  padding: 13px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease;
}

.bento-tile:active {
  transform: scale(0.97);
}

.bento-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bt-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-icon.lime {
  background: rgba(163, 230, 53, 0.16);
  color: var(--neon-lime);
}

.bt-icon.yellow {
  background: rgba(250, 204, 21, 0.16);
  color: var(--neon-yellow);
}

.bt-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.16);
  color: var(--neon-lime);
  border: 1px solid rgba(163, 230, 53, 0.35);
}

.bt-badge.yellow {
  background: rgba(250, 204, 21, 0.16);
  color: var(--neon-yellow);
  border-color: rgba(250, 204, 21, 0.35);
}

.bento-tile-Val {
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.bento-tile-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==================== SECTION HEADERS & FILTER CHIPS ==================== */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 10px;
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #E2E8F0;
}

.btn-text-action {
  min-height: 44px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--neon-lime);
}

.filter-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.filter-chip-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.25), rgba(250, 204, 21, 0.25));
  border-color: var(--neon-lime);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.25);
}

/* ==================== FEED & VAULT CARDS ==================== */
.action-feed-list, .vault-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card {
  background: var(--glass-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 13px;
  transition: border-color 0.18s ease;
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.item-cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(163, 230, 53, 0.15);
  color: var(--neon-lime);
  margin-bottom: 4px;
}

.item-cat-tag.yellow {
  background: rgba(250, 204, 21, 0.16);
  color: var(--neon-yellow);
}

.item-cat-tag.alert {
  background: rgba(248, 113, 113, 0.2);
  color: #FCA5A5;
}

.item-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.item-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  padding: 8px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.im-cell {
  display: flex;
  flex-direction: column;
}

.im-cell span {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.im-cell strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #F8FAFC;
}

.item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-card-act {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
}

.btn-card-act.primary {
  border-color: rgba(163, 230, 53, 0.45);
  color: var(--neon-lime);
}

.btn-card-act.danger {
  border-color: rgba(248, 113, 113, 0.4);
  color: #FCA5A5;
}

/* ==================== WORKBENCH SUBTABS & COMPARATOR ==================== */
.subtab-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--glass-surface);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  margin-bottom: 14px;
}

.subtab-btn {
  min-height: 44px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 4px 4px;
  text-align: center;
  line-height: 1.15;
}

.subtab-btn.active {
  background: linear-gradient(135deg, var(--neon-lime), var(--neon-yellow));
  color: #0D1322;
  box-shadow: 0 3px 12px rgba(163, 230, 53, 0.3);
}

.wtab-panel {
  display: none;
}

.wtab-panel.active {
  display: block;
}

.btn-neon-sm {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--neon-lime), var(--neon-yellow));
  color: #0D1322;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.comp-selectors-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.comp-select-box label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-lime);
  margin-bottom: 4px;
}

.cyber-select, .cyber-select-inline {
  width: 100%;
  min-height: 44px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(163, 230, 53, 0.4);
  border-radius: 10px;
  padding: 0 10px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
}

.cyber-select-inline {
  width: auto;
  min-width: 140px;
}

.comp-vs-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.comp-metric-row {
  margin-bottom: 10px;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cmr-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 5px;
}

.cmr-label {
  color: var(--text-muted);
  font-size: 11px;
}

.cmr-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cmr-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.cmr-bar-fill.alpha {
  height: 100%;
  background: var(--neon-lime);
  border-radius: 999px;
}

.cmr-bar-fill.beta {
  height: 100%;
  background: var(--neon-yellow);
  border-radius: 999px;
}

.comp-verdict-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(163, 230, 53, 0.18), rgba(250, 204, 21, 0.16));
  border: 1px solid rgba(163, 230, 53, 0.5);
  font-size: 12.5px;
  line-height: 1.35;
  color: #F8FAFC;
}

/* ==================== CHECKLIST & BATTERY ==================== */
.progress-bar-outer {
  width: 100%;
  height: 9px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-lime), var(--neon-yellow));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.checklist-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.check-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check-toggle-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(163, 230, 53, 0.5);
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.check-toggle-btn.done {
  background: var(--neon-lime);
  color: #0D1322;
}

.check-info {
  flex: 1;
}

.check-info.done .item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ==================== ANALYTICS CANVAS SCREEN ==================== */
.chart-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.chart-tab-btn {
  min-height: 44px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 800;
  padding: 0 6px;
}

.chart-tab-btn.active {
  border-color: var(--neon-lime);
  color: var(--neon-lime);
  background: rgba(163, 230, 53, 0.14);
}

.canvas-wrapper {
  width: 100%;
  height: 230px;
  background: rgba(10, 15, 28, 0.82);
  border-radius: 14px;
  border: 1px solid rgba(163, 230, 53, 0.25);
  padding: 8px;
  position: relative;
}

#telemetryCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-legend-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(163, 230, 53, 0.2);
  color: var(--neon-lime);
  font-weight: 900;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

/* ==================== 7-DAY STREAK CALENDAR ==================== */
.streak-top-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.streak-counter-orb {
  min-width: 82px;
  height: 82px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(163, 230, 53, 0.3), rgba(13, 19, 34, 0.95));
  border: 1.5px solid var(--neon-lime);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(163, 230, 53, 0.3);
}

.orb-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--neon-lime);
  line-height: 1;
}

.orb-unit {
  font-size: 9px;
  font-weight: 800;
  color: #E2E8F0;
  margin-top: 3px;
}

.xp-progress-box {
  margin-bottom: 12px;
}

.xp-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--neon-yellow);
}

.streak-lock-note {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.streak-7day-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.day-tile {
  background: var(--glass-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 106px;
}

.day-tile.claimed {
  border-color: var(--neon-lime);
  background: rgba(163, 230, 53, 0.14);
}

.day-tile.today-ready {
  border: 1.5px solid var(--neon-yellow);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.32);
}

.day-num {
  font-size: 11px;
  font-weight: 900;
  color: var(--neon-lime);
}

.day-perk-title {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.day-status-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-muted);
}

.day-tile.claimed .day-status-pill {
  background: var(--neon-lime);
  color: #0D1322;
}

.day-tile.today-ready .day-status-pill {
  background: var(--neon-yellow);
  color: #0D1322;
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.perk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.72);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(163, 230, 53, 0.25);
}

/* ==================== SETTINGS, ABOUT & LEGAL ==================== */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setting-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.setting-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.version-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(163, 230, 53, 0.16);
  color: var(--neon-lime);
  border: 1px solid rgba(163, 230, 53, 0.4);
}

.btn-danger-sm {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #FCA5A5;
  font-size: 12.5px;
  font-weight: 800;
}

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

.btn-glass-action {
  min-height: 54px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(163, 230, 53, 0.35);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
}

.legal-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.legal-row-btn {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==================== FIXED BOTTOM NAVIGATION ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 40;
  background: rgba(13, 19, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.nav-item {
  min-height: 48px;
  border-radius: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
}

.nav-item.active {
  color: var(--neon-lime);
  background: rgba(163, 230, 53, 0.12);
}

/* ==================== BOTTOM SHEET MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 86dvh;
  background: var(--glass-surface-strong);
  border-top: 1.5px solid var(--neon-lime);
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 20px);
  overflow-y: auto;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.55);
  animation: sheetSlideUp 0.22s ease-out;
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 10px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
}

.sheet-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 5px;
}

.cyber-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(163, 230, 53, 0.35);
  color: #FFFFFF;
  font-size: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.legal-text-block {
  font-size: 13px;
  line-height: 1.55;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-text-block h4 {
  color: var(--neon-lime);
  font-size: 14px;
  margin-top: 4px;
}

/* ==================== TOAST BANNER ==================== */
.toast-banner {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: rgba(13, 19, 34, 0.95);
  border: 1.5px solid var(--neon-lime);
  color: #FFFFFF;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-width: 90%;
  text-align: center;
}

