/* =========================================================
   飞牛 SMP · 独立站样式
   基调：明亮温暖卡片风，品牌橙 #F97316，清爽现代
   ========================================================= */

:root {
  /* ── 品牌色 ── */
  --c-brand: #F97316;
  --c-brand-hover: #EA580C;
  --c-brand-active: #C2410C;
  --c-brand-light: #FFEDD5;
  --c-brand-glow: #FDBA74;

  /* ── 辅助色 ── */
  --c-gold: #FBBF24;
  --c-green: #16A34A;
  --c-green-light: #DCFCE7;
  --c-blue: #0EA5E9;
  --c-blue-light: #E0F2FE;
  --c-amber: #F59E0B;
  --c-amber-light: #FEF3C7;
  --c-pink: #EC4899;
  --c-pink-light: #FCE7F3;
  --c-purple: #A855F7;
  --c-purple-light: #F3E8FF;
  --c-red: #EF4444;

  /* ── 表面 / 背景 ── */
  --c-bg: #FFFCF8;
  --c-bg-alt: #FFF7ED;
  --c-card: #FFFFFF;
  --c-card-hover: #FFFEFA;

  /* ── 文字 ── */
  --c-text: #1C1917;
  --c-text-2: #57534E;
  --c-text-3: #A8A29E;
  --c-text-4: #D6D3D1;

  /* ── 边框 ── */
  --c-border: #F0EBE3;
  --c-border-hover: #E7E0D5;

  /* ── 阴影 ── */
  --sh-xs: 0 1px 2px rgba(28,25,23,.04);
  --sh-sm: 0 2px 8px rgba(28,25,23,.05);
  --sh-md: 0 8px 24px rgba(28,25,23,.07);
  --sh-lg: 0 16px 48px rgba(28,25,23,.09);
  --sh-brand: 0 8px 28px rgba(249,115,22,.22);
  --sh-brand-lg: 0 12px 36px rgba(249,115,22,.3);

  /* ── 圆角 ── */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* ── 间距 ── */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-7: 32px; --sp-8: 48px; --sp-9: 64px;
  --sp-10: 96px;

  /* ── 字体 ── */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --f-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  /* ── 动效 ── */
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .18s;
  --t-base: .32s;
  --t-slow: .5s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(249,115,22,.18); color: var(--c-text); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { padding-top: 64px; /* nav height */ }

/* ── Construction Banner ── */
.construction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #FBBF24;
  border-bottom: 3px solid #000;
  padding: 0;
  overflow: hidden;
}
.construction-banner::before,
.construction-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #000 0px,
    #000 12px,
    #FBBF24 12px,
    #FBBF24 24px
  );
  opacity: 0.15;
}
.construction-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.construction-banner-icon {
  font-size: 20px;
  animation: construction-bounce 1.5s ease-in-out infinite;
}
@keyframes construction-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-5deg); }
  75% { transform: translateY(-3px) rotate(5deg); }
}
.construction-stripe-left,
.construction-stripe-right {
  flex: 1;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #000 0px,
    #000 8px,
    transparent 8px,
    transparent 16px
  );
  max-width: 120px;
}
/* Adjust nav and main when banner is present */
body.has-construction-banner .nav { top: 42px; }
body.has-construction-banner main { padding-top: 106px; }
body.has-construction-banner .page-hero { padding-top: 142px; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  transition: background var(--t-base) var(--e-out),
              box-shadow var(--t-base) var(--e-out),
              backdrop-filter var(--t-base) var(--e-out);
}
.nav.scrolled {
  background: rgba(255,252,248,.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 var(--c-border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: color var(--t-base);
}
.nav.scrolled .nav-brand { color: var(--c-text); }
.nav-brand-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.nav-brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.18);
}
.nav.scrolled .nav-link {
  color: var(--c-text-2);
}
.nav.scrolled .nav-link:hover {
  color: var(--c-text);
  background: var(--c-brand-light);
}
.nav.scrolled .nav-link.active {
  color: var(--c-brand);
  background: var(--c-brand-light);
}

