: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);
}
.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; 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;
  }
}

/* Category limits and default media polish */
.field-limit {
  display: inline-flex;
  width: fit-content;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.065);
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 900;
}
.category-picker input:disabled + span,
.category-picker label:has(input:disabled) {
  opacity: .56;
  cursor: not-allowed;
}
.server-banner,
.detail-cover {
  background-color: #07111e;
}

/* Professional polish, Premium+ and legal pages */
:root {
  --plus: #a78bfa;
  --plus-2: #38bdf8;
  --ink-card: rgba(9, 15, 27, .74);
}
body {
  background:
    radial-gradient(circle at 16% 6%, rgba(67, 231, 138, .15), transparent 30rem),
    radial-gradient(circle at 86% 10%, rgba(167, 139, 250, .15), transparent 34rem),
    radial-gradient(circle at 52% 108%, rgba(56, 189, 248, .09), transparent 32rem),
    linear-gradient(145deg, #05070c 0%, #07101c 48%, #04070d 100%);
}
body::before { opacity: .72; }
.site-header { box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.brand-mark { letter-spacing: -.06em; }
.nav a.btn-primary { color: #04120a !important; }
.hero-home { position: relative; }
.hero-home::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1120px, 90vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.hero-card,
.server-card,
.card,
.panel,
.form-card,
.stat-card {
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}
.hero-card { background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.035)), var(--ink-card); }
.section-head p { max-width: 720px; }
.server-card { isolation: isolate; }
.server-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255,255,255,.06), transparent 34%);
  opacity: .45;
}
.server-card > * { position: relative; z-index: 1; }
.server-card-premium-plus {
  position: relative;
  border-color: rgba(167, 139, 250, .78);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .14), 0 24px 72px rgba(124, 58, 237, .18), var(--shadow-soft);
}
.server-card-premium-plus::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(167,139,250,.22), transparent 38%, rgba(56,189,248,.18));
}
.pill-premium-plus,
.tag-premium-plus {
  color: #050816;
  background: linear-gradient(135deg, #c4b5fd, #67e8f9 52%, #a78bfa);
  border: 0;
  box-shadow: 0 12px 28px rgba(124, 58, 237, .22);
}
.server-banner .tag-premium-plus {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
}
.btn-plus,
.premium-plus-action {
  color: #050816 !important;
  background: linear-gradient(135deg, #c4b5fd, #67e8f9 52%, #a78bfa) !important;
  border: 0 !important;
  box-shadow: 0 18px 44px rgba(124, 58, 237, .24), inset 0 1px 0 rgba(255,255,255,.54);
}
.btn-plus:hover,
.premium-plus-action:hover { transform: translateY(-1px); filter: brightness(1.06); }
.plus-eyebrow { color: #c4b5fd; }
.plus-card {
  border-color: rgba(167,139,250,.38);
  background:
    radial-gradient(circle at 85% 12%, rgba(56,189,248,.13), transparent 34%),
    linear-gradient(180deg, rgba(167,139,250,.12), rgba(255,255,255,.025)),
    var(--card);
}
.plus-price { border-color: rgba(167,139,250,.38); background: rgba(167,139,250,.095); }
.plus-price strong { color: #c4b5fd; }
.premium-layout-secondary { align-items: stretch; }
.premium-note-panel { display: grid; align-content: center; gap: 8px; }
.category-card { min-height: 120px; display: grid; align-content: space-between; }
.category-card h3 { margin: 14px 0 0; }
.table-panel { overflow: auto; }
.dashboard-actions form { margin: 0; }
.legal-container { width: min(940px, calc(100% - 32px)); }
.legal-panel { display: grid; gap: 8px; }
.legal-panel h2 { margin: 22px 0 0; font-size: clamp(1.2rem, 3vw, 1.55rem); }
.legal-panel p { margin: 6px 0 0; }
.legal-panel a { color: var(--primary); font-weight: 850; }
.legal-links-grid { margin-top: 18px; }
.legal-link-card { display: grid; gap: 12px; min-height: 132px; }
.legal-link-card span { color: var(--muted-2); font-weight: 900; letter-spacing: .12em; }
.legal-link-card strong { font-size: 1.35rem; }
.site-footer { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.25)); }
.footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, .65fr)); }
.site-footer p { max-width: 460px; margin: 8px 0 0; }

