:root {
  color-scheme: dark;
  --bg: #060a11;
  --bg-deep: #03060b;
  --bg-soft: #0c1320;
  --surface: rgba(15, 23, 38, .84);
  --surface-strong: rgba(18, 28, 45, .96);
  --card: rgba(18, 27, 44, .78);
  --card-solid: #111a2b;
  --line: rgba(255, 255, 255, .105);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2f6ff;
  --muted: #a4b1c7;
  --muted-2: #748197;
  --primary: #43e78a;
  --primary-2: #12b981;
  --accent: #7ca7ff;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --shadow-soft: 0 14px 44px rgba(0, 0, 0, .24);
  --container: 1180px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 6%, rgba(67, 231, 138, .18), transparent 31rem),
    radial-gradient(circle at 88% 12%, rgba(124, 167, 255, .17), transparent 34rem),
    linear-gradient(145deg, #05070c 0%, #07101c 43%, #060a11 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 72%);
}

::selection { background: rgba(67, 231, 138, .28); color: #fff; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
p { color: var(--muted); line-height: 1.72; }
p:first-child { margin-top: 0; }
img, svg, video, iframe { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
:focus-visible { outline: 3px solid rgba(67, 231, 138, .55); outline-offset: 3px; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 17, .74);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #06130b;
  font-weight: 950;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, var(--primary), #c8ff6a);
  box-shadow: 0 14px 34px rgba(67, 231, 138, .22), inset 0 1px 0 rgba(255,255,255,.42);
}
.brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.12rem; }
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 14px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.065); }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn, button.btn, .server-actions button, .server-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-primary {
  color: #04120a !important;
  background: linear-gradient(135deg, var(--primary), #c7ff64);
  box-shadow: 0 18px 42px rgba(67, 231, 138, .2), inset 0 1px 0 rgba(255,255,255,.42);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-soft, .btn-secondary {
  color: var(--text) !important;
  background: rgba(255,255,255,.075);
  border: 1px solid var(--line);
}
.btn-soft:hover, .btn-secondary:hover, .server-actions button:hover { background: rgba(255,255,255,.105); border-color: var(--line-strong); }
.btn-danger { color: #fff !important; background: rgba(255,107,107,.16); border: 1px solid rgba(255,107,107,.42); }
.btn-block { width: 100%; }
button:disabled, .btn[disabled] { opacity: .48; cursor: not-allowed; transform: none; filter: none; }

.hero { padding: clamp(48px, 7vw, 86px) 0 46px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
}
h1, h2, h3 { color: var(--text); }
h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.35rem, 7vw, 5.15rem);
  line-height: .96;
  letter-spacing: -.072em;
}
h2 { letter-spacing: -.045em; }
h3 { letter-spacing: -.025em; }
.hero p { max-width: 680px; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.034)),
    rgba(11, 18, 30, .86);
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -90px -90px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(67,231,138,.16);
  filter: blur(52px);
}
.hero-card > * { position: relative; }
.hero-card h3 { margin: 12px 0 14px; font-size: 1.35rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,.048);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.stat-card strong { display: block; font-size: clamp(1.35rem, 2vw, 1.72rem); letter-spacing: -.04em; }
.stat-card span { color: var(--muted); font-weight: 780; font-size: .88rem; }

