:where(html) { -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
:where(button, a, [role="button"], summary, label[for]) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:where(button:not([disabled]), [role="button"], a.btn, .btn, .ck-btn, .nv, .round-btn, .pill-btn, .sq-btn, .tbtn) { transition-property: scale, filter, background-color, border-color, color, box-shadow, opacity, transform; transition-duration: .16s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
:where(button:not([disabled]), [role="button"], a.btn, .btn, .ck-btn, .nv, .round-btn, .pill-btn, .sq-btn, .tbtn):active { scale: .965; filter: brightness(1.08); }
:where(button[disabled], .btn[disabled]) { cursor: not-allowed; }

:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; border-radius: 10px; }

@keyframes sbpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
:where(.view.active, #view > *) { animation: sbpIn .38s cubic-bezier(.2, .8, .2, 1) both; }
html.sbp-rv :where(.card, .cd, .glass-card, .panel-card).sbp-wait { opacity: 0; transform: translateY(14px); }
html.sbp-rv :where(.card, .cd, .glass-card, .panel-card).sbp-on { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }

@media (hover: hover) and (pointer: fine) {
  :where(.card, .cd):where(:hover) { box-shadow: 0 18px 40px -26px rgba(34, 211, 238, .45); }
}

:where(*) { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .28) transparent; }
:where(*)::-webkit-scrollbar { width: 8px; height: 8px; }
:where(*)::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .28); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
:where(*)::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, .45); }
:where(*)::-webkit-scrollbar-track { background: transparent; }

::selection { background: rgba(34, 211, 238, .32); }

.sbp-load { position: fixed; top: 0; right: 0; left: 0; height: 2.5px; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .25s; }
.sbp-load.on { opacity: 1; }
.sbp-load i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #22d3ee, #8b5cf6, transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sbpBar 1.1s ease-in-out infinite; }
@keyframes sbpBar { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.sbp-off { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); z-index: 2147482000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: rgba(15, 23, 42, .95); color: #fde68a; border: 1px solid rgba(251, 191, 36, .35);
  font: 600 13px 'Vazirmatn', Tahoma, sans-serif; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.sbp-off.on { transform: translate(-50%, 0); opacity: 1; }
.sbp-off.back { color: #86efac; border-color: rgba(52, 211, 153, .4); }
.sbp-off i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

@media (prefers-reduced-motion: reduce) {
  :where(.view.active, #view > *) { animation: none; }
  html.sbp-rv :where(.card, .cd, .glass-card, .panel-card).sbp-wait { opacity: 1; transform: none; }
  :where(button, [role="button"]):active { scale: 1; }
}
