:root {
  --bg: #0d1117;
  --bg2: #141a23;
  --card: #18202b;
  --card2: #1e2835;
  --line: #263243;
  --text: #e6edf3;
  --muted: #8b98a9;
  --green: #5ccf3c;
  --green-d: #3fa824;
  --gold: #f5b83d;
  --gold-d: #d4951c;
  --red: #ef4b4b;
  --radius: 12px;
  --well: #0b0f15;
  --well2: #121922;
  --hover: #1b2430;
  --font: 'Outfit', system-ui, sans-serif;
  --glow: #1d3a1a55;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: radial-gradient(1200px 500px at 70% -100px, var(--glow), transparent), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
img { max-width: 100%; }
.wrap { width: min(1320px, 100% - 32px); margin: 0 auto; }
main.wrap { flex: 1; padding: 28px 0 60px; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 0; }
.lead b { color: var(--text); }

/* Top bar */
.topbar { background: #0a0e14e6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-cube { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), #2f8a1b); color: #fff; box-shadow: 0 4px 18px #5ccf3c55; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .85rem; padding: 8px 12px; border-radius: 8px; letter-spacing: .02em; }
.nav a i { color: var(--green); margin-right: 4px; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--card); text-decoration: none; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; height: 40px; width: 260px; }
.search i { color: var(--green); }
.search input { background: none; border: 0; color: var(--text); outline: none; flex: 1; font: inherit; min-width: 0; }
.search:focus-within { border-color: var(--green); }
kbd { font: 600 .7rem 'Outfit'; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.auth { display: flex; align-items: center; gap: 10px; }
.auth form { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; padding: 10px 16px; font: 600 .92rem 'Outfit'; cursor: pointer; color: #fff; transition: transform .1s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-green { background: linear-gradient(180deg, var(--green), var(--green-d)); box-shadow: 0 4px 14px #5ccf3c33; }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-d)); color: #2a1c00; }
.btn-red { background: var(--red); }
.btn-dark { background: var(--card2); border: 1px solid var(--line); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-xs { padding: 5px 9px; font-size: .78rem; border-radius: 7px; }
.btn-lg { padding: 14px 20px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-copy { background: var(--card2); border: 1px solid var(--line); width: 100%; text-transform: uppercase; letter-spacing: .04em; }
.btn-copy:hover { background: var(--green-d); border-color: var(--green-d); }
.copied { background: var(--green-d) !important; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.alert-success { background: #1d3a1a; border: 1px solid #2f6b24; color: #b6f3a4; }
.alert-error { background: #3a1a1a; border: 1px solid #6b2424; color: #f3a4a4; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.hero { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.hero h1 { font-size: 2.1rem; font-weight: 800; }
.hero-actions { display: flex; gap: 8px; align-items: flex-start; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 500; }
.chip:hover { color: var(--text); text-decoration: none; border-color: var(--green); }
.chip.on { background: var(--green); color: #0d1a09; border-color: var(--green); font-weight: 700; }
.list-head { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, var(--green-d), var(--green)); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.list-head h2 { margin: 0; font-size: 1.4rem; color: #fff; }
.list-head span { color: #eaffdf; font-weight: 600; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); }

/* Server row */
.srv { display: grid; grid-template-columns: 70px 280px 1fr 336px; gap: 16px; min-height: 136px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 0; margin-bottom: 12px; transition: border-color .15s, transform .15s; }
.srv:hover { border-color: #3a4a60; transform: translateY(-1px); }
.srv-pinned { background: linear-gradient(90deg, #2a2210, var(--card) 60%); border-color: #6b5420; box-shadow: 0 0 0 1px #f5b83d22, 0 6px 24px #f5b83d14; }
.srv-pinned:hover { border-color: var(--gold); }
.srv-pinned .srv-rank { border-right-color: #6b5420; }
.srv-pinned .srv-rank span { color: var(--gold); }
.srv-rank { display: flex; flex-direction: column; align-items: center; gap: 8px; border-right: 1px solid var(--line); align-self: stretch; justify-content: center; }
.srv-rank span { font-weight: 800; font-size: 1.3rem; }
.srv-icon, .side-icon, .detail-icon { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; flex-shrink: 0; }
.side-icon { width: 28px; height: 28px; border-radius: 6px; }
.detail-icon { width: 72px; height: 72px; border-radius: 14px; }
.srv-icon-fallback { display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line); font-weight: 800; color: var(--green); }
.srv-banner img, .banner-placeholder { display: block; width: 100%; aspect-ratio: 468 / 60; object-fit: cover; border-radius: 8px; }
.banner-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #24371e, #1a2433); font-weight: 800; font-size: 1.3rem; color: #cfe9c6; letter-spacing: .05em; text-transform: uppercase; }
.srv-info { min-width: 0; }
.srv-name { display: block; font-weight: 700; font-size: 1.15rem; color: var(--text); text-transform: uppercase; overflow-wrap: anywhere; line-height: 1.25; }
.srv-name i { color: var(--gold); }
.srv-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0; color: var(--muted); font-size: .9rem; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; }
.pill-on { background: var(--green); color: #0d1a09; }
.pill-off { background: #4a2323; color: #ffb3b3; }
.pill-dark { background: var(--well); color: var(--text); border: 1px solid var(--line); }
.pill-gold { background: var(--gold); color: #2a1c00; }
.pill-green { background: #1d3a1a; color: var(--green); border: 1px solid #2f6b24; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { background: #222d3b; color: #c4d0de; font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
.tag:hover { background: var(--green-d); color: #fff; text-decoration: none; }
.srv-ip .ip { background: var(--well); border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; text-align: center; padding: 9px; font-weight: 600; font-size: .88rem; overflow-wrap: anywhere; }
.srv-ip .btn-copy { border-radius: 0 0 9px 9px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pager a { padding: 8px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pager a.on, .pager a:hover { background: var(--green); color: #0d1a09; text-decoration: none; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card.pad { padding: 22px; }
.card-head { background: var(--card2); padding: 14px 18px; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.card-head i { color: var(--green); margin-right: 6px; }
.side-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }
.side-row:last-child { border-bottom: 0; }
.side-row:hover { background: var(--card2); text-decoration: none; }
.side-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.side-row small { font-size: .75rem; background: var(--well); border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; color: var(--muted); }
.side-row small.green { color: var(--green); }
.rank-badge { font-size: .75rem; background: var(--well); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; color: var(--muted); }

.featured { display: flex; flex-direction: column; gap: 10px; }
.featured-title { font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; color: var(--gold); }
.feat { background: linear-gradient(180deg, #2a2210, var(--card)); border: 1px solid #6b5420; border-radius: var(--radius); overflow: hidden; }
.feat > a > img { display: block; width: 100%; aspect-ratio: 468 / 60; object-fit: cover; }
.feat-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.feat-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); min-width: 0; }
.feat-name span { overflow-wrap: anywhere; }
.feat-ip { display: flex; background: var(--well); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.feat-ip span { flex: 1; padding: 6px 10px; font-size: .82rem; font-weight: 600; overflow-wrap: anywhere; }
.feat-ip button { background: var(--gold); border: 0; color: #2a1c00; padding: 0 12px; cursor: pointer; }
.feat-meta { display: flex; gap: 6px; }
.feat-meta span { flex: 1; text-align: center; font-size: .75rem; font-weight: 700; background: #3a2d0d; color: var(--gold); padding: 4px; border-radius: 5px; }
.feat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px; border-style: dashed; background: transparent; color: var(--gold); font-weight: 700; }
.feat-empty small { color: var(--muted); font-weight: 500; }
.feat-empty:hover { background: #2a221055; text-decoration: none; }

/* Detail */
/* Native size: banners are small (468×60) and blur badly when stretched. */
.detail-banner { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto 18px; }
.vanity-link { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.vanity-link code { background: var(--well); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; color: var(--text); overflow-wrap: anywhere; }
.premium-box { border-color: #6b5420; background: linear-gradient(180deg, #2a221033, transparent); }
.premium-box legend { color: var(--gold); }
.premium-locked { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.premium-locked i { color: var(--gold); font-size: 1.4rem; }
.slug-input { display: flex; align-items: center; background: var(--well); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.slug-input span { padding: 0 4px 0 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.slug-input input { border: 0; flex: 1; padding-left: 0; min-width: 0; }
.slug-input:focus-within { border-color: var(--green); }
.form input[type=color] { height: 42px; padding: 4px; width: 100%; cursor: pointer; }
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.detail-head > div:nth-child(2) { flex: 1; }
.detail-head .ip-stack { min-width: 280px; }
.gold-name, .srv-name.gold-name { color: var(--gold); text-shadow: 0 0 14px #f5b83d55; }
.premium-crown { color: var(--gold); font-size: .75em; vertical-align: middle; filter: drop-shadow(0 2px 8px #f5b83d66); }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.desc { line-height: 1.7; color: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

/* Forms */
.auth-box { max-width: 440px; margin: 30px auto; }
.form-page { max-width: 820px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.form .row { display: flex; gap: 12px; flex-wrap: wrap; }
input, select, textarea { font: inherit; color: var(--text); background: var(--well); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input[type=checkbox], input[type=radio] { accent-color: var(--green); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.form .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.banner-preview { border-radius: 8px; max-width: 468px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.dash-list { display: flex; flex-direction: column; gap: 10px; }
.dash-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.dash-item form { margin: 0; }

/* Premium */
.premium { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.premium-hero { text-align: center; }
.premium-hero > i { font-size: 2.6rem; color: var(--gold); filter: drop-shadow(0 4px 20px #f5b83d88); margin-bottom: 10px; }
.premium-hero h1 { font-size: 2.2rem; }
.upgrade { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.upgrade-gold { border-color: #6b5420; background: linear-gradient(180deg, #2a2210, var(--card) 40%); }
.upgrade-head { display: flex; align-items: center; gap: 14px; }
.upgrade-head > div { flex: 1; }
.upgrade-head h2 { margin: 0 0 2px; }
.upgrade-head p { margin: 0; }
.upgrade-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line); color: var(--green); font-size: 1.2rem; }
.upgrade-gold .upgrade-icon { color: var(--gold); border-color: #6b5420; }
.perk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.perk-list i { color: var(--green); width: 22px; }
.card-link { float: right; font-size: .82rem; font-weight: 600; }
.slot-meter { display: flex; justify-content: center; gap: 8px; margin: 20px 0 8px; }
.slot-meter span { width: 50px; height: 12px; border-radius: 6px; background: var(--green); box-shadow: 0 0 12px #5ccf3c55; }
.slot-meter span.taken { background: var(--card2); box-shadow: none; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.plan input { position: absolute; opacity: 0; }
.plan span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--well); transition: border-color .15s; }
.plan em { font-style: normal; font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.plan small { color: var(--muted); font-weight: 500; }
.plan input:checked + span { border-color: var(--gold); background: #2a221055; }
.plan input:focus-visible + span { outline: 2px solid var(--gold); }
.auction { display: flex; flex-direction: column; gap: 12px; background: var(--card2); }
.auction-head { display: flex; align-items: center; gap: 12px; }
.auction-price { text-align: right; display: flex; flex-direction: column; }
.auction-price b { font-size: 1.5rem; color: var(--gold); }
.auction-form { margin-top: 0; }
.auction-pay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.bid-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.bid-list li { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--well); }
.bid-list li span { flex: 1; }
.bid-list li:first-child b { color: var(--gold); }

/* Admin */
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.admin-nav { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.admin-title { font-weight: 800; padding: 10px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.admin-title i { color: var(--green); }
.admin-nav a { color: var(--muted); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.admin-nav a i { width: 20px; }
.admin-nav a:hover, .admin-nav a.on { background: var(--card2); color: var(--text); text-decoration: none; }
.admin-nav a.on { box-shadow: inset 3px 0 0 var(--green); }
.admin-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat i { color: var(--green); font-size: 1.2rem; margin-bottom: 6px; }
.stat b { font-size: 1.7rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .85rem; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.slot-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 50px; }
.slot-row:last-child { border-bottom: 0; }
.slot-row small { display: block; color: var(--muted); font-size: .75rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; background: var(--card2); border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--hover); }
.row-removed td { opacity: .6; }
.cell-srv { display: flex; align-items: center; gap: 10px; }
.cell-srv small { display: block; color: var(--muted); }
.cell-srv a { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
form.inline { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.sel-xs, .num-xs, .txt-xs { padding: 4px 6px; font-size: .78rem; border-radius: 7px; }
.num-xs { width: 56px; }
.txt-xs { width: 100px; }
form.with-hint { flex-direction: column; align-items: stretch; gap: 3px; }
.act-hint { color: var(--muted); font-size: .72rem; max-width: 170px; }

/* Admin: expandable server rows with action cards */
.manage { border-bottom: 1px solid var(--line); }
.manage:last-child { border-bottom: 0; }
.manage summary { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; }
.manage summary::-webkit-details-marker { display: none; }
.manage summary:hover { background: var(--hover); }
.manage .grow { flex: 1; min-width: 0; }
.manage-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.manage-toggle { flex-shrink: 0; }
.manage[open] > summary { background: var(--card2); }
.manage[open] .manage-toggle { background: var(--green-d); border-color: var(--green-d); }
.manage.row-removed > summary { opacity: .65; }
.manage-body { padding: 16px; background: var(--well2); border-top: 1px solid var(--line); }
.manage-view { display: inline-block; margin-top: 12px; font-size: .85rem; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.action-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; }
.action-title { font-weight: 700; }
.action-title i { color: var(--green); width: 18px; }
.action-desc { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 0; flex: 1; }
.action-fields { display: flex; gap: 8px; align-items: center; }
.action-fields input, .action-fields select { flex: 1; min-width: 0; padding: 7px 10px; font-size: .85rem; }
.action-fields input[type=number] { max-width: 90px; }
.filters { display: flex; gap: 8px; }
.filters input, .filters select { padding: 7px 10px; }

.footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .85rem; }

/* Cross-play IPs, taglines, server page extras */
.ip-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ip-row { display: flex; align-items: center; gap: 6px; width: 100%; padding: 0 0 0 5px; min-height: 40px; background: var(--well); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 600 .9rem var(--font); cursor: pointer; text-align: left; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ip-row:hover { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.ip-ed { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.ip-bedrock .ip-ed { background: #3fa9ff22; color: #6cc0ff; }
.ip-text { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: .78rem; letter-spacing: -.01em; padding: 4px 0; }
.ip-copy { flex-shrink: 0; align-self: stretch; display: grid; place-items: center; padding: 0 10px; background: var(--card2); border-left: 1px solid var(--line); color: var(--muted); font-size: .8rem; white-space: nowrap; transition: background .15s, color .15s; }
.ip-row:hover .ip-copy { background: var(--green-d); color: #fff; border-color: var(--green-d); }
.ip-copied .ip-copy { background: var(--green-d); color: #fff; }
.srv-tagline { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.detail-tagline { color: var(--muted); font-size: 1.05rem; margin: -2px 0 4px; }
.feat-ip b { color: var(--gold); font-size: .7rem; text-transform: uppercase; }
.feat-ip + .feat-ip { margin-top: -4px; }
.owner-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.announce { background: linear-gradient(90deg, var(--green-d), var(--green)); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: var(--radius); margin-bottom: 18px; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); transition: transform .15s; }
.gallery a:hover img { transform: scale(1.02); }
.rules { margin: 0; padding-left: 20px; line-height: 1.7; color: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.link-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.kv .kv-ip-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kv .kv-ip-row dt { white-space: nowrap; flex-shrink: 0; }
.kv .kv-ip-row dd { white-space: nowrap; font-size: .8rem; font-family: ui-monospace, Consolas, monospace; letter-spacing: -.02em; }

/* Server form */
.req { color: var(--red); }
.form-section { font-size: 1.1rem; margin: 14px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section i, .form-sub { color: var(--green); }
.form-sub { font-size: .95rem; margin: 8px 0 -4px; }
.edition-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.edition-pick .plan { position: relative; }
.edition-pick .plan span { flex-direction: row; justify-content: center; gap: 8px; padding: 14px; font-weight: 700; }
.edition-pick .plan input:checked + span { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--well)); }
.checks-sm { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.form .gallery-thumb { gap: 4px; }
.gallery-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
[hidden] { display: none !important; }

/* Admin extras */
.admin-help { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.admin-help i { color: var(--green); margin-right: 6px; }
.admin-search { display: flex; align-items: center; gap: 8px; background: var(--well); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; margin-bottom: 6px; }
.admin-search i { color: var(--muted); }
.admin-search input { border: 0; background: none; padding: 8px 0; flex: 1; min-width: 0; }
.admin-nav a.admin-back { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; font-size: .85rem; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.quick { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.quick:hover { border-color: var(--green); transform: translateY(-1px); text-decoration: none; }
.quick i { color: var(--green); font-size: 1.3rem; margin-bottom: 6px; }
.quick span { color: var(--muted); font-size: .8rem; }
.check-xs { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.d-block { display: block; }
.new-payment > summary { cursor: pointer; list-style: none; }
.new-payment > summary::-webkit-details-marker { display: none; }
.new-payment .form { margin: 0; }
.form.pad { padding: 18px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.page-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.page-swatch { height: 70px; position: relative; }
.page-swatch span { position: absolute; left: 14px; bottom: 12px; width: 50px; height: 10px; border-radius: 5px; }
.page-tile-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.page-tile .manage-pills { justify-content: flex-start; }
.page-tile-actions { display: flex; gap: 8px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--well); cursor: pointer; text-align: center; color: #fff; transition: border-color .15s, transform .15s; }
.theme-card i { font-size: 1.6rem; color: var(--green); margin-bottom: 4px; }
.theme-card small { color: #ffffffaa; }
.theme-pick input:checked + .theme-card { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.theme-pick input:focus-visible + .theme-card { outline: 2px solid var(--green); }
.theme-card:hover { transform: translateY(-2px); }
[data-theme-preview=newyear] { background: linear-gradient(160deg, #0b0a1f, #2a2150); } [data-theme-preview=newyear] i { color: #ffd45c; }
[data-theme-preview=valentines] { background: linear-gradient(160deg, #1e0b14, #4a1430); } [data-theme-preview=valentines] i { color: #ff5c8a; }
[data-theme-preview=stpatricks] { background: linear-gradient(160deg, #071a0d, #0f4022); } [data-theme-preview=stpatricks] i { color: #3ddc6e; }
[data-theme-preview=easter] { background: linear-gradient(160deg, #1a1530, #2c3a4a); } [data-theme-preview=easter] i { color: #ffb6e1; }
[data-theme-preview=summer] { background: linear-gradient(160deg, #0a1630, #3a1020); } [data-theme-preview=summer] i { color: #ff4d5e; }
[data-theme-preview=halloween] { background: linear-gradient(160deg, #120a1a, #3a1a05); } [data-theme-preview=halloween] i { color: #ff8a1f; }
[data-theme-preview=thanksgiving] { background: linear-gradient(160deg, #1a1008, #4a2a10); } [data-theme-preview=thanksgiving] i { color: #e8963c; }
[data-theme-preview=christmas] { background: linear-gradient(160deg, #0a1a12, #3a0d12); } [data-theme-preview=christmas] i { color: #ff4a4a; }
[data-theme-preview=winter] { background: linear-gradient(160deg, #0a1422, #1e3550); } [data-theme-preview=winter] i { color: #8fd3ff; }
[data-theme-preview=default] { background: linear-gradient(160deg, #0d1117, #1d3a1a); } [data-theme-preview=default] i { color: #5ccf3c; }

/* Site-wide holiday themes: recolor the variables everything else uses. */
.theme-banner { text-align: center; padding: 7px 12px; font-weight: 700; font-size: .88rem; color: #fff; text-shadow: 0 1px 3px #0008; background: linear-gradient(90deg, var(--green-d), var(--green), var(--gold), var(--green)); background-size: 300% 100%; animation: banner-shift 8s linear infinite; position: relative; z-index: 11; }
@keyframes banner-shift { to { background-position: 300% 0; } }
html[data-theme=newyear] { --bg: #0b0a1f; --bg2: #13112c; --card: #17153a; --card2: #201d4a; --line: #322d66; --text: #f2f0ff; --muted: #a49fd0; --green: #ffd45c; --green-d: #d9a520; --gold: #ffd45c; --well: #08071a; --well2: #100e28; --hover: #1d1a45; --glow: #6b4cff44; }
html[data-theme=valentines] { --bg: #1a0a12; --bg2: #240e19; --card: #2a1020; --card2: #361528; --line: #552040; --text: #ffeaf2; --muted: #d59ab3; --green: #ff5c8a; --green-d: #d6336a; --well: #14070e; --well2: #1e0b15; --hover: #3a1730; --glow: #ff5c8a44; }
html[data-theme=stpatricks] { --bg: #06140a; --bg2: #0a1c10; --card: #0d2415; --card2: #12301c; --line: #1d4a2c; --text: #eaffef; --muted: #8fc6a0; --green: #3ddc6e; --green-d: #1fa84a; --gold: #f5c542; --well: #040e07; --well2: #08180d; --hover: #143720; --glow: #3ddc6e44; }
html[data-theme=easter] { --bg: #16132a; --bg2: #1c1934; --card: #221f3d; --card2: #2b284b; --line: #3e3a66; --text: #fbf4ff; --muted: #b9addb; --green: #ff9ad5; --green-d: #d96aad; --gold: #ffe27a; --well: #110f22; --well2: #18152c; --hover: #2e2a52; --glow: #9ad5ff44; }
html[data-theme=summer] { --bg: #08132a; --bg2: #0d1a36; --card: #11203f; --card2: #172a50; --line: #24406f; --text: #f4f8ff; --muted: #9fb2d6; --green: #ff4d5e; --green-d: #d42a3c; --gold: #ffd166; --well: #060e20; --well2: #0b162e; --hover: #1a2d55; --glow: #ff4d5e33; }
html[data-theme=halloween] { --bg: #0f0814; --bg2: #160c1d; --card: #1c1024; --card2: #26152f; --line: #3d2148; --text: #fff1e6; --muted: #c4a3b8; --green: #ff8a1f; --green-d: #d4640a; --gold: #ffb347; --well: #0a050e; --well2: #130a19; --hover: #2c1836; --glow: #ff8a1f44; }
html[data-theme=thanksgiving] { --bg: #140c06; --bg2: #1c110a; --card: #24170d; --card2: #2e1e12; --line: #4a321e; --text: #fff4e6; --muted: #c9a988; --green: #e8963c; --green-d: #b86a1c; --gold: #f2c14e; --well: #0e0804; --well2: #170e07; --hover: #362516; --glow: #e8963c33; }
html[data-theme=christmas] { --bg: #08140e; --bg2: #0c1b13; --card: #10231a; --card2: #152d21; --line: #224632; --text: #f4fff8; --muted: #a3c7b2; --green: #ff4a4a; --green-d: #cc2a2a; --gold: #ffd45c; --well: #050e09; --well2: #0a1710; --hover: #1a3626; --glow: #ff4a4a33; }
html[data-theme=winter] { --bg: #0a1220; --bg2: #0e1829; --card: #121e33; --card2: #18273f; --line: #263c5e; --text: #eef7ff; --muted: #9db5d1; --green: #8fd3ff; --green-d: #4fa8dc; --well: #070d18; --well2: #0c1524; --hover: #1c2e4a; --glow: #8fd3ff33; }
html:not([data-theme=default]) .logo-cube { background: linear-gradient(135deg, var(--green), var(--green-d)); box-shadow: 0 4px 18px var(--glow); }
html:not([data-theme=default]) .topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); }
html:not([data-theme=default]) .chip.on, html:not([data-theme=default]) .pill-on, html:not([data-theme=default]) .pager a.on { color: #10070a; }

/* Animated particle effects */
.fx-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 9; }
.fx-layer i { position: absolute; top: -40px; font-style: normal; line-height: 1; animation: fx-fall linear infinite; will-change: transform; }
@keyframes fx-fall { to { transform: translate(var(--drift), 110vh) rotate(360deg); } }
.fx-snow i { color: #fff; text-shadow: 0 0 6px #fff8; }
.fx-hearts i { color: #ff5c8a; }
.fx-clovers i { color: #3ddc6e; }
.fx-confetti i { width: 8px; height: 14px; font-size: 0 !important; border-radius: 2px; }
.fx-embers i { top: auto; bottom: -20px; width: 5px; height: 5px; border-radius: 50%; background: #ff9a3c; box-shadow: 0 0 8px #ff7a1a; font-size: 0 !important; animation-name: fx-rise; }
@keyframes fx-rise { to { transform: translate(var(--drift), -110vh); opacity: 0; } }
.fx-stars i { width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; font-size: 0 !important; animation-name: fx-twinkle; animation-timing-function: ease-in-out; }
@keyframes fx-twinkle { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
.fx-bats i { left: -60px !important; animation-name: fx-fly; filter: brightness(.6); }
@keyframes fx-fly { 0% { transform: translate(0, 0); } 25% { transform: translate(30vw, -30px); } 50% { transform: translate(60vw, 20px); } 75% { transform: translate(90vw, -20px); } 100% { transform: translate(115vw, 0); } }
.fx-fireworks i { width: 4px; height: 4px; border-radius: 50%; animation: fx-burst 1.4s ease-out forwards; }
@keyframes fx-burst { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 40px)); opacity: 0; } }

/* Responsive */
@media (max-width: 1200px) {
  .srv { grid-template-columns: 60px 1fr 336px; }
  .srv-banner { grid-column: 2 / 4; }
  .srv-rank { grid-row: span 2; }
}
@media (max-width: 1000px) {
  .layout, .detail-grid, .admin, .admin-cols { grid-template-columns: 1fr; }
  .sidebar, .admin-nav { position: static; }
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .nav { order: 5; width: 100%; overflow-x: auto; }
  .hero { flex-direction: column; }
}
@media (max-width: 640px) {
  .search { display: none; }
  .srv { grid-template-columns: 1fr; padding: 14px; }
  .srv-banner { grid-column: auto; }
  .srv-rank { flex-direction: row; border: 0; grid-row: auto; justify-content: flex-start; }
  .detail-head { flex-wrap: wrap; }
  .detail-head .ip-stack { width: 100%; }
  .dash-item { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .edition-pick { grid-template-columns: 1fr; }
}
