:root {
  --bg: #050b14;
  --panel: rgba(9, 20, 35, 0.82);
  --panel-strong: rgba(10, 24, 42, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f7fb;
  --muted: #91a3b8;
  --green: #00e99b;
  --cyan: #00b8ff;
  --yellow: #ffd83d;
  --danger: #ff647c;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 233, 155, .08), transparent 29%),
    radial-gradient(circle at 85% 18%, rgba(0, 184, 255, .09), transparent 31%),
    linear-gradient(145deg, #040a12 0%, #071220 56%, #06101b 100%);
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 24%);
}

a { color: inherit; }
.ambient { position: fixed; border-radius: 999px; filter: blur(90px); opacity: .22; pointer-events: none; }
.ambient-one { width: 360px; height: 360px; background: var(--green); top: -190px; left: -130px; }
.ambient-two { width: 390px; height: 390px; background: var(--cyan); right: -210px; top: 18%; }
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; opacity: .17;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.shell { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 18px; position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand-logo-wrap {
  width: 66px; height: 66px; border-radius: 19px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.13); box-shadow: 0 16px 40px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.08);
}
.brand-logo { width: 55px; height: 55px; object-fit: contain; }
.brand-copy { min-width: 0; }
.eyebrow, .section-kicker { display: block; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.brand h1 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.05; margin: 5px 0 4px; letter-spacing: -.03em; }
.brand p { color: var(--muted); margin: 0; font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.status-pill, .mode-pill {
  height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(8, 18, 31, .72); color: #cad6e3; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  backdrop-filter: blur(14px);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(0,233,155,.11), 0 0 16px rgba(0,233,155,.85); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,100,124,.11), 0 0 16px rgba(255,100,124,.75); }
.mode-pill { color: var(--cyan); }
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: stretch; }
.glass-card {
  background: linear-gradient(150deg, rgba(12, 27, 47, .92), rgba(6, 15, 27, .88));
  border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
}
.speed-card { min-width: 0; padding: 24px 24px 17px; overflow: hidden; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.card-heading h2 { margin: 5px 0 5px; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; }
.card-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.start-cta {
  flex: 0 0 auto; min-width: 148px; height: 48px; border: 0; border-radius: 15px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: #002a20; background: linear-gradient(135deg, #00f0a0, #6affc9); font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 12px 34px rgba(0,233,155,.22), inset 0 1px rgba(255,255,255,.48); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.start-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0,233,155,.31), inset 0 1px rgba(255,255,255,.48); }
.start-cta:active { transform: translateY(0); }
.start-cta.running { opacity: .7; cursor: wait; }
.start-icon { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #003d2f; }
.start-cta.running .start-icon { width: 11px; height: 11px; border: 2px solid #003d2f; border-top-color: transparent; border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.engine-frame {
  min-height: 520px; height: clamp(520px, 62vh, 680px); position: relative; overflow: hidden; border-radius: 20px;
  background: linear-gradient(145deg, rgba(3, 12, 22, .92), rgba(9, 25, 43, .72)); border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 0 70px rgba(0,0,0,.2);
}
.engine-frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 28% 45%, rgba(0,233,155,.06), transparent 31%); }
.shortcut-hint { display: flex; align-items: center; justify-content: center; gap: 8px; color: #6f8399; font-size: 11px; padding-top: 12px; }
.keycap { border: 1px solid rgba(255,255,255,.12); border-bottom-color: rgba(255,255,255,.23); border-radius: 6px; padding: 3px 7px; color: #a9b8c7; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.side-column { display: flex; flex-direction: column; gap: 18px; }
.info-card, .server-card { padding: 20px; }
.info-card-title { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-card-title h3, .server-card h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.02em; }
.pulse-icon { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(145deg, rgba(0,233,155,.2), rgba(0,184,255,.09)); border: 1px solid rgba(0,233,155,.22); position: relative; }
.pulse-icon::after { content: ""; position: absolute; width: 15px; height: 8px; left: 12px; top: 14px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: skewY(-30deg); }
.metric-list { padding-top: 6px; }
.metric-row { display: grid; grid-template-columns: 1fr auto 42px; align-items: baseline; gap: 8px; min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.055); }
.metric-row:last-child { border-bottom: 0; }
.metric-row span { color: var(--muted); font-size: 12px; }
.metric-row strong { color: #f7fbff; font-size: 21px; font-variant-numeric: tabular-nums; }
.metric-row small { color: #6f8399; font-size: 10px; }
.server-card { flex: 1; }
.server-card h3 { color: var(--cyan); margin: 7px 0 15px; }
dl { margin: 0; }
dl div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: 11px; }
dd { margin: 0; color: #dce7f2; font-size: 11px; font-weight: 600; text-align: right; word-break: break-all; }
.tip-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 21px; border: 1px solid rgba(255,216,61,.17); background: linear-gradient(135deg, rgba(255,216,61,.09), rgba(255,255,255,.025)); }
.tip-number { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.tip-card h3 { margin: 0 0 6px; font-size: 14px; }
.tip-card p { margin: 0; color: #899bb0; font-size: 11px; line-height: 1.55; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 5px 0; color: #63778d; font-size: 10px; letter-spacing: .03em; }
.footer a { color: #8ba4bd; text-decoration: none; }

/* OpenSpeedTest SVG skin */
#OpenSpeedtest { width: 100% !important; height: 100% !important; display: none; overflow: visible; }
.openSpeedtestApp { width: 100% !important; height: 100% !important; overflow: visible !important; }
.Desktop, .Mobile { width: 100% !important; height: 100% !important; }
.Credits { display: none !important; }
#logo-Desk, .darkmode, .Startsettings, .startButton { opacity: 0 !important; pointer-events: none !important; }
.Cards { fill: rgba(10, 25, 43, .96); stroke: rgba(255,255,255,.075); stroke-width: 1px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.18)); }
.main-Gaugebg, .deskStart { stroke: #17263b; }
.main-GaugeBlue { filter: drop-shadow(0 0 7px rgba(0,233,155,.5)); }
.main-GaugeWhite { stroke: rgba(255,255,255,.84); }
.uiBg { fill: #0a1728; }
.progressbg { stroke: #17263b; }
.intro-Progress, .progressElmstart { stroke: var(--green); }
.oDo-Meter, .oDoTop-Speed { fill: #70869e; }
.oDoLive-Speed { fill: #f7fbff; font-weight: 700; }
.oDoLive-Status { fill: #8ea3b8; }
.rtext { fill: #7f95aa; letter-spacing: .08em; }
.rtextnum { fill: #f6fbff; font-weight: 700; }
.rtextmbms, .jitter-Mob { fill: #7890a7; }
.Symbol, #upSymbolDesk, #downSymbolDesk, #upSymbolMob, #downSymbolMob { fill: url(#gradient); }
#ipDesk, #ipMob { fill: #8ea3b8; }
.ConnectError { fill: #ff7188; }
.line, .line2 { fill: rgba(0, 233, 155, .20); stroke: var(--green); stroke-width: .8px; }
.spinner { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.spinner > div { width: 11px; height: 11px; background-color: var(--green); }

@media (max-width: 1120px) {
  .dashboard { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: 1fr 1fr; }
  .tip-card { grid-column: 1 / -1; }
  .server-card { min-height: 0; }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 22px, 1480px); padding-top: 13px; }
  .topbar { align-items: flex-start; margin-bottom: 14px; }
  .brand-logo-wrap { width: 53px; height: 53px; border-radius: 15px; }
  .brand-logo { width: 45px; height: 45px; }
  .brand-copy .eyebrow, .brand p, .mode-pill { display: none; }
  .brand h1 { margin-top: 7px; font-size: 20px; }
  .status-pill { height: 34px; padding: 0 11px; font-size: 9px; }
  .speed-card { padding: 16px 12px 12px; border-radius: 20px; }
  .card-heading { align-items: flex-end; }
  .card-heading h2 { font-size: 20px; }
  .card-heading p { font-size: 11px; }
  .start-cta { min-width: 112px; height: 43px; border-radius: 13px; padding: 0 12px; font-size: 10px; }
  .engine-frame { min-height: 465px; height: 64vh; max-height: 590px; border-radius: 16px; }
  .side-column { grid-template-columns: 1fr; }
  .tip-card { grid-column: auto; }
  .footer { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 440px) {
  .brand-copy .eyebrow { display: none; }
  .card-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .start-cta { width: 100%; }
  .engine-frame { height: 500px; min-height: 500px; }
  .shortcut-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
