/* btccampus member-area styles v2 — used by /app/*.html together with app-shell.js.
   Runtime colors come from theme.js CSS variables; the :root blocks below are the
   FIRST-PAINT fallback so the page is dark before any JS runs (no white flash). */

/* ---------- Design tokens (first-paint fallback; theme.js overrides at runtime) ---------- */
:root {
  --bg-primary: #0a0705;
  --bg-secondary: #100b07;
  --bg-card: #15100a;
  --bg-input: #110c07;
  --bg-hover: #211812;
  --bg-tertiary: #191209;
  --border-color: #271d12;
  --border-light: #3a2c1a;
  --text-primary: #f5efe6;
  --text-main: #f5efe6;
  --text-muted: #b3a690;
  --text-soft: #7d7261;
  --accent: #F7931A;
  --accent-hover: #FFA733;
  --accent-light: rgba(247, 147, 26, 0.14);
  --error: #F23645;
  --error-light: rgba(242, 54, 69, 0.15);
  --warning: #fbbf24;
  --rise: #2EBD85;
  --fall: #F23645;
  --blue: #3b82f6;

  --glass-bg: rgba(10, 7, 5, 0.72);
  --card-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 42%);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -18px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --ring: 0 0 0 3px var(--accent-light);

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-theme="light"] {
  --glass-bg: rgba(255, 255, 255, 0.78);
  --card-sheen: none;
  --shadow-card: 0 1px 2px rgba(15, 30, 27, 0.05), 0 8px 24px -18px rgba(15, 30, 27, 0.18);
  --shadow-pop: 0 24px 60px -18px rgba(15, 30, 27, 0.3);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-primary); scrollbar-color: var(--border-light) transparent; }
body {
  margin: 0; background: transparent; color: var(--text-primary); /* base color lives on <html>; keeps body::before aurora visible */
  font-family: var(--font-ui); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
::selection { background: var(--accent-light); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }
::-webkit-scrollbar-track { background: transparent; }

/* Nansen-style aurora: layered gradients blending into the dark ground */
body::before {
  content: ''; position: fixed; inset: -12%; z-index: -1; pointer-events: none;
  animation: btkAurora 16s ease-in-out infinite alternate;
  background:
    radial-gradient(1000px 560px at 12% -12%, rgba(247, 147, 26, 0.28), transparent 62%),
    radial-gradient(780px 460px at 88% -8%, rgba(255, 193, 59, 0.10), transparent 60%),
    radial-gradient(1100px 700px at 50% 112%, rgba(247, 147, 26, 0.13), transparent 62%);
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(1000px 560px at 12% -12%, rgba(247, 147, 26, 0.10), transparent 62%),
    radial-gradient(780px 460px at 88% -8%, rgba(255, 193, 59, 0.04), transparent 60%),
    radial-gradient(1100px 700px at 50% 112%, rgba(247, 147, 26, 0.05), transparent 62%);
}
body::after {
  content: ''; position: fixed; inset: -14%; z-index: -1; pointer-events: none;
  animation: btkAurora2 21s ease-in-out infinite alternate;
  background:
    radial-gradient(760px 520px at 78% 24%, rgba(247, 147, 26, 0.12), transparent 60%),
    radial-gradient(680px 480px at 18% 78%, rgba(255, 193, 59, 0.06), transparent 60%);
}
html[data-theme="light"] body::after {
  background:
    radial-gradient(760px 520px at 78% 24%, rgba(247, 147, 26, 0.05), transparent 60%),
    radial-gradient(680px 480px at 18% 78%, rgba(255, 193, 59, 0.03), transparent 60%);
}

@keyframes btkAurora { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(3%,2%,0) scale(1.09); } 100% { transform: translate3d(-3%,-1.6%,0) scale(1.03); } }
@keyframes btkAurora2 { 0% { transform: translate3d(0,0,0) scale(1.02); } 50% { transform: translate3d(-2.6%,1.8%,0) scale(1); } 100% { transform: translate3d(2.4%,-2%,0) scale(1.07); } }

.muted { color: var(--text-muted); }
.soft { color: var(--text-soft, #6b7280); }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.pos { color: var(--rise, #2EBD85); } .neg { color: var(--fall, #F23645); } .flat { color: var(--text-muted); }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; } /* cross-page fade in Chrome/Safari; no-op elsewhere */
::view-transition-old(root) { animation-duration: 0.18s; }
::view-transition-new(root) { animation-duration: 0.22s; }

#app-main { animation: pageIn 0.45s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Top loading bar (injected by app-shell.js) */
#btk-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 120;
  background: linear-gradient(90deg, var(--accent), #6ee7d4);
  box-shadow: 0 0 10px rgba(247, 147, 26, 0.7);
  transition: width 0.5s var(--ease-out), opacity 0.3s;
  border-radius: 0 2px 2px 0;
}

/* ---------- Skeleton loaders ---------- */
.skel, .skel-line, .skel-stat, .skel-card, .skel-row, .skel-circle {
  position: relative; overflow: hidden;
  background: var(--bg-hover); border-radius: var(--r-sm);
}
.skel::after, .skel-line::after, .skel-stat::after, .skel-card::after, .skel-row::after, .skel-circle::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.4s ease infinite;
}
html[data-theme="light"] .skel::after, html[data-theme="light"] .skel-line::after,
html[data-theme="light"] .skel-stat::after, html[data-theme="light"] .skel-card::after,
html[data-theme="light"] .skel-row::after, html[data-theme="light"] .skel-circle::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-line { height: 12px; border-radius: 6px; }
.skel-line + .skel-line { margin-top: 10px; }
.skel-line.w25 { width: 25%; } .skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; }
.skel-stat { height: 78px; border-radius: var(--r-md); }
.skel-card { height: 104px; border-radius: var(--r-md); }
.skel-card + .skel-card { margin-top: 14px; }
.skel-row { height: 44px; border-radius: 10px; }
.skel-row + .skel-row { margin-top: 8px; }
.skel-circle { border-radius: 50%; }

/* ---------- Shell layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 240px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: var(--glass-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-right: 1px solid var(--border-color);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.app-brand { display: none; }
.app-brand-off { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; padding: 4px 8px 18px; color: var(--text-primary); font-family: var(--font-display); }
.app-brand img { width: 30px; height: 30px; border-radius: 8px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 13.5px;
  transition: background 0.18s, color 0.18s, transform 0.18s var(--ease-out);
}
.app-nav-item svg { transition: transform 0.18s var(--ease-out); }
.app-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.app-nav-item:hover svg { transform: translateY(-1px); }
.app-nav-item.active { background: var(--accent-light, rgba(247, 147, 26,.15)); color: var(--accent); font-weight: 600; }
.app-sidebar .app-nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent); border-radius: 0 3px 3px 0;
}
.app-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.app-user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.app-avatar {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-light), rgba(247, 147, 26, 0.05));
  border: 1px solid rgba(247, 147, 26, 0.35);
  color: var(--accent); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display);
}
.app-user-meta { min-width: 0; }
.app-user-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user-plan { font-size: 11px; margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.app-foot-link { background: none; border: 0; text-align: left; padding: 8px; color: var(--text-muted); font-size: 13px; border-radius: 8px; cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s; }
.app-foot-link:hover { background: var(--bg-hover); color: var(--text-primary); }

.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 20;
}
.app-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.app-topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.app-menu-btn { display: none; background: none; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); width: 36px; height: 36px; cursor: pointer; }
.app-page { padding: 22px 24px 48px; width: 100%; max-width: 1240px; margin: 0 auto; } /* same column as the home page — ultrawide monitors shouldn't stretch tables */
.app-backdrop { display: none; }
.app-bottom-nav { display: none; }

