/* ===== VARIABLES ===== */
:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --card:      rgba(255,255,255,0.05);
  --card-h:    rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --accent:    #00d4aa;
  --accent-g:  rgba(0,212,170,0.25);
  --warn:      #f5c518;
  --danger:    #e87262;
  --text:      #ffffff;
  --text2:     rgba(255,255,255,0.60);
  --text3:     rgba(255,255,255,0.32);
  --nav-h:     68px;
  --hdr-h:     64px;
  --r:         14px;
  --r2:        20px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
input:focus, select:focus, button:focus { outline: none; }
svg { display: block; }

/* ===== ONBOARDING ===== */
.onboarding {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100;
  overflow-y: auto;
}
.ob-wrap {
  width: 100%; max-width: 400px;
  padding: 32px 28px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  position: relative;
}
.ob-logo {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 28px;
}
.ob-step { display: none; }
.ob-step.active { display: block; animation: fadein 0.25s ease; }
.ob-step h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.ob-sub { color: var(--text2); margin-bottom: 22px; font-size: 14px; }
.ob-note { color: var(--text3); font-size: 12px; margin: 14px 0 10px; }
.ob-dots { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border2); transition: background 0.2s; }
.dot.on { background: var(--accent); }

/* ===== FIELDS ===== */
.fld {
  display: flex; flex-direction: column;
  gap: 6px; margin-bottom: 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--text2);
  text-transform: uppercase;
  flex: 1;
}
.fld input, .fld select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 15px; font-weight: 500;
  transition: border-color 0.2s;
  width: 100%;
}
.fld input:focus, .fld select:focus { border-color: var(--accent); }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.fld-row { display: flex; gap: 12px; }
.fld-row .fld { flex: 1; }

/* ===== PILL GROUPS ===== */
.pill-g { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill {
  padding: 10px 18px; border-radius: 20px;
  border: 1px solid var(--border2);
  background: transparent; color: var(--text2);
  font-size: 13px; font-weight: 500;
  transition: all 0.15s;
  min-height: 38px;
}
.pill.on, .pill:hover { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }

/* ===== BUTTONS ===== */
.btn-p {
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 14px;
  padding: 13px 22px; border-radius: 12px;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-p:active { opacity: 0.8; transform: scale(0.98); }
.btn-g {
  background: var(--card); color: var(--text2);
  font-weight: 600; font-size: 14px;
  padding: 13px 22px; border-radius: 12px;
  border: 1px solid var(--border);
}
.btn-g:hover { background: var(--card-h); }
.btn-row { display: flex; gap: 10px; margin-top: 8px; }
.btn-row .btn-p, .btn-row .btn-g { flex: 1; }
.full { width: 100%; text-align: center; }

/* ===== APP SHELL ===== */
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  max-width: 480px; margin: 0 auto;
}
.hidden { display: none !important; }

/* ===== HEADER ===== */
.hdr {
  height: var(--hdr-h); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.hdr-date { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.hdr-name { font-size: 18px; font-weight: 700; margin-top: 1px; }
.hdr-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #000;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity 0.2s;
}
.hdr-av:active { opacity: 0.7; }

/* ===== TABS ===== */
.main {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
}
.tab { display: none; padding: 20px; }
.tab.active { display: block; animation: fadein 0.22s ease; }

/* ===== BOTTOM NAV ===== */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
  display: flex;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}
.nb {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--text3); transition: color 0.15s;
  padding: 8px 2px;
}
.nb svg { width: 20px; height: 20px; }
.nb span { font-size: 9px; font-weight: 600; letter-spacing: 0.04em; }
.nb.active, .nb:hover { color: var(--accent); }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
}
.card-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 14px;
}
.card-big { font-size: 42px; font-weight: 800; line-height: 1; }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text2); margin-top: 4px; }
.card-sub { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* ===== RECOVERY RING ===== */
.ring-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px 20px;
  position: relative;
}
.ring-container { position: relative; width: 180px; height: 180px; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.ring-score { font-size: 56px; font-weight: 800; line-height: 1; }
.ring-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-top: 4px; }
.ring-msg { font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ===== METRIC GRID ===== */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.metric-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
}
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.metric-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.metric-dot { width: 7px; height: 7px; border-radius: 50%; }
.metric-val { font-size: 28px; font-weight: 800; line-height: 1; }
.metric-unit { font-size: 11px; color: var(--text2); margin-top: 2px; }
.dot-green { background: var(--accent); }
.dot-yellow { background: var(--warn); }
.dot-red { background: var(--danger); }
.dot-grey { background: var(--text3); }