@media (min-width: 1800px) {
  .grid { gap: 22px; }
  .server-content { padding: 24px; }
  .hero { padding-top: 104px; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .legal-container { width: min(var(--container), calc(100% - 24px)); }
  .premium-note-panel .btn { width: 100%; }
}
.server-card { position: relative; }

/* Direction artistique 2026 : interface gaming premium, plus structurée. */
:root {
  --bg: #050805;
  --bg-deep: #020402;
  --bg-soft: #0b120c;
  --surface: rgba(11, 18, 14, .82);
  --surface-strong: rgba(13, 22, 16, .96);
  --card: rgba(12, 20, 15, .78);
  --card-solid: #0e1710;
  --line: rgba(196, 255, 198, .12);
  --line-strong: rgba(196, 255, 198, .22);
  --text: #f4fff5;
  --muted: #b0c2b0;
  --muted-2: #829383;
  --primary: #39ff88;
  --primary-2: #14c45f;
  --accent: #b6ff4d;
  --warning: #ffe066;
  --plus: #39ff88;
  --plus-2: #b6ff4d;
  --shadow: 0 30px 90px rgba(0, 0, 0, .48);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, .34);
}
body {
  background:
    radial-gradient(circle at 16% 8%, rgba(57, 255, 136, .16), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(182, 255, 77, .12), transparent 34rem),
    radial-gradient(circle at 50% 110%, rgba(57, 255, 136, .08), transparent 34rem),
    linear-gradient(135deg, #020402 0%, #061007 45%, #020402 100%);
}
body::before {
  opacity: .8;
  background:
    linear-gradient(rgba(182,255,77,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,136,.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
.site-header {
  background: rgba(3, 7, 4, .76);
  border-bottom-color: rgba(182,255,77,.13);
}
.brand-mark {
  color: #011406;
  background: linear-gradient(135deg, #39ff88 0%, #b6ff4d 100%);
  box-shadow: 0 0 0 1px rgba(57,255,136,.25), 0 18px 44px rgba(57,255,136,.22), inset 0 1px 0 rgba(255,255,255,.62);
}
.brand-text { letter-spacing: -.045em; }
.nav a { color: #aebdae; }
.nav a:hover { background: rgba(57,255,136,.08); color: var(--text); }
.nav-premium-link {
  border: 1px solid rgba(255,224,102,.24);
  color: #ffe99b !important;
  background: rgba(255,224,102,.075);
}
.hero { padding-top: 82px; }
.hero-rebrand { overflow: hidden; }
.hero-rebrand h1 {
  max-width: 830px;
  text-transform: none;
  letter-spacing: -.075em;
}
.hero-rebrand p { max-width: 650px; font-size: 1.05rem; }
.hero-card,
.server-card,
.card,
.panel,
.form-card,
.stat-card {
  border-color: rgba(196,255,198,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.018)),
    rgba(9, 15, 11, .78);
  box-shadow: var(--shadow-soft);
}
.card:hover,
.server-card:hover {
  border-color: rgba(57,255,136,.28);
  transform: translateY(-2px);
}
.section-head { margin-bottom: 20px; }
.section-head h1,
.section-head h2,
.hero h1,
.hero-card h3 { letter-spacing: -.06em; }
.eyebrow {
  color: #b6ff4d;
  letter-spacing: .18em;
}
.btn-primary,
.btn-plus,
.premium-plus-action {
  color: #021307 !important;
  background: linear-gradient(135deg, #39ff88 0%, #b6ff4d 100%) !important;
  box-shadow: 0 18px 48px rgba(57,255,136,.22), inset 0 1px 0 rgba(255,255,255,.64) !important;
}
.btn-gold {
  color: #241900 !important;
  background: linear-gradient(135deg, #fff1a8, #f6c453) !important;
  box-shadow: 0 18px 46px rgba(246,196,83,.22), inset 0 1px 0 rgba(255,255,255,.6) !important;
}
.btn-soft,
.btn-secondary,
.server-actions a,
.server-actions button,
.copy-ip {
  border: 1px solid rgba(196,255,198,.12) !important;
  background: rgba(255,255,255,.06) !important;
}
.stats-grid .stat-card strong,
.admin-stats-grid .stat-card strong {
  color: #eaffc4;
  text-shadow: 0 0 28px rgba(57,255,136,.22);
}
.premium-plus-servers-section,
.priority-section {
  position: relative;
  background: linear-gradient(180deg, rgba(57,255,136,.075), rgba(57,255,136,0));
}
.premium-plus-servers-section::before,
.priority-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(182,255,77,.12), transparent 30rem);
}
.priority-section > .container { position: relative; }
.premium-strip {
  margin: 16px 0 18px;
  border: 1px solid rgba(255,224,102,.18);
  background: linear-gradient(135deg, rgba(255,224,102,.12), rgba(255,255,255,.035));
}
.premium-plus-strip {
  border-color: rgba(57,255,136,.44);
  background:
    radial-gradient(circle at 95% 0%, rgba(182,255,77,.17), transparent 23rem),
    linear-gradient(135deg, rgba(57,255,136,.20), rgba(255,255,255,.04));
  box-shadow: 0 24px 70px rgba(57,255,136,.12);
}
.pill-premium-plus,
.tag-premium-plus {
  color: #011406 !important;
  background: linear-gradient(135deg, #39ff88 0%, #b6ff4d 100%) !important;
  border: 0 !important;
  box-shadow: 0 0 0 1px rgba(182,255,77,.28), 0 14px 36px rgba(57,255,136,.28) !important;
}
.server-card-premium-plus {
  border-color: rgba(57,255,136,.68) !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(182,255,77,.22), transparent 22rem),
    linear-gradient(180deg, rgba(57,255,136,.16), rgba(57,255,136,.03)),
    rgba(8, 16, 10, .9) !important;
  box-shadow: 0 0 0 1px rgba(57,255,136,.18), 0 30px 90px rgba(57,255,136,.18), var(--shadow-soft) !important;
}
.server-card-premium-plus::before {
  background: linear-gradient(135deg, rgba(57,255,136,.24), transparent 44%, rgba(182,255,77,.18)) !important;
}
.server-card-premium {
  border-color: rgba(255,224,102,.36);
  box-shadow: 0 0 0 1px rgba(255,224,102,.08), 0 22px 64px rgba(255,224,102,.09), var(--shadow-soft);
}
.pill-premium,
.tag-premium,
.premium-field-badge {
  color: #241900 !important;
  background: linear-gradient(135deg, #fff1a8, #f6c453) !important;
  border: 0 !important;
}
.pill-verified,
.verified {
  color: #021307 !important;
  background: linear-gradient(135deg, #9dfcc4, #39ff88) !important;
  border: 0 !important;
}
.server-banner {
  overflow: hidden;
  border-right-color: rgba(196,255,198,.10);
}
.server-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.44));
}
.server-banner .tag { z-index: 2; }
.server-title { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.server-content p { margin-top: 8px; }
.server-stats {
  border-top: 1px solid rgba(196,255,198,.1);
  padding-top: 14px;
}
.category-card {
  border-left: 3px solid rgba(57,255,136,.38);
}
.filters {
  border: 1px solid rgba(196,255,198,.11);
  border-radius: 24px;
  padding: 12px;
  background: rgba(4,8,5,.55);
  box-shadow: var(--shadow-soft);
}
input,
textarea,
select {
  background: rgba(0,0,0,.28);
  border-color: rgba(196,255,198,.14);
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(57,255,136,.54);
  box-shadow: 0 0 0 4px rgba(57,255,136,.12);
}
.admin-control-room {
  padding-top: 52px;
  background:
    radial-gradient(circle at 10% 10%, rgba(57,255,136,.11), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}
.admin-panel {
  border-radius: 26px;
  background: rgba(6, 11, 7, .82);
}
.table th {
  color: #eaffc4;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .76rem;
}
.table tr:hover td { background: rgba(57,255,136,.035); }
.role-badge {
  color: #021307;
  background: linear-gradient(135deg, #39ff88, #b6ff4d);
  border: 0;
}
.legal-panel h2 { color: #eaffc4; }
.site-footer {
  border-top: 1px solid rgba(196,255,198,.11);
  background: linear-gradient(180deg, rgba(5,8,5,.4), rgba(0,0,0,.52));
}
@media (min-width: 1200px) {
  .premium-plus-grid .server-card:first-child {
    transform: scale(1.01);
  }
}
@media (max-width: 760px) {
  .hero { padding-top: 42px; }
  .premium-strip { border-radius: 20px; }
  .filters { padding: 10px; border-radius: 20px; }
  .admin-control-room { padding-top: 34px; }
}

/* Patch 2026-06-14 : badges cohérents + responsive mobile/tablette/iPhone/TV */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.container,
.legal-container,
.flash-stack {
  max-width: 100%;
}

img,
svg,
video,
iframe,
canvas {
  height: auto;
}

.pill,
.tag,
.btn,
button,
input,
textarea,
select,
.card,
.panel,
.server-card,
.stat-card,
.form-card,
.legal-link-card {
  min-width: 0;
}

.pill,
.tag {
  white-space: normal;
  overflow-wrap: anywhere;
}

.status-unknown {
  color: #ffe99b !important;
  background: rgba(255, 224, 102, .13) !important;
  border-color: rgba(255, 224, 102, .32) !important;
}

.server-card-premium-plus .pill-premium,
.server-card-premium-plus .tag-premium {
  display: none !important;
}

.detail-title .meta-row,
.server-content .meta-row,
.profile-panel .meta-row {
  max-width: 100%;
}

.table-panel {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.table {
  overflow-wrap: anywhere;
}

.form-card,
.panel,
.card {
  overflow-wrap: anywhere;
}

/* Tablettes portrait et petits laptops */
@media (min-width: 761px) and (max-width: 1180px) {
  :root { --container: 1040px; }

  .container { width: min(var(--container), calc(100% - 36px)); }
  .hero { padding-top: 56px; }
  .hero-grid,
  .premium-layout,
  .detail-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .detail-layout .side-stack { order: -1; }
  .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-card { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); }
  .section-head { align-items: flex-start; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .btn { width: 100%; }
}

/* Mobiles, iPhone et petits écrans tactiles */
@media (max-width: 760px) {
  :root {
    --header-height: 66px;
    --radius: 18px;
    --radius-lg: 24px;
  }

  body {
    min-width: 0;
    background-attachment: scroll;
  }

  .container,
  .flash-stack,
  .legal-container {
    width: min(100%, calc(100% - 22px));
  }

  .site-header {
    left: 0;
    right: 0;
  }

  .nav-wrap {
    gap: 10px;
  }

  .brand-text {
    max-width: calc(100vw - 142px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .nav {
    left: max(11px, env(safe-area-inset-left));
    right: max(11px, env(safe-area-inset-right));
    max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top) - 18px);
    overflow-y: auto;
  }

  .hero,
  .section,
  .server-hero,
  .premium-hero,
  .dashboard-hero,
  .admin-hero {
    padding-top: 30px;
  }

  h1 { font-size: clamp(2rem, 12vw, 3.35rem); line-height: 1; }
  h2 { font-size: clamp(1.45rem, 8vw, 2.15rem); }

  .hero-card,
  .panel,
  .card,
  .form-card,
  .stat-card {
    border-radius: 18px;
  }

  .hero-actions,
  .server-actions,
  .admin-actions,
  .paypal-form,
  .premium-strip,
  .section-head {
    width: 100%;
  }

  .hero-actions .btn,
  .server-actions > *,
  .admin-actions > *,
  .paypal-form .btn,
  .section-head > .btn,
  .premium-note-panel .btn {
    width: 100%;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .premium-layout,
  .premium-layout-secondary,
  .hero-grid,
  .dashboard-layout,
  .detail-layout,
  .filters,
  .form-row,
  .footer-grid,
  .legal-links-grid {
    grid-template-columns: 1fr !important;
  }

  .side-stack {
    grid-template-columns: 1fr !important;
  }

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

  .server-banner {
    min-height: clamp(150px, 42vw, 220px);
  }

  .server-title {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .server-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: .84rem;
  }

  .server-stats span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .detail-cover {
    min-height: clamp(205px, 48vw, 265px);
  }

  .detail-title {
    margin-top: -92px;
    padding-inline: 16px;
    gap: 12px;
  }

  .detail-title h1 {
    font-size: clamp(1.9rem, 11vw, 3rem);
    max-width: 100%;
  }

  .detail-title .meta-row {
    margin: 10px 0;
  }

  .logo-box {
    width: 82px;
    height: 82px;
    border-radius: 22px;
  }

  .ip-box {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ip-box code {
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
  }

  .form-card {
    margin: 20px auto;
    padding: 18px;
  }

  .category-picker {
    grid-template-columns: 1fr !important;
  }

  .responsive-table {
    min-width: 720px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }
}

/* Très petits smartphones */
@media (max-width: 420px) {
  .container,
  .flash-stack,
  .legal-container {
    width: min(100%, calc(100% - 18px));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 1rem;
    max-width: calc(100vw - 128px);
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .stats-grid,
  .server-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  .meta-row {
    gap: 6px;
  }

  .pill,
  .tag {
    padding: 6px 9px;
    font-size: .74rem;
  }

  .server-content {
    padding: 16px;
  }

  .table th,
  .table td {
    padding: 9px 8px;
  }
}

/* iPhone paysage / petits écrans horizontaux */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-height: 58px; }
  .hero,
  .section,
  .server-hero {
    padding-top: 22px;
  }
  .nav {
    max-height: calc(100dvh - var(--header-height) - 10px);
  }
  .detail-cover {
    min-height: 190px;
  }
}

/* TV et très grands écrans : lisibilité canapé / 4K */
@media (min-width: 1800px) {
  :root { --container: 1480px; }

  body {
    font-size: clamp(17px, .9vw, 21px);
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 17px;
  }

  .brand-text {
    font-size: 1.28rem;
  }

  .nav a,
  .btn,
  button.btn,
  .server-actions button,
  .server-actions a {
    min-height: 50px;
    padding-inline: 18px;
  }

  .grid {
    gap: 24px;
  }

  .server-card {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }

  .server-banner {
    min-height: 255px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  }
}

@media (min-width: 2400px) {
  :root { --container: 1760px; }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .server-card {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  }

  .detail-cover {
    min-height: 430px;
  }
}


/* Patch 2026-06-14 : personnalisation profil Premium/gratuit */
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-settings-panel {
  display: grid;
  gap: 12px;
}

.profile-settings-form {
  display: grid;
  gap: 14px;
}

.profile-settings-form .hint {
  line-height: 1.35;
}

.profile-cover {
  min-height: clamp(160px, 24vw, 250px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(67,231,138,.24), rgba(124,167,255,.18));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(7,11,18,.9));
}

.public-profile-panel {
  overflow: hidden;
}

.profile-title {
  align-items: flex-end;
}

@media (max-width: 760px) {
  .profile-cover {
    min-height: 170px;
    border-radius: 18px;
  }

  .profile-title {
    margin-top: -64px !important;
    padding-inline: 10px !important;
  }

  .profile-title .logo-box {
    width: 78px;
    height: 78px;
  }
}

/* Patch : import local des images de profil */
.profile-settings-form input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}

.profile-settings-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(67,231,138,.18);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

/* Minecraft List — DA voxel premium 2026
   Design original inspiré des univers blocs/serveurs, sans logo ni asset officiel. */
:root {
  --bg: #060904;
  --bg-deep: #020401;
  --bg-soft: #0d1709;
  --surface: rgba(13, 22, 11, .86);
  --surface-strong: rgba(18, 32, 13, .96);
  --card: rgba(13, 21, 11, .84);
  --card-solid: #111f0d;
  --line: rgba(189, 255, 141, .16);
  --line-strong: rgba(189, 255, 141, .30);
  --text: #f7ffef;
  --muted: #c0cfb8;
  --muted-2: #8fa085;
  --primary: #55f57a;
  --primary-2: #24c85f;
  --accent: #b7ff55;
  --warning: #ffd86a;
  --danger: #ff6464;
  --earth: #7b5638;
  --earth-dark: #3d2619;
  --stone: #8b9892;
  --water: #4ac4ff;
  --diamond: #73f5ff;
  --gold: #ffd96a;
  --plus: #73f5ff;
  --plus-2: #b7ff55;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 32px 0 rgba(0,0,0,.18), 0 34px 90px rgba(0,0,0,.55);
  --shadow-soft: 0 14px 0 rgba(0,0,0,.16), 0 22px 58px rgba(0,0,0,.38);
}

html { background: var(--bg-deep); }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(85,245,122,.22), transparent 28rem),
    radial-gradient(circle at 86% 9%, rgba(115,245,255,.11), transparent 30rem),
    radial-gradient(circle at 42% 108%, rgba(123,86,56,.24), transparent 36rem),
    linear-gradient(180deg, #071108 0%, #081307 38%, #030502 100%);
}
body::before {
  opacity: .96;
  background:
    linear-gradient(rgba(183,255,85,.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183,255,85,.03) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.24) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,.20) 2px, transparent 2px);
  background-size: 34px 34px, 34px 34px, 136px 136px, 136px 136px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), rgba(0,0,0,.55) 48%, transparent 88%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .30;
  background:
    conic-gradient(from 90deg at 50% 50%, rgba(255,255,255,.09) 0 25%, transparent 0 50%, rgba(255,255,255,.05) 0 75%, transparent 0) 7vw 18vh / 92px 92px,
    conic-gradient(from 90deg at 50% 50%, rgba(115,245,255,.12) 0 25%, transparent 0 50%, rgba(85,245,122,.10) 0 75%, transparent 0) 82vw 9vh / 76px 76px,
    conic-gradient(from 90deg at 50% 50%, rgba(255,216,106,.13) 0 25%, transparent 0 50%, rgba(123,86,56,.12) 0 75%, transparent 0) 76vw 72vh / 64px 64px;
  filter: blur(.1px);
}

::selection { background: rgba(85, 245, 122, .35); color: #fff; }
.container { width: min(var(--container), calc(100% - 36px)); }

.site-header {
  border-bottom: 2px solid rgba(84, 58, 34, .76);
  background:
    linear-gradient(180deg, rgba(70, 165, 55, .22), rgba(70, 165, 55, 0) 52%),
    rgba(4, 9, 3, .86);
  box-shadow: 0 4px 0 rgba(0,0,0,.24), 0 20px 70px rgba(0,0,0,.38);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #4b321f 0 26px, #6a472b 26px 52px, #2f1f14 52px 78px);
  opacity: .92;
}
.brand { gap: 14px; }
.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #041104;
  background:
    linear-gradient(180deg, #89ff65 0 42%, #55d24f 42% 55%, #7b5638 55% 76%, #4b2f1d 76%);
  border: 2px solid rgba(236, 255, 217, .42);
  box-shadow: 0 6px 0 rgba(0,0,0,.32), 0 20px 44px rgba(85,245,122,.24), inset 0 2px 0 rgba(255,255,255,.52);
  text-shadow: none;
  font-size: .96rem;
  isolation: isolate;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.14) 2px, transparent 2px) 0 0 / 12px 12px,
    linear-gradient(rgba(0,0,0,.14) 2px, transparent 2px) 0 0 / 12px 12px;
}
.brand-text {
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
  letter-spacing: -.055em;
  text-shadow: 0 0 24px rgba(85,245,122,.18);
}
.nav { gap: 8px; }
.nav a,
.nav-account-premium {
  border: 1px solid transparent;
  border-radius: 12px;
}
.nav a:hover {
  color: var(--text);
  background: rgba(85,245,122,.10);
  border-color: rgba(183,255,85,.16);
  box-shadow: inset 0 -2px 0 rgba(85,245,122,.20);
}
.nav-premium-link,
.nav-account-premium {
  color: #ffe9a1 !important;
  background: linear-gradient(180deg, rgba(255,216,106,.16), rgba(255,216,106,.055)) !important;
  border-color: rgba(255,216,106,.28) !important;
}
.nav-toggle {
  border-radius: 12px;
  background: rgba(85,245,122,.10);
  border: 1px solid rgba(183,255,85,.18);
  box-shadow: 0 4px 0 rgba(0,0,0,.24);
}

h1, h2, h3 { text-wrap: balance; }
h1 {
  letter-spacing: -.078em;
  text-shadow: 0 6px 0 rgba(0,0,0,.17), 0 0 48px rgba(85,245,122,.10);
}
h2 { letter-spacing: -.06em; }
.eyebrow {
  color: #b7ff55;
  font-weight: 950;
  letter-spacing: .18em;
  text-shadow: 0 0 22px rgba(183,255,85,.18);
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  background: linear-gradient(135deg, #55f57a, #b7ff55);
  box-shadow: 8px 8px 0 rgba(123,86,56,.95);
  transform: translateY(-1px);
}

.hero-home {
  position: relative;
  padding-top: clamp(54px, 7vw, 96px);
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  pointer-events: none;
  opacity: .45;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.36)),
    repeating-linear-gradient(90deg, rgba(123,86,56,.35) 0 64px, rgba(86,58,36,.35) 64px 128px);
}
.hero-grid { position: relative; z-index: 1; }
.hero-card,
.card,
.panel,
.form-card,
.stat-card,
.server-card,
.legal-link-card {
  border: 2px solid rgba(183,255,85,.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.018)),
    linear-gradient(135deg, rgba(85,245,122,.045), rgba(123,86,56,.035)),
    rgba(9, 16, 8, .88);
  box-shadow: var(--shadow-soft);
}
.hero-card {
  min-height: 360px;
  display: grid;
  align-content: end;
  border-radius: 28px;
  overflow: hidden;
}
.hero-card::before {
  inset: 22px 22px auto auto;
  width: 184px;
  height: 184px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #84ec5e 0 42%, #52b948 42% 54%, #7b5638 54% 78%, #49311f 78%),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 22px 22px;
  filter: none;
  opacity: .75;
  transform: rotate(5deg);
  box-shadow: 0 18px 0 rgba(0,0,0,.18), 0 30px 62px rgba(85,245,122,.20);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -28px -18px;
  height: 110px;
  background:
    repeating-linear-gradient(90deg, rgba(123,86,56,.7) 0 48px, rgba(74,47,29,.7) 48px 96px),
    linear-gradient(180deg, rgba(85,245,122,.26), rgba(0,0,0,0));
  border-top: 10px solid rgba(85,245,122,.32);
}
.hero-card > * { z-index: 1; }
.hero-card h3 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); }

