/* =============================================
   FitTrack Pro — Premium Athletic Dark Theme
   ============================================= */

:root {
  --bg:        #0a0b0f;
  --surface:   #111318;
  --card:      #181c26;
  --card2:     #1e2334;
  --border:    rgba(255,255,255,0.07);
  --green:     #00ff87;
  --green2:    #00c96e;
  --blue:      #00b4d8;
  --orange:    #ff6b35;
  --purple:    #b57bff;
  --red:       #ff4757;
  --yellow:    #ffd32a;
  --text:      #f0f2f5;
  --text2:     #8b95a8;
  --text3:     #5a6478;
  --radius:    16px;
  --radius-sm: 10px;
  --nav-h:     70px;
  --safe-b:    env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; overflow: hidden; }
#app { height: 100vh; display: flex; flex-direction: column; }

/* ---- SPLASH ---- */
#splash { position: fixed; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; z-index: 999; transition: opacity 0.5s; }
.splash-logo { text-align: center; }
.splash-logo .logo-icon { font-size: 64px; display: block; margin-bottom: 12px; animation: pulse 1.5s infinite; }
.splash-logo h1 { font-family: 'Bebas Neue', sans-serif; font-size: 52px; letter-spacing: 3px; color: var(--text); }
.splash-logo h1 span { color: var(--green); }
.splash-loader { width: 180px; height: 3px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.splash-loader span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 99px; animation: loading 1.2s ease-in-out infinite; }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ---- LAYOUT ---- */
#main-wrap { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
#page { flex: 1; overflow-y: auto; padding: 0 0 calc(var(--nav-h) + var(--safe-b) + 8px); scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
#page::-webkit-scrollbar { display: none; }

/* ---- BOTTOM NAV ---- */
#bottom-nav { height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--surface); border-top: 1px solid var(--border); display: flex; position: relative; z-index: 50; flex-shrink: 0; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; border: none; background: none; color: var(--text3); transition: color 0.2s; padding: 8px 0; }
.nav-item.active { color: var(--green); }
.nav-item .nav-icon { font-size: 22px; transition: transform 0.2s; }
.nav-item.active .nav-icon { transform: scale(1.15); }
.nav-item span:last-child { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

/* ---- TOP BAR ---- */
.top-bar { padding: 56px 20px 16px; position: sticky; top: 0; background: var(--bg); z-index: 10; }
.top-bar h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 2px; color: var(--text); }
.top-bar .sub { color: var(--text2); font-size: 13px; margin-top: 2px; }
.top-bar-row { display: flex; justify-content: space-between; align-items: flex-end; }

/* ---- CARDS ---- */
.card { background: var(--card); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); }
.card + .card { margin-top: 12px; }
.card-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text3); font-weight: 600; margin-bottom: 10px; }
.pad { padding: 0 16px; }

/* ---- STAT RING ---- */
.ring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.ring-card { background: var(--card); border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.ring-card .label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); font-weight: 600; }
.ring-card .val { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--text); line-height: 1; }
.ring-card .val span { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text2); margin-left: 3px; }
.ring-card .bar { height: 4px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.ring-card .bar div { height: 100%; border-radius: 99px; transition: width 0.8s cubic-bezier(.4,0,.2,1); }
.ring-card.cal .bar div { background: var(--orange); }
.ring-card.burn .bar div { background: var(--green); }
.ring-card.water .bar div { background: var(--blue); }
.ring-card.steps .bar div { background: var(--purple); }

/* ---- QUICK ACTIONS ---- */
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 0 16px; }
.q-btn { background: var(--card); border-radius: var(--radius-sm); padding: 14px 8px; border: 1px solid var(--border); cursor: pointer; text-align: center; transition: background 0.15s, transform 0.15s; }
.q-btn:active { transform: scale(0.94); background: var(--card2); }
.q-btn .q-icon { font-size: 24px; display: block; margin-bottom: 5px; }
.q-btn .q-label { font-size: 10px; color: var(--text2); font-weight: 600; }

/* ---- SECTION TITLE ---- */
.sec { padding: 20px 16px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text3); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.sec a { color: var(--green); text-decoration: none; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; cursor: pointer; }

/* ---- GDPR CONSENT ROW ---- */
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 12px; color: var(--text2); line-height: 1.5; cursor: pointer; }
.consent-row input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--green); cursor: pointer; }
.consent-row a { color: var(--green); text-decoration: underline; cursor: pointer; }

