/* ==========================================================================
   MineStat v2 — Obsidian & Emerald Design System (Minecraft-Native UI/UX)
   ========================================================================== */

:root {
  --bg:           #0b0d13;
  --bg-2:         #10131c;
  --bg-3:         #151926;
  --bg-card:      #121621;
  --bg-elev:      #181d2b;
  --bg-well:      #080a0f;
  --border:       rgba(255, 255, 255, 0.08);
  --border-2:     rgba(255, 255, 255, 0.15);
  --border-glow:  rgba(34, 197, 94, 0.35);

  --text:         #f1f5f9;
  --text-2:       #94a3b8;
  --muted:        #64748b;

  /* Minecraft Emerald Primary */
  --primary:      #22c55e;
  --primary-d:    #16a34a;
  --primary-glow: rgba(34, 197, 94, 0.22);

  /* Minecraft Gold & Diamond Accents */
  --gold:         #f59e0b;
  --gold-light:   #fbbf24;
  --silver:       #cbd5e1;
  --bronze:       #d97706;
  --diamond:      #38bdf8;
  --accent:       #38bdf8;
  --accent-2:     #7dd3fc;

  --danger:       #ef4444;
  --success:      #22c55e;
  --warning:      #f59e0b;

  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    18px;
  --shadow:       0 10px 30px rgba(0, 0, 0, 0.45);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

code, pre, .mono, .ms-ip-code, .connect-ip, .quick-ip-code, .stat-code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tabular {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

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

a {
  color: var(--text);
  transition: color 0.15s ease;
}

/* ============ TACTILE MINECRAFT BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.62rem 1.05rem;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.48rem 0.82rem;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.82rem 1.35rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #041f0e !important;
  border-color: rgba(134, 239, 172, 0.35);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28), 0 4px 14px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.24), 0 6px 20px rgba(34, 197, 94, 0.3);
}

.btn-gold {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  color: #1c1002 !important;
  border-color: rgba(254, 240, 138, 0.4);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.26), 0 4px 14px rgba(245, 158, 11, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 6px 20px rgba(245, 158, 11, 0.32);
}

.btn-secondary,
.btn-ghost {
  background: var(--bg-elev);
  color: var(--text) !important;
  border: 1px solid var(--border-2);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: #22293c;
  border-color: rgba(255, 255, 255, 0.26);
}

/* ============ STICKY SINGLE-ROW NAVBAR ============ */
.ms-notice-bar {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #1c1002;
  font-weight: 700;
  font-size: 0.84rem;
  text-align: center;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ms-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 64px;
  background: rgba(11, 13, 19, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.ms-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ms-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  flex-shrink: 0;
}

.ms-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
}

.ms-brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.ms-brand-name span {
  color: var(--primary);
}

.ms-brand-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ms-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ms-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.72rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.ms-nav-link:hover,
.ms-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.ms-nav-link.active {
  color: var(--primary);
}

/* Dropdown */
.ms-dropdown {
  position: relative;
}

.ms-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 235px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 950;
}

.ms-dropdown:hover .ms-dropdown-menu,
.ms-dropdown.open .ms-dropdown-menu {
  display: flex;
}

.ms-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.58rem 0.72rem;
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--text);
  transition: background 0.15s ease;
}

.ms-dropdown-item:hover {
  background: var(--bg-elev);
}

.ms-dropdown-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.ms-dropdown-item b {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.ms-dropdown-item span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-2);
}

/* Compact Navbar Search */
.ms-nav-search {
  position: relative;
  flex: 1;
  max-width: 260px;
  min-width: 160px;
}

.ms-nav-search input {
  width: 100%;
  height: 36px;
  background: var(--bg-well);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 0.75rem 0 2.15rem;
  color: var(--text);
  font-size: 0.83rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ms-nav-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.ms-nav-search input::placeholder {
  color: var(--muted);
}

.ms-nav-search-ico {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* Right Header Actions */
.ms-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ms-lang-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-well);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  height: 34px;
}

.ms-lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.45rem;
  height: 28px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none !important;
}

.ms-lang-opt.active {
  background: var(--bg-elev);
  color: #fff;
}

.ms-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--diamond) !important;
  text-decoration: none !important;
}

.ms-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ms-mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 13, 19, 0.98);
  backdrop-filter: blur(16px);
  z-index: 890;
  padding: 1.25rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.5rem;
}

