/* ===== Fonts (local) ===== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../lib/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../lib/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../lib/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0b1020;
  --ink-2: #101735;
  --accent-1: #4f46e5;
  --accent-2: #06b6d4;
  --grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --surface: #f6f8fc;
  /* animate.css: snappier than its 1s default */
  --animate-duration: .5s;
}

html { scroll-behavior: smooth; }

/* Arabic-script-only face (same local files): guarantees Persian text renders
   in Vazirmatn even inside English pages (server names, user names, ...). */
@font-face {
  font-family: 'Vazirmatn FA';
  src: url('../lib/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D, U+06F0-06F9;
}
@font-face {
  font-family: 'Vazirmatn FA';
  src: url('../lib/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D, U+06F0-06F9;
}
@font-face {
  font-family: 'Vazirmatn FA';
  src: url('../lib/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200D, U+06F0-06F9;
}

body {
  font-family: 'Vazirmatn FA', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--surface);
  /* Sticky footer: main grows, footer is pushed to the viewport bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
.app-footer { flex-shrink: 0; }

/* Persian UI uses the locally hosted Vazir(matn) font for everything */
html[lang="fa"] body {
  --bs-body-font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* Phone & password fields stay LTR even on RTL pages */
.ltr-input { direction: ltr; text-align: start; }
[dir="rtl"] .ltr-input { text-align: left; }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-grad {
  background: var(--grad);
  color: #fff;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-grad:hover, .btn-grad:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.25rem rgba(79, 70, 229, .35);
}

.btn-ghost {
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .25);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }

.link-accent { color: var(--accent-1); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

/* ===== Navbar ===== */
.app-navbar {
  background: rgba(11, 16, 32, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .6rem;
  background: var(--grad);
  color: #fff;
  font-size: 1.1rem;
}

/* Icon + active-state pill nav links */
.nav-pills-custom { gap: .25rem; }
.nav-pills-custom .nav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .72);
  border-radius: .7rem;
  padding: .5rem .9rem !important;
  font-size: .92rem;
  transition: background-color .15s ease, color .15s ease;
}
.nav-pills-custom .nav-link .bi { font-size: 1.05rem; line-height: 1; }
.nav-pills-custom .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-pills-custom .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 70, 229, .6), rgba(6, 182, 212, .45));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

/* User account dropdown */
.user-avatar {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  text-transform: uppercase;
}
.user-menu-toggle { padding-inline-start: .4rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 15% -10%, rgba(79, 70, 229, .45), transparent 60%),
    radial-gradient(50rem 28rem at 90% 10%, rgba(6, 182, 212, .35), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 9.5rem 0 6rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .9rem;
  color: #a5f3fc;
  background: rgba(6, 182, 212, .12);
  border: 1px solid rgba(6, 182, 212, .35);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}
.hero-sub {
  max-width: 42rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 2.25rem;
}

.stat-card {
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background-color .2s ease;
}
.stat-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); }
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: rgba(255, 255, 255, .65); font-size: .9rem; }