/* ---- ACTIVITY ITEM ---- */
.act-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.act-item { background: var(--card); border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.act-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.act-info { flex: 1; min-width: 0; }
.act-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-meta { font-size: 12px; color: var(--text2); margin-top: 2px; }
.act-cal { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--green); flex-shrink: 0; }
.act-del { background: none; border: none; color: var(--text3); cursor: pointer; padding: 6px; font-size: 16px; }

/* ---- FORMS ---- */
.form-wrap { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--card2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px;
  font-family: 'DM Sans', sans-serif; width: 100%; outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 80px; }
select option { background: var(--card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* ---- BUTTONS ---- */
.btn { border: none; border-radius: var(--radius-sm); padding: 14px 20px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: transform 0.15s, opacity 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: var(--green2); }
.btn-secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: rgba(255,71,87,0.15); color: var(--red); border: 1px solid rgba(255,71,87,0.2); }
.btn-blue { background: rgba(0,180,216,0.15); color: var(--blue); border: 1px solid rgba(0,180,216,0.2); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- AUTH PAGE ---- */
#auth-page { min-height: 100vh; display: flex; flex-direction: column; padding: 60px 24px 40px; overflow-y: auto; }
.auth-logo { text-align: center; margin-bottom: 40px; }
.auth-logo .logo-icon { font-size: 48px; display: block; margin-bottom: 8px; }
.auth-logo h1 { font-family: 'Bebas Neue', sans-serif; font-size: 44px; letter-spacing: 3px; }
.auth-logo h1 span { color: var(--green); }
.auth-logo p { color: var(--text2); font-size: 14px; margin-top: 4px; }
.auth-tabs { display: flex; background: var(--card); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 10px; text-align: center; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text2); transition: all 0.2s; }
.auth-tab.active { background: var(--green); color: #000; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .form-group label { font-size: 12px; }
.auth-link { text-align: center; color: var(--text2); font-size: 14px; margin-top: 12px; }
.auth-link span { color: var(--green); cursor: pointer; }
.auth-error { background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.4); color: #ff6b7a; font-size: 13px; line-height: 1.5; padding: 12px 14px; border-radius: var(--radius-sm); }

/* ---- GYM PAGE ---- */
.muscle-tabs { display: flex; gap: 8px; padding: 0 16px; overflow-x: auto; padding-bottom: 4px; }
.muscle-tabs::-webkit-scrollbar { display: none; }
.mtab { flex-shrink: 0; padding: 7px 16px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text2); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.mtab.active { background: var(--green); color: #000; border-color: var(--green); }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }
.ex-card { background: var(--card); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.2s, transform 0.15s; }
.ex-card:active { transform: scale(0.96); }
.ex-card:hover, .ex-card.selected { border-color: var(--green); }
.ex-card .ex-icon { font-size: 24px; margin-bottom: 6px; }
.ex-card .ex-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.ex-card .ex-muscle { font-size: 11px; color: var(--text3); margin-top: 3px; }
.ex-card .ex-equip { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; font-size: 10px; background: var(--card2); color: var(--text2); }
.session-badge { background: linear-gradient(135deg, var(--green), var(--blue)); border-radius: var(--radius); padding: 16px; color: #000; display: flex; justify-content: space-between; align-items: center; margin: 0 16px; }
.session-badge h3 { font-weight: 700; font-size: 15px; }
.session-badge .sbstats { display: flex; gap: 16px; margin-top: 4px; font-size: 13px; }
.log-set-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.log-set-row .snum { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #000; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.set-done { background: var(--card2) !important; color: var(--text3) !important; }

/* ---- NUTRITION ---- */
.meal-section { margin-bottom: 16px; }
.meal-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 6px; }
.meal-header h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.meal-header .meal-cal { font-size: 12px; color: var(--text2); }
.food-item { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.food-item:last-child { border-bottom: none; }
.food-name { font-size: 14px; font-weight: 500; }
.food-serving { font-size: 12px; color: var(--text2); margin-top: 2px; }
.food-cals { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--orange); }
.macro-bar { display: flex; gap: 8px; padding: 12px 16px; }
.macro-pill { flex: 1; background: var(--card2); border-radius: 8px; padding: 10px 8px; text-align: center; }
.macro-pill .mv { font-weight: 700; font-size: 16px; }
.macro-pill .ml { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.macro-pill.prot .mv { color: var(--blue); }
.macro-pill.carb .mv { color: var(--yellow); }
.macro-pill.fat .mv { color: var(--orange); }

/* ---- WATER ---- */
.water-display { display: flex; flex-direction: column; align-items: center; padding: 20px; }
.water-circle { width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--blue) 0%, var(--card2) 0%); display: flex; align-items: center; justify-content: center; position: relative; transition: all 0.5s; }
.water-circle::before { content: ''; position: absolute; inset: 8px; background: var(--card); border-radius: 50%; }
.water-circle .wc-inner { position: relative; text-align: center; }
.water-circle .wc-val { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--blue); }
.water-circle .wc-unit { font-size: 11px; color: var(--text2); }
.water-btns { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 0 16px; }
.water-btn { background: rgba(0,180,216,0.1); border: 1px solid rgba(0,180,216,0.2); color: var(--blue); border-radius: var(--radius-sm); padding: 12px 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.15s; }
.water-btn:active { background: rgba(0,180,216,0.25); transform: scale(0.95); }

/* ---- DIET / AI COACH ---- */
.plan-text { white-space: pre-wrap; font-size: 13px; line-height: 1.7; color: var(--text); padding: 16px; background: var(--card); border-radius: var(--radius); margin: 0 16px; border: 1px solid var(--border); max-height: 400px; overflow-y: auto; }
.chat-wrap { display: flex; flex-direction: column; padding: 0 16px 16px; gap: 12px; }
.chat-bubble { border-radius: 16px; padding: 12px 16px; max-width: 90%; font-size: 14px; line-height: 1.6; }
.chat-bubble.user { background: var(--green); color: #000; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble.bot { background: var(--card2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--border); }
.chat-input-row { display: flex; gap: 8px; padding: 0 16px 16px; position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); }
.chat-input-row input { flex: 1; background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 99px; padding: 12px 18px; font-size: 14px; font-family: 'DM Sans', sans-serif; outline: none; }
.chat-input-row input:focus { border-color: var(--green); }
.chat-input-row button { width: 44px; height: 44px; border-radius: 50%; background: var(--green); border: none; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #000; }

/* ---- PROFILE ---- */
.profile-header { padding: 56px 20px 24px; text-align: center; }
.avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 14px; }
.profile-header h2 { font-size: 22px; font-weight: 700; }
.profile-header p { color: var(--text2); font-size: 13px; margin-top: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 16px; margin-bottom: 20px; }
.stat-box { background: var(--card); border-radius: var(--radius-sm); padding: 14px 10px; text-align: center; border: 1px solid var(--border); }
.stat-box .sv { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--green); }
.stat-box .sl { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.settings-item { padding: 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.settings-item:active { background: var(--card2); }
.settings-item .si-label { font-size: 14px; font-weight: 500; }
.settings-item .si-val { color: var(--text2); font-size: 13px; }

/* ---- REMINDERS ---- */
.reminder-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.reminder-item .ri-info h4 { font-size: 14px; font-weight: 600; }
.reminder-item .ri-info p { font-size: 12px; color: var(--text2); margin-top: 2px; }
.toggle { width: 48px; height: 26px; border-radius: 99px; background: var(--card2); position: relative; cursor: pointer; border: 1px solid var(--border); transition: background 0.2s; flex-shrink: 0; }
.toggle.on { background: var(--green); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.toggle.on::after { transform: translateX(22px); }

/* ---- MODALS ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-end; }
.modal { background: var(--surface); border-radius: 24px 24px 0 0; width: 100%; max-height: 92vh; overflow-y: auto; padding-bottom: calc(var(--safe-b) + 20px); animation: slideUp 0.3s cubic-bezier(.4,0,.2,1); }
.modal::-webkit-scrollbar { display: none; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 99px; margin: 14px auto 10px; }
.modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1.5px; padding: 0 20px 16px; }

/* ---- TOAST ---- */
.toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%) translateY(-80px); background: var(--card2); color: var(--text); padding: 12px 20px; border-radius: 99px; font-size: 14px; font-weight: 500; z-index: 200; border: 1px solid var(--border); white-space: nowrap; transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s; opacity: 0; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: rgba(0,255,135,0.3); color: var(--green); }
.toast.error { border-color: rgba(255,71,87,0.3); color: var(--red); }

/* ---- LOADER ---- */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--text2); font-size: 14px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--green); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- EMPTY STATE ---- */
.empty { text-align: center; padding: 40px 20px; }
.empty .empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.empty h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.empty p { font-size: 13px; color: var(--text2); }