/* ===== PROGRESS BAR ===== */
.progress-wrap { margin: 10px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.progress-track {
  height: 6px; background: rgba(255,255,255,0.08);
  border-radius: 3px; overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.progress-fill.green  { background: var(--accent); }
.progress-fill.yellow { background: var(--warn); }
.progress-fill.red    { background: var(--danger); }
.progress-fill.blue   { background: #5b8af5; }
.progress-fill.orange { background: #f5934a; }

/* ===== GOAL ITEMS ===== */
.goal-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.goal-item:last-child { border-bottom: none; }
.goal-item.done { opacity: 0.45; }
.goal-item.done .goal-text { text-decoration: line-through; color: var(--text2); }
.goal-check {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  border: 1.5px solid var(--border2); display: flex; align-items: center;
  justify-content: center; transition: all 0.15s; margin-top: 1px;
  cursor: pointer; background: transparent;
}
.goal-check.checked { background: var(--accent); border-color: var(--accent); }
.goal-check.checked::after { content: '✓'; font-size: 16px; font-weight: 700; color: #000; }
.goal-text { flex: 1; font-size: 14px; line-height: 1.4; }
.goal-cat { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); margin-top: 2px; }
.goal-del { padding: 4px 8px; color: var(--text3); font-size: 16px; }
.goal-del:hover { color: var(--danger); }

/* ===== FORMS (inline) ===== */
.add-form { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.add-form input, .add-form select {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 10px; padding: 11px 14px;
  color: var(--text); font-size: 14px;
}
.add-form input:focus, .add-form select:focus { border-color: var(--accent); }
.add-form .btn-p { flex-shrink: 0; padding: 11px 18px; }
.add-form select { flex: 0 0 110px; }

.log-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.log-form .fld-row { margin-bottom: 0; }
.log-form .fld { margin-bottom: 0; }
.log-form input, .log-form select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 10px; padding: 11px 14px;
  color: var(--text); font-size: 15px; width: 100%;
}
.log-form input:focus { border-color: var(--accent); }
.log-form .btn-p { width: 100%; text-align: center; padding: 13px; }

/* ===== SLIDER ===== */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
}
.slider-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ===== SECTION HEADER ===== */
.sec-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; margin-top: 4px;
}
.sec-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.sec-link { font-size: 12px; color: var(--accent); font-weight: 600; }

/* ===== CHART CONTAINER ===== */
.chart-wrap { position: relative; height: 140px; margin-top: 8px; }

/* ===== EMPTY STATE ===== */
.empty {
  text-align: center; padding: 32px 20px;
  color: var(--text3);
}
.empty-icon { font-size: 36px; margin-bottom: 10px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.empty-text { font-size: 13px; line-height: 1.5; }

/* ===== GYM ===== */
.workout-type-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
  background: var(--accent-g); color: var(--accent);
  border: 1px solid rgba(0,212,170,0.3);
  margin-bottom: 10px;
}
.exercise-list { display: flex; flex-direction: column; gap: 8px; }
.exercise-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--border);
  text-align: left; transition: border-color 0.15s, background 0.15s;
}
.exercise-btn:hover { border-color: var(--accent); background: var(--card-h); }
.exercise-btn.selected { border-color: var(--accent); background: var(--accent-g); }
.ex-name { font-size: 14px; font-weight: 600; }
.ex-muscle { font-size: 11px; color: var(--text3); margin-top: 2px; }
.ex-1rm { font-size: 12px; color: var(--accent); font-weight: 600; }

.set-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.set-row:last-child { border-bottom: none; }
.set-num { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--text3); width: 44px; flex-shrink: 0; }
.set-input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2); border-radius: 8px;
  padding: 8px 12px; font-size: 15px; font-weight: 600;
  text-align: center; color: var(--text);
}
.set-input:focus { border-color: var(--accent); }
.set-del { color: var(--text3); font-size: 18px; padding: 8px 12px; min-width: 36px; min-height: 36px; }
.set-del:hover { color: var(--danger); }

/* ===== NUTRITION ===== */
.macro-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.macro-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 10px; text-align: center;
}
.macro-val { font-size: 22px; font-weight: 800; }
.macro-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text3); margin-top: 2px; }
.macro-tgt { font-size: 10px; color: var(--text3); margin-top: 1px; }

.food-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.food-item:last-child { border-bottom: none; }
.food-name { font-weight: 500; color: var(--text); flex: 1; }
.food-macros { color: var(--text2); font-size: 12px; }
.food-del { color: var(--text3); padding: 4px 8px; }
.food-del:hover { color: var(--danger); }

.food-preset-wrap { margin-top: 4px; }
.saved-meal-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.saved-meal-item:last-child { border-bottom: none; }
.food-del { color: var(--text3); padding: 6px 10px; font-size: 18px; min-width: 32px; }
.food-del:hover { color: var(--danger); }
.preset-hdr {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 8px; cursor: pointer;
}
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.preset-btn {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; text-align: left;
  font-size: 11px; color: var(--text2); transition: all 0.15s;
}
.preset-btn:hover { border-color: var(--accent); color: var(--text); }
.preset-btn .p-cal { font-weight: 700; color: var(--text); font-size: 12px; }