.btn,
button.btn,
.server-actions button,
.server-actions a,
.copy-ip {
  border-radius: 12px;
  min-height: 46px;
  box-shadow: 0 4px 0 rgba(0,0,0,.24);
  transform: translateY(0);
}
.btn:hover,
.server-actions button:hover,
.server-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,.24), 0 18px 40px rgba(0,0,0,.22);
}
.btn-primary,
.server-actions a:last-child {
  color: #061104 !important;
  background: linear-gradient(180deg, #b7ff55 0%, #55f57a 100%) !important;
  border: 0 !important;
  box-shadow: 0 5px 0 #238a44, 0 18px 42px rgba(85,245,122,.24), inset 0 2px 0 rgba(255,255,255,.64) !important;
}
.btn-soft,
.btn-secondary,
.server-actions button,
.server-actions a,
.copy-ip {
  color: var(--text) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045)) !important;
  border: 1px solid rgba(183,255,85,.18) !important;
}
.btn-gold,
.pill-premium,
.tag-premium,
.premium-field-badge {
  color: #211500 !important;
  background: linear-gradient(180deg, #fff4aa 0%, #ffd86a 100%) !important;
  border: 0 !important;
  box-shadow: 0 4px 0 rgba(137,95,23,.55), 0 16px 36px rgba(255,216,106,.18) !important;
}
.btn-plus,
.premium-plus-action,
.pill-premium-plus,
.tag-premium-plus {
  color: #031113 !important;
  background: linear-gradient(180deg, #73f5ff 0%, #b7ff55 100%) !important;
  border: 0 !important;
  box-shadow: 0 4px 0 rgba(29,122,112,.62), 0 16px 42px rgba(115,245,255,.18) !important;
}
.btn-danger {
  background: linear-gradient(180deg, rgba(255,100,100,.28), rgba(120,24,24,.36)) !important;
  border: 1px solid rgba(255,100,100,.46) !important;
}

.stats-grid { gap: 16px; }
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border-color: rgba(183,255,85,.16);
}
.stat-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  background: rgba(85,245,122,.18);
  box-shadow: 12px -12px 0 rgba(183,255,85,.10), -12px -2px 0 rgba(123,86,56,.18);
}
.stat-card strong {
  color: #ecffd9;
  text-shadow: 0 0 28px rgba(85,245,122,.20);
}