.section { padding: clamp(30px, 5vw, 46px) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-head > div { min-width: 0; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.02; }
.section-head h2 { font-size: clamp(1.65rem, 4vw, 2.45rem); }
.section-head p { margin: 8px 0 0; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.server-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022)), var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.server-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 20px 58px rgba(0,0,0,.3); }
.server-card-premium { border-color: rgba(67,231,138,.38); box-shadow: 0 20px 64px rgba(67,231,138,.08), var(--shadow-soft); }
.server-banner {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(67,231,138,.28), rgba(124,167,255,.18));
  background-size: cover;
  background-position: center;
}
.server-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.18));
}
.server-banner span {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 2rem;
  font-weight: 950;
  backdrop-filter: blur(10px);
}
.server-banner .tag-hot {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
}
.server-content { min-width: 0; padding: 20px; }
.server-content p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-bottom: 0; overflow-wrap: anywhere; }
.server-headline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.server-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.28rem; font-weight: 900; letter-spacing: -.035em; }
.server-title:hover { color: var(--primary); }
.verified {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #06130b;
  font-weight: 950;
  font-size: .8rem;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill, .tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.1;
  color: var(--muted);
  background: rgba(255,255,255,.072);
  border: 1px solid var(--line);
}
.pill-vip, .tag-hot { color: #06130b; background: linear-gradient(135deg, var(--primary), #cbff68); border: 0; }
.status-online { color: #06130b; background: var(--primary); border: 0; }
.status-offline { color: #fff; background: rgba(255,107,107,.22); border-color: rgba(255,107,107,.42); }
.status-unknown { color: var(--warning); background: rgba(255,209,102,.13); border-color: rgba(255,209,102,.3); }
.server-stats { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .92rem; margin: 14px 0 16px; }
.server-stats strong { color: var(--text); }
.server-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.server-actions button, .server-actions a { color: var(--text); background: rgba(255,255,255,.064); border: 1px solid var(--line); padding: 9px 12px; }
.server-actions a:last-child { color: #051109; background: var(--primary); border: 0; }

.card, .panel, .form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)), var(--card);
  box-shadow: var(--shadow);
}
.card, .panel { padding: clamp(18px, 2.4vw, 24px); }
.card { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.form-card {
  width: min(760px, 100%);
  margin: 34px auto;
  padding: clamp(20px, 4vw, 30px);
}
.form-card.slim { width: min(480px, 100%); }
.form-card h1 { margin-top: 0; font-size: clamp(1.95rem, 5vw, 2.55rem); line-height: 1.08; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { min-width: 0; display: grid; gap: 8px; color: var(--text); font-weight: 820; }
.hint { color: var(--muted-2); font-size: .88rem; font-weight: 520; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  background: rgba(255,255,255,.058);
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input::placeholder, textarea::placeholder { color: rgba(164, 177, 199, .66); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
select option { color: #111827; background: #fff; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(67,231,138,.65); box-shadow: 0 0 0 4px rgba(67,231,138,.1); background: rgba(255,255,255,.075); }
.checkbox-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 750; }
.checkbox-line input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--primary); }
.category-picker { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.category-picker label { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.045); color: var(--muted); }
.category-picker input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--primary); }

.filters { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto; gap: 12px; margin: 24px 0; }
.empty { text-align: center; padding: clamp(32px, 6vw, 56px); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.025); }

.server-hero { padding: 36px 0 14px; }
.detail-cover {
  min-height: clamp(230px, 32vw, 360px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(67,231,138,.24), rgba(124,167,255,.18));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 24%, rgba(7,11,18,.88)); }
.detail-title {
  position: relative;
  z-index: 2;
  margin-top: -96px;
  padding: 0 28px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-width: 0;
}
.logo-box {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card-solid);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  font-size: 2.2rem;
  font-weight: 950;
}
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.detail-title > div:last-child { min-width: 0; }
.detail-title h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.8rem); overflow-wrap: anywhere; }
.detail-title p { margin-bottom: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 22px; margin-top: 30px; }
.side-stack { display: grid; gap: 16px; align-content: start; }
.ip-box { display: flex; gap: 8px; }
.ip-box code { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(0,0,0,.25); color: var(--primary); overflow: auto; white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.table th { color: var(--text); font-weight: 850; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.flash-stack { width: min(var(--container), calc(100% - 32px)); margin: 18px auto 0; display: grid; gap: 10px; }
.flash { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.065); font-weight: 760; }
.flash-success { border-color: rgba(67,231,138,.35); background: rgba(67,231,138,.12); }
.flash-warning { border-color: rgba(255,209,102,.4); background: rgba(255,209,102,.12); }
.flash-danger { border-color: rgba(255,107,107,.38); background: rgba(255,107,107,.12); }

.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 36px 0; background: rgba(0,0,0,.18); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 28px; }
.footer-brand { font-size: 1.2rem; font-weight: 950; margin-bottom: 8px; }
.site-footer a { display: block; width: fit-content; color: var(--muted); margin-top: 8px; }
.site-footer a:hover { color: var(--text); }

