/* =====================================================================
   INTEL AFRICA — polish.css
   Sharper overrides on top of intel.css: focus, selection, hover-only
   effects, autofill, reduced motion.
   ===================================================================== */

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(0,82,255,.18); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.input:focus-visible { outline: none; }
.btn:focus-visible, .icon-btn:focus-visible, .qa:focus-visible { outline-offset: 3px; }

/* crisper headings */
h1, h2, .page-title, .card-title, .greet strong { text-wrap: balance; }
.auth-sub, .help { text-wrap: pretty; }

/* hover lifts only where hover exists (no sticky hover on phones) */
@media (hover: hover) {
  .qa:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
  .btn-primary:hover { box-shadow: 0 14px 22px -12px rgba(0,82,255,.9), var(--shine); }
  .check-list a:hover .ci-title, .menu-row:hover .menu-text { color: var(--link); }
  .menu-row.danger:hover .menu-text { color: var(--danger); }
}

/* autofill keeps our colours */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}

/* number inputs: no spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* links inside muted copy stay readable */
.auth-foot a, .check a { color: var(--link); }

/* dark-mode refinements */
[data-theme="dark"] .card, [data-theme="dark"] .auth-card, [data-theme="dark"] .qa { box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.03); }
[data-theme="dark"] .banner { border-color: rgba(91,155,255,.25); }
[data-theme="dark"] .qa-ico, [data-theme="dark"] .hero-ico:not(.ok):not(.bad) { background: linear-gradient(135deg, rgba(0,82,255,.22), rgba(0,198,255,.14)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Part 5 — motion & speed polish
   ===================================================================== */
a, button, .btn, .icon-btn, .qa, .menu-row, .key, summary, label { -webkit-tap-highlight-color: transparent; }

/* Hidden scrollbars on every horizontal slider */
.plans-track, .wallet-track, .cat-pills, .net-row, .tabs, .chip-row, [data-slider] { scrollbar-width: none; -ms-overflow-style: none; }
.plans-track::-webkit-scrollbar, .wallet-track::-webkit-scrollbar, .cat-pills::-webkit-scrollbar, .net-row::-webkit-scrollbar, .tabs::-webkit-scrollbar, .chip-row::-webkit-scrollbar, [data-slider]::-webkit-scrollbar { display: none; }

/* Toast: slides up 14px and fades, 0.25s (intel.css) — role="status" in toast.php */

/* Pull to refresh (dashboard, history) */
.ptr { position: fixed; left: 50%; top: 10px; z-index: 120; display: grid; place-items: center; width: 38px; height: 38px; margin-left: -19px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--link); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-48px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; }
.ptr.show { opacity: 1; transform: translateY(0); }
.ptr .icon { animation: ia-spin .8s linear infinite; }

/* "Add to home screen" card */
.install-card {
  position: fixed; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 95; max-width: 440px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 40px 12px 12px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgba(16,24,40,.45);
  opacity: 0; transform: translateY(14px); transition: opacity .28s var(--ease-pop), transform .28s var(--ease-pop);
}
.install-card.show { opacity: 1; transform: none; }
.install-card img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.install-card p { flex: 1; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.install-card .btn { flex: none; height: 34px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.install-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--faint); font-size: 20px; line-height: 1; }
.home .install-card, .auth-body .install-card { bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 380px) { .install-card { flex-wrap: wrap; } .install-card .btn { margin-left: 52px; } }

@media (prefers-reduced-motion: reduce) {
  .wc-orb, .wc-shine, .ptr .icon { animation: none !important; }
}