.ms-mobile-drawer.open {
  display: flex;
}

.ms-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
}

.ms-drawer-link.active {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 1080px) {
  .ms-nav-search { display: none; }
}

@media (max-width: 920px) {
  .ms-nav-desktop,
  .ms-nav-actions .ms-auth-desktop,
  .ms-nav-actions .ms-lang-pill {
    display: none;
  }
  .ms-mobile-toggle {
    display: inline-flex;
  }
}

/* ============ COMPACT MINECRAFT HERO ============ */
.ms-hero {
  position: relative;
  padding: 2.35rem 0 1.6rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(34, 197, 94, 0.11), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  overflow: hidden;
}

.ms-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.ms-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.95rem;
}

.ms-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  display: inline-block;
  flex-shrink: 0;
}

.ms-dot-live.offline {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.ms-hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 0.65rem;
}

.ms-hero-title .accent {
  color: var(--primary);
}

.ms-hero-sub {
  font-size: 0.98rem;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 1.35rem;
  line-height: 1.55;
}

/* Hero Search Form */
.ms-hero-search {
  display: flex;
  align-items: center;
  max-width: 620px;
  margin: 0 auto 1.15rem;
  background: var(--bg-well);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 5px 5px 5px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ms-hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.ms-hero-search-ico {
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 0.6rem;
}

.ms-hero-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.94rem;
  font-family: inherit;
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.ms-hero-search input:focus {
  outline: none;
}

.ms-hero-search input::placeholder {
  color: var(--muted);
}

/* Quick Category Strip */
.ms-cat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.45rem;
}

.ms-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.72rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ms-cat-chip:hover,
.ms-cat-chip.active {
  background: var(--bg-elev);
  border-color: var(--primary);
  color: #ffffff;
}

.ms-cat-chip img.mc-icon {
  width: 16px !important;
  height: 16px !important;
}

/* Live Stats Telemetry Strip */
.ms-live-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 780px;
  margin: 0 auto;
}

.ms-live-stat {
  background: rgba(18, 22, 33, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.ms-live-stat-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.ms-live-stat-val.emerald { color: var(--primary); }
.ms-live-stat-val.gold { color: var(--gold-light); }
.ms-live-stat-val.diamond { color: var(--diamond); }

.ms-live-stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
}

@media (max-width: 640px) {
  .ms-hero { padding: 1.65rem 0 1.25rem; }
  .ms-live-strip { grid-template-columns: repeat(2, 1fr); }
  .ms-cat-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }
  .ms-cat-strip::-webkit-scrollbar { display: none; }
  .ms-cat-chip { flex-shrink: 0; }
}

/* ============ SECTIONS ============ */
.ms-section {
  padding: 2rem 0;
}

.ms-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}

.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.ms-section-head h1,
.ms-section-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.ms-section-head p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin: 0.25rem 0 0;
}

.ms-sort-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.ms-sort-pill {
  padding: 0.38rem 0.75rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.ms-sort-pill:hover {
  color: #fff;
}

.ms-sort-pill.active {
  background: var(--bg-elev);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px var(--border-2);
}

/* ============ COMPACT SPONSOR SHOWCASE ============ */
.ms-sponsor-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-card) 55%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.75rem;
}

.ms-sponsor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.ms-sponsor-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ms-sponsor-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.ms-sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-light);
}

.ms-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.85rem;
}

.ms-sponsor-card {
  background: var(--bg-2);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s ease;
}

.ms-sponsor-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
}

.ms-sponsor-banner {
  width: 100%;
  aspect-ratio: 468 / 60;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-well);
  border: 1px solid var(--border);
  display: block;
}

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

.ms-sponsor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ms-sponsor-ident {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ms-sponsor-ident img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}

.ms-sponsor-ident a {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ SERVER DIRECTORY & ROWS ============ */
.ms-server-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ms-row {
  display: grid;
  grid-template-columns: 44px 52px minmax(210px, 1.35fr) minmax(240px, 468px) 108px 78px 112px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}

.ms-row:hover {
  background: var(--bg-elev);
  border-color: var(--border-2);
}

.ms-row.top-1 {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-card) 30%);
}

.ms-row.top-2 {
  border-left: 3px solid var(--silver);
}

.ms-row.top-3 {
  border-left: 3px solid var(--bronze);
}

