/* SP NET brand (same palette as the website and the app). */
:root {
  --brand: #0d67f3;
  --brand-bright: #0591f0;
  --navy: #1d0f29;
  --indigo: #2f0e6c;
  --bg: #f5f8fe;
  --surface: #ffffff;
  --surface-2: #eaf2fe;
  --outline: #d9e2f2;
  --text: #1d0f29;
  --muted: #5b5470;
  --ink: #1d0f29;
  --on-ink: #ffffff;
  --bdix: #2f0e6c;
  --hero: #1d0f29;
  --glow: #0d67f3;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #0591f0;
    --bg: #140b1c;
    --surface: #211430;
    --surface-2: #2f1a52;
    --outline: #3a2a55;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --ink: #ffffff;
    --on-ink: #1d0f29;
    --bdix: #38bdf8;
    --hero: #2f0e6c;
    --glow: #0591f0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="bn"] body { font-family: "Hind Siliguri", "Plus Jakarta Sans", system-ui, sans-serif; }
a { color: inherit; }
img { display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--outline); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--outline); }
.brand-mark img { width: 30px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 800; letter-spacing: -0.2px; }
.brand-text small { color: var(--muted); font-size: 12px; font-weight: 600; }
.lang { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--outline); }
.lang button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* Hero */
.hero { position: relative; overflow: hidden; margin: 24px 0 20px; padding: 28px 24px; border-radius: 18px; background: var(--hero); color: #fff; }
.hero::before { content: ""; position: absolute; right: -15%; top: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 103, 243, 0.45), transparent); background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), transparent); pointer-events: none; }
.hero > * { position: relative; }
.hero-top { min-height: 28px; }
.hero h1 { margin: 10px 0 6px; font-size: 38px; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.hero-sub { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 16px; }
.hero-note { margin: 14px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 13px; }
html[lang="bn"] .hero h1 { letter-spacing: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-hero { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pill-count { background: rgba(13, 103, 243, 0.14); background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.pill-bdix { background: rgba(56, 120, 220, 0.14); background: color-mix(in srgb, var(--bdix) 14%, transparent); color: var(--bdix); }

/* Category filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px solid var(--outline); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 8px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* Server list */
.category { margin: 0 0 28px; }
.category-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.category-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--outline); text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 24px -14px rgba(13, 103, 243, 0.6); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 70%, transparent); }
.monogram { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--brand); background: rgba(13, 103, 243, 0.12); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.card-body { flex: 1; min-width: 0; }
.card-title { display: flex; align-items: center; gap: 8px; }
.card-title strong { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.go svg, .icon svg { width: 20px; height: 20px; fill: currentColor; }

.status { color: var(--muted); font-size: 14px; text-align: center; margin: 12px 0 28px; }
.skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.skeleton span { height: 82px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border: 1px solid var(--outline); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Footer */
.footer { margin-top: 24px; padding: 28px 0 20px; border-top: 1px solid var(--outline); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.footer-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--outline); text-decoration: none; }
.footer-card:hover { border-color: var(--brand); }
.footer-card .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--brand); background: rgba(13, 103, 243, 0.12); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.footer-card strong { display: block; font-size: 15px; }
.footer-card small { display: block; color: var(--muted); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 520px) {
  .hero { padding: 22px 18px; margin-top: 16px; }
  .grid, .skeleton { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .skeleton span { transition: none; animation: none; }
}

/* App download button in the hero */
.app-btn { display: inline-flex; align-items: center; margin-top: 16px; padding: 10px 18px 10px 12px; border-radius: 12px; background: #fff; color: #1d0f29; text-decoration: none; font-weight: 700; }
.app-btn:hover, .app-btn:focus-visible { background: #eaf2fe; outline: 3px solid #38bdf8; outline-offset: 2px; }
.app-btn .icon { width: 36px; height: 36px; margin-right: 12px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #0d67f3; color: #fff; flex: none; }
.app-btn .icon svg { width: 20px; height: 20px; fill: currentColor; }
.app-btn strong { display: block; font-size: 15px; }
.app-btn small { display: block; font-size: 12px; font-weight: 500; color: #5b5470; }
