/* ============================================================
   MC Server List — Main Stylesheet (v2)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d1117;
  --bg2:      #161b22;
  --bg3:      #21262d;
  --border:   #30363d;
  --text:     #e6edf3;
  --text2:    #8b949e;
  --primary:  #1f6feb;
  --primary2: #388bfd;
  --green:    #238636;
  --green2:   #2ea043;
  --red:      #da3633;
  --yellow:   #d29922;
  --radius:   8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ── */
.navbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 8px;
}
.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary2);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 8px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: .88rem;
  transition: color .15s, background .15s;
  white-space: nowrap;
  display: block;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.btn-nav { background: var(--green) !important; color: #fff !important; font-weight: 600; }
.btn-nav:hover { background: var(--green2) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; margin-left: auto; padding: 4px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
  z-index: 300;
  list-style: none;
  padding: 4px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 8px 14px; color: var(--text2); font-size: .88rem; text-decoration: none; white-space: nowrap; }
.dropdown-menu li a:hover { background: var(--bg3); color: var(--text); }

/* Badge */
.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 20px;
  vertical-align: middle;
  line-height: 1.4;
}

/* ── Main container ── */
main.main-container {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px;
}

/* ── Cards ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.card-sm { padding: 12px 16px; }

/* ── Server Cards ── */
.server-list { display: flex; flex-direction: column; gap: 10px; }
.server-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .15s, transform .1s;
}
.server-card:hover { border-color: var(--primary2); transform: translateY(-1px); }
.server-card.featured { border-color: var(--yellow); }
.server-card.premium  { border-color: #a371f7; }

.server-rank { font-size: 1.1rem; font-weight: 700; color: var(--text2); min-width: 32px; text-align: center; flex-shrink: 0; }
.server-icon { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.server-icon-placeholder { width: 52px; height: 52px; border-radius: 6px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.server-info { flex: 1; min-width: 0; }
.server-name { font-size: 1rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
.server-desc { font-size: .83rem; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 5px; }
.server-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.tag {
  background: var(--bg3);
  color: var(--text2);
  font-size: .74rem;
  padding: 2px 7px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.tag:hover, .tag.active { border-color: var(--primary2); color: var(--primary2); }

.server-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 110px;
  flex-shrink: 0;
}
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.online-dot.green { background: #3fb950; }
.online-dot.red   { background: var(--red); }

.vote-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  font-family: inherit;
  white-space: nowrap;
}
.vote-btn:hover { background: var(--primary2); }
.vote-btn.voted { background: var(--bg3); color: var(--text2); cursor: default; }

.stat-pill { display: inline-flex; align-items: center; gap: 3px; font-size: .79rem; color: var(--text2); }

/* ── Status badges ── */
.status-badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.status-approved  { background: #1e3a2a; color: #3fb950; }
.status-pending   { background: #2d2a16; color: var(--yellow); }
.status-rejected  { background: #3a1e1e; color: var(--red); }
.status-removed   { background: #3a1e1e; color: #f85149; }
.status-featured  { background: #2d2a16; color: var(--yellow); }
.status-premium   { background: #2a1e3a; color: #a371f7; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .84rem; color: var(--text2); margin-bottom: 5px; }
.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 13px;
  color: var(--text);
  font-size: .93rem;
  font-family: inherit;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary2); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, opacity .15s;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover   { background: var(--primary2); }
.btn-success   { background: var(--green); color: #fff; }
.btn-success:hover   { background: var(--green2); }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover    { background: #f85149; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text2); }
.btn-sm  { padding: 4px 11px; font-size: .78rem; }
.btn-block { width: 100%; text-align: center; display: block; }

/* ── Alerts ── */
.alert { padding: 11px 15px; border-radius: var(--radius); margin-bottom: 14px; font-size: .9rem; }
.alert-error   { background: #3d1a1a; border: 1px solid #f85149; color: #f85149; }
.alert-success { background: #1a3d1a; border: 1px solid #3fb950; color: #3fb950; }
.alert-info    { background: #1a2a3d; border: 1px solid #58a6ff; color: #58a6ff; }
.alert-warning { background: #3a2e1a; border: 1px solid var(--yellow); color: var(--yellow); }

/* ── Search bar ── */
.search-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 160px; }
.search-bar select { min-width: 130px; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 7px 13px;
  border-radius: var(--radius);
  font-size: .88rem;
  text-decoration: none;
  border: 1px solid var(--border);
}
.pagination a { color: var(--text2); background: var(--bg2); }
.pagination a:hover { border-color: var(--primary2); color: var(--primary2); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Layout helpers ── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.page-header h1 { font-size: 1.4rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.text-muted { color: var(--text2); }
.text-center { text-align: center; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Stats strip ── */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-align: center; }
.stat-card .stat-num   { font-size: 1.5rem; font-weight: 700; color: var(--primary2); }
.stat-card .stat-label { font-size: .78rem; color: var(--text2); margin-top: 3px; }

/* ── Server detail ── */
.server-detail-header { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.server-detail-icon { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.server-banner { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 400px; }
thead th { background: var(--bg3); color: var(--text2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.02); }

/* ── Auth ── */
.auth-wrap { max-width: 460px; margin: 40px auto; }
.auth-wrap .card { padding: 30px; }

/* ── Profile ── */
.profile-header { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 22px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ── Tabs ── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 16px;
  font-size: .88rem;
  color: var(--text2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--primary2); border-bottom-color: var(--primary2); }

/* ── Footer ── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 24px 20px; margin-top: auto; }
.footer-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.footer-brand { font-size: 1rem; font-weight: 700; color: var(--primary2); margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: .83rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text2); font-size: .78rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 10px 16px; border-radius: 0; font-size: .9rem; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg3); border-radius: 0; display: none !important; }
  .nav-dropdown.open .dropdown-menu { display: block !important; }
  .nav-dropdown:hover .dropdown-menu { display: none !important; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .server-card { flex-wrap: wrap; }
  .server-stats { min-width: 100%; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .server-detail-header { flex-direction: column; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .main-container { padding: 16px 12px; }
}
@media (max-width: 480px) {
  .card { padding: 14px; }
  .stats-strip { grid-template-columns: 1fr; }
  .auth-wrap { margin: 16px auto; }
  .server-icon { width: 44px; height: 44px; }
  .server-icon-placeholder { width: 44px; height: 44px; }
}


/* ============================================================
   MODERN GAMING UI — Hero, Stats, Premium, Server Cards
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg:         #0a0e16;
  --bg2:        #121826;
  --bg3:        #1a2032;
  --bg4:        #232b3d;
  --border:     #2a3247;
  --border2:    #3a4458;
  --text:       #eef2f8;
  --text2:      #8995ab;
  --text3:      #5a6680;
  --primary:    #5b6cff;
  --primary2:   #7c8cff;
  --primary3:   #4451d9;
  --green:      #22c55e;
  --green2:     #16a34a;
  --red:        #ef4444;
  --red2:       #dc2626;
  --yellow:     #fbbf24;
  --purple:     #a855f7;
  --purple2:    #9333ea;
  --cyan:       #06b6d4;
  --pink:       #ec4899;
  --radius:     10px;
  --radius-lg:  16px;
  --glow:       0 0 20px rgba(91, 108, 255, .25);
  --glow-green: 0 0 15px rgba(34, 197, 94, .2);
  --glow-purple:0 0 20px rgba(168, 85, 247, .25);
}

body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--bg); }

/* ═══ Hero ═══ */
.hero {
  position: relative;
  padding: 56px 20px 44px;
  margin: -28px -20px 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91, 108, 255, .12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(168, 85, 247, .08), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(6, 182, 212, .06), transparent);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91, 108, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 108, 255, .03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black, transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(91, 108, 255, .1);
  border: 1px solid rgba(91, 108, 255, .3);
  color: var(--primary2);
  font-size: .76rem; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 16px; letter-spacing: .02em;
}
.hero-title {
  font-size: 2.6rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 12px; letter-spacing: -.02em;
}
.grad-text {
  background: linear-gradient(135deg, var(--primary2), var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text2); line-height: 1.6;
  margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto;
}

/* ── Hero Search ── */
.hero-search { max-width: 640px; margin: 0 auto; }
.hero-search-main {
  display: flex; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3); transition: border-color .2s, box-shadow .2s;
}
.hero-search-main:focus-within { border-color: var(--primary); box-shadow: var(--glow); }
.hero-search-icon { width: 20px; height: 20px; color: var(--text3); margin-left: 14px; flex-shrink: 0; }
.hero-search-main input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1rem; padding: 10px 12px; font-family: inherit;
}
.hero-search-main input::placeholder { color: var(--text3); }
.hero-search-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary3));
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 24px; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: opacity .15s, transform .1s; font-family: inherit;
}
.hero-search-btn:hover { opacity: .9; transform: translateY(-1px); }
.hero-search-filters {
  display: flex; gap: 8px; margin-top: 10px; justify-content: center; flex-wrap: wrap;
}
.hero-select {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; color: var(--text);
  font-size: .85rem; font-family: inherit; cursor: pointer;
  transition: border-color .15s;
}
.hero-select:focus, .hero-select:hover { border-color: var(--primary2); outline: none; }

/* ── Hero Category Pills ── */
.hero-cats {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 18px;
}
.hero-cat-pill {
  background: rgba(26, 32, 50, .6); border: 1px solid var(--border);
  color: var(--text2); font-size: .82rem; font-weight: 500;
  padding: 6px 16px; border-radius: 100px; text-decoration: none;
  transition: all .2s; backdrop-filter: blur(4px);
}
.hero-cat-pill:hover { border-color: var(--primary2); color: var(--text); transform: translateY(-1px); }
.hero-cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ═══ Stats Strip (Redesigned) ═══ */
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-data { flex: 1; }
.stat-card .stat-num   { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-card .stat-label { font-size: .78rem; color: var(--text2); margin-top: 2px; }

/* ═══ Section Headers ═══ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 8px;
}
.section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-icon { font-size: 1.1rem; }
.section-count {
  background: var(--bg3); color: var(--text2);
  font-size: .78rem; font-weight: 600;
  padding: 2px 10px; border-radius: 100px;
  margin-left: 4px;
}
.section-link {
  font-size: .85rem; font-weight: 600; color: var(--primary2);
  text-decoration: none; transition: color .15s;
}
.section-link:hover { color: var(--text); }

/* ═══ Premium Section ═══ */
.premium-section { margin-bottom: 32px; }
.premium-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.premium-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid rgba(168, 85, 247, .25);
  border-radius: var(--radius-lg); padding: 16px;
  text-decoration: none; color: var(--text);
  overflow: hidden; transition: all .25s;
}
.premium-card:hover {
  border-color: var(--purple); transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}
.premium-glow {
  position: absolute; top: -40px; right: -40px;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, .15), transparent);
  pointer-events: none;
}
.premium-rank {
  position: absolute; top: 10px; right: 12px;
  background: rgba(168, 85, 247, .2); color: var(--purple);
  font-size: .72rem; font-weight: 700; padding: 2px 8px;
  border-radius: 100px;
}
.premium-icon, .premium-icon-placeholder {
  width: 48px; height: 48px; border-radius: 10px;
  margin-bottom: 10px; object-fit: cover;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; border: 1px solid var(--border);
}
.premium-name { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.premium-desc { font-size: .8rem; color: var(--text2); line-height: 1.4; margin-bottom: 10px; }
.premium-players { font-size: .8rem; color: var(--text2); display: flex; align-items: center; gap: 4px; }

/* ═══ Server Cards (Redesigned) ═══ */
.server-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: all .2s; position: relative; overflow: hidden;
}
.server-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--border); transition: background .2s;
}
.server-card:hover {
  border-color: var(--border2); transform: translateX(2px);
  background: var(--bg3);
}
.server-card:hover::before { background: var(--primary2); }
.server-card.featured::before { background: var(--yellow); }
.server-card.premium::before { background: var(--purple); }
.server-card.premium:hover { border-color: rgba(168, 85, 247, .4); }

.server-rank {
  font-size: 1rem; font-weight: 800; color: var(--text3);
  min-width: 36px; text-align: center; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.server-rank.top-1 { color: #fbbf24; }
.server-rank.top-2 { color: #94a3b8; }
.server-rank.top-3 { color: #cd7f32; }

.server-icon, .server-icon-placeholder {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0; background: var(--bg3);
  border: 1px solid var(--border);
}
.server-icon-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: var(--text2);
  text-transform: uppercase;
}

.server-name { font-size: 1.02rem; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.server-name a { text-decoration: none; color: inherit; transition: color .15s; }
.server-name a:hover { color: var(--primary2); }
.server-desc { font-size: .84rem; color: var(--text2); margin-bottom: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 400px; }

.badge-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 100px; letter-spacing: .03em;
}
.badge-featured { background: rgba(251, 191, 36, .12); color: var(--yellow); border: 1px solid rgba(251, 191, 36, .3); }
.badge-premium  { background: rgba(168, 85, 247, .12); color: var(--purple); border: 1px solid rgba(168, 85, 247, .3); }

.server-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 130px; flex-shrink: 0; }
.server-stat-row { display: flex; align-items: center; gap: 12px; }
.server-actions { display: flex; gap: 6px; align-items: center; }

.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.online-dot.green { background: var(--green); box-shadow: var(--glow-green); }
.online-dot.red   { background: var(--red); }

.stat-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--text2); font-weight: 500; }

.vote-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary3));
  color: #fff; border: none; border-radius: 8px;
  padding: 7px 18px; font-size: .85rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .15s; font-family: inherit; white-space: nowrap;
  position: relative; overflow: hidden;
}
.vote-btn:hover { box-shadow: var(--glow); transform: translateY(-1px); }
.vote-btn:active { transform: translateY(0); }
.vote-btn.voted { background: var(--bg4); color: var(--text3); cursor: default; box-shadow: none; }

.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: .9rem; color: var(--text2); }

.tag {
  background: var(--bg3); color: var(--text2);
  font-size: .73rem; font-weight: 500;
  padding: 3px 10px; border-radius: 6px;
  text-decoration: none; border: 1px solid var(--border);
  white-space: nowrap; transition: all .15s;
}
.tag:hover, .tag.active { border-color: var(--primary2); color: var(--primary2); background: rgba(91, 108, 255, .08); }

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .hero { padding: 36px 16px 32px; }
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: .95rem; }
  .hero-search-filters { flex-direction: column; }
  .hero-select { width: 100%; }
  .hero-cat-pill { font-size: .76rem; padding: 5px 12px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .stat-card .stat-num { font-size: 1.3rem; }
  .server-card { flex-wrap: wrap; padding: 14px; }
  .server-stats { min-width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .server-actions { flex: 1; justify-content: flex-end; }
  .premium-grid { grid-template-columns: 1fr; }
  .server-desc { max-width: 100%; }
}
@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr; }
  .server-rank { min-width: 28px; font-size: .9rem; }
  .server-icon, .server-icon-placeholder { width: 44px; height: 44px; }
  .hero-search-btn { padding: 8px 16px; font-size: .82rem; }
}

/* Discord Login Button */
.btn-discord {
  background: linear-gradient(180deg, #5b64f4 0%, #4a53e8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 4px 18px rgba(88,101,242,.55);
}
.btn-discord:hover {
  background: linear-gradient(180deg, #6469f6 0%, #545dee 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 6px 24px rgba(88,101,242,.7);
  transform: translateY(-1px);
}
.btn-discord svg { flex-shrink: 0; }
