*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.05rem; border-radius: var(--radius); font: 600 .875rem var(--font); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: #4a515c; }
.btn:focus-visible, .input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #fb8a3c; border-color: #fb8a3c; }
.input { width: 100%; padding: .8rem 1rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.no-select { -webkit-user-select: none; user-select: none; }
.no-select input, .no-select textarea { -webkit-user-select: text; user-select: text; }
.phone { width: 390px; max-width: 100%; height: 800px; margin: 0 auto; border: 10px solid #2a2d33; border-radius: 44px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.phone-body { flex: 1; overflow-y: auto; padding: 1rem; }
@media (max-width: 480px) { .phone { border: 0; border-radius: 0; height: 100vh; width: 100%; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ==========================================
   THEMED SCROLLBARS (WebKit & Firefox)
   ========================================== */

/* 1. WebKit Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: content-box;
}

/* 2. Firefox Fallback */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}