/* Nav status pill */
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}
.nav-status.online {
  background: var(--c-green-light);
  color: var(--c-green);
}
.nav-status.offline {
  background: #FEE2E2;
  color: var(--c-red);
}
.nav-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.nav-status.online .nav-status-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.8);
  transition: background var(--t-fast);
}
.nav.scrolled .nav-burger span { background: var(--c-text); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(155deg, #1E1145 0%, #5B21B6 38%, #F97316 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
/* Decorative blobs */
.hero-blob-1 {
  position: absolute;
  top: -180px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute;
  bottom: -100px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Hero cow icon */
.hero-cow {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  animation: bob 3.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.2));
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Hero meta stats */
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
}
.hero-meta-item svg {
  width: 15px; height: 15px;
  opacity: .7;
}

/* =========================================================
   Floating Server Card
   ========================================================= */
.server-card-wrap {
  position: relative;
  z-index: 10;
  margin-top: -48px;
  padding-bottom: var(--sp-8);
}
.server-card {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-radius: var(--r-2xl);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(91,33,182,.08), 0 8px 20px rgba(28,25,23,.06);
  border: 1px solid rgba(255,255,255,.8);
  animation: floatY 5s ease-in-out infinite;
}
.server-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.server-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.server-card-status .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 10px rgba(22,163,74,.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* IP Copy button */
.ip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--f-mono);
  box-shadow: var(--sh-brand);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.ip-btn:hover {
  background: var(--c-brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--sh-brand-lg);
}
.ip-btn:active { transform: translateY(0); }
.ip-btn svg { width: 15px; height: 15px; }

/* Server card stats grid */
.server-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.server-stat {
  background: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 16px 12px;
  text-align: center;
  transition: transform var(--t-fast) var(--e-out);
}
.server-stat:hover { transform: translateY(-2px); }
.server-stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.server-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-3);
  margin-top: 4px;
}

/* =========================================================
   Dashboard Cards
   ========================================================= */
.dashboard {
  padding-bottom: var(--sp-9);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.dash-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 24px;
  transition: transform var(--t-base) var(--e-out),
              box-shadow var(--t-base),
              border-color var(--t-base);
}
.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--c-border-hover);
}
.dash-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.dash-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-card-icon svg { width: 18px; height: 18px; }
.dash-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
.dash-card-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.dash-card-desc {
  font-size: 13px;
  color: var(--c-text-2);
  margin-top: 6px;
}
.dash-card-sub {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 4px;
}

/* Progress bar */
.progress-bar {
  height: 7px;
  background: var(--c-border);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-top: 10px;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-brand), var(--c-gold));
  transition: width 1s var(--e-out);
}

/* Quick actions list */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--c-bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  transition: background var(--t-fast), color var(--t-fast);
  text-align: left;
  width: 100%;
}
.quick-action:hover {
  background: var(--c-brand-light);
  color: var(--c-brand);
}
.quick-action svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: .45;
}
.quick-action:hover svg { opacity: .8; }
.quick-action .badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--c-brand-light);
  color: var(--c-brand);
  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   Section Headers
   ========================================================= */
.section {
  padding: var(--sp-10) 0;
}
.section-head {
  text-align: center;
  margin-bottom: var(--sp-7);
}
.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--c-brand-light);
  color: var(--c-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--c-text);
}
.section-sub {
  margin-top: 8px;
  color: var(--c-text-2);
  font-size: 15px;
}

/* =========================================================
   Notification Cards (Homepage preview)
   ========================================================= */
.notif-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notif-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base) var(--e-out),
              box-shadow var(--t-base),
              border-color var(--t-base);
}
.notif-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
  border-color: var(--c-border-hover);
}
.notif-date {
  text-align: center;
  padding: 8px 4px;
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
}
.notif-date .d {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-brand);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.notif-date .m {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--c-text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.notif-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 3px;
}
.notif-excerpt {
  font-size: 13px;
  color: var(--c-text-2);
}
.notif-tag {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.notif-tag.update { background: var(--c-blue-light); color: var(--c-blue); }
.notif-tag.event { background: var(--c-pink-light); color: var(--c-pink); }
.notif-tag.maintenance { background: var(--c-amber-light); color: var(--c-amber); }
.notif-tag.announce { background: var(--c-brand-light); color: var(--c-brand); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t-fast) var(--e-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover {
  background: var(--c-brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--sh-brand-lg);
}
.btn-ghost {
  background: var(--c-card);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  background: var(--c-brand-light);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* =========================================================
   CTA Section
   ========================================================= */
.cta-section {
  padding: var(--sp-8) 0 var(--sp-10);
}
.cta-card {
  position: relative;
  padding: 48px 32px;
  border-radius: var(--r-2xl);
  background: linear-gradient(155deg, #1E1145 0%, #5B21B6 38%, #F97316 100%);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-title {
  position: relative;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.cta-sub {
  position: relative;
  font-size: 15px;
  color: rgba(255,255,255,.6);
  max-width: 400px;
  margin: 0 auto 24px;
}
.cta-buttons {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.cta-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: all var(--t-fast);
}
.cta-btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 40px 0 32px;
  text-align: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  text-align: left;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
}
.footer-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.6;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-links a {
  font-size: 13px;
  color: var(--c-text-2);
  transition: color var(--t-fast);
}
.footer-col-links a:hover { color: var(--c-brand); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text-3);
}
.footer-bottom a {
  color: var(--c-brand);
  font-weight: 500;
}
.footer-bottom a:hover { text-decoration: underline; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--c-text);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: 9999;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Empty State
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--c-bg-alt);
  border: 1.5px dashed var(--c-border);
  border-radius: var(--r-xl);
}
.empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: inline-block;
  animation: bob 3.5s ease-in-out infinite;
}
.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}
.empty-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--c-text-3);
}