/* Trust row under the hero CTAs */
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
}
.hero-trust li { display: flex; align-items: center; gap: .45rem; }
.hero-trust .bi { color: #67e8f9; }

/* Floating decorative blobs behind the hero visual */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-blob-1 { width: 4rem; height: 4rem; background: linear-gradient(135deg, #67e8f9, #4f46e5); top: -1.25rem; left: -1.25rem; }
.hero-blob-2 { width: 3rem; height: 3rem; background: linear-gradient(135deg, #a5b4fc, #06b6d4); bottom: -1rem; right: 10%; animation-delay: 1.5s; }
.hero-blob-3 { width: 2rem; height: 2rem; background: #67e8f9; top: 20%; right: -.75rem; animation-delay: 3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Hero dashboard mockup ===== */
.hero-visual { position: relative; }
.mock-window {
  position: relative;
  z-index: 1;
  background: #101735;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.1rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, .35);
  overflow: hidden;
}
.mock-topbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mock-dot { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mock-dot:nth-child(1) { background: #f87171; }
.mock-dot:nth-child(2) { background: #fbbf24; }
.mock-dot:nth-child(3) { background: #34d399; }
.mock-url {
  margin-inline-start: .5rem;
  padding: .2rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .45);
  font-size: .72rem;
  flex: 1;
}
.mock-body { padding: 1.1rem; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.mock-stat {
  border-radius: .7rem;
  padding: .6rem .5rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
}
.mock-stat b { display: block; font-size: 1.05rem; background: linear-gradient(135deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mock-stat span { font-size: .68rem; color: rgba(255, 255, 255, .5); }
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 4.5rem;
  padding: .5rem .25rem 0;
  border-top: 1px dashed rgba(255, 255, 255, .1);
}
.mock-bar {
  flex: 1;
  border-radius: .3rem .3rem 0 0;
  background: linear-gradient(180deg, #67e8f9, #4f46e5);
  transform-origin: bottom;
  animation: growbar 1s ease both;
}
@keyframes growbar {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
.mock-badge {
  position: absolute;
  z-index: 2;
  bottom: -1rem;
  inset-inline-start: -1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .25);
}
.mock-badge-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 .5rem rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob, .mock-badge-dot, .mock-bar { animation: none; }
}

/* ===== How it works ===== */
.steps { counter-reset: step; }
.step-card { position: relative; padding-top: .5rem; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step-connector {
  position: absolute;
  top: 1.5rem;
  inset-inline-start: calc(50% + 2.25rem);
  width: calc(100% - 4.5rem);
  height: 2px;
  background: repeating-linear-gradient(to right, #dfe5f1 0 8px, transparent 8px 14px);
}
[dir="rtl"] .step-connector { transform: scaleX(-1); }

/* ===== Audience ===== */
.audience { background: #fff; }
.aud-card {
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  height: 100%;
  background: var(--surface);
  border: 1px solid #e9edf5;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.aud-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 1rem 2rem rgba(16, 23, 53, .1);
}
.aud-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
  background: #fff;
  color: var(--accent-1);
  font-size: 1.35rem;
  box-shadow: 0 .25rem 1rem rgba(16, 23, 53, .08);
}

/* SEO intro benefit list */
.intro-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.intro-points li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .85rem;
  color: #475569;
}
.intro-points .bi { color: #22c55e; font-size: 1.1rem; margin-top: .15rem; flex-shrink: 0; }

/* ===== Features ===== */
.section-title { font-size: 2rem; }
.feature-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 .25rem 1.25rem rgba(16, 23, 53, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(16, 23, 53, .12);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--grad);
  color: #fff;
  font-size: 1.5rem;
}

/* ===== SEO intro / FAQ ===== */
.seo-intro { background: #fff; }
.faq { background: var(--surface); }
.faq-item {
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: .75rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\F282"; /* bootstrap-icons chevron-down */
  font-family: "bootstrap-icons";
  font-size: 1rem;
  color: var(--accent-1);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }

/* ===== CTA band ===== */
.cta-band {
  background:
    radial-gradient(40rem 20rem at 80% 120%, rgba(6, 182, 212, .4), transparent 60%),
    linear-gradient(135deg, #1e1b4b, var(--ink-2));
  padding: 5rem 0;
}

/* ===== Auth pages ===== */
.auth-wrap {
  min-height: 100vh;
  padding: 7.5rem 1rem 3rem;
  background:
    radial-gradient(40rem 22rem at 10% 0%, rgba(79, 70, 229, .14), transparent 60%),
    radial-gradient(36rem 20rem at 95% 100%, rgba(6, 182, 212, .14), transparent 60%),
    var(--surface);
}
.auth-card { width: 100%; max-width: 58rem; border-radius: 1.5rem; }

/* Branded side panel of the auth card */
.auth-side {
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  background:
    radial-gradient(28rem 18rem at 0% 0%, rgba(79, 70, 229, .55), transparent 65%),
    radial-gradient(24rem 16rem at 100% 100%, rgba(6, 182, 212, .4), transparent 65%),
    var(--ink);
}
.auth-brand { width: 3.25rem; height: 3.25rem; font-size: 1.6rem; display: inline-grid; }
.auth-side-sub { color: rgba(255, 255, 255, .7); }
.auth-side-list { list-style: none; padding: 0; margin: 0; }
.auth-side-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  color: rgba(255, 255, 255, .85);
}
.auth-side-list .bi { color: #67e8f9; }

.auth-divider { border-top: 1px solid #e9edf5; }

.input-group-text {
  background: #f1f4fb;
  border-color: #dfe5f1;
  color: #64748b;
}
.pw-toggle {
  border: 1px solid #dfe5f1;
  color: #64748b;
  background: #fff;
}
.pw-toggle:hover { color: var(--accent-1); border-color: #dfe5f1; }

.form-control { border-color: #dfe5f1; }
.form-control:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 .25rem rgba(79, 70, 229, .15);
}

/* ===== Monitoring ===== */
.stat-mini {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: .9rem;
  background: #f6f8fc;
}
.stat-mini > .bi {
  font-size: 1.4rem;
  color: var(--accent-1);
}
.join-box {
  border-top: 1px dashed #dfe5f1;
  padding-top: 1rem;
}
[dir="rtl"] .rtl-flip { display: inline-block; transform: scaleX(-1); }

/* ===== Recordings ===== */
.rec-stat {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1.2rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .25rem 1rem rgba(16, 23, 53, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rec-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 .6rem 1.5rem rgba(16, 23, 53, .1);
}
.rec-stat > .bi {
  font-size: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rec-search .form-control { border-color: #dfe5f1; }
.rec-search .input-group-text { border-radius: .75rem 0 0 .75rem; }

.rec-table thead th {
  background: #f6f8fc;
  color: #64748b;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 0;
  padding: .9rem 1rem;
}
.rec-table tbody td {
  padding: .9rem 1rem;
  border-color: #eef1f8;
}
.rec-table tbody tr { transition: background-color .15s ease; }
.rec-table tbody tr:hover { background: #f8faff; }
.rec-table tbody tr:last-child td { border-bottom: 0; }

.rec-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eef1fa;
  color: #64748b;
  font-size: .8rem;
  font-weight: 600;
}
.rec-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .8rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(6, 182, 212, .12));
  color: var(--accent-1);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: #f1f4fb;
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
}
.rec-pill .bi { color: #94a3b8; }

.btn-play {
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 600;
  font-size: .9rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-play:hover, .btn-play:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 .4rem 1rem rgba(79, 70, 229, .35);
}

/* ===== Captcha ===== */
.captcha-q {
  gap: .45rem;
  font-weight: 700;
  background:
    repeating-linear-gradient(-45deg, rgba(79, 70, 229, .06) 0 6px, rgba(6, 182, 212, .06) 6px 12px),
    #f6f8fc;
  border-color: #dfe5f1;
  user-select: none;
  -webkit-user-select: none;
  min-width: 8.5rem;
  justify-content: center;
}
.captcha-num {
  font-size: 1.25rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.captcha-op { color: #64748b; }
.captcha-input { max-width: 8rem; text-align: center; font-weight: 600; }

/* ===== Pagination ===== */
.pagination .page-link {
  border: 1px solid #e3e8f4;
  color: #475569;
  margin: 0 .18rem;
  border-radius: .6rem !important;
  min-width: 2.4rem;
  text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.pagination .page-link:hover { background: #eef1fa; color: var(--accent-1); }
.pagination .page-item.active .page-link {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 .25rem .75rem rgba(79, 70, 229, .3);
}
.pagination .page-item.disabled .page-link { background: transparent; color: #cbd5e1; }
.pagination .page-link:focus { box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }

/* ===== Dashboard ===== */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 767px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}
.kpi-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 .25rem 1.25rem rgba(16, 23, 53, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.kpi-tile:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(16, 23, 53, .12); }
.kpi-tile::after {
  content: "";
  position: absolute;
  inset-inline-end: -1.5rem;
  top: -1.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--kpi-color, var(--accent-1));
  opacity: .08;
}
.kpi-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--kpi-color, var(--accent-1));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 .5rem 1.25rem rgba(16, 23, 53, .18);
}
.kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.kpi-label { color: #64748b; font-size: .85rem; }
.kpi-tile.kpi-servers { --kpi-color: #22c55e; }
.kpi-tile.kpi-classes { --kpi-color: #4f46e5; }
.kpi-tile.kpi-users   { --kpi-color: #06b6d4; }
.kpi-tile.kpi-webcams { --kpi-color: #f59e0b; }

/* Server cards */
.server-card {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 .3rem 1.5rem rgba(16, 23, 53, .07);
  border-top: 4px solid var(--card-accent, #cbd5e1);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.server-card:hover { transform: translateY(-8px); box-shadow: 0 1.5rem 3rem rgba(16, 23, 53, .14); }
.server-card.is-online { --card-accent: #22c55e; }
.server-card.is-offline { --card-accent: #ef4444; }
.server-card.is-disabled { --card-accent: #94a3b8; }
.server-desc {
  min-height: 1.1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-avatar {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  background: var(--grad);
  color: #fff;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 .5rem 1.25rem rgba(79, 70, 229, .3);
}

.live-status { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--card-accent, #94a3b8); flex-shrink: 0; }
.live-dot.is-live { animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 .55rem rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.stat-chip-row { display: flex; gap: .5rem; margin: 1.1rem 0; flex-wrap: wrap; }
.stat-chip {
  flex: 1;
  min-width: 4.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: .9rem;
  background: #f6f8fc;
}
.stat-chip-icon {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: .55rem;
  font-size: .9rem;
  flex-shrink: 0;
  color: #fff;
}
.stat-chip-icon.bg-indigo { background: #4f46e5; }
.stat-chip-icon.bg-cyan { background: #06b6d4; }
.stat-chip-icon.bg-amber { background: #f59e0b; }
.stat-chip-value { font-weight: 700; line-height: 1; font-size: 1.02rem; }
.stat-chip-label { font-size: .66rem; color: #64748b; }

@media (prefers-reduced-motion: reduce) {
  .live-dot.is-live { animation: none; }
}

/* ===== PWA ===== */
.pwa-ios-hint {
  position: fixed;
  z-index: 1080;
  inset-inline: 1rem;
  bottom: 1rem;
  max-width: 26rem;
  margin-inline: auto;
  padding: .9rem 1.1rem;
  border-radius: 1rem;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .3);
  font-size: .9rem;
  animation: fadeUp .4s ease both;
}
.pwa-ios-hint-icon { font-size: 1.3rem; color: #67e8f9; flex-shrink: 0; }

/* ===== Generic pages / footer ===== */
.page-wrap { padding: 7.5rem 0 3rem; min-height: 70vh; }

.app-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .55);
}
.app-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.app-footer a:hover { color: #fff; }
.footer-divider { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-heart {
  color: #f43f5e;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.footer-credit {
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 600;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.25); }
  20% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-heart { animation: none; }
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp .7s ease both; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  html { scroll-behavior: auto; }
}