@media (max-width: 900px) {
  .app-sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform 0.25s var(--ease-out); box-shadow: var(--shadow-pop); }
  .app-sidebar.open { transform: none; }
  .app-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 30; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .app-menu-btn { display: grid; place-items: center; }
  .app-page { padding: 14px 14px 44px; }
  .app-topbar { padding: 12px 14px; }
  .app-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: var(--glass-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .app-bottom-nav .app-nav-item { flex: 1; flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 2px; border-radius: 8px; }
  .app-bottom-nav .app-nav-item.active { background: none; }
}

/* ---------- Building blocks ---------- */
.card {
  background: var(--card-sheen), var(--cg-bg-secondary, var(--bg-card));
  border: 1px solid var(--border-color); border-radius: var(--r-md); padding: 18px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-light); }
.card + .card, .stack > * + * { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title { margin: 0; font-size: 14px; font-weight: 600; font-family: var(--font-display); }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--card-sheen), var(--cg-bg-card, var(--bg-card));
  border: 1px solid var(--border-color); border-radius: var(--r-md); padding: 13px 14px;
  box-shadow: var(--shadow-card); transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.stat:hover { border-color: var(--border-light); transform: translateY(-1px); }
.stat .label { font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-soft, #6b7280); font-weight: 600; }
.stat .value { font-size: 24px; font-weight: 700; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.big-num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat .sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(156, 163, 175, 0.14); color: var(--text-muted); letter-spacing: 0.3px; border: 1px solid transparent; }
.pill-accent { background: var(--accent-light, rgba(247, 147, 26,.15)); color: var(--accent); border-color: rgba(247, 147, 26, 0.25); }
.pill-red { background: rgba(242, 54, 69, 0.14); color: var(--fall, #F23645); border-color: rgba(242, 54, 69, 0.25); }
.pill-yellow { background: rgba(251, 191, 36, 0.13); color: #fbbf24; border-color: rgba(251, 191, 36, 0.25); }
.pill-blue { background: rgba(59, 130, 246, 0.13); color: #5b9bf8; border-color: rgba(59, 130, 246, 0.25); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid var(--border-light, #2a2a2a); background: var(--bg-hover); color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), filter 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, #FFA733, #E8820C); border-color: rgba(247, 147, 26, 0.6);
  color: #211100; box-shadow: 0 4px 16px -6px rgba(247, 147, 26, 0.55);
}
.btn-primary:hover { box-shadow: 0 6px 20px -6px rgba(247, 147, 26, 0.7); }
.btn-danger { background: rgba(242, 54, 69, 0.14); border-color: rgba(242, 54, 69, 0.4); color: var(--fall, #F23645); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); }
.field .hint { font-size: 11px; color: var(--text-soft, #6b7280); }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg-input, #0f0f0f); border: 1px solid var(--border-light, #2a2a2a);
  border-radius: 10px; color: var(--text-primary); padding: 10px 12px; font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input::placeholder { color: var(--text-soft); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border-light, #2a2a2a); border-radius: 999px; transition: background 0.25s; cursor: pointer; }
.switch .track::after { content: ''; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: transform 0.25s var(--ease-out); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.switch input:checked + .track { background: var(--accent); box-shadow: 0 0 12px -2px rgba(247, 147, 26, 0.6); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch.lg { width: 64px; height: 34px; } .switch.lg .track::after { width: 28px; height: 28px; } .switch.lg input:checked + .track::after { transform: translateX(30px); }

.seg { display: inline-flex; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--text-muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; transition: background 0.15s, color 0.15s; }
.seg button:hover { color: var(--text-primary); }
.seg button.active { background: var(--bg-hover); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-light); }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-soft, #6b7280); padding: 8px 10px; border-bottom: 1px solid var(--border-color); font-weight: 600; }
.table td { padding: 10px; border-bottom: 1px solid var(--border-color); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
html[data-theme="light"] .table tbody tr:hover td { background: rgba(15, 30, 27, 0.03); }
.table-wrap { overflow-x: auto; }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; border: 1px solid; }
.banner-info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.35); }
.banner-warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); }
.banner-error { background: rgba(242, 54, 69, 0.12); border-color: rgba(242, 54, 69, 0.4); }
.banner-ok { background: var(--accent-light, rgba(247, 147, 26,.15)); border-color: rgba(247, 147, 26, 0.4); }

.empty { text-align: center; color: var(--text-muted); padding: 38px 12px; }
.empty svg { opacity: 0.45; margin-bottom: 10px; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--border-light, #2a2a2a); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px;
}
.modal-backdrop.show { display: flex; animation: fadeIn 0.2s ease both; }
.modal {
  background: var(--card-sheen), var(--cg-bg-secondary, var(--bg-card));
  border: 1px solid var(--border-light); border-radius: var(--r-lg);
  width: 100%; max-width: 480px; padding: 24px; max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-pop);
}
.modal-backdrop.show .modal { animation: modalIn 0.28s var(--ease-out) both; }
.modal h3 { margin: 0 0 12px; font-size: 17px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Grouped form sections — settings forms get boxed sub-groups instead of floating rows */
.fset { border: 1px solid var(--border-color); border-radius: var(--r-md); padding: 16px; background: var(--bg-tertiary, rgba(255,255,255,0.015)); }
.fset + .fset { margin-top: 12px; }
.fset-title { font-size: 10.5px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-soft); font-weight: 700; margin-bottom: 12px; }
.fset .fnote { font-size: 11.5px; color: var(--text-soft); margin-top: 12px; }
.switch-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-input); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 0 6px 0 12px; height: 41px;
}
.switch-box .sb-txt { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch-box .switch { transform: scale(0.86); transform-origin: right center; }

.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kv .k { font-size: 10px; color: var(--text-soft, #6b7280); }
.kv .v { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.section-title { font-size: 14px; font-weight: 600; margin: 24px 0 10px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); }
.section-title .muted { font-size: 12px; font-weight: 400; font-family: var(--font-ui); }

.progress { height: 8px; background: var(--bg-secondary); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; transition: width 0.4s var(--ease-out); }

/* Price-range bar (grid bot cards): track + filled portion + glowing marker */
.range-track { position: relative; height: 6px; border-radius: 999px; background: var(--bg-hover); margin-top: 12px; overflow: visible; }
.range-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(247, 147, 26, 0.25), var(--accent)); }
.range-dot {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #6ee7d4; border: 2px solid var(--bg-card);
  box-shadow: 0 0 10px rgba(46, 230, 201, 0.8);
}
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 7px; font-variant-numeric: tabular-nums; }

/* Small status dot (level lists etc.) */
.lvl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--text-soft); }
.lvl-dot.ok { background: var(--accent); box-shadow: 0 0 6px rgba(247, 147, 26, 0.7); }
.lvl-dot.warn { background: var(--warning); box-shadow: 0 0 6px rgba(251, 191, 36, 0.6); }
.lvl-dot.off { background: var(--border-light); box-shadow: none; }
.lvl-dot.err { background: var(--fall, #F23645); box-shadow: 0 0 6px rgba(242, 54, 69, 0.6); }

/* ---------- With the site top menu (menu.js) present ---------- */
body.btk-menu-active .app-sidebar { top: 48px; height: calc(100vh - 48px); }
body.btk-menu-active .app-topbar { top: 48px; }
body.btk-menu-active .app-nav { padding-top: 6px; }
@media (max-width: 900px) {
  body.btk-menu-active .app-sidebar { top: 48px; height: calc(100vh - 48px); }
  .app-menu-btn { display: none; }   /* bottom nav covers all sections on mobile */
}

/* Minimal inline icons (replace emoji) */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Form kontrolleri marka renginde */
input[type="range"], input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