/* =========================================================
   Scroll Reveal
   ========================================================= */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--e-out), transform .6s var(--e-out);
}
.rv.vis {
  opacity: 1;
  transform: translateY(0);
}
.rv.d1 { transition-delay: .06s; }
.rv.d2 { transition-delay: .12s; }
.rv.d3 { transition-delay: .18s; }
.rv.d4 { transition-delay: .24s; }
.rv.d5 { transition-delay: .30s; }

/* =========================================================
   Animations
   ========================================================= */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =========================================================
   Page-specific: Notifications
   ========================================================= */
.page-hero {
  padding: 100px 0 48px;
  text-align: center;
  background: linear-gradient(155deg, #1E1145 0%, #5B21B6 38%, #F97316 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.page-hero-title {
  position: relative;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.page-hero-sub {
  position: relative;
  font-size: 15px;
  color: rgba(255,255,255,.55);
}

/* Filter bar */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(255,252,248,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  padding: 12px 0;
}
.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  gap: 4px;
}
.filter-tab {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  transition: all var(--t-fast);
}
.filter-tab:hover { background: var(--c-bg-alt); color: var(--c-text); }
.filter-tab.active {
  background: var(--c-brand);
  color: #fff;
}
.filter-search {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: var(--c-card);
  font-size: 13px;
  font-family: var(--f-sans);
  color: var(--c-text);
  width: 200px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.filter-search:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.filter-count {
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 500;
}

/* Pinned notification */
.pinned-card {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FDE68A;
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 24px;
}
.pinned-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-amber);
  margin-bottom: 8px;
}
.pinned-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pinned-body {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
}

/* Notification timeline */
.notif-timeline {
  position: relative;
  padding-left: 28px;
}
.notif-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-brand-light), var(--c-border));
  border-radius: 2px;
}
.notif-group-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-3);
  letter-spacing: .04em;
  margin-bottom: 12px;
  margin-top: 24px;
}
.notif-group-date:first-child { margin-top: 0; }
.notif-item {
  position: relative;
  padding: 18px 22px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--t-base) var(--e-out);
}
.notif-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-brand);
  border: 2px solid var(--c-bg);
}
.notif-item:hover {
  transform: translateX(4px);
  box-shadow: var(--sh-sm);
  border-color: var(--c-border-hover);
}
.notif-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.notif-item-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.notif-item-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}
.notif-item-time {
  font-size: 12px;
  color: var(--c-text-3);
  white-space: nowrap;
}
.notif-item-excerpt {
  font-size: 13px;
  color: var(--c-text-2);
}
.notif-item-detail {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.8;
}
.notif-item.open .notif-item-detail { display: block; }
.notif-new-badge {
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: var(--c-green-light);
  color: var(--c-green);
  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   Page-specific: Map
   ========================================================= */
.map-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 24px;
}
.map-tab {
  padding: 8px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  transition: all var(--t-fast);
}
.map-tab:hover { border-color: var(--c-brand); color: var(--c-brand); }
.map-tab.active {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}
.map-frame {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--c-bg-alt);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--c-text-3);
  font-size: 14px;
}
.map-marker {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  cursor: pointer;
  transition: transform var(--t-fast) var(--e-spring);
  z-index: 2;
}
.map-marker:hover { transform: scale(1.4); }
.map-marker-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--c-text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.map-marker:hover .map-marker-tooltip { opacity: 1; }

/* Landmark list */
.landmark-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.landmark-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-base) var(--e-out);
}
.landmark-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
  border-color: var(--c-border-hover);
}
.landmark-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.landmark-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}
.landmark-coord {
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--c-text-3);
}

/* =========================================================
   Page-specific: Status
   ========================================================= */
.status-mega {
  position: relative;
  padding: 36px;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, #1E1145, #5B21B6 60%, #F97316);
  color: #fff;
  overflow: hidden;
  margin-bottom: 24px;
}
.status-mega::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.status-mega-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.status-mega-info { display: flex; align-items: center; gap: 16px; }
.status-mega-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}
.status-mega-name {
  font-size: 22px;
  font-weight: 800;
}
.status-mega-meta {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
}
.status-pill.online {
  background: rgba(22,163,74,.2);
  color: #4ADE80;
}
.status-pill.offline {
  background: rgba(239,68,68,.2);
  color: #FCA5A5;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
}
.metric-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.metric-label {
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 4px;
}
.metric-bar {
  height: 4px;
  background: var(--c-border);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s var(--e-out);
}