.ms-row.is-sponsor {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 35%);
}

.ms-row.is-category-sponsor {
  border-color: rgba(34, 197, 94, 0.48);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.09) 0%, var(--bg-card) 38%);
}

/* Rank Box */
.ms-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-rank-pill {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-well);
  border: 1px solid var(--border);
}

.ms-row.top-1 .ms-rank-pill {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--gold-light);
}

.ms-row.top-2 .ms-rank-pill {
  background: rgba(203, 213, 225, 0.12);
  border-color: rgba(203, 213, 225, 0.35);
  color: #f8fafc;
}

.ms-row.top-3 .ms-rank-pill {
  background: rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.4);
  color: #fb923c;
}

.ms-row.is-sponsor .ms-rank-pill {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--gold-light);
}

.ms-row.is-category-sponsor .ms-rank-pill {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--primary);
}

/* Logo */
.ms-logo-link {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--bg-well);
  flex-shrink: 0;
}

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

.ms-logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  text-decoration: none !important;
  flex-shrink: 0;
}

/* Server Info Column */
.ms-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ms-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ms-server-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.ms-server-title:hover {
  color: var(--primary);
}

.ms-badge-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.48rem;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.16);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.ms-badge-cat-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.ms-ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-well);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  max-width: 100%;
}

.ms-ip-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ms-ip-chip.copied {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.ms-ip-chip svg {
  color: var(--muted);
  flex-shrink: 0;
}

.ms-ip-chip:hover svg {
  color: var(--primary);
}

.ms-tags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ms-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.48rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.73rem;
  font-weight: 600;
}

.ms-tag img.mc-icon {
  width: 14px !important;
  height: 14px !important;
}

/* Banner Column */
.ms-banner-slot {
  min-width: 0;
}

.ms-banner-link {
  display: block;
  width: 100%;
  aspect-ratio: 468 / 60;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-well);
}

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

.ms-desc-preview {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.09);
  color: var(--text-2);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none !important;
  overflow: hidden;
}

.ms-desc-preview span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ms-desc-preview:hover {
  border-color: var(--border-2);
  color: var(--text);
}

/* Online & Votes Columns */
.ms-online-col {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.ms-votes-col {
  text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.ms-votes-col .lbl {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.ms-actions-col {
  display: flex;
  justify-content: flex-end;
}

/* Responsive Row Layouts */
@media (max-width: 1120px) {
  .ms-row {
    grid-template-columns: 40px 48px minmax(200px, 1fr) 100px 72px 104px;
    gap: 0.75rem;
  }
  .ms-banner-slot {
    grid-column: 1 / -1;
    order: 10;
    max-width: 468px;
  }
  .ms-desc-preview { display: none; }
}

@media (max-width: 720px) {
  .ms-row {
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0.65rem 0.75rem;
    padding: 0.85rem;
  }
  .ms-rank {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
  }
  .ms-rank-pill {
    width: auto;
    height: 24px;
    padding: 0 0.48rem;
    font-size: 0.74rem;
  }
  .ms-logo-link,
  .ms-logo-fallback {
    width: 44px;
    height: 44px;
    grid-column: 1;
    grid-row: 1;
  }
  .ms-info {
    grid-column: 2 / -1;
    grid-row: 1;
    padding-right: 3rem;
  }
  .ms-banner-slot {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
  .ms-online-col {
    grid-column: 1 / 3;
    grid-row: 3;
  }
  .ms-votes-col {
    display: none;
  }
  .ms-actions-col {
    grid-column: 3;
    grid-row: 3;
  }
}

/* ============ DIRECTORY FILTER TOOLBAR ============ */
.ms-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.ms-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ms-toolbar-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

.ms-toolbar-search input {
  flex: 1;
  height: 38px;
  background: var(--bg-well);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 0 0.8rem;
  color: #fff;
  font-size: 0.87rem;
  font-family: inherit;
}

.ms-toolbar-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.ms-toolbar-cats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ============ CATEGORIES GRID ============ */
.ms-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.75rem;
}

.ms-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ms-cat-card:hover {
  background: var(--bg-elev);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.ms-cat-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-well);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ms-cat-card .ico img.mc-icon {
  width: 30px !important;
  height: 30px !important;
}

.ms-cat-card .name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.ms-cat-card .count {
  font-size: 0.75rem;
  color: var(--text-2);
}

/* ============ TOOLS & HOW IT WORKS STRIPS ============ */
.ms-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ms-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.ms-tool-card.emerald {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, var(--bg-card) 60%);
}

.ms-tool-card.gold {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-card) 60%);
}