.section { position: relative; }
.section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(183,255,85,.11);
}
.category-card {
  min-height: 150px;
  border-left: 0;
  overflow: hidden;
}
.category-card::before {
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #6fbd49 0 42%, #4a8d3d 42% 55%, #7b5638 55% 78%, #49311f 78%);
  box-shadow: 0 8px 0 rgba(0,0,0,.22);
  order: -1;
}
.category-card h3 { font-size: 1.45rem; }

.server-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  isolation: isolate;
}
.server-card::after {
  opacity: .65;
  background:
    linear-gradient(130deg, rgba(255,255,255,.08), transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.028) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.022) 31px 32px);
}
.server-card:hover {
  border-color: rgba(85,245,122,.34);
  box-shadow: 0 18px 0 rgba(0,0,0,.16), 0 34px 86px rgba(0,0,0,.48);
}
.server-card-premium {
  border-color: rgba(255,216,106,.54) !important;
  box-shadow: 0 0 0 1px rgba(255,216,106,.16), 0 14px 0 rgba(0,0,0,.16), 0 34px 82px rgba(255,216,106,.11) !important;
}
.server-card-premium-plus {
  border-color: rgba(115,245,255,.62) !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(115,245,255,.18), transparent 22rem),
    linear-gradient(180deg, rgba(85,245,122,.16), rgba(12,20,10,.92)) !important;
  box-shadow: 0 0 0 1px rgba(183,255,85,.18), 0 14px 0 rgba(0,0,0,.16), 0 36px 96px rgba(85,245,122,.18) !important;
}
.server-banner {
  min-height: 210px;
  border-right: 2px solid rgba(0,0,0,.22);
  background-color: #0d1a0b;
  image-rendering: auto;
}
.server-banner::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44px;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(85,245,122,.48), rgba(85,245,122,.14) 24%, rgba(0,0,0,0) 25%),
    repeating-linear-gradient(90deg, rgba(123,86,56,.70) 0 32px, rgba(73,49,31,.75) 32px 64px);
  opacity: .82;
}
.server-banner::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 24%, transparent 0 32%, rgba(0,0,0,.22) 80%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.54));
}
.server-banner .tag-hot,
.server-banner .tag-premium-plus,
.server-banner .tag-premium { z-index: 3; }
.server-content { padding: clamp(18px, 2.5vw, 26px); }
.server-headline { align-items: flex-start; }
.server-title {
  color: #f7ffef;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(85,245,122,.14);
}
.server-title:hover { color: #b7ff55; }
.verified,
.pill-verified {
  background: linear-gradient(180deg, #c8ffd2, #55f57a) !important;
  color: #051205 !important;
  box-shadow: 0 3px 0 rgba(20,109,50,.45) !important;
}
.pill,
.tag {
  border-radius: 9px;
  padding: 7px 10px;
  border-color: rgba(183,255,85,.15);
  background: rgba(255,255,255,.07);
}
.status-online {
  color: #061104 !important;
  background: linear-gradient(180deg, #b7ff55, #55f57a) !important;
}
.status-offline {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255,100,100,.40), rgba(116,22,22,.58)) !important;
}
.status-unknown {
  color: #ffd86a !important;
  background: rgba(255,216,106,.12) !important;
  border-color: rgba(255,216,106,.34) !important;
}
.server-stats {
  border-top: 1px dashed rgba(183,255,85,.15);
  padding-top: 14px;
}
.server-stats strong { color: #ecffd9; }

.filters {
  border: 2px solid rgba(183,255,85,.13);
  background:
    linear-gradient(180deg, rgba(85,245,122,.055), rgba(0,0,0,.10)),
    rgba(6, 11, 5, .82);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
}
input,
textarea,
select {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0,0,0,.24), rgba(255,255,255,.035)),
    rgba(4, 8, 4, .82);
  border: 1px solid rgba(183,255,85,.18);
  border-radius: 12px;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.18);
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(85,245,122,.76);
  box-shadow: 0 0 0 4px rgba(85,245,122,.13), inset 0 2px 0 rgba(0,0,0,.18);
}
input[type="file"]::file-selector-button {
  background: linear-gradient(180deg, #b7ff55, #55f57a) !important;
  color: #061104 !important;
  box-shadow: 0 3px 0 rgba(35,138,68,.55);
}
.category-picker label {
  border-radius: 12px;
  border-color: rgba(183,255,85,.14);
  background: rgba(255,255,255,.055);
}

.detail-cover,
.profile-cover {
  border: 2px solid rgba(183,255,85,.15);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.detail-cover::after,
.profile-cover::after {
  background:
    linear-gradient(180deg, transparent 28%, rgba(3,6,3,.91)),
    repeating-linear-gradient(90deg, rgba(123,86,56,.16) 0 42px, rgba(63,39,24,.16) 42px 84px);
}
.logo-box,
.profile-avatar {
  border-radius: 18px;
  border: 2px solid rgba(237,255,220,.18);
  background:
    linear-gradient(180deg, #6fbd49 0 42%, #4a8d3d 42% 55%, #7b5638 55% 78%, #49311f 78%);
  box-shadow: 0 10px 0 rgba(0,0,0,.22), 0 26px 60px rgba(0,0,0,.34);
}
.ip-box code {
  color: #73f5ff;
  border: 1px solid rgba(115,245,255,.22);
  background: rgba(0,0,0,.34);
}

.table-panel { border-radius: 18px; }
.table th {
  color: #eaffd3;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
}
.table th,
.table td { border-bottom-color: rgba(183,255,85,.12); }
.table tr:hover td { background: rgba(85,245,122,.035); }
.admin-control-room,
.dashboard-hero,
.premium-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(85,245,122,.12), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.role-badge {
  color: #061104;
  background: linear-gradient(180deg, #b7ff55, #55f57a);
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(35,138,68,.56);
}
.premium-price {
  border: 2px solid rgba(255,216,106,.20);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,216,106,.13), rgba(0,0,0,.08)),
    rgba(255,255,255,.035);
}
.premium-price strong { color: #ffecaa; }
.plus-price {
  border-color: rgba(115,245,255,.28);
  background: linear-gradient(180deg, rgba(115,245,255,.12), rgba(85,245,122,.06));
}
.plus-price strong { color: #baffff; }
.benefit-list li {
  border: 1px solid rgba(183,255,85,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}
.benefit-list li::before {
  background: linear-gradient(180deg, #b7ff55, #55f57a);
  box-shadow: 0 2px 0 rgba(0,0,0,.22);
}
.empty {
  border: 2px dashed rgba(183,255,85,.18);
  background: rgba(5, 9, 4, .62);
}
.legal-panel h2,
.footer-brand { color: #ecffd9; }
.site-footer {
  border-top: 2px solid rgba(84, 58, 34, .78);
  background:
    linear-gradient(180deg, rgba(9,16,8,.7), rgba(0,0,0,.64)),
    repeating-linear-gradient(90deg, rgba(123,86,56,.18) 0 52px, rgba(63,39,24,.18) 52px 104px);
}
.site-footer a:hover { color: #b7ff55; }
.flash { border-radius: 12px; }
.flash-success { border-color: rgba(85,245,122,.38); background: rgba(85,245,122,.12); }
.flash-warning { border-color: rgba(255,216,106,.42); background: rgba(255,216,106,.12); }
.flash-danger { border-color: rgba(255,100,100,.42); background: rgba(255,100,100,.12); }

@media (min-width: 1800px) {
  :root { --container: 1500px; }
  .hero-card { min-height: 430px; }
  .server-banner { min-height: 270px; }
}

@media (max-width: 1180px) {
  .server-card { grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); }
  .hero-card::before { width: 150px; height: 150px; }
}

@media (max-width: 760px) {
  .container { width: min(100%, calc(100% - 22px)); }
  .site-header::after { height: 3px; }
  .nav {
    border: 2px solid rgba(183,255,85,.16);
    background:
      linear-gradient(180deg, rgba(85,245,122,.08), rgba(0,0,0,.08)),
      rgba(4, 9, 3, .96);
    box-shadow: 0 8px 0 rgba(0,0,0,.24), 0 28px 80px rgba(0,0,0,.52);
  }
  .nav a,
  .nav-account-premium { border-radius: 10px; }
  .hero-home { padding-top: 36px; }
  .hero-card { min-height: 300px; }
  .hero-card::before { width: 118px; height: 118px; inset: 18px 18px auto auto; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-card { border-radius: 18px; }
  .server-banner { min-height: clamp(170px, 48vw, 230px); border-right: 0; border-bottom: 2px solid rgba(0,0,0,.20); }
  .section-head { border-bottom: 0; }
  .detail-title { align-items: flex-end; }
  .btn:hover,
  .server-actions button:hover,
  .server-actions a:hover { transform: none; }
}

@media (max-width: 420px) {
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; font-size: .82rem; }
  .brand-text { max-width: calc(100vw - 132px); }
  .stats-grid,
  .server-stats { grid-template-columns: 1fr 1fr !important; }
  .hero-card { min-height: 270px; }
  .hero-card::before { width: 96px; height: 96px; }
  .pill, .tag { border-radius: 8px; }
}


/* Patch fiche serveur + badges FR */
.pill-approved {
  color: #e8fff2;
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.15) inset;
}

.pill-sponsored,
.tag-hot {
  color: #231300;
  background: linear-gradient(135deg, #ffd86b 0%, #ffb347 55%, #ff8c42 100%);
  border: 1px solid rgba(255, 190, 92, 0.65);
  box-shadow: 0 10px 24px rgba(255, 168, 58, 0.28);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.server-banner .tag-hot {
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 10px 14px;
}

.detail-badges {
  gap: 10px;
}


/* Patch labels d'options Premium / Premium+ */
.option-requirement {
  vertical-align: middle;
  margin-left: 8px;
  white-space: nowrap;
}

.option-premium-plus {
  color: #031113 !important;
  background: linear-gradient(180deg, #73f5ff 0%, #b7ff55 100%) !important;
  border: 0 !important;
  box-shadow: 0 4px 0 rgba(29,122,112,.62), 0 16px 42px rgba(115,245,255,.18) !important;
}

.field-limit .option-requirement {
  margin-left: 4px;
}

.benefit-list .option-requirement {
  margin-left: 10px;
}


/* Patch admin Partenaire + durée Premium+ */
.admin-duration-field {
  display: grid;
  gap: 6px;
  min-width: 150px;
}
.admin-duration-field select {
  min-height: 38px;
}
.premium-plus-admin-hint {
  display: block;
  width: 100%;
  margin-top: 4px;
}


/* Patch joueurs connectés/max : affiché uniquement si le ping Minecraft répond */
.is-hidden {
  display: none !important;
}

.server-players strong {
  color: var(--text);
}


/* Badge Soutient de la première heure */
.pill-early-supporter,
.tag-early-supporter {
  color: #160b2d !important;
  background: linear-gradient(135deg, #f4d7ff 0%, #c084fc 48%, #8b5cf6 100%) !important;
  border: 1px solid rgba(216, 180, 254, 0.7) !important;
  box-shadow: 0 4px 0 rgba(76, 29, 149, 0.45), 0 16px 40px rgba(192, 132, 252, 0.22) !important;
  font-weight: 900;
}

.server-banner .tag-early-supporter {
  top: 58px;
  left: 14px;
  z-index: 3;
  padding: 10px 14px;
  max-width: calc(100% - 28px);
}

@media (max-width: 520px) {
  .server-banner .tag-early-supporter {
    top: 52px;
    font-size: 0.72rem;
    padding: 8px 10px;
  }
}


/* Patch synchronisation logo serveur + avantage bannière première heure */
.form-info-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(115,245,255,.28);
  border-radius: 16px;
  background: rgba(115,245,255,.08);
  color: var(--text);
}
.form-info-box span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}


/* Patch liste serveurs : icône serveur Minecraft synchronisée + actions groupées admin */
.server-headline-with-logo {
  align-items: center;
  gap: 12px;
}

.server-card-logo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(183,255,85,.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

.server-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.server-title-stack {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(183,255,85,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.admin-bulk-actions select {
  min-height: 42px;
}

@media (max-width: 620px) {
  .server-card-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .admin-bulk-actions {
    align-items: stretch;
  }

  .admin-bulk-actions select,
  .admin-bulk-actions .btn {
    width: 100%;
  }
}
