/* Spider home screen. Same palette as the app: black, white, cyan -> blue from the logo, with a warm gold accent. */
:root {
  --bg: #03050a; --surface: rgba(12, 17, 26, .72); --surface-2: rgba(20, 28, 42, .7); --line: rgba(120, 160, 220, .16);
  --text: #eef3fb; --muted: #9aa7bb; --faint: #66748a;
  --cyan: #00c7ff; --blue: #0475ff; --royal: #1544ff; --gold: #ffb347; --up: #22d3a6; --down: #ff5c6c;
  --grad: linear-gradient(135deg, #00c7ff 0%, #0475ff 55%, #1544ff 100%);
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}
html[lang=ar] { --font: "Cairo", "Segoe UI", Tahoma, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-a { width: 760px; height: 520px; left: -180px; top: -200px; background: radial-gradient(closest-side, rgba(4, 117, 255, .55), transparent); }
.glow-b { width: 900px; height: 600px; right: -260px; top: 10%; background: radial-gradient(closest-side, rgba(0, 199, 255, .28), transparent); }
.glow-c { width: 1100px; height: 520px; right: -200px; bottom: -300px; background: radial-gradient(closest-side, rgba(255, 150, 40, .32), transparent); }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.waves .w1 { animation: drift 18s ease-in-out infinite alternate; }
.waves .w2 { animation: drift 22s ease-in-out infinite alternate-reverse; }
.waves .w3 { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.grain { position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 3px 3px; }

/* ---------- header (logo left in every language) ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 clamp(18px, 4vw, 56px); background: linear-gradient(180deg, rgba(3, 5, 10, .85), rgba(3, 5, 10, .55));
  backdrop-filter: blur(14px); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 199, 255, .65) 25%, rgba(4, 117, 255, .4) 60%, transparent); }
.brand img { height: 28px; display: block; filter: drop-shadow(0 0 14px rgba(0, 199, 255, .25)); }
.top-right { display: flex; align-items: center; gap: 12px; }
.menu-wrap { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.pill:hover, .pill[aria-expanded=true] { border-color: rgba(0, 199, 255, .55); background: rgba(0, 199, 255, .07); }
.pill svg { width: 18px; height: 18px; }
.pill .chev { width: 15px; height: 15px; opacity: .7; transition: transform .2s; }
.pill[aria-expanded=true] .chev { transform: rotate(180deg); }
#lang-label { font-weight: 600; font-size: 14.5px; min-width: 56px; text-align: start; }
.avatar { width: 44px; height: 44px; border-radius: 50%; padding: 2px; cursor: pointer; border: 0; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 0 0 4px rgba(4, 117, 255, .12); transition: box-shadow .2s, transform .2s; }
.avatar:hover { box-shadow: 0 0 0 5px rgba(0, 199, 255, .22), 0 0 24px rgba(0, 199, 255, .35); transform: translateY(-1px); }
.avatar img, .avatar svg { width: 100%; height: 100%; border-radius: 50%; background: #0b111b; }
.avatar img { object-fit: cover; }
.avatar svg { padding: 9px; color: #dbe7f7; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 6px; border-radius: 14px;
  background: rgba(10, 15, 24, .96); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.menu[hidden], .menu button[hidden] { display: none; }
.menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px;
  border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: start; font-size: 14.5px; }
.menu button:hover, .menu button:focus-visible { background: rgba(0, 199, 255, .1); outline: none; }
.menu button i { width: 8px; height: 8px; border-radius: 50%; }
.menu button[aria-checked=true] i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.menu button[aria-checked=true] span { color: #fff; font-weight: 600; }
html[lang=ar] .menu { font-family: "Cairo", "Segoe UI", sans-serif; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(380px, 1fr) 1.2fr; align-items: center;
  gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 5vh, 64px) clamp(18px, 4vw, 56px) 24px; max-width: 1680px; width: 100%; margin: 0 auto; }
.copy { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; color: #c9d6ea; font-size: 13px; letter-spacing: .34em; font-weight: 600; }
html[lang=ar] .eyebrow { letter-spacing: .08em; font-size: 14px; }
.eyebrow .line { width: 52px; height: 2px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 10px var(--cyan); }
h1 { margin: 0; display: flex; flex-direction: column; font-weight: 700; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(40px, 4.4vw, 76px); }
.h1a, .h1b { white-space: nowrap; }
html[lang=ar] h1 { letter-spacing: 0; line-height: 1.25; font-weight: 800; }
.h1b { font-style: italic; font-weight: 800; }
html[lang=ar] .h1b { font-style: normal; }
.h1b em { font-style: inherit; background: linear-gradient(90deg, #7fe3ff, #00c7ff 40%, #0475ff); -webkit-background-clip: text;
  background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(0, 199, 255, .35)); }
.sub { margin: 0; font-size: clamp(17px, 1.6vw, 23px); color: #c3d2ea; font-style: italic; letter-spacing: .01em; }
html[lang=ar] .sub { font-style: normal; }
.features { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.features li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: #dbe5f3; line-height: 1.35; font-weight: 500; }
.features .fi { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, rgba(0, 199, 255, .16), rgba(21, 68, 255, .1)); border: 1px solid rgba(0, 199, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 18px rgba(0, 199, 255, .12); }
.features svg { width: 22px; height: 22px; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(0, 199, 255, .55)); }

/* ---------- Open SPIDER ---------- */
.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; height: 66px; padding: 0 30px;
  border-radius: 16px; text-decoration: none; color: #fff; font-weight: 700; font-size: 21px; letter-spacing: .01em;
  background: var(--grad); border: 1px solid rgba(160, 230, 255, .55);
  box-shadow: 0 0 0 6px rgba(4, 117, 255, .12), 0 12px 40px rgba(4, 117, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s, box-shadow .2s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 8px rgba(0, 199, 255, .16), 0 18px 54px rgba(0, 199, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .45); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.cta svg { width: 26px; height: 26px; stroke-width: 2.2; position: relative; }
.cta span:not(.cta-shine) { position: relative; }
.cta-arrow { transition: transform .25s; }
.cta:hover .cta-arrow { transform: translateX(5px); }
html[dir=rtl] .cta-arrow { transform: scaleX(-1); }
html[dir=rtl] .cta:hover .cta-arrow { transform: scaleX(-1) translateX(5px); }
.cta-shine { position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.cta-hint { color: var(--faint); font-size: 13px; }
.cta-hint kbd { font: 600 11.5px var(--font); color: var(--muted); padding: 3px 7px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }

/* ---------- live preview card ---------- */
.stage { perspective: 1800px; }
.card { position: relative; display: grid; grid-template-columns: 1fr 300px; gap: 16px; padding: 18px;
  border-radius: 26px; background: linear-gradient(160deg, rgba(14, 22, 36, .82), rgba(6, 10, 18, .86));
  transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(4, 117, 255, .18); }
html[dir=rtl] .card { transform: rotateY(9deg) rotateX(4deg); }
.stage:hover .card { transform: rotateY(-4deg) rotateX(2deg); }
html[dir=rtl] .stage:hover .card { transform: rotateY(4deg) rotateX(2deg); }
.card::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 179, 71, .95), rgba(0, 199, 255, .35) 35%, rgba(4, 117, 255, .55) 70%, rgba(255, 179, 71, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card-glow { position: absolute; inset: -2px; border-radius: inherit; z-index: -1; filter: blur(26px); opacity: .45;
  background: linear-gradient(120deg, rgba(255, 160, 40, .7), transparent 40%, rgba(0, 120, 255, .6)); }
.card-chart { position: relative; min-width: 0; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: rgba(3, 6, 12, .75); border: 1px solid var(--line); }
.chart-title { position: absolute; z-index: 3; top: 12px; left: 14px; display: flex; align-items: center; gap: 8px;
  font: italic 600 13px "Inter", sans-serif; color: #cfe1f7; }
.chart-title b { color: var(--cyan); font-weight: 800; letter-spacing: .02em; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live.on { background: var(--up); box-shadow: 0 0 0 3px rgba(34, 211, 166, .18), 0 0 10px var(--up); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 211, 166, .06), 0 0 14px var(--up); } }
.pv-chart { position: relative; height: clamp(320px, 46vh, 480px); }
.skeleton { position: absolute; inset: 44px 16px 16px; border-radius: 12px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 70%);
  background-size: 300% 100%; animation: sk 1.6s linear infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.card-side { display: flex; flex-direction: column; gap: 10px; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 4px; font-size: 18px; }
.side-head svg { width: 26px; height: 26px; color: var(--cyan); }
.tile { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid var(--line); }
.tile > svg { width: 24px; height: 24px; color: var(--cyan); flex: none; margin-top: 2px; }
.tile small { display: block; color: var(--muted); font-size: 12.5px; }
.tile b { font-weight: 700; }
.tile-main { background: linear-gradient(135deg, rgba(34, 211, 166, .2), rgba(4, 117, 255, .08)); border-color: rgba(34, 211, 166, .45); }
.tile-main b { font-size: 21px; color: var(--up); }
.tile-main svg { color: var(--up); }
.tile-main.down { background: linear-gradient(135deg, rgba(255, 92, 108, .2), rgba(4, 117, 255, .06)); border-color: rgba(255, 92, 108, .45); }
.tile-main.down b, .tile-main.down svg { color: var(--down); }
#pv-wave { color: var(--cyan); }
#pv-wave.down { color: var(--down); }
.muted { color: var(--faint); }
html[lang=en] .tile b, html[lang=en] .kv p b { text-transform: capitalize; }
html[lang=zh] { --font: "Inter", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; }
.kv { flex: 1; min-width: 0; }
.kv p { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #d5dfee; }
.kv p span { flex: 1; }
.kv p b { font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--faint); }

.foot { position: relative; z-index: 1; padding: 14px clamp(18px, 4vw, 56px) 22px; color: var(--faint); font-size: 12.5px; text-align: center; }

/* entrance */
.copy > *, .card { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.copy > :nth-child(2) { animation-delay: .06s; } .copy > :nth-child(3) { animation-delay: .12s; }
.copy > :nth-child(4) { animation-delay: .18s; } .copy > :nth-child(5) { animation-delay: .24s; } .card { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .waves g, .cta-shine, .live.on, .skeleton, .copy > *, .card { animation: none !important; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .card { transform: none !important; }
}
@media (max-width: 640px) {
  .card { grid-template-columns: 1fr; padding: 12px; }
  .features li { font-size: 14.5px; }
  .cta { height: 58px; font-size: 18px; padding: 0 22px; }
  #lang-label { display: none; }
}

/* ============================ About SPIDER SAP ============================ */
.about-pill { background: rgba(0, 199, 255, .08); border-color: rgba(0, 199, 255, .35); }
.about-pill:hover { background: rgba(0, 199, 255, .16); }
dialog.about { width: min(1040px, calc(100vw - 28px)); height: min(880px, calc(100vh - 40px)); max-height: none; padding: 0; margin: auto;
  border: 1px solid rgba(120, 175, 255, .25); border-radius: 22px; background: #05080f; color: var(--text); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .75); display: none; flex-direction: column; }
dialog.about[open] { display: flex; animation: abIn .25s ease-out; }
@keyframes abIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
dialog.about::backdrop { background: rgba(2, 4, 8, .75); backdrop-filter: blur(6px); }
html[dir=rtl] dialog.about { direction: rtl; }
.about-top { position: absolute; z-index: 2; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; direction: ltr; pointer-events: none; }
.about-top img { height: 22px; filter: drop-shadow(0 0 12px rgba(0, 199, 255, .35)); }
.about-x { pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(5, 8, 15, .6); backdrop-filter: blur(8px); color: #fff; cursor: pointer; font-size: 15px; }
.about-x:hover { border-color: var(--cyan); }
.about-body { flex: 1; overflow-y: auto; padding: 0 clamp(18px, 4vw, 44px) 36px; display: flex; flex-direction: column; gap: 22px; }
.ab-hero { margin: 0 calc(-1 * clamp(18px, 4vw, 44px)); min-height: 360px; display: flex; align-items: flex-end;
  padding: 90px clamp(18px, 4vw, 44px) 30px;
  background: linear-gradient(180deg, rgba(5, 8, 15, .15) 0%, rgba(5, 8, 15, .55) 45%, #05080f 100%), url("about/roadmap.jpg") center / cover; }
.ab-hero-text { max-width: 720px; }
.ab-kicker { margin: 0 0 6px; color: var(--cyan); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
html[lang=ar] .ab-kicker { letter-spacing: 0; font-size: 14px; }
.ab-hero h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; font-weight: 800; }
.ab-hero p { margin: 0 0 8px; color: #c9d4e6; line-height: 1.8; }
.ab-lead { font-size: 17px; color: #fff !important; }
.ab-motto { margin-top: 14px !important; font-weight: 700; background: linear-gradient(90deg, var(--gold), #ffd58a); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.ab-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ab-card { padding: 20px 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); }
.ab-card h3, .ab-h { margin: 0 0 10px; font-size: 19px; }
.ab-h { padding-inline-start: 12px; border-inline-start: 3px solid var(--cyan); }
.ab-card p { margin: 0 0 8px; color: var(--muted); line-height: 1.8; }
.ab-card ul { margin: 6px 0 0; padding-inline-start: 18px; color: #c9d4e6; line-height: 1.9; }
.ab-solution { background: linear-gradient(135deg, rgba(0, 199, 255, .1), rgba(21, 68, 255, .08)); border-color: rgba(0, 199, 255, .3); }
.ab-tags, .ab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ab-tags span, .ab-chips span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(0, 199, 255, .1); border: 1px solid rgba(0, 199, 255, .3); }
.ab-chips span { background: rgba(255, 179, 71, .08); border-color: rgba(255, 179, 71, .3); }
.ab-chips + p { margin-top: 12px; }
.ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ab-feat { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.ab-feat svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--grad); color: #fff; stroke-width: 2.4; }
.ab-not-h { margin: 0 0 8px !important; color: #fff !important; font-weight: 700; }
.ab-not { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ab-not span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: 13.5px;
  background: rgba(255, 92, 108, .08); border: 1px solid rgba(255, 92, 108, .3); color: #ffc2c9; }
.ab-not svg { width: 14px; height: 14px; stroke-width: 2.4; }
.ab-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ab-steps b { padding: 8px 18px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 14px; }
.ab-steps i { width: 26px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--royal)); }
.ab-road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ab-road li { position: relative; padding: 18px 16px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.ab-road span { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--grad); font-weight: 800; }
.ab-road b { display: block; margin-bottom: 4px; }
.ab-road p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.ab-note { margin: 12px 0 0; color: var(--muted); line-height: 1.8; }
.ab-leader { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ab-leader img { width: 150px; height: 150px; border-radius: 20px; object-fit: cover; border: 1px solid rgba(0, 199, 255, .35); box-shadow: 0 10px 30px rgba(4, 117, 255, .25); }
.ab-leader > div { flex: 1; min-width: 240px; }
.ab-leader h3 { font-size: 22px; margin-bottom: 4px; }
.ab-roles { color: #c9d4e6 !important; font-weight: 600; }
.ab-contact { text-align: center; }
.ab-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.ab-links a { padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  background: var(--surface-2); border: 1px solid rgba(0, 199, 255, .35); }
.ab-links a:hover { background: rgba(0, 199, 255, .15); }
.ab-tagline { color: var(--gold) !important; font-weight: 600; }
@media (max-width: 640px) { .about-pill span { display: none; } .ab-hero { min-height: 300px; } }
/* the logo / close bar is a solid strip, so scrolled text never runs under it */
.about-top { position: relative; inset: auto; flex: none; pointer-events: auto; background: rgba(5, 8, 15, .96);
  border-bottom: 1px solid var(--line); padding: 12px 20px; }
.ab-hero { padding-top: 48px; min-height: 320px; }

/* ============================ sign-in page ============================ */
.menu a[hidden] { display: none; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.menu a:hover { background: rgba(0, 199, 255, .1); }
.login-wrap { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 30px 16px 60px; }
.login-card { width: min(420px, 100%); padding: 34px 30px 26px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(14, 20, 32, .88), rgba(8, 12, 20, .92)); backdrop-filter: blur(18px);
  border: 1px solid rgba(120, 175, 255, .22); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(4, 117, 255, .12); }
.login-badge { width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 18px; display: grid; place-items: center; background: var(--grad);
  box-shadow: 0 10px 30px rgba(4, 117, 255, .45); }
.login-badge svg { width: 28px; height: 28px; color: #fff; stroke-width: 2; }
.login-card h1 { margin: 0; text-align: center; font-size: 26px; font-weight: 800; }
.login-sub { margin: -6px 0 6px; text-align: center; color: var(--muted); font-size: 14.5px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.field input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 8, 14, .7);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 500; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; box-sizing: border-box; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 199, 255, .18); }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 46px; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pass-eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pass-eye svg { width: 20px; height: 20px; }
.login-error { min-height: 20px; margin: 0; color: #ff8a96; font-size: 13.5px; text-align: center; }
.login-btn { justify-content: center; width: 100%; height: 50px; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 800; }
.login-btn:disabled { opacity: .6; cursor: wait; }
.login-back { text-align: center; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.login-back:hover { color: var(--cyan); }

/* Sign in button (shown instead of the profile picture until signed in) */
.menu-wrap[hidden], .login-pill[hidden] { display: none; }
.login-pill { text-decoration: none; color: var(--text); }

/* ============================ coming-soon page ============================ */
.soon-wrap { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 30px 16px 60px; }
.soon-card { width: min(640px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.soon-orbit { position: relative; width: 150px; height: 150px; margin-bottom: 6px; display: grid; place-items: center; }
.soon-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0, 199, 255, .35); animation: soonPulse 3.2s ease-out infinite; }
.soon-orbit .r2 { animation-delay: 1.06s; } .soon-orbit .r3 { animation-delay: 2.13s; }
@keyframes soonPulse { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.soon-spider { width: 64px; height: 64px; padding: 14px; border-radius: 24px; color: #fff; background: var(--grad); stroke-width: 1.5;
  box-shadow: 0 14px 40px rgba(4, 117, 255, .5), 0 0 0 1px rgba(160, 230, 255, .45) inset; }
.soon-kicker { margin: 0; color: var(--cyan); font-weight: 700; letter-spacing: .18em; font-size: 12.5px; }
.soon-card h1 { margin: 0; font-size: clamp(44px, 8vw, 76px); font-weight: 800; line-height: 1.05;
  background: linear-gradient(90deg, #fff, #9fdcff 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon-text { margin: 0; max-width: 520px; color: #c9d4e6; font-size: 17px; line-height: 1.85; }
.soon-points { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.soon-points li { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text);
  background: rgba(0, 199, 255, .08); border: 1px solid rgba(0, 199, 255, .28); }
.soon-back { height: 54px; padding: 0 30px; text-decoration: none; }