.ms-tool-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  margin: 0.35rem 0;
}

.ms-tool-card p {
  font-size: 0.87rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

.ms-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.ms-how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
}

.ms-how-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.ms-how-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.ms-how-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.ms-how-card h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
}

.ms-how-card p {
  font-size: 0.81rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .ms-tools-grid { grid-template-columns: 1fr; }
  .ms-how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .ms-how-grid { grid-template-columns: 1fr; }
}

/* ============ TOP 5 TABLE POLISH ============ */
.top-table-responsive {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}

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

.top-table th {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
}

.top-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.top-table tr:last-child td {
  border-bottom: none;
}

/* ============ CLEAN FOOTER ============ */
.ms-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2.75rem 0 1.75rem;
}

.ms-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.ms-footer h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 0 0 0.85rem;
}

.ms-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ms-footer-links a {
  font-size: 0.86rem;
  color: var(--text-2);
  text-decoration: none !important;
}

.ms-footer-links a:hover {
  color: var(--primary);
}

.ms-footer-bottom {
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .ms-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .ms-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============ SERVER DETAIL PAGE OVERRIDES ============ */
.breadcrumb-nav {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  margin-bottom: 1.25rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.81rem;
  color: var(--text-2);
}

.breadcrumb-list a {
  color: var(--text-2);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--primary);
}

.breadcrumb-list .active {
  color: #ffffff;
  font-weight: 600;
}

.detail-hero-premium {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.hero-ambient-glow {
  display: none;
}

.detail-hero-premium .banner-frame,
.detail-hero-premium .banner-placeholder {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-well);
}

.quick-connect-bar {
  background: var(--bg-well) !important;
  border: 1px solid var(--border-2) !important;
  border-radius: 10px !important;
}

.quick-connect-bar:hover {
  border-color: var(--primary) !important;
}

.metric-grid {
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.detail-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.4rem;
  gap: 0.3rem;
}

.tab-btn {
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
}

.tab-btn.active {
  background: var(--bg-elev);
  color: var(--primary);
  border-color: rgba(34, 197, 94, 0.35);
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

@media (min-width: 981px) {
  .detail-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
  }
}

/* Form & Secondary Pages Obsidian Polish */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-well);
  border: 1px solid var(--border-2);
  color: #fff;
  border-radius: 9px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border-2);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-2);
}

/* Preserve description embedded media sizing */
.desc-media-wrap {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  margin: 0.25rem 0.4rem;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.desc-embed-img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

/* ============ LIVE SEARCH AUTOCOMPLETE & DIRECTORY FILTERS ============ */
.ms-nav-search {
  position: relative;
}

.ms-nav-search input {
  padding-right: 3.4rem;
}

.ms-search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 2px 5px;
  pointer-events: none;
  line-height: 1.1;
}

.ms-nav-search input:focus ~ .ms-search-kbd {
  opacity: 0;
}

.ms-hero-search {
  position: relative;
}

.ms-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 0.38rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.72);
  z-index: 980;
  text-align: left;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.ms-search-dropdown.open {
  display: flex;
}

.ms-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.52rem 0.65rem;
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--text);
  transition: background 0.14s ease;
}

.ms-search-item:hover {
  background: var(--bg-elev);
}

.ms-search-item-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.ms-search-item-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--bg-well);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.ms-search-item-fallback {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.ms-search-item-meta {
  min-width: 0;
}

.ms-search-item-meta b {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-search-item-meta span {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-2);
}

.ms-search-item-right {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ms-search-empty {
  padding: 0.85rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-2);
  text-align: center;
}

.ms-search-footer {
  margin-top: 2px;
  padding: 0.48rem 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none !important;
  text-align: center;
  border-radius: 0 0 8px 8px;
}

.ms-search-footer:hover {
  background: rgba(34, 197, 94, 0.08);
}

/* Directory Smart Filter Pills */
.ms-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ms-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.68rem;
  border-radius: 7px;
  background: var(--bg-well);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ms-filter-pill:hover {
  border-color: var(--border-2);
  color: #fff;
}

.ms-filter-pill.active {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

/* ============ OWNER DASHBOARD (/panel) v2 ============ */
.ms-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.ms-panel-head h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.ms-panel-head p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin: 0.2rem 0 0;
}

.ms-nudge-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, var(--bg-card) 55%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ms-nudge-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.ms-nudge-card h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem;
}

