:root {
  --ink-900: #12172b;
  --ink-700: #2b345c;
  --ink-500: #4f5f95;
  --paper: #fffefb;
  --surface: #ffffff;
  --line: rgba(34, 48, 95, 0.15);
  --primary: #ff6b2c;
  --secondary: #0ea5a1;
  --tertiary: #4361ee;
  --accent-pink: #ff4fa3;
  --accent-yellow: #ffbe0b;
  --success: #0ea86f;
  --shadow: 0 14px 35px rgba(31, 44, 86, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 201, 167, 0.58), transparent 35%),
    radial-gradient(circle at 90% 18%, rgba(154, 237, 232, 0.48), transparent 30%),
    radial-gradient(circle at 60% 88%, rgba(204, 213, 255, 0.7), transparent 38%),
    linear-gradient(135deg, #fffefb 0%, #f9fffd 45%, #fff8ff 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.42;
  z-index: -1;
}

.bg-shape-a {
  width: 300px;
  height: 300px;
  background: #ffd5b2;
  border-radius: 50%;
  top: -80px;
  left: -90px;
}

.bg-shape-b {
  width: 360px;
  height: 360px;
  background: #b4fff8;
  border-radius: 50%;
  top: 40%;
  right: -140px;
}

.bg-shape-c {
  width: 250px;
  height: 250px;
  background: #ffc0e2;
  border-radius: 50%;
  bottom: -90px;
  left: 30%;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  line-height: 1.2;
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-700);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f4f6ff;
  color: var(--tertiary);
  border: 1px solid #dce3ff;
  border-radius: 8px;
  padding: 0.1rem 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #ff6b2c, #ff8f3f);
  box-shadow: 0 10px 24px rgba(255, 110, 52, 0.35);
}

.btn-outline {
  color: var(--ink-900);
  border-color: #cfd7ff;
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline:hover {
  box-shadow: 0 10px 20px rgba(56, 85, 190, 0.14);
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.76);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--ink-900);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(61, 74, 125, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-nav a {
  color: var(--ink-700);
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
}

.site-nav a:hover {
  background: rgba(67, 97, 238, 0.12);
  color: var(--ink-900);
}

.site-nav .nav-chip {
  background: linear-gradient(120deg, rgba(14, 165, 161, 0.15), rgba(255, 190, 11, 0.2));
  border: 1px solid rgba(14, 165, 161, 0.28);
}

.site-nav .nav-chip:hover {
  background: linear-gradient(120deg, rgba(14, 165, 161, 0.22), rgba(255, 190, 11, 0.3));
}

.site-nav .btn {
  color: #fff;
  padding: 0.55rem 1rem;
}

.site-nav .nav-user-dropdown {
  position: relative;
}

.site-nav .nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.36rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 97, 238, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-900);
  font: inherit;
  cursor: pointer;
}

.site-nav .nav-user-trigger:hover {
  background: #fff;
  box-shadow: 0 8px 16px rgba(56, 85, 190, 0.12);
}

.nav-user-avatar {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(67, 97, 238, 0.3);
}

.nav-user-meta {
  display: grid;
  gap: 0.02rem;
  text-align: left;
}

.nav-user-name {
  max-width: 122px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.15;
}

.nav-user-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  border: 1px solid transparent;
}

.nav-user-plan-badge.is-active {
  color: #1d3d8f;
  border-color: rgba(67, 97, 238, 0.3);
  background: linear-gradient(120deg, rgba(228, 236, 255, 0.96), rgba(229, 255, 249, 0.96));
}

.nav-user-plan-badge.is-free {
  color: var(--ink-500);
  border-color: rgba(79, 95, 149, 0.25);
  background: rgba(245, 247, 255, 0.92);
}

.nav-user-caret {
  font-size: 0.78rem;
  color: var(--ink-500);
  transition: transform 0.18s ease;
}

.nav-user-dropdown.is-open .nav-user-caret {
  transform: rotate(180deg);
}

.site-nav .nav-user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 26;
  min-width: 230px;
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid rgba(67, 97, 238, 0.22);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 28px rgba(27, 43, 95, 0.18);
}

.site-nav .nav-user-dropdown.is-open .nav-user-menu {
  display: grid;
  gap: 0.26rem;
}

.site-nav .nav-user-summary {
  display: grid;
  gap: 0.3rem;
  padding: 0.48rem 0.62rem 0.56rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(67, 97, 238, 0.15);
}

.site-nav .nav-user-expiry {
  font-size: 0.75rem;
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav .nav-user-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.48rem 0.62rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-700);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.site-nav .nav-user-item:hover {
  background: rgba(67, 97, 238, 0.1);
  color: var(--ink-900);
}

.site-nav .nav-user-logout {
  color: #b53636;
}