.admin-hero, .dashboard-hero { padding-bottom: 18px; }
.role-badge { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(67,231,138,.35); border-radius: 999px; background: rgba(67,231,138,.12); color: var(--primary); padding: 9px 13px; font-weight: 900; white-space: nowrap; }
.role-badge.small { padding: 6px 10px; font-size: .8rem; }
.table-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.responsive-table { min-width: 860px; }
.compact { font-size: .82rem; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.main-stack { display: grid; gap: 18px; }
.dashboard-table td { vertical-align: top; }
.dashboard-actions { min-width: 210px; }
.mini-metrics { display: grid; gap: 5px; color: var(--muted); font-size: .88rem; }
.mini-metrics strong { color: var(--text); }
.profile-panel { text-align: center; }
.profile-avatar { width: 74px; height: 74px; margin: 12px auto; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #06130b; font-size: 2rem; font-weight: 950; }
.metric-list { display: grid; gap: 12px; }
.metric-list div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.045); }
.metric-list span { color: var(--muted); font-weight: 750; }
.metric-list strong { font-size: 1.15rem; }
.activity-list { display: grid; gap: 10px; }
.activity-list a { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.045); color: var(--text); }
.activity-list a:hover { border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.activity-list span { color: var(--muted-2); font-size: .84rem; }
.admin-actions input[name="ban_reason"] { min-width: 180px; }



/* Premium account upgrade */
.btn-gold {
  color: #1d1300 !important;
  background: linear-gradient(135deg, #ffd166, #fff176 48%, #fbbf24);
  border: 0 !important;
  box-shadow: 0 18px 44px rgba(251, 191, 36, .22), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.06); }
.nav-premium-link { color: #ffd166 !important; }
.nav-account-premium {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 11px;
  color: #1d1300;
  background: linear-gradient(135deg, #ffd166, #fbbf24);
  font-weight: 950;
  font-size: .8rem;
  box-shadow: 0 10px 26px rgba(251, 191, 36, .18);
}
.pill-premium, .tag-premium {
  color: #1d1300;
  background: linear-gradient(135deg, #ffd166, #fff176 45%, #fbbf24);
  border: 0;
  box-shadow: 0 10px 24px rgba(251, 191, 36, .18);
}
.server-card-premium {
  position: relative;
  border-color: rgba(255, 209, 102, .72);
  box-shadow: 0 0 0 1px rgba(255, 241, 118, .16), 0 24px 70px rgba(251, 191, 36, .16), var(--shadow-soft);
}
.server-card-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 209, 102, .2), transparent 34%, rgba(251, 191, 36, .14));
  opacity: .8;
}
.server-card-premium > * { position: relative; z-index: 1; }
.server-banner .tag-premium {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
}
.premium-servers-section {
  position: relative;
  padding-top: clamp(24px, 4vw, 38px);
}
.premium-servers-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(720px, 92vw);
  height: 280px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,209,102,.13), transparent 68%);
}
.premium-eyebrow { color: #ffd166; }
.premium-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 18px;
  padding: 18px;
  border: 1px solid rgba(255, 209, 102, .32);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 209, 102, .13), rgba(255,255,255,.035));
  box-shadow: 0 16px 42px rgba(0,0,0,.16);
}
.premium-strip strong { display: block; color: var(--text); font-size: 1.15rem; }
.premium-strip span { display: block; color: var(--muted); margin-top: 4px; }
.premium-grid { margin-bottom: 24px; }
.premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
}
.premium-price {
  display: inline-grid;
  gap: 3px;
  margin: 20px 0 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255,209,102,.34);
  border-radius: 20px;
  background: rgba(255,209,102,.09);
}
.premium-price strong { color: #ffd166; font-size: clamp(2rem, 5vw, 3.4rem); line-height: .9; letter-spacing: -.06em; }
.premium-price span { color: var(--muted); font-weight: 800; }
.premium-card { border-color: rgba(255,209,102,.32); }
.benefit-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.benefit-list li {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.benefit-list strong { color: var(--text); }
.benefit-list span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.paypal-form { display: inline-flex; }
.premium-inline-note {
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid rgba(255,209,102,.34);
  border-radius: 16px;
  color: #ffe6a3;
  background: rgba(255,209,102,.1);
  font-weight: 760;
}
.muted-note { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.045); }
.premium-field-badge {
  display: inline-flex;
  width: fit-content;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #1d1300;
  background: linear-gradient(135deg, #ffd166, #fbbf24);
  font-size: .72rem;
  font-weight: 950;
}
.premium-small { margin: 10px 0 0; color: #ffe6a3; font-size: .9rem; }

@media (min-width: 1600px) {
  :root { --container: 1360px; }
  body { background-size: auto; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .hero-card { padding: 34px; }
  .server-card { grid-template-columns: 270px minmax(0, 1fr); }
  .server-banner { min-height: 210px; }
}

@media (min-width: 2200px) {
  :root { --container: 1540px; }
  body { font-size: 18px; }
  .nav-wrap { min-height: 86px; }
  .server-banner { min-height: 240px; }
}

@media (max-width: 1120px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters button { width: 100%; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-grid, .detail-layout { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .stats-grid, .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-card { grid-template-columns: 210px minmax(0, 1fr); }
  .detail-layout .side-stack { order: -1; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  body { background-attachment: scroll; }
  .container { width: min(var(--container), calc(100% - 24px)); }
  .site-header { padding-top: env(safe-area-inset-top); }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--header-height) + env(safe-area-inset-top) - 2px);
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-content: start;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 13, 22, .98);
    box-shadow: var(--shadow);
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
  .nav a { justify-content: flex-start; width: 100%; padding: 12px 14px; }
  .nav a.btn { justify-content: center; }
  .nav-account-premium { width: 100%; min-height: 42px; }
  .premium-strip, .premium-layout { grid-template-columns: 1fr; }
  .premium-strip { align-items: stretch; flex-direction: column; }
  .paypal-form, .paypal-form .btn { width: 100%; }
  .section-head { align-items: stretch; flex-direction: column; }
  .section-head .btn { width: 100%; }
  .hero { padding-top: 40px; }
  .hero-actions, .server-actions, .admin-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .server-actions > *, .admin-actions > * { width: 100%; }
  .server-card { grid-template-columns: 1fr; }
  .server-banner { min-height: clamp(160px, 46vw, 230px); }
  .server-content { padding: 18px; }
  .stats-grid, .grid-2, .grid-3, .grid-4, .form-row, .filters, .footer-grid { grid-template-columns: 1fr; }
  .category-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-stack { grid-template-columns: 1fr; }
  .detail-title { align-items: flex-start; flex-direction: column; margin-top: -118px; padding: 0 18px; }
  .logo-box { width: 88px; height: 88px; border-radius: 24px; }
  .ip-box { flex-direction: column; }
  .ip-box .btn { width: 100%; }
  input, textarea, select { font-size: 16px; }
  .responsive-table { min-width: 760px; }
}

@media (max-width: 520px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; font-size: .92rem; }
  .brand-text { max-width: 52vw; }
  h1 { letter-spacing: -.06em; }
  .hero-actions .btn, .btn, button.btn, .server-actions button, .server-actions a { white-space: normal; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 14px; }
  .category-picker { grid-template-columns: 1fr; }
  .card, .panel { border-radius: 18px; }
  .form-card { margin: 22px auto; border-radius: 20px; }
  .detail-cover { border-radius: 22px; min-height: 220px; }
  .detail-title h1 { font-size: clamp(1.8rem, 12vw, 2.8rem); }
  .table th, .table td { padding: 10px 8px; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .brand-text { max-width: 46vw; }
}

@media (hover: none) {
  .server-card:hover, .card:hover, .btn-primary:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