/* ---- PROGRESS WEEK ---- */
.week-bars { display: flex; justify-content: space-between; align-items: flex-end; padding: 8px 16px 0; height: 80px; }
.week-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.week-bar { width: 100%; max-width: 24px; background: var(--green); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.6s cubic-bezier(.4,0,.2,1); }
.week-bar.today { background: var(--blue); }
.week-label { font-size: 10px; color: var(--text3); }

/* ---- SEARCH ---- */
.search-box { margin: 0 16px 12px; position: relative; }
.search-box input { background: var(--card2); border: 1px solid var(--border); color: var(--text); border-radius: 99px; padding: 11px 16px 11px 40px; font-size: 14px; font-family: 'DM Sans', sans-serif; width: 100%; outline: none; }
.search-box input:focus { border-color: var(--green); }
.search-box::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; }

/* ---- FOOD SEARCH RESULTS ---- */
.food-result { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; display: flex; justify-content: space-between; align-items: center; }
.food-result:active { background: var(--card2); }
.food-result-name { font-size: 14px; font-weight: 500; }
.food-result-info { font-size: 12px; color: var(--text2); margin-top: 2px; }
.food-result-cal { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--orange); flex-shrink: 0; }

/* ---- HYDRATION REMINDER ---- */
.reminder-banner { margin: 12px 16px 0; background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(0,180,216,0.05)); border: 1px solid rgba(0,180,216,0.2); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.reminder-banner .rb-icon { font-size: 28px; flex-shrink: 0; }
.reminder-banner h4 { font-size: 14px; font-weight: 600; color: var(--blue); }
.reminder-banner p { font-size: 12px; color: var(--text2); margin-top: 2px; }
.reminder-banner .rb-dismiss { margin-left: auto; background: none; border: none; color: var(--text3); cursor: pointer; font-size: 18px; flex-shrink: 0; }

