/* Futuristic layer on top of style.css: deep-space glass, neon gradients, soft glow, smooth motion. Written for older Android WebViews too (no inset shorthand, no :has, no aspect-ratio).
   Motion is switched off for people who asked their device for reduced motion. */
:root {
  --glow-teal: 0 0 18px rgba(41, 211, 163, .35); --glow-blue: 0 0 18px rgba(74, 163, 255, .30); --glow-gold: 0 0 16px rgba(242, 193, 78, .35);
  --edge: linear-gradient(135deg, rgba(41, 211, 163, .55), rgba(74, 163, 255, .28) 45%, rgba(180, 140, 255, .45));
  --ease: cubic-bezier(.2, .75, .2, 1);
}
html, body { font-family: "Inter", "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", Roboto, system-ui, -apple-system, sans-serif; letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(1100px 650px at 12% -8%, rgba(21, 94, 140, .55) 0%, transparent 60%), radial-gradient(900px 620px at 104% 6%, rgba(16, 120, 112, .45) 0%, transparent 58%), radial-gradient(800px 600px at 50% 112%, rgba(95, 60, 170, .30) 0%, transparent 60%), #040b18; }
@media (min-width: 861px) {
  body::before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; opacity: .4;
    background-image: linear-gradient(rgba(120, 170, 220, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 170, 220, .04) 1px, transparent 1px); background-size: 46px 46px; }
}

/* ---------- header and navigation ---------- */
.top h1, .top h1#title { background: linear-gradient(90deg, #ffffff 10%, #9fe9d6 55%, #9cc8ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 800; letter-spacing: -.01em; }
.top .sub { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
#side { background: linear-gradient(180deg, rgba(8, 22, 44, .78), rgba(5, 13, 28, .78)); border-right: 1px solid rgba(120, 170, 220, .14); box-shadow: 8px 0 40px rgba(0, 0, 0, .35); }
.brand { letter-spacing: .02em; }
.brand i { text-shadow: var(--glow-teal); display: inline-block; }
@media (min-width: 861px) { .brand i { animation: spin-slow 14s linear infinite; } }
.nav a { position: relative; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); border: 1px solid transparent; }
.nav a:hover { background: rgba(120, 170, 220, .08); color: var(--text); transform: translateX(3px); }
.nav a.on { background: linear-gradient(90deg, rgba(41, 211, 163, .22), rgba(74, 163, 255, .07)); border: 1px solid rgba(41, 211, 163, .45); color: #d9fff3; box-shadow: var(--glow-teal); }
.nav a.on::before { content: ""; position: absolute; left: -13px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--teal); box-shadow: var(--glow-teal); }
.nav a.on svg { filter: drop-shadow(0 0 6px rgba(41, 211, 163, .8)); }
.lang { background: rgba(8, 28, 48, .6); border-color: rgba(41, 211, 163, .45); box-shadow: var(--glow-teal); }
.lang button { transition: background .2s, color .2s; }

/* ---------- glass cards with a gradient edge ---------- */
.card { position: relative; border: 1px solid transparent; border-radius: 18px; background: linear-gradient(160deg, rgba(20, 44, 78, .78), rgba(11, 27, 52, .78)) padding-box, var(--edge) border-box; box-shadow: 0 6px 16px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* no backdrop blur and no hover lift on the many cards: dozens of blurred, lifted layers exhausted the tile memory of a software-rendered Android WebView and crashed it */
@media (min-width: 861px) and (hover: hover) { .card { transition: box-shadow .3s var(--ease); } .card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 0 1px rgba(41, 211, 163, .12); } }
.card h2 { font-size: 16.5px; letter-spacing: .01em; }
.row { transition: background .2s; border-radius: 10px; } .row:hover { background: rgba(120, 170, 220, .045); }
b, strong { font-variant-numeric: tabular-nums; }
.small { line-height: 1.5; }
.up { text-shadow: 0 0 14px rgba(49, 212, 139, .35); } .down { text-shadow: 0 0 14px rgba(255, 107, 107, .30); }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(120, 170, 220, .3), transparent); }