.site-nav .nav-user-logout:hover {
  color: #a03030;
  background: rgba(213, 72, 72, 0.12);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #ccd5f7;
  background: #fff;
  color: var(--ink-900);
  border-radius: 10px;
  padding: 0.52rem 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-text {
  font-size: 0.84rem;
}

.section {
  padding: 4.4rem 0 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 107, 44, 0.13), rgba(67, 97, 238, 0.1));
  color: var(--ink-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero {
  padding: 4.5rem 0 1.4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  margin-bottom: 0.85rem;
}

.hero-text {
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(120deg, #e7eefe, #f8f9ff);
}

.hero-image.gif-live {
  animation: hero-gif-float 4.5s ease-in-out infinite, hero-gif-glow 7s linear infinite;
  will-change: transform, filter;
}

@keyframes hero-gif-float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes hero-gif-glow {
  0% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.08) brightness(1.04); }
  100% { filter: saturate(1) brightness(1); }
}

.hero-mini-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-mini-grid article {
  padding: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(130deg, #fff5ed, #edfffb);
  border: 1px solid rgba(255, 159, 119, 0.35);
}

.mini-label {
  font-size: 0.82rem;
  margin: 0;
  color: var(--ink-500);
}

.mini-value {
  margin: 0.25rem 0 0;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink-900);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.help-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.05rem;
  box-shadow: 0 9px 22px rgba(38, 58, 126, 0.11);
}

.help-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(40, 56, 112, 0.11);
  margin-bottom: 0.8rem;
  display: block;
}

.help-command-strip {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.command-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 97, 238, 0.25);
  background: linear-gradient(120deg, rgba(244, 247, 255, 0.96), rgba(240, 255, 251, 0.96));
  color: var(--ink-700);
  font-weight: 700;
  font-size: 0.82rem;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.server-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(41, 63, 132, 0.11);
}

.server-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.server-logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(36, 54, 120, 0.2);
}

.server-name {
  font-size: 1.05rem;
  margin: 0;
}

.server-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-500);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.metric-cell {
  background: #f8f9ff;
  border: 1px solid rgba(72, 98, 190, 0.16);
  border-radius: 10px;
  padding: 0.5rem;
}

.metric-cell p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-500);
}

.metric-cell strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: var(--ink-900);
}

.server-pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.server-pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(67, 97, 238, 0.3);
  background: #fff;
  color: var(--ink-700);
  font-weight: 700;
  cursor: pointer;
}

.server-pagination button:hover:not(:disabled) {
  background: rgba(67, 97, 238, 0.08);
}

.server-pagination button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #ff7a29, #ff5b33);
  box-shadow: 0 9px 16px rgba(255, 91, 51, 0.25);
}

.server-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.server-page-dots {
  color: var(--ink-500);
  font-weight: 700;
  padding: 0 0.2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  border: 1px solid rgba(68, 91, 173, 0.18);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: 0 9px 20px rgba(38, 54, 117, 0.09);
}

.stat-label {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  color: var(--ink-500);
}

.stat-value {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink-900);
}

.cta-band {
  margin-top: 4rem;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 108, 46, 0.25);
  background: linear-gradient(120deg, rgba(255, 217, 197, 0.45), rgba(205, 252, 247, 0.54));
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(54, 75, 146, 0.15);
  background: rgba(255, 255, 255, 0.62);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.2rem;
  padding: 1.8rem 0 1rem;
}

.footer-grid h4 {
  margin-bottom: 0.5rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(61, 74, 125, 0.2);
  margin-bottom: 0.55rem;
}

.footer-grid .footer-owner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  margin-bottom: 0;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 97, 238, 0.28);
  background: linear-gradient(120deg, rgba(244, 247, 255, 0.95), rgba(240, 255, 251, 0.95));
  color: var(--ink-900);
  font-weight: 700;
}

.footer-grid .footer-owner-link:hover {
  color: var(--ink-900);
  box-shadow: 0 8px 16px rgba(56, 85, 190, 0.16);
  transform: translateY(-1px);
}

.footer-owner-emoji {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-700);
}

.footer-grid a:hover {
  color: var(--tertiary);
}

.footer-note {
  border-top: 1px solid rgba(54, 75, 146, 0.15);
  margin: 0;
  padding: 0.8rem 0;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.84rem;
}

/* Shared sub-page layout */
.page-shell {
  padding: 3.4rem 0 1rem;
}

.sub-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.sub-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.renewal-reminder {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.62rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(67, 97, 238, 0.2);
  background: rgba(241, 245, 255, 0.9);
  color: var(--ink-900);
}

.renewal-reminder strong {
  font-size: 0.88rem;
}

.renewal-reminder span {
  color: var(--ink-700);
  font-size: 0.86rem;
}

.renewal-reminder a {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.82rem;
  color: #123f9f;
  border-bottom: 1px solid rgba(18, 63, 159, 0.28);
}

.renewal-reminder.is-warning {
  border-color: rgba(255, 190, 11, 0.55);
  background: linear-gradient(120deg, rgba(255, 244, 204, 0.96), rgba(255, 251, 231, 0.96));
}

.renewal-reminder.is-urgent,
.renewal-reminder.is-expired {
  border-color: rgba(217, 72, 72, 0.52);
  background: linear-gradient(120deg, rgba(255, 228, 228, 0.96), rgba(255, 243, 243, 0.96));
}