/* ---- UTILS ---- */
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-2 { color: var(--text2); font-size: 13px; }
.bold { font-weight: 700; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.badge-green { background: rgba(0,255,135,0.1); color: var(--green); }
.badge-orange { background: rgba(255,107,53,0.1); color: var(--orange); }
.badge-blue { background: rgba(0,180,216,0.1); color: var(--blue); }

/* ---- LIVE SENSORS DASHBOARD ---- */
.sns-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin: 12px 16px; padding: 16px; }
.sns-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.sns-btn { background: var(--green); color: #000; border: none; border-radius: 99px; padding: 7px 16px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.sns-btn.sns-on { background: var(--red); color: #fff; }
.sns-grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.sns-metric { background: var(--card2); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; }
.sns-metric .sv { font-family: 'Bebas Neue', sans-serif; font-size: 30px; line-height: 1; color: var(--green); }
.sns-metric .sl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-top: 4px; }
.sns-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sns-rows > div { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.sns-rows b { color: var(--text); font-variant-numeric: tabular-nums; }
.sns-wave { width: 100%; height: 90px; background: var(--card2); border-radius: var(--radius-sm); display: block; }
.sns-route { width: 100%; height: 220px; background: var(--card2); border-radius: var(--radius-sm); display: block; }
.sns-note { font-size: 11px; color: var(--text3); margin-top: 8px; }
.sns-warn { background: rgba(255,107,53,0.12); border: 1px solid rgba(255,107,53,0.4); color: var(--orange); font-size: 12px; padding: 10px 12px; border-radius: var(--radius-sm); }
.sns-bpm-wrap { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 12px; }
.sns-bpm { font-family: 'Bebas Neue', sans-serif; font-size: 64px; line-height: 1; color: var(--red); }
.sns-bpm-u { font-size: 14px; color: var(--text2); font-weight: 600; }
.sns-q { margin-left: auto; font-size: 12px; color: var(--text3); text-align: right; max-width: 55%; }
.sns-disclaim { font-size: 11px; color: var(--text3); margin-top: 10px; background: var(--card2); padding: 8px 10px; border-radius: var(--radius-sm); }
.sns-disclaim b { color: var(--red); }
.sns-foot { font-size: 11px; color: var(--text3); margin-top: 10px; line-height: 1.5; }