/* ---------- controls ---------- */
.btn { position: relative; overflow: hidden; background: linear-gradient(135deg, #34e0b0, #1aa9c9 70%, #4aa3ff); color: #03231a; box-shadow: 0 4px 18px rgba(41, 211, 163, .30); transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s; border-radius: 12px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(41, 211, 163, .45); filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.ghost { background: rgba(120, 170, 220, .06); border: 1px solid rgba(120, 170, 220, .28); color: var(--text); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(41, 211, 163, .55); background: rgba(41, 211, 163, .08); box-shadow: var(--glow-teal); }
.btn.warn { background: linear-gradient(135deg, #ffd978, #f2a93e); box-shadow: var(--glow-gold); }
.btn.danger { background: rgba(255, 107, 107, .06); }
.btn:disabled { opacity: .5; transform: none; box-shadow: none; }
input, select, textarea { background: rgba(4, 12, 26, .75); border: 1px solid rgba(120, 170, 220, .22); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(41, 211, 163, .75); box-shadow: 0 0 0 3px rgba(41, 211, 163, .16), var(--glow-teal); }
.pill { border: 1px solid rgba(120, 170, 220, .22); letter-spacing: .02em; }
.pill.good { border-color: rgba(49, 212, 139, .45); box-shadow: 0 0 10px rgba(49, 212, 139, .18); }
.pill.bad { border-color: rgba(255, 107, 107, .45); box-shadow: 0 0 10px rgba(255, 107, 107, .16); }
.pill.warn { border-color: rgba(242, 193, 78, .45); }
.bar { background: rgba(255, 255, 255, .07); } .bar > span { background: linear-gradient(90deg, #29d3a3, #4aa3ff, #b48cff); box-shadow: var(--glow-teal); transition: width .6s var(--ease); }
table th { letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; }

/* ---------- dialogs ---------- */
.modal { background: rgba(2, 6, 16, .86); animation: fade-in .25s ease both; }
.modal .box { border: 1px solid transparent; background: linear-gradient(160deg, #0f2745, #0a1b33) padding-box, var(--edge) border-box; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); animation: pop-in .3s var(--ease) both; }
.toast { background: linear-gradient(135deg, rgba(17, 60, 70, .95), rgba(12, 36, 66, .95)); border: 1px solid rgba(41, 211, 163, .5); box-shadow: var(--glow-teal); animation: rise .35s var(--ease) both; }

/* ---------- live dot, scrollbars, tooltips ---------- */
.dot.live { box-shadow: 0 0 10px rgba(49, 212, 139, .8); animation: none; }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-thumb { background: rgba(120, 170, 220, .28); border-radius: 9px; } ::-webkit-scrollbar-thumb:hover { background: rgba(41, 211, 163, .5); } ::-webkit-scrollbar-track { background: transparent; }
.tip { display: inline-block; width: 16px; height: 16px; line-height: 14px; text-align: center; border-radius: 50%; border: 1px solid rgba(143, 166, 198, .65); font-size: 10px; font-weight: 700; color: var(--mut); margin-left: 5px; position: relative; cursor: help; vertical-align: middle; transition: color .2s, border-color .2s, box-shadow .2s; }
.tip:hover, .tip:focus { color: #d9fff3; border-color: var(--teal); box-shadow: var(--glow-teal); outline: none; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 135%; margin-left: -115px; width: 230px; max-width: 70vw; padding: 9px 11px; background: #0b1c35; border: 1px solid rgba(41, 211, 163, .5); border-radius: 12px; color: var(--text); font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; z-index: 80; box-shadow: 0 12px 40px rgba(0, 0, 0, .6), var(--glow-teal); animation: fade-in .15s ease both; text-transform: none; letter-spacing: 0; }

/* ---------- bottom bar on phones: a floating glass dock ---------- */
@media (max-width: 860px) {
  #bottom { left: 10px; right: 10px; bottom: 8px; border: 1px solid rgba(120, 170, 220, .22); border-radius: 22px; background: rgba(6, 16, 34, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
  #bottom a { transition: color .25s, transform .25s var(--ease); font-size: 10.5px; padding-left: 0; padding-right: 0; }
  #bottom a.on { color: #d9fff3; box-shadow: none; }
  #bottom a.on svg { filter: drop-shadow(0 0 7px rgba(41, 211, 163, .9)); transform: translateY(-2px) scale(1.08); }
  #bottom a.on span { text-shadow: var(--glow-teal); }
  #main { padding-bottom: 104px; }
  #view.enter > * { animation-name: fade-in !important; animation-duration: .35s !important; }
}

/* ---------- motion: pages and cards rise in one after another ---------- */
#view.enter > * { animation: rise .55s var(--ease) both; }
#view.enter > *:nth-child(2) { animation-delay: .04s; } #view.enter > *:nth-child(3) { animation-delay: .08s; } #view.enter > *:nth-child(4) { animation-delay: .12s; } #view.enter > *:nth-child(5) { animation-delay: .16s; }
#view.enter > *:nth-child(6) { animation-delay: .2s; } #view.enter > *:nth-child(n+7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.flash-up { animation: flash-up .9s ease; } .flash-down { animation: flash-down .9s ease; }
@keyframes flash-up { 0% { background: rgba(49, 212, 139, .35); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: rgba(255, 107, 107, .35); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