/* Uptime bars */
.uptime-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 48px;
}
.uptime-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height .5s var(--e-out);
}
.uptime-bar.ok { background: var(--c-green); }
.uptime-bar.partial { background: var(--c-amber); }
.uptime-bar.down { background: var(--c-red); }

/* Player list */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--c-bg);
  border-radius: var(--r-md);
}
.player-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--c-bg-alt);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-2);
}
.player-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}
.player-role {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
}
.player-role.owner { background: var(--c-brand-light); color: var(--c-brand); }
.player-role.admin { background: var(--c-pink-light); color: var(--c-pink); }
.player-role.mod { background: var(--c-purple-light); color: var(--c-purple); }
.player-role.member { background: var(--c-bg-alt); color: var(--c-text-3); }

/* Event stream */
.event-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}
.event-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--c-border);
}
.event-time {
  font-size: 11px;
  font-family: var(--f-mono);
  color: var(--c-text-3);
  white-space: nowrap;
  min-width: 50px;
}
.event-text { color: var(--c-text-2); }

/* =========================================================
   Page-specific: About
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.value-card {
  padding: 28px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  transition: all var(--t-base) var(--e-out);
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--c-border-hover);
}
.value-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.value-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.value-desc {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
}

/* Server matrix cards */
.server-matrix {
  display: grid;
  gap: 16px;
}
.server-matrix-card {
  position: relative;
  padding: 28px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.server-matrix-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.server-matrix-card.active::before {
  background: linear-gradient(90deg, var(--c-brand), var(--c-gold));
}
.server-matrix-card.coming::before {
  background: var(--c-border);
}
.server-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.server-matrix-name {
  font-size: 18px;
  font-weight: 700;
}
.server-matrix-status {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}
.server-matrix-status.active {
  background: var(--c-green-light);
  color: var(--c-green);
}
.server-matrix-status.coming {
  background: var(--c-bg-alt);
  color: var(--c-text-3);
}
.server-matrix-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.server-matrix-meta span {
  font-size: 13px;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.server-matrix-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.server-matrix-feature {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-bg-alt);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-2);
}

/* Join steps */
.join-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.join-step {
  text-align: center;
  padding: 28px 20px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}
.join-step-num {
  width: 36px; height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--c-brand-light);
  color: var(--c-brand);
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.join-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.join-step-desc {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.6;
}

/* Rules grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.rule-card {
  padding: 20px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-align: center;
}
.rule-icon { font-size: 24px; margin-bottom: 8px; }
.rule-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.rule-desc { font-size: 12px; color: var(--c-text-3); }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.team-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  transition: all var(--t-base) var(--e-out);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
}
.team-avatar {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--c-bg-alt);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text-2);
}
.team-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.team-role {
  font-size: 12px;
  color: var(--c-text-3);
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.contact-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  transition: all var(--t-base) var(--e-out);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
}
.contact-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}
.contact-link {
  font-size: 13px;
  color: var(--c-brand);
  font-weight: 600;
  text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }

/* Hero badges */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* IP copy button (about page join step) */
.ip-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--f-mono);
  border: none;
  cursor: pointer;
  transition: all var(--t-base) var(--e-out);
}
.ip-copy-btn:hover {
  background: var(--c-brand-dark);
  transform: translateY(-1px);
}
.ip-copy-btn svg { width: 14px; height: 14px; }

/* TODO / placeholder pill */
.todo {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--c-bg-alt);
  color: var(--c-text-3);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .landmark-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Nav: show burger, hide links */
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(255,252,248,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 100;
  }
  .nav-links.open .nav-link {
    font-size: 16px;
    padding: 14px 28px;
    color: var(--c-text-2);
  }
  .nav-links.open .nav-link.active {
    color: var(--c-brand);
    background: var(--c-brand-light);
  }

  /* Layout */
  .dashboard-grid { grid-template-columns: 1fr; }
  .server-stats { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .join-steps { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }

  /* Notif */
  .notif-card { grid-template-columns: 52px 1fr; }
  .notif-tag { grid-column: 2; justify-self: start; }

  /* Hero */
  .hero { padding: 80px 0 60px; }
  .hero-meta { gap: 16px; }
  .server-card { padding: 20px; }

  /* Status */
  .status-mega-inner { flex-direction: column; text-align: center; }
  .status-mega-info { flex-direction: column; }

  /* Filter */
  .filter-inner { flex-direction: column; align-items: stretch; }
  .filter-tabs { justify-content: center; flex-wrap: wrap; }
  .filter-search { width: 100%; }

  /* Map */
  .map-tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .server-stats { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; }
  .cta-btn-white, .cta-btn-outline { width: 100%; justify-content: center; }
}

/* =========================================================
   Accessibility
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; }
}
:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