.ms-nudge-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 0;
  max-width: 650px;
  line-height: 1.5;
}

.ms-nudge-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ms-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.ms-panel-table-wrap {
  overflow-x: auto;
}

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

.ms-panel-table th {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.ms-panel-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
  vertical-align: middle;
}

.ms-panel-table tr:last-child td {
  border-bottom: none;
}

.ms-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.ms-pill-status.ok {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ms-pill-status.warn {
  background: rgba(245, 158, 11, 0.14);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ms-pill-status.err {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ms-pill-status.muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ============ VERIFIED BADGE & BOX ============ */
.ms-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--diamond);
  flex-shrink: 0;
}

.ms-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: var(--diamond);
  font-size: 0.76rem;
  font-weight: 700;
}

.ms-verify-box {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
  margin-bottom: 1.5rem;
}

.ms-verify-box.is-verified {
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.07) 0%, var(--bg-2) 60%);
}

/* ============ SPONSORSHIP PRICING & FORM ============ */
.ms-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 2.25rem;
  align-items: stretch;
}

.ms-pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.65rem 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  position: relative;
}

.ms-pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 55%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.ms-pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1c1002;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ms-pricing-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.ms-pricing-tag.gold { color: var(--gold-light); }

.ms-pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.65rem;
}

.ms-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.ms-price-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
}

.ms-price-val.gold { color: var(--gold-light); }

.ms-price-per {
  font-size: 0.84rem;
  color: var(--text-2);
}

.ms-pricing-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0 0 1.15rem;
}

.ms-pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text);
}

.ms-pricing-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ms-pricing-list svg {
  color: var(--primary);
  flex-shrink: 0;
}

.ms-sponsor-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

@media (max-width: 960px) {
  .ms-pricing-grid { grid-template-columns: 1fr; }
}

/* ============ TOP PLAYERS PODIUM (/oyuncular) ============ */
.ms-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ms-podium-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ms-podium-card.rank-1 {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 65%);
}

.ms-podium-card.rank-2 {
  border-color: rgba(203, 213, 225, 0.35);
}

.ms-podium-card.rank-3 {
  border-color: rgba(217, 119, 6, 0.38);
}

.ms-podium-rank {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-2);
  background: var(--bg-well);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

.ms-podium-card.rank-1 .ms-podium-rank {
  color: var(--gold-light);
  border-color: rgba(245, 158, 11, 0.45);
}

.ms-podium-card img {
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--bg-well);
  margin-bottom: 0.75rem;
}

.ms-podium-nick {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}

.ms-podium-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .ms-podium-grid { grid-template-columns: 1fr; }
}

/* ============ SERVER COMPARISON (/karsilastir) ============ */
.ms-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ms-compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
}

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

.ms-compare-table th {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  text-align: left;
}

.ms-compare-table td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-2);
}

.ms-compare-table td:first-child {
  font-weight: 700;
  color: var(--text);
  width: 34%;
}

.ms-compare-table td.win {
  color: var(--primary);
  font-weight: 800;
}

.ms-compare-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 760px) {
  .ms-compare-grid { grid-template-columns: 1fr; }
  .ms-compare-selector-grid { grid-template-columns: 1fr !important; }
}

/* ============ AUTH SPLIT SHELL (/giris, /kayit) ============ */
.ms-auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0.5rem auto;
  align-items: center;
}

.ms-auth-aside {
  padding: 1rem 0.5rem;
}

.ms-auth-aside h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.ms-auth-aside p {
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.ms-auth-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ms-auth-perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.ms-auth-perks svg {
  color: var(--primary);
  flex-shrink: 0;
}

.ms-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.ms-auth-card h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.25rem;
}

@media (max-width: 820px) {
  .ms-auth-shell { grid-template-columns: 1fr; }
  .ms-auth-aside { display: none; }
}

/* ============ LIVE ROW PREVIEW IN ADD.PHP ============ */
.ms-live-preview {
  background: var(--bg-well);
  border: 1px dashed rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.ms-live-preview-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.55rem;
}