/* ===== PROJECTS ===== */
.project-item {
  padding: 14px 16px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--border);
  margin-bottom: 8px; transition: border-color 0.15s;
}
.project-item.done { opacity: 0.5; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-name { font-size: 15px; font-weight: 600; }
.project-status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
  flex-shrink: 0;
}
.status-active   { background: var(--accent-g); color: var(--accent); }
.status-planned  { background: rgba(91,138,245,0.15); color: #5b8af5; }
.status-done     { background: rgba(255,255,255,0.08); color: var(--text3); }
.status-paused   { background: rgba(245,197,24,0.12); color: var(--warn); }
.project-notes { font-size: 13px; color: var(--text2); margin-top: 6px; line-height: 1.4; }
.project-del { color: var(--text3); font-size: 16px; padding: 2px 6px; }
.project-del:hover { color: var(--danger); }

.ideas-wrap { margin-top: 6px; }
.idea-cat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); margin-bottom: 8px; overflow: hidden;
}
.idea-cat-hdr {
  padding: 13px 16px; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer;
  font-weight: 600; font-size: 14px;
}
.idea-cat-hdr:hover { background: var(--card-h); }
.idea-cat-arrow { color: var(--text3); transition: transform 0.2s; }
.idea-cat-arrow.open { transform: rotate(90deg); }
.idea-list { display: none; padding: 0 16px 12px; }
.idea-list.open { display: block; }
.idea-list li {
  list-style: none; padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text2);
  display: flex; align-items: center; justify-content: space-between;
}
.idea-list li:last-child { border-bottom: none; }
.idea-add { font-size: 12px; color: var(--accent); font-weight: 600; }

/* ===== PROFILE ===== */
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-lbl { font-size: 13px; color: var(--text2); }
.stat-val { font-size: 14px; font-weight: 700; }
.danger-btn {
  width: 100%; text-align: center; padding: 13px;
  background: rgba(232,114,98,0.1);
  border: 1px solid rgba(232,114,98,0.3);
  color: var(--danger); font-weight: 600;
  border-radius: 12px; margin-top: 8px;
  transition: background 0.15s;
}
.danger-btn:hover { background: rgba(232,114,98,0.18); }

/* ===== TAGS / CATEGORY FILTER ===== */
.cat-filter { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.cat-filter::-webkit-scrollbar { display: none; }
.cat-tag {
  flex-shrink: 0; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text2); transition: all 0.15s;
}
.cat-tag.on { background: var(--accent); border-color: var(--accent); color: #000; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ===== TAB TITLE ===== */
.tab-title {
  font-size: 24px; font-weight: 800;
  margin-bottom: 20px; letter-spacing: -0.02em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ringin {
  from { stroke-dashoffset: 314.16; }
}

/* ===== SUGGESTION CHIP ===== */
.suggestion {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  font-size: 13px; color: var(--accent); font-weight: 500;
  margin: 6px 0;
}
.suggestion-icon { font-size: 14px; }

/* ===== TOGGLE ===== */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.toggle-lbl { font-size: 14px; }

/* ===== LOADING STATE ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%; transform: translateX(-50%);
  background: rgba(20,20,30,0.96);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== HEALTH TIPS ===== */
.tip-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.tip-item:last-child { border-bottom: none; }
.tip-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.tip-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.tip-text  { font-size: 12px; color: var(--text2); line-height: 1.55; }

/* ===== DEMO BANNER ===== */
.demo-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(124,58,237,0.15);
  border-bottom: 1px solid rgba(124,58,237,0.3);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: #a78bfa;
}
.demo-banner button {
  background: rgba(124,58,237,0.25); border: 1px solid rgba(124,58,237,0.4);
  color: #a78bfa; border-radius: 8px; padding: 5px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; cursor: pointer;
}

/* ===== ONBOARDING DEMO BUTTON ===== */
.btn-demo {
  display: block; width: 100%; background: none; border: none;
  color: var(--text3); font-size: 13px; text-align: center;
  padding: 10px; margin-top: 4px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-demo:hover { color: var(--text2); }

/* ===== FSA RECONNECT BANNER ===== */
.fsa-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; margin: 0 0 0 0;
  background: rgba(245,197,24,0.08);
  border-bottom: 1px solid rgba(245,197,24,0.2);
}

/* ===== RESPONSIVE — DESKTOP FRAME ===== */
@media (min-width: 480px) {
  .bnav { left: 50%; transform: translateX(-50%); width: 480px; }
  body { background: #050508; }
  .app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ===== RESPONSIVE — VERY SMALL PHONES (iPhone SE etc.) ===== */
@media (max-width: 360px) {
  .tab { padding: 16px; }
  .card { padding: 14px; }
  .ring-score { font-size: 44px; }
  .nb span { font-size: 8px; }
  .pill { padding: 9px 14px; font-size: 12px; }
  .fld-row { flex-direction: column; gap: 10px; }
}
