/* ========================================
   RustWipe — Neomodern Dark Theme
   ======================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-surface: #1a1a26;
  --bg-glass: rgba(22, 22, 31, 0.7);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(205, 68, 48, 0.4);

  --text-primary: #e8e8ed;
  --text-secondary: #8b8b9e;
  --text-muted: #5a5a6e;

  --accent: #cd4430;
  --accent-light: #e05a42;
  --accent-glow: rgba(205, 68, 48, 0.25);
  --accent-gradient: linear-gradient(135deg, #cd4430, #e87558);

  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.15);
  --yellow: #fbbf24;
  --blue: #60a5fa;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utilities --- */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(10, 10, 15, 0.75);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo__icon {
  font-size: 1.5rem;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo__accent {
  color: var(--accent);
}

/* Nav */
.nav {
  display: flex;
  gap: 4px;
}

.nav__link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav__link--active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow), var(--shadow-glow);
}

.btn--outline {
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(205, 68, 48, 0.06);
}

.btn--ghost {
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 12px 32px;
  font-size: 0.9375rem;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(205, 68, 48, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(96, 165, 250, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(205, 68, 48, 0.05), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 20px;
  max-width: 600px;
  margin: 0 auto 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar__icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.search-bar__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.search-bar__input::placeholder {
  color: var(--text-muted);
}

.search-bar__btn {
  padding: 10px 24px;
  border-radius: var(--radius-md);
}

/* Stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat__value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat--accent .stat__value {
  color: var(--accent-light);
}

.stat--accent .stat__label {
  color: var(--accent-light);
  opacity: 0.7;
}

/* ========================================
   FILTERS
   ======================================== */
.filters {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
}

.filters__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group--sort {
  margin-left: auto;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.filter-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* Chips */
.chip {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.chip:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.chip--active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Select */
.select {
  padding: 8px 32px 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238b8b9e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--transition);
}

.select:hover,
.select:focus {
  border-color: var(--border-hover);
  outline: none;
}

/* ========================================
   SERVER GRID
   ======================================== */
.servers {
  padding: 40px 0 80px;
}

.servers__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.servers__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.servers__count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* ========================================
   SERVER CARD (NEW)
   ======================================== */
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Promoted server card */
.server-card--promoted {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(251, 191, 36, 0.05));
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.08);
}
.server-card--promoted:hover {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.15);
}
.promoted-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a00;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sc-promo-desc {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* Promoted modal styling */
.modal-overlay--promoted .modal__panel {
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.modal--promoted {
  border-top: 3px solid #fbbf24;
}
.modal-promo-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.modal-promo-banner__badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a00;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.modal-promo-banner__desc {
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin-bottom: 8px;
  line-height: 1.5;
}
.modal-promo-banner__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.modal-promo-link:hover {
  color: #f59e0b;
}
.modal-promo-link--discord {
  color: #7289da;
}
.modal-promo-link--discord:hover {
  color: #5b6eae;
}
.action-btn--promoted {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #1a1a00 !important;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 20px;
  border: none;
}

.server-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Card Banner */
.sc-banner {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.sc-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, rgba(22,22,31,0.3) 60%, transparent 100%);
}

/* Card Body */
.sc-body {
  padding: 16px 18px 18px;
}

.sc-banner + .sc-body {
  margin-top: -12px;
  position: relative;
}

/* Top row: wipe badge + region */
.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.wipe-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.wipe-badge--fresh {
  color: #10b981;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.75rem;
  padding: 4px 12px;
  animation: pulse-badge 2s ease-in-out infinite;
}

.wipe-badge--recent {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.wipe-badge--today {
  color: var(--yellow);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.wipe-badge--old {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px rgba(52, 211, 153, 0.3); }
  50% { box-shadow: 0 0 12px rgba(52, 211, 153, 0.5); }
}

.sc-region {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Name */
.sc-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

/* Tags */
.sc-tags {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag--vanilla {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
}

.tag--modded {
  color: var(--blue);
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}

.tag--hardcore {
  color: var(--accent-light);
  background: rgba(205, 68, 48, 0.1);
  border-color: rgba(205, 68, 48, 0.2);
}

.tag--softcore {
  color: var(--yellow);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}

.tag--solo,
.tag--duo,
.tag--trio,
.tag--quad,
.tag--no-limit {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.tag--weekly,
.tag--biweekly,
.tag--monthly {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
}

/* Players Section */
.sc-players {
  margin-bottom: 12px;
}

/* Player Bar — see end of file for new overlaid-label style */
.sc-bar__fill.fill--empty { background: rgba(255,255,255,0.08); }
.sc-bar__fill.fill--low { background: var(--green); }
.sc-bar__fill.fill--medium { background: linear-gradient(90deg, var(--green), #a3e635); }
.sc-bar__fill.fill--high { background: linear-gradient(90deg, #a3e635, var(--yellow)); }
.sc-bar__fill.fill--full { background: linear-gradient(90deg, var(--yellow), var(--accent)); }

/* Meta Row */
.sc-meta {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.sc-meta__item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sc-meta__item svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ========================================
   SERVERS FOOTER
   ======================================== */
.servers__footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-secondary);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 280px;
}

.footer__tagline {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .header__inner {
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 120px 16px 60px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat__value {
    font-size: 1.375rem;
  }

  .search-bar {
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  .search-bar__icon {
    display: none;
  }

  .search-bar__btn {
    width: 100%;
  }

  .filters__bar {
    gap: 16px;
  }

  .filter-group--sort {
    margin-left: 0;
    width: 100%;
  }

  .select {
    width: 100%;
  }

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

  .sc-banner {
    height: 80px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.625rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .filter-chips {
    gap: 6px;
  }

  .chip {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========================================
   SELECTION
   ======================================== */
::selection {
  background: var(--accent);
  color: white;
}

/* ========================================
   HIDDEN / UTILITIES
   ======================================== */
.hidden {
  display: none !important;
}

/* ========================================
   PAGES
   ======================================== */
.page {
  display: none;
}

.page--active {
  display: block;
}

.page-section {
  padding: 120px 0 80px;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header__sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* ========================================
   LOADING / STATES
   ======================================== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}

.error-state__msg {
  margin-bottom: 16px;
  color: var(--accent-light);
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  grid-column: 1 / -1;
}

/* ========================================
   LIVE INDICATOR
   ======================================== */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-green 1.5s ease-in-out infinite;
}

.live-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  font-family: var(--font-mono);
}

/* ========================================
   TAG EXTRAS
   ======================================== */
.tag--community {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
}

.tag--group {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.tag--schedule {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
}

.tag--queue {
  color: var(--yellow);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}

/* (server card overflow/bar variants removed — handled by sc- classes now) */

/* ========================================
   UPCOMING WIPES
   ======================================== */
.upcoming-section {
  margin-bottom: 48px;
}

.upcoming-header {
  margin-bottom: 24px;
}

.upcoming-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.upcoming-title svg {
  color: var(--accent-light);
}

.upcoming-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Force Wipe Banner */
.force-wipe-banner {
  margin-bottom: 24px;
}

.force-wipe {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(205, 68, 48, 0.08), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(205, 68, 48, 0.2);
  border-radius: var(--radius-lg);
}

.force-wipe__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(205, 68, 48, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-light);
  flex-shrink: 0;
}

.force-wipe__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.force-wipe__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

.force-wipe__date {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.force-wipe__countdown {
  text-align: right;
}

.force-wipe__timer {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-light);
  letter-spacing: -0.02em;
}

/* Upcoming Grid */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.upcoming-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.upcoming-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.upcoming-card--imminent {
  border-color: rgba(205, 68, 48, 0.3);
  background: linear-gradient(135deg, rgba(205, 68, 48, 0.05), transparent);
}

.upcoming-card--soon {
  border-color: rgba(251, 191, 36, 0.2);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.03), transparent);
}

.upcoming-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.upcoming-card__countdown {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-light);
}

.upcoming-card--imminent .upcoming-card__countdown {
  color: var(--accent-light);
}

.upcoming-card--soon .upcoming-card__countdown {
  color: var(--yellow);
}

.upcoming-card--later .upcoming-card__countdown {
  color: var(--text-secondary);
}

.upcoming-card__cycle {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.upcoming-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Section divider */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

.calendar-history-header {
  margin-bottom: 24px;
}

/* ========================================
   CALENDAR
   ======================================== */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.calendar-date {
  font-size: 1.125rem;
  font-weight: 600;
  min-width: 280px;
  text-align: center;
}

.calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-summary {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 60px 32px 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.timeline-row:hover {
  background: var(--bg-card);
}

.timeline-row--empty {
  opacity: 0.35;
}

.timeline-hour {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  overflow: hidden;
}

.timeline-bar__fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 100px;
  transition: width var(--transition-slow);
}

.timeline-servers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-servers--empty {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.timeline-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  text-align: right;
}

.timeline-more {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
}

.timeline-server {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.timeline-server:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.timeline-server__flag {
  font-size: 0.875rem;
}

.timeline-server__name {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-server__players {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

/* ========================================
   RANKINGS
   ======================================== */
.ranking-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

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

.ranking-table thead {
  position: sticky;
  top: 64px;
  z-index: 10;
}

.ranking-table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.ranking-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.ranking-table tr:hover td {
  background: var(--bg-card);
  color: var(--text-primary);
}

.rank-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted) !important;
  width: 48px;
}

.rank-name a {
  color: var(--text-primary);
  font-weight: 600;
  transition: color var(--transition);
}

.rank-name a:hover {
  color: var(--accent-light);
}

.rank-players {
  font-family: var(--font-mono);
  font-size: 0.8125rem !important;
}

.rank-queue {
  font-family: var(--font-mono);
  font-size: 0.8125rem !important;
  color: var(--yellow) !important;
}

.rank-country {
  white-space: nowrap;
}

.rank-wipe {
  font-family: var(--font-mono);
  font-size: 0.8125rem !important;
}

/* ========================================
   SERVER DETAIL MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal--detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  padding: 0;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrollbar styling */
.modal--detail::-webkit-scrollbar {
  width: 6px;
}
.modal--detail::-webkit-scrollbar-track {
  background: transparent;
}
.modal--detail::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
}

.modal__close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(10, 10, 15, 0.8);
}

.modal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--text-muted);
}

/* Modal Banner */
.modal__banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-secondary) 0%, rgba(18,18,26,0.4) 50%, transparent 100%);
}

.modal__content {
  padding: 28px 32px 32px;
}

.modal__banner + .modal__content,
.modal__banner:not(.hidden) ~ .modal__content {
  padding-top: 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

/* Status Badge */
.modal__status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.modal__status-badge--online {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--green);
}

.modal__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-green 2s ease-in-out infinite;
}

.modal__status-text {
  line-height: 1;
}

/* Modal Header */
.modal__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.modal__name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 6px;
  padding-right: 40px;
}

.modal__subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Modal Tags */
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag--pvp {
  color: var(--accent-light);
  background: rgba(205, 68, 48, 0.1);
  border-color: rgba(205, 68, 48, 0.25);
}

.tag--eac {
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
}

/* Modal Stats — 5 columns */
.modal__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.modal-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  transition: border-color var(--transition);
}

.modal-stat:hover {
  border-color: var(--border-hover);
}

.modal-stat--alert {
  border-color: rgba(251, 191, 36, 0.3);
}

.modal-stat__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.modal-stat__value {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-stat__max {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

.modal-stat__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Player Gauge */
.modal__gauge {
  margin-bottom: 20px;
}

.gauge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.gauge__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gauge__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.gauge__status {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 10px;
  border-radius: 100px;
}

.gauge__status.fill--empty { color: var(--text-muted); background: rgba(255,255,255,0.04); }
.gauge__status.fill--low { color: var(--green); background: rgba(52,211,153,0.1); }
.gauge__status.fill--medium { color: var(--green); background: rgba(52,211,153,0.1); }
.gauge__status.fill--high { color: var(--yellow); background: rgba(251,191,36,0.1); }
.gauge__status.fill--full { color: var(--accent-light); background: rgba(205,68,48,0.1); }

.gauge__track {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.gauge__fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge__fill.fill--empty { background: rgba(255,255,255,0.1); }
.gauge__fill.fill--low { background: var(--green); }
.gauge__fill.fill--medium { background: linear-gradient(90deg, var(--green), #a3e635); }
.gauge__fill.fill--high { background: linear-gradient(90deg, #a3e635, var(--yellow)); }
.gauge__fill.fill--full { background: linear-gradient(90deg, var(--yellow), var(--accent)); }

.gauge__footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Quick Actions */
.modal__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.action-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.action-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.action-btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: white;
}

/* Wipe Info Cards */
.modal__wipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wipe-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.wipe-card:hover {
  border-color: var(--border-hover);
}

.wipe-card--schedule {
  grid-column: 1 / -1;
}

.wipe-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.wipe-card__icon--map {
  background: rgba(205, 68, 48, 0.1);
  color: var(--accent-light);
}

.wipe-card__icon--bp {
  background: rgba(96, 165, 250, 0.1);
  color: var(--blue);
}

.wipe-card__icon--schedule {
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
}

.wipe-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wipe-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.wipe-card__ago {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.wipe-card__date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Modal Section Titles with icons */
.modal__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal__section-title svg {
  opacity: 0.5;
}

/* Modal Sections */
.modal__section {
  margin-bottom: 24px;
}

.modal__section:last-child {
  margin-bottom: 0;
}

/* Modal Info Grid */
.modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-info {
  background: var(--bg-card);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-info__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-info__value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Map Card */
/* Map Preview with image */
.map-preview {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-preview__img-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.map-preview__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.map-preview__thumb-link:hover .map-preview__img {
  filter: brightness(1.2);
}

.map-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: filter 0.2s;
}

.map-preview__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.map-preview__placeholder svg {
  opacity: 0.3;
}

.map-preview__open-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.map-preview__open-btn svg {
  opacity: 0.3;
  transition: opacity 0.2s;
}

.map-preview__open-btn span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.map-preview__open-btn:hover {
  background: var(--bg-card);
}

.map-preview__open-btn:hover svg {
  opacity: 0.6;
}

.map-preview__loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-preview__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: map-spin 0.8s linear infinite;
}

@keyframes map-spin {
  to { transform: rotate(360deg); }
}

.map-preview__details {
  display: flex;
  flex-direction: column;
}

.map-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex: 1;
}

.map-preview__row:last-child {
  border-bottom: none;
}

.map-preview__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.map-preview__value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.map-preview__value--mono {
  font-family: var(--font-mono);
  color: var(--accent-light);
}

/* Next Wipe Prediction Cards */
.modal__next-wipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.next-wipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.next-wipe-card--imminent {
  border-color: rgba(205, 68, 48, 0.5);
  background: rgba(205, 68, 48, 0.08);
}

.next-wipe-card--soon {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
}

.next-wipe-card--later {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.05);
}

.next-wipe-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.next-wipe-card--force .next-wipe-card__header {
  color: var(--accent-light);
}

.next-wipe-card--cycle .next-wipe-card__header {
  color: var(--blue);
}

.next-wipe-card__date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.next-wipe-card__countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.next-wipe-card__days {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.next-wipe-card--imminent .next-wipe-card__days {
  color: var(--accent-light);
}

.next-wipe-card--soon .next-wipe-card__days {
  color: var(--yellow);
}

.next-wipe-card__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Flag icon (image-based) */
.flag-icon {
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 2px;
}

/* Ranking flag display */
.rank-flag {
  vertical-align: middle;
  margin-right: 4px;
  line-height: 1;
}

@media (max-width: 768px) {
  .map-preview {
    grid-template-columns: 1fr;
  }
  .map-preview__img-wrap {
    width: 100%;
    height: 200px;
  }
}

/* Description */
.modal__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
  max-height: 180px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

/* Connection info */
.modal__connect {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-connect__row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.modal-connect__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 56px;
}

.modal-connect__value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-light);
  background: none;
  border: none;
  user-select: all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn--sm {
  padding: 5px 12px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.btn--copied {
  color: var(--green) !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}

/* ========================================
   RESPONSIVE ADDITIONS
   ======================================== */
@media (max-width: 768px) {
  .calendar-controls {
    flex-direction: column;
    gap: 12px;
  }

  .timeline-row {
    grid-template-columns: 50px 28px 60px 1fr;
    gap: 6px;
    padding: 6px 8px;
  }

  .timeline-server__name {
    max-width: 120px;
  }

  .ranking-table {
    font-size: 0.8125rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 10px 8px;
  }

  .force-wipe {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .force-wipe__countdown {
    text-align: center;
  }

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

  .modal--detail {
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }

  .modal__content {
    padding: 20px;
  }

  .modal__banner {
    height: 120px;
  }

  .modal__stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .modal__actions {
    flex-wrap: wrap;
  }

  .action-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  .modal-connect__row {
    flex-wrap: wrap;
  }

  .modal-connect__value {
    min-width: 0;
  }
}

/* ========================================
   LEGAL / PRIVACY PAGES
   ======================================== */
.legal-content {
  max-width: 720px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-content h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin: 32px 0 12px;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 8px 0 16px 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  animation: slideInUp 0.4s ease-out;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========================================
   LIGHT THEME
   ======================================== */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #eeeef0;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fa;
  --bg-surface: #f0f0f4;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --border-accent: rgba(205, 68, 48, 0.3);

  --text-primary: #1a1a2e;
  --text-secondary: #5a5a6e;
  --text-muted: #8b8b9e;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero__bg {
  background: linear-gradient(135deg, #fdf2f0 0%, #f5f5f7 50%, #f0f0f8 100%);
  opacity: 1;
}

[data-theme="light"] .search-bar__input {
  background: #ffffff;
  color: var(--text-primary);
}

[data-theme="light"] .server-card {
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .modal--detail {
  background: #ffffff;
}

[data-theme="light"] .ranking-table thead {
  background: var(--bg-secondary);
}

[data-theme="light"] .ranking-table tbody tr:hover {
  background: var(--bg-surface);
}

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.theme-toggle__icon.hidden {
  display: none;
}

/* ========================================
   LANGUAGE TOGGLE
   ======================================== */
.lang-toggle {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.lang-toggle:hover {
  color: var(--accent-light);
  border-color: var(--accent);
}

/* ========================================
   HAMBURGER MENU
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--active span:nth-child(2) {
  opacity: 0;
}

.hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    z-index: 999;
  }

  .nav--open {
    display: flex;
  }

  .nav__link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav__link:hover {
    background: var(--bg-surface);
  }

  .lang-toggle,
  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .lang-toggle span {
    display: none;
  }
  .lang-toggle {
    padding: 0 8px;
  }
}

/* ========================================
   FAVORITES
   ======================================== */
.fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  padding: 0;
}

.fav-btn:hover {
  color: #ef4444;
  transform: scale(1.15);
}

.fav-btn--active {
  color: #ef4444;
}

.fav-btn--active svg {
  fill: #ef4444;
}

.fav-btn--card {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.fav-btn--modal {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-left: auto;
}

.fav-btn--modal:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.fav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 9px;
  margin-left: 6px;
}

.fav-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn--active {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

/* ========================================
   LIVE FEED TICKER
   ======================================== */
.live-feed {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.live-feed.hidden {
  display: none;
}

.live-feed__label {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-secondary);
  z-index: 2;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
}

.live-feed__track {
  display: flex;
  gap: 0;
  animation: liveFeedScroll 60s linear infinite;
  padding-left: 16px;
}

.live-feed__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 40px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  transition: color var(--transition);
  cursor: pointer;
}

.live-feed__item:hover {
  color: var(--text-primary);
}

.live-feed__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.live-feed__flag {
  font-size: 0.75rem;
}

.live-feed__name {
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-feed__time {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.75rem;
}

.live-feed__players {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

@keyframes liveFeedScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================
   PLAYER HISTORY CHART
   ======================================== */
.player-chart {
  width: 100%;
  min-height: 100px;
}

.chart-svg {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ========================================
   SC-TOP LAYOUT FIX (fav button)
   ======================================== */
.sc-top .fav-btn--card {
  margin-left: auto;
}

/* ========================================
   RESPONSIVE FIXES FOR NEW ELEMENTS
   ======================================== */
@media (max-width: 480px) {
  .header__actions {
    gap: 6px;
  }

  .live-feed__name {
    max-width: 120px;
  }

  .live-feed__players {
    display: none;
  }

  .fav-actions {
    flex-direction: column;
  }
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, transform 0.2s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.contact-card span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================================
   PROMOTE PAGE — PRICING PLANS
   ======================================== */
.promote-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.promote-plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.promote-plan:hover {
  transform: translateY(-3px);
}

.promote-plan--popular {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(205, 98, 47, 0.15);
}

.promote-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
}

.promote-plan__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.promote-plan__price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.promote-plan__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.promote-plan__features {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.promote-plan__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.promote-plan__features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.promote-plan__btn {
  margin-top: auto;
  width: 100%;
}

/* ========================================
   KO-FI / SUPPORT BUTTON
   ======================================== */
.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.kofi-btn:hover {
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

.kofi-btn svg {
  color: #e74c3c;
}

/* ========================================
   RESPONSIVE FOR NEW PAGES
   ======================================== */
@media (max-width: 768px) {
  .promote-plans {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   SKELETON LOADING CARDS
   ======================================== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-banner {
  height: 100px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card-hover) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card-hover) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line--title {
  height: 18px;
  width: 70%;
}

.skeleton-line--tags {
  height: 14px;
  width: 50%;
}

.skeleton-line--bar {
  height: 6px;
  width: 100%;
}

.skeleton-line--meta {
  height: 12px;
  width: 40%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   HERO TAGLINE
   ======================================== */
.hero__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ========================================
   FILTER HEADER (count + reset)
   ======================================== */
.filters__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.filters__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.filters__count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 100px;
}

.filters__reset {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  margin-left: auto;
}

.filters__reset:hover {
  color: var(--accent-light);
  border-color: var(--accent);
}

/* ========================================
   STICKY FILTERS
   ======================================== */
.filters--sticky {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: var(--bg-primary);
  padding-top: 16px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

/* ========================================
   PLAYER BAR WITH OVERLAID LABEL
   ======================================== */
.sc-bar {
  height: 22px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.sc-bar__fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-bar__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Wipe badge fresh — enhanced in original section above */

/* ========================================
   STEAM CONNECT BUTTON ON CARDS
   ======================================== */
.sc-actions {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

.sc-connect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.sc-connect:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.back-to-top:hover {
  background: var(--bg-card-hover);
  color: var(--accent-light);
  border-color: var(--accent);
}

/* ========================================
   BOTTOM MOBILE NAV
   ======================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  justify-content: space-around;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  font-size: 0.625rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.bottom-nav__item--active {
  color: var(--accent);
}

.bottom-nav__item svg {
  opacity: 0.7;
}

.bottom-nav__item--active svg {
  opacity: 1;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }

  .back-to-top {
    bottom: 90px;
  }

  .footer {
    padding-bottom: 72px;
  }

  /* Larger tap targets for chips on mobile */
  .chip {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

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

/* ========================================
   FORCE WIPE BAR (servers page)
   ======================================== */
.force-wipe-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.force-wipe-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
}

.force-wipe-bar__icon {
  color: var(--yellow);
  flex-shrink: 0;
}

.force-wipe-bar__text {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.force-wipe-bar__text strong {
  color: var(--yellow);
}

.force-wipe-bar__text span {
  color: var(--text-secondary);
}

.force-wipe-bar__countdown {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.force-wipe-bar--imminent {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}

.force-wipe-bar--imminent .force-wipe-bar__countdown {
  color: var(--yellow);
  border-color: rgba(251, 191, 36, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

.force-wipe-bar--soon {
  background: rgba(251, 191, 36, 0.04);
}

/* ========================================
   CHART IMPROVEMENTS
   ======================================== */
.chart-container {
  position: relative;
}

.chart-tooltip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--text-primary);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.chart-tooltip strong {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-light);
}

.chart-tooltip span {
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-legend__dot--min { background: var(--green); }
.chart-legend__dot--avg { background: var(--yellow); }
.chart-legend__dot--max { background: var(--accent); }

/* ========================================
   TOOLS PAGE
   ======================================== */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.tool-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-card__title svg {
  color: var(--accent);
}

.tool-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Force Wipe Calculator */
.forcewipe-calc__inputs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fw-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
}

.fw-result-card__date {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.fw-result-card__time {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.fw-status {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.fw-status--future {
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
}

.fw-status--past {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

/* Server Comparison */
.compare-inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.compare-inputs .search-bar__input {
  flex: 1;
  min-width: 180px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.compare-result {
  margin-top: 20px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table thead th {
  background: var(--bg-surface);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.75rem;
}

.compare-th a {
  color: var(--accent-light);
}

.compare-label {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Find Me a Server Wizard */
.wizard__step {
  display: none;
}

.wizard__step--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard__question {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.wizard__options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wizard__opt {
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.wizard__opt:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.wizard__opt--active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.wizard__results .server-grid {
  margin-top: 16px;
}

.wizard__no-results {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
}

/* Recently Played */
.recent-servers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.recent-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.recent-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.recent-item__time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ========================================
   CALENDAR VIEW TOGGLE & HEATMAP
   ======================================== */
.calendar-view-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.cal-view-btn {
  transition: all 0.2s;
}

.cal-view-btn--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.heatmap-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-radius: 8px;
  transition: transform 0.15s;
  cursor: default;
  min-height: 70px;
}

.heatmap-cell:hover {
  transform: scale(1.05);
}

.heatmap-cell__hour {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  opacity: 0.8;
  margin-bottom: 4px;
}

.heatmap-cell__count {
  font-size: 1.25rem;
  font-weight: 700;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.heatmap-legend__bar {
  width: 120px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--surface-2), rgba(205, 68, 48, 0.15), rgba(205, 68, 48, 1));
}

/* ========================================
   WIPE COUNTDOWN WIDGET
   ======================================== */
.widget-preview {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}

.widget-countdown__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.widget-countdown__timer {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  margin: 8px 0;
}

.widget-countdown__date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.widget-code {
  margin-top: 12px;
}

.widget-code__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-code__textarea {
  width: 100%;
  background: var(--surface-1);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  resize: none;
  margin-bottom: 8px;
}

/* ========================================
   PROMOTE STATS
   ======================================== */
.promote-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.promote-stat {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}

.promote-stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.promote-stat__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ========================================
   SUPPORT GOAL (Footer)
   ======================================== */
.footer__support {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: center;
}

.support-goal {
  text-align: center;
  max-width: 320px;
}

.support-goal__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.support-goal__bar {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.support-goal__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.support-goal__text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ========================================
   TOOLS PAGE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .tool-card {
    padding: 16px;
  }

  .compare-inputs {
    flex-direction: column;
  }

  .compare-inputs .search-bar__input {
    min-width: auto;
    width: 100%;
  }

  .compare-table {
    font-size: 0.75rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 6px 8px;
  }

  .wizard__opt {
    padding: 10px 18px;
    font-size: 0.8125rem;
  }

  .force-wipe-bar__inner {
    flex-wrap: wrap;
  }

  .force-wipe-bar__countdown {
    margin-left: 0;
  }

  .promote-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .heatmap-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .heatmap-cell {
    padding: 12px 6px;
    min-height: 56px;
  }

  .heatmap-cell__count {
    font-size: 1rem;
  }
}