.renewal-reminder.is-upgrade {
  border-color: rgba(14, 165, 161, 0.52);
  background: linear-gradient(120deg, rgba(224, 255, 248, 0.96), rgba(236, 255, 251, 0.96));
}

.page-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 9px 20px rgba(38, 54, 117, 0.08);
}

.panel h3 {
  margin-bottom: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(14, 165, 161, 0.12);
  color: var(--secondary);
}

/* Premium page */
.premium-title {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(120deg, #ff6b2c, #ff4fa3);
  margin-bottom: 0.7rem;
}

.plan-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 9px 20px rgba(37, 57, 131, 0.09);
}

.plan-card h3 {
  margin-bottom: 0.35rem;
}

.plan-price {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0.2rem 0 0.8rem;
}

.plan-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--ink-700);
}

.plan-card li {
  margin-bottom: 0.35rem;
}

.plan-card.featured {
  border: 1px solid rgba(255, 107, 44, 0.55);
  background: linear-gradient(130deg, #fff8f3, #fff4f8);
}

.plan-card .btn.is-upgrade-plan {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #0ea5a1, #2f7df9);
  box-shadow: 0 8px 18px rgba(29, 77, 172, 0.26);
}

.booster-card {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid rgba(255, 79, 163, 0.55);
  background: linear-gradient(130deg, rgba(255, 194, 226, 0.75), rgba(255, 240, 250, 0.95));
  box-shadow:
    0 0 0 1px rgba(255, 79, 163, 0.14) inset,
    0 0 26px rgba(255, 79, 163, 0.46);
}

.booster-card h3 {
  color: #9a1655;
}

/* Login page */
.login-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.login-side {
  border-radius: var(--radius-md);
  border: 1px solid rgba(63, 88, 173, 0.2);
  background: linear-gradient(140deg, rgba(67, 97, 238, 0.13), rgba(14, 165, 161, 0.12));
  padding: 1rem;
}

.login-form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
}

input,
select {
  width: 100%;
  border: 1px solid rgba(54, 76, 145, 0.3);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
select:focus {
  border-color: var(--tertiary);
  outline: 2px solid rgba(67, 97, 238, 0.12);
}

.discord-btn {
  width: 100%;
  background: #5865f2;
  color: #fff;
  font-weight: 700;
  border: none;
}

/* Dashboard/Profile/Manage */
.dash-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dash-card {
  background: #fff;
  border: 1px solid rgba(53, 76, 145, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(46, 68, 143, 0.09);
}

.dash-value {
  font-size: 1.45rem;
  margin: 0.2rem 0;
  font-weight: 800;
}

.avatar-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar-block img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(56, 75, 140, 0.26);
}

.dash-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(54, 76, 145, 0.2);
  text-align: left;
  padding: 0.62rem 0.35rem;
  font-size: 0.9rem;
}

.text-muted {
  color: var(--ink-500);
}

.success {
  color: var(--success);
}

.danger {
  color: #d94848;
}

.hidden {
  display: none !important;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .help-grid,
  .server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-grid,
  .login-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .header-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    row-gap: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    border-top: 1px solid rgba(67, 97, 238, 0.18);
    padding-top: 0.8rem;
    margin-top: 0.2rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .site-nav .nav-user-dropdown {
    width: 100%;
  }

  .site-nav .nav-user-trigger {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .site-nav .nav-user-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.45rem;
    box-shadow: none;
    border-radius: 12px;
  }

  .site-nav .nav-user-item {
    justify-content: center;
    text-align: center;
  }

  .site-nav .nav-user-summary {
    justify-items: center;
    text-align: center;
  }

  .renewal-reminder {
    align-items: flex-start;
  }

  .renewal-reminder a {
    margin-left: 0;
  }

  .help-grid,
  .server-grid,
  .stats-grid,
  .dash-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding-top: 3.4rem;
  }

  .page-shell {
    padding-top: 2.6rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1120px, calc(100% - 0.85rem));
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-image.gif-live {
    animation-duration: 3.8s, 6.2s;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .help-card,
  .server-card,
  .stat-card,
  .panel,
  .dash-card {
    padding: 0.85rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .server-top {
    align-items: flex-start;
  }

  .server-name {
    font-size: 1rem;
  }

  .server-pagination button {
    min-width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 0.84rem;
  }

  .site-nav {
    gap: 0.4rem;
  }

  .nav-toggle-text {
    display: none;
  }

  .site-nav a {
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.45rem 0.55rem calc(0.55rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(53, 76, 145, 0.22);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav a {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ink-700);
    border: 1px solid rgba(53, 76, 145, 0.2);
    border-radius: 11px;
    padding: 0.5rem 0.25rem;
    background: rgba(255, 255, 255, 0.96);
  }

  .mobile-bottom-nav a.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, #ff7a29, #ff5b33);
    box-shadow: 0 8px 14px rgba(255, 91, 51, 0.3);
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-image.gif-live {
    animation: none;
  }
}
