/* HyHost panel — light Minecraft day (from Dark WooD) */
:root {
  --bg: #87ceeb;
  --bg2: #e8f7ff;
  --card: #fffaf0;
  --text: #1f2d28;
  --muted: #4d6558;
  --accent: #3f9e3a;
  --accent2: #e6a100;
  --bad: #d64545;
  --line: rgba(31, 45, 40, .12);
  --radius: 14px;
  --font: "Nunito", "Segoe UI", "Trebuchet MS", sans-serif;
  --brand-font: "Oxanium", "Nunito", "Segoe UI", sans-serif;
  /* Press Start 2P has no Cyrillic — keep it only for Latin badges; UI uses Oxanium/Nunito */
  --pixel-font: "Oxanium", "Nunito", "Segoe UI", sans-serif;
  --on-accent: #0b2a12;
  --chip: rgba(255, 255, 255, .72);
  --chip-border: rgba(31, 45, 40, .14);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
}

body.theme-mc-day {
  background: transparent;
}

a { color: #1f7a36; text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 7.5rem;
}
.site-legal {
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  padding: 1rem .65rem 1.1rem;
  border-top: none;
  text-align: center;
}
.site-legal p {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .15rem .2rem;
  margin: 0;
  max-width: 100%;
  padding: .55rem .9rem .6rem;
  border-radius: 8px;
  border: 2px solid rgba(40, 70, 40, .28);
  background: rgba(255, 252, 245, .92);
  box-shadow:
    0 2px 10px rgba(20, 40, 30, .18),
    inset 0 1px 0 rgba(255, 255, 255, .75);
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.45;
  color: #1a3350;
  letter-spacing: .01em;
  text-shadow: none;
}
.site-legal a {
  color: #146628;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.site-legal a:hover { text-decoration: underline; }
.site-legal-sep {
  margin: 0 .35rem;
  color: #5a7390;
  opacity: .9;
}

/* Cookie consent (152-FZ) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10040;
  padding: .75rem .85rem calc(.85rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.cookie-consent-inner {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: .95rem 1.05rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(107, 61, 34, .35);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, .98), rgba(232, 245, 220, .96));
  box-shadow:
    0 12px 36px rgba(30, 50, 40, .22),
    inset 0 1px 0 rgba(255, 255, 255, .75);
  color: #1a3350;
}
.cookie-consent-copy {
  flex: 1 1 16rem;
  min-width: 0;
}
.cookie-consent-title {
  margin: 0 0 .35rem;
  font-family: Oxanium, Nunito, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a3d18;
}
.cookie-consent-text {
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
  color: #3b536b;
}
.cookie-consent-text a {
  color: #146628;
  font-weight: 700;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  flex: 0 0 auto;
}

.legal-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.15rem;
}
.legal-doc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: .35rem .7rem;
  border-radius: 8px;
  border: 1px solid rgba(40, 80, 120, .2);
  background: rgba(255, 255, 255, .75);
  color: #1a5a2e;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
.legal-doc-nav a:hover {
  border-color: rgba(40, 140, 90, .45);
  background: rgba(90, 200, 140, .15);
}
.legal-doc-nav a.is-active {
  border-color: rgba(40, 140, 90, .55);
  background: rgba(90, 200, 140, .22);
  color: #14521c;
}
.legal-check {
  align-items: flex-start;
  gap: .55rem;
  margin: .35rem 0 .55rem;
  font-size: .88rem;
  line-height: 1.4;
  color: #3b536b;
}
.legal-check input {
  margin-top: .2rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}
.legal-check a {
  color: #146628;
  font-weight: 700;
}
.legal-page {
  max-width: 820px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.35rem 1.5rem;
}
.legal-section {
  margin: 1.25rem 0 0;
}
.legal-section h2 {
  margin: 0 0 .55rem;
  font-family: Oxanium, Nunito, sans-serif;
  font-size: 1.15rem;
  color: #1a3350;
}
.legal-section h3 {
  margin: .85rem 0 .4rem;
  font-size: 1rem;
  color: #1a4060;
}
.legal-section p,
.legal-section li {
  color: #24384d;
  line-height: 1.55;
}
.legal-section ul {
  margin: .35rem 0 .7rem;
  padding-left: 1.2rem;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: .55rem 0 .85rem;
  border: 1px solid rgba(40, 80, 120, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.legal-table th,
.legal-table td {
  padding: .55rem .65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(40, 80, 120, .12);
}
.legal-table th {
  background: rgba(93, 189, 58, .12);
  color: #1a3d18;
  font-weight: 750;
}
.legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 560px) {
  .site-legal p {
    display: inline-flex;
    flex-direction: column;
    gap: .25rem;
    align-items: center;
    padding: .65rem .85rem .7rem;
  }
  .site-legal-sep { display: none; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.top {
  position: relative;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 0 1.25rem; border-bottom: 3px solid rgba(31, 45, 40, .12); margin-bottom: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.22));
  border-radius: 0 0 12px 12px;
  padding-left: .65rem; padding-right: .65rem;
  backdrop-filter: blur(6px);
}
.top-left {
  display: flex; align-items: center; gap: .65rem; min-width: 0;
}
.top-right {
  display: flex; align-items: flex-start; gap: .75rem; flex-shrink: 0;
}
.user-account-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  min-width: 0;
}
.profile-bar {
  display: flex;
  align-items: center;
  gap: .35rem;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: .15rem .3rem .15rem .15rem;
  border-radius: 10px;
  border: 1px solid rgba(40, 80, 120, .18);
  background: rgba(255, 255, 255, .62);
  box-sizing: border-box;
}
.profile-bar .profile-menu {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
}
.profile-bar .profile-menu-summary {
  width: 100%;
  justify-content: flex-start;
  border: none;
  background: transparent;
  padding: .05rem .1rem .05rem .05rem;
  min-height: 0;
}
.profile-bar .profile-menu-summary:hover,
.profile-bar .profile-menu[open] .profile-menu-summary {
  background: transparent;
}
.profile-bar .profile-notif {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  font-size: .92rem;
  border: none;
  background: rgba(30, 60, 90, .08);
}
.profile-bar .profile-notif:hover {
  background: rgba(93, 189, 58, .18);
  text-decoration: none;
}
.profile-bar .profile-notif .nav-badge {
  top: -.45rem;
  right: -.45rem;
}
.user-account-stack .balance-chip {
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: "Press Start 2P", var(--pixel-font);
  font-weight: 400;
  font-size: .55rem;
  letter-spacing: 0;
  color: #fffef5;
  background:
    linear-gradient(#5dbd3a 0 42%, #8b5a2b 42% 100%);
  box-shadow: inset 0 0 0 2px #2f5d22, 2px 2px 0 rgba(0,0,0,.15);
  image-rendering: pixelated;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.brand-name {
  font-family: "Press Start 2P", var(--pixel-font);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.35;
  color: #1a3d18;
  text-shadow: 1px 1px 0 rgba(255,255,255,.65);
}
.brand-by {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand:hover .brand-name { color: var(--accent); }
.brand:hover .brand-by { color: #b7d0c3; }
.brand-kicker {
  margin: 0 0 .55rem;
  font-family: var(--brand-font);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

.nav-burger {
  display: none;
  width: 2.55rem; height: 2.55rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  align-items: center; justify-content: center; flex-direction: column; gap: .28rem;
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 1.2rem; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle:checked ~ .top .nav-burger span:nth-child(1),
.shell:has(.nav-toggle:checked) .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .top .nav-burger span:nth-child(2),
.shell:has(.nav-toggle:checked) .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .top .nav-burger span:nth-child(3),
.shell:has(.nav-toggle:checked) .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.desktop-nav {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; flex: 1;
  justify-content: flex-start; margin-left: .65rem;
}
.desktop-nav a.nav-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .9rem;
  border-radius: 8px;
  border: 2px solid rgba(31,45,40,.12);
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.desktop-nav a.nav-pill:hover {
  color: var(--text);
  background: #e7f8da;
  border-color: rgba(63,158,58,.4);
  text-decoration: none;
}
.desktop-nav a.nav-pill:active { transform: translateY(1px); }
.desktop-only-link { color: var(--muted); font-weight: 600; }
.desktop-only-link:hover { color: var(--text); }

/* Header login — compact Minecraft green CTA */
a.btn.game.top-login-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .28rem 1.05rem;
  border-width: 8px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .16);
}
a.btn.game.top-login-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 rgba(31, 45, 40, .18);
  text-decoration: none;
}
a.btn.game.top-login-btn:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 rgba(31, 45, 40, .14);
}
a.btn.game.side-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: .35rem;
  min-height: 2.6rem;
  padding: .4rem 1rem;
  border-width: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .16);
}

.nav-link { position: relative; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem;
  border-radius: 999px;
  background: #e85d4c;
  color: #fff;
  font-size: .68rem; font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  box-shadow: 0 0 0 2px rgba(16,36,30,.55);
}
.admin-tabs .tab .nav-badge {
  margin-left: .35rem;
  vertical-align: middle;
}

/* Left drawer (mobile) */
.nav-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 80;
  cursor: pointer;
}
.side-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 86vw);
  z-index: 90;
  background: linear-gradient(180deg, #fffaf0, #e8f7d8);
  border-right: 3px solid rgba(31,45,40,.14);
  box-shadow: 12px 0 40px rgba(40,70,50,.2);
  transform: translateX(-105%);
  transition: transform .22s ease;
  padding: calc(.85rem + env(safe-area-inset-top, 0px)) .85rem 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.side-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .25rem .35rem .5rem;
}
.side-drawer-head strong { font-size: 1.05rem; }
.side-close {
  width: 2.2rem; height: 2.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(0,0,0,.2); color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.side-nav {
  display: flex; flex-direction: column; gap: .4rem;
}
.side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: .65rem;
  padding: .95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.22));
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.side-nav a:hover {
  background: rgba(62,207,142,.12);
  text-decoration: none;
  color: var(--accent);
  border-color: rgba(62,207,142,.35);
}
.side-nav-danger { color: #ffb4b4 !important; border-color: rgba(255,107,107,.28) !important; }

.shell:has(.nav-toggle:checked) .side-drawer { transform: translateX(0); }
.shell:has(.nav-toggle:checked) .nav-scrim { display: block; }
html:has(.nav-toggle:checked),
body:has(.nav-toggle:checked) { overflow: hidden; }

.balance-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  padding: .3rem .35rem .3rem .7rem;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  border: 2px solid rgba(31,45,40,.12);
  max-width: 16rem;
}
.balance-chip.has-flash-offer {
  border-color: rgba(212, 140, 30, .55);
  background: linear-gradient(180deg, #fff8e8, #ffe9c4);
  box-shadow: 0 0 0 2px rgba(255, 186, 60, .25);
  animation: flash-chip-glow 1.8s ease-in-out infinite;
}
.flash-offer-pulse {
  flex: 1 1 100%;
  display: inline-flex; align-items: center; gap: .35rem;
  margin: 0; padding: .15rem .2rem 0;
  font-size: .68rem; font-weight: 800; letter-spacing: .02em;
  color: #8a4a08; text-decoration: none; line-height: 1.2;
}
.flash-offer-pulse:hover { color: #6a3600; text-decoration: underline; }
.flash-offer-pulse-dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: #e08a12;
  animation: flash-dot-pulse 1s ease-in-out infinite;
}
@keyframes flash-chip-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 186, 60, .2); }
  50% { box-shadow: 0 0 0 4px rgba(255, 186, 60, .35); }
}
@keyframes flash-dot-pulse {
  0%, 100% { opacity: .4; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

.flash-offer-backdrop {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(20, 35, 25, .48);
  backdrop-filter: blur(3px);
}
.flash-offer-modal {
  width: min(26rem, 100%);
  padding: 1.5rem 1.35rem 1.25rem;
  border: 3px solid #3d6c22;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf5, #e8f6d8);
  box-shadow: 0 18px 40px rgba(30, 50, 20, .28);
  text-align: center;
}
.flash-offer-eyebrow {
  margin: 0 0 .45rem; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #5a7a42;
}
.flash-offer-modal h2 {
  margin: 0 0 .65rem; font-size: 1.35rem; line-height: 1.2; color: #1d3d16;
  font-family: Oxanium, Nunito, sans-serif;
}
.flash-offer-lead { margin: 0 0 .4rem; color: #2a4024; font-size: 1.05rem; }
.flash-offer-example { margin: 0 0 .85rem; }
.flash-offer-timer {
  margin: 0 0 1rem; padding: .55rem .75rem;
  border-radius: 8px; background: rgba(255, 186, 60, .22);
  color: #6a3a08; font-weight: 700;
}
.flash-offer-actions {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin-bottom: .75rem;
}
.flash-offer-banner {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: 1rem; padding: .85rem 1rem;
  border: 2px solid rgba(212, 140, 30, .45);
  border-radius: 10px;
  background: linear-gradient(90deg, #fff6e4, #eef9df);
}
.flash-offer-banner-badge {
  flex: 0 0 auto;
  padding: .35rem .65rem; border-radius: 999px;
  background: #e08a12; color: #fff; font-weight: 900; font-size: .9rem;
}
.topup-amount.has-bonus {
  border-color: rgba(63, 158, 58, .55);
  background: linear-gradient(160deg, #f0fbe8 0%, #dff5c8 100%);
}
.topup-custom-form .topup-amount-input { max-width: 16rem; font-size: 1.15rem; font-weight: 600; }
.topup-hint {
  margin: .55rem 0 .35rem;
  padding: .65rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .9);
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
}
.topup-hint.ok {
  border-color: rgba(63, 158, 58, .4);
  background: linear-gradient(135deg, #eef9e4, #e4f5d8);
  color: #1e3d22;
}
.topup-custom-form .actions { margin-top: .85rem; }
.pay-redirect-card {
  max-width: 26rem;
  margin: 2.5rem auto 0;
}
.pay-redirect-brand {
  margin: 0 0 .75rem;
  font-family: var(--brand-font);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.pay-redirect-btn { width: 100%; min-height: 2.85rem; }
.balance-chip .balance-label {
  color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.balance-chip strong { font-size: .95rem; color: #2f7a28; line-height: 1; }
.balance-plus {
  text-decoration: none;
  box-sizing: border-box;
  width: 1.55rem; height: 1.55rem;
  border-radius: 6px;
  background: #5dbd3a; color: #0b2a12;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid #2f7a28; padding: 0; margin: 0;
  line-height: 0;
}
.balance-plus span {
  display: block;
  font-size: 1.15rem; font-weight: 800;
  line-height: 1;
  transform: translateY(-0.06em);
}
.balance-plus:hover { filter: brightness(1.08); }

.topup-modal { max-width: 420px; }
.topup-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .65rem; margin: 1rem 0 1.1rem;
}
.topup-amount {
  appearance: none; cursor: pointer; font: inherit; color: var(--text);
  border: 1.5px solid rgba(31, 45, 40, .14);
  border-radius: 14px; padding: .9rem .75rem;
  background: linear-gradient(160deg, #fffef8 0%, #f3f9ec 100%);
  text-align: center;
  box-shadow: 0 2px 0 rgba(31, 45, 40, .06);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.topup-amount:hover {
  border-color: rgba(63, 158, 58, .45);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 122, 40, .12);
}
.topup-amount strong {
  display: block; font-size: 1.35rem; line-height: 1.1;
  color: #1f2d28; font-weight: 800;
}
.topup-amount-rub {
  display: inline-block; margin-top: .15rem;
  color: var(--muted); font-size: .85rem; font-weight: 700;
}
.topup-amount-bonus {
  display: block; margin-top: .35rem;
  color: #2f7a28; font-size: .78rem; font-weight: 800;
}
.topup-amount.selected {
  border-color: #3f9e3a;
  background: linear-gradient(160deg, #e8f8d8 0%, #d4efb8 100%);
  box-shadow: 0 0 0 3px rgba(63, 158, 58, .22);
}
.topup-amount.selected strong { color: #1a5c20; }

.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .65rem;
  margin: .35rem 0 1rem;
}
.pay-method {
  appearance: none; cursor: pointer; font: inherit; color: var(--text);
  text-align: left;
  text-decoration: none;
  display: block;
  border: 1.5px solid rgba(31, 45, 40, .14);
  border-radius: 14px;
  padding: .85rem 1rem;
  background: linear-gradient(160deg, #fffef8 0%, #f3f9ec 100%);
  box-shadow: 0 2px 0 rgba(31, 45, 40, .06);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pay-method strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f2d28;
  margin-bottom: .2rem;
}
.pay-method:hover {
  border-color: rgba(63, 158, 58, .45);
  transform: translateY(-1px);
}
.pay-method.selected {
  border-color: #3f9e3a;
  background: linear-gradient(160deg, #e8f8d8 0%, #d4efb8 100%);
  box-shadow: 0 0 0 3px rgba(63, 158, 58, .22);
}
.pay-method.selected strong { color: #1a5c20; }

.operator-topup-form .actions { margin-top: .35rem; }
.promo-form {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end;
}
.promo-form .field { flex: 1 1 220px; margin: 0; }
.promo-admin-form .field-row { margin-bottom: .85rem; }
.promo-page-card { max-width: 560px; }
.payment-urls {
  margin: .85rem 0 1rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.payment-urls p { margin: .25rem 0; }
.payment-urls code { word-break: break-all; }

.content { min-height: 60vh; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1, .hero-card h1, .form-card h1 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; }

.hero-card, .form-card, .server-card, .stat {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,250,240,.92)), var(--card);
  border: 3px solid rgba(31, 45, 40, .14);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 28px rgba(40, 70, 50, .12), inset 0 1px 0 rgba(255,255,255,.8);
}
.form-card { max-width: 420px; }
.form-card.wide { max-width: 720px; }
.check-row {
  display: flex; align-items: center; gap: .55rem;
  margin: .35rem 0 1rem; color: var(--muted); font-weight: 600; cursor: pointer; user-select: none;
}
.check-row input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn {
  appearance: none; border: 3px solid rgba(31, 45, 40, .18); background: #fff8e7; color: var(--text);
  border-radius: 8px; padding: .7rem 1.15rem; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .12);
  font-family: var(--brand-font);
}
.btn:hover { filter: brightness(1.04); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: #5dbd3a; color: #0b2a12; border-color: #2f7a28; }
.btn.danger { background: #e57373; color: #3b1010; border-color: #c62828; }
.btn.danger:hover { filter: brightness(1.05); }

.server-grid, .stats-grid, .tariff-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.server-card .row { display: flex; justify-content: space-between; gap: .65rem; align-items: flex-start; }
.server-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  flex-shrink: 0;
}
.server-card-name {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.server-meta {
  margin: .35rem 0 .15rem;
  font-size: .9rem;
  line-height: 1.35;
}
.server-players {
  margin: .15rem 0 .35rem;
  font-weight: 600;
  color: #b7d4c6;
}
.server-players-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  margin: .35rem 0 .55rem;
  padding: .55rem .7rem;
  border: 3px solid #6b3d22;
  border-radius: .4rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .4) inset,
    3px 3px 0 rgba(31, 45, 40, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(232, 246, 220, .8));
}
.server-players-card.is-on {
  border-color: rgba(47, 122, 40, .55);
  background: linear-gradient(135deg, rgba(93, 189, 58, .28), rgba(214, 245, 200, .9));
}
.server-players-card.is-off {
  border-color: rgba(180, 70, 70, .45);
  background: linear-gradient(135deg, rgba(255, 210, 210, .45), rgba(255, 245, 245, .92));
}
.server-players-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #3b536b;
}
.server-players-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #1a3d18;
}
.server-players-card.is-off .server-players-value { color: #9b1c1c; }
.server-players-card.is-on .server-players-value { color: #145214; }
.server-boot-progress {
  margin: .25rem 0 0;
  color: var(--accent2);
  font-weight: 600;
}
.server-balance-estimate {
  margin: .2rem 0 0;
  color: #4d6558;
}
.home-balance-summary {
  position: relative;
  z-index: 2;
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-radius: 0;
  border: 3px solid rgba(31, 45, 40, .18);
  background:
    linear-gradient(rgba(255, 252, 245, .96), rgba(255, 252, 245, .96)),
    url("/assets/ui/mc/blocks/iron.png") 0 0 / 20px 20px repeat;
  color: #1f2d28;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .12);
  image-rendering: pixelated;
}
.server-expiry { margin-top: .65rem; }
.connect-box {
  margin: .85rem 0 .35rem;
  padding: .85rem .95rem;
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 252, 245, .88), rgba(255, 252, 245, .88)),
    var(--block-tile, url("/assets/ui/mc/blocks/iron.png")) 0 0 / 20px 20px repeat;
  border: 3px solid rgba(31, 45, 40, .16);
  min-width: 0;
  image-rendering: pixelated;
}
.connect-box-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .75rem;
  margin-bottom: .7rem;
}
.connect-box-title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.connect-fields {
  display: grid;
  gap: .55rem;
  min-width: 0;
}
.connect-field { min-width: 0; }
.connect-label {
  display: block;
  margin-bottom: .28rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.connect-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: stretch;
  min-width: 0;
}
.connect-value {
  display: block;
  min-width: 0;
  margin: 0;
  padding: .55rem .7rem;
  border-radius: 0;
  background: rgba(255, 255, 255, .92);
  border: 2px solid rgba(31, 45, 40, .14);
  color: #1f6b22;
  font-size: .95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: all;
}
.connect-value-port {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.btn-copy {
  appearance: none;
  border: 2px solid #2f7a28;
  background: #5dbd3a;
  color: #0b2a12;
  border-radius: 0;
  padding: .45rem .85rem;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .12);
}
.btn-copy:hover { filter: brightness(1.1); }
.btn-copy.is-copied {
  background: rgba(62,207,142,.28);
  border-color: var(--accent);
  color: #dfffea;
}
.btn-copy-sm {
  padding: .45rem .7rem;
  align-self: stretch;
}
.connect code {
  font-size: 1.15rem; background: rgba(0,0,0,.25); padding: .35rem .55rem; border-radius: 8px;
  color: var(--accent);
}
.server-card { min-width: 0; position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.16,1,.3,1), border-color .22s ease, box-shadow .22s ease; }
.server-card:not(.block-card)[class*="accent-"] {
  background:
    linear-gradient(155deg, var(--tier-shine, rgba(255,255,255,.04)), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent),
    var(--card);
  border-color: var(--tier-edge, var(--line));
  box-shadow: 0 12px 34px rgba(0,0,0,.26), 0 0 18px var(--tier-glow, transparent);
}
.server-card:not(.block-card)[class*="accent-"]:hover {
  transform: translateY(-2px);
  border-color: var(--tier-edge-strong, var(--line));
  box-shadow: 0 16px 38px rgba(0,0,0,.3), 0 0 26px var(--tier-glow, transparent);
}
.server-tariff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem;
  margin: .55rem 0 .15rem;
}
.server-tariff-price {
  font-weight: 800;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: var(--tier-price, var(--accent));
}
.server-grid > .server-card {
  animation: tier-card-in .42s cubic-bezier(.16,1,.3,1) both;
}
.server-grid > .server-card:nth-child(1) { animation-delay: .02s; }
.server-grid > .server-card:nth-child(2) { animation-delay: .07s; }
.server-grid > .server-card:nth-child(3) { animation-delay: .12s; }
.server-grid > .server-card:nth-child(4) { animation-delay: .17s; }
.server-grid > .server-card:nth-child(5) { animation-delay: .22s; }
.server-grid > .server-card:nth-child(n+6) { animation-delay: .27s; }
@keyframes tier-card-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .server-grid > .server-card,
  .plan-grid > .plan-card { animation: none !important; }
  .plan-card, .server-card, .tariff.create-choice, .selected-tariff { transition: none !important; }
}

/* anime.js drives enter motion — disable CSS keyframes once ready */
html.anime-ready .server-grid > .server-card,
html.anime-ready .plan-grid > .plan-card {
  animation: none !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: .35rem .7rem; border-radius: 6px; background: #e8f0ea; color: var(--muted);
  white-space: nowrap;
  border: 2px solid rgba(31,45,40,.1);
}
.badge.ok { background: #d8f5c8; color: #1f6b22; }
.badge.warn { background: #ffe9b5; color: #8a5a00; }
.badge.bad { background: #ffd0d0; color: #9b1c1c; }
.badge.shared {
  background: #dcecff;
  color: #1f4f8a;
  text-transform: none;
  letter-spacing: .02em;
  font-weight: 700;
}
.badge.top-listing {
  background: linear-gradient(180deg, #ffe566, #e8b923);
  color: #3a2a05;
  border-color: #a67c12;
  text-decoration: none;
  text-transform: none;
  letter-spacing: .02em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  cursor: pointer;
}
.badge.top-listing:hover { filter: brightness(1.04); }
.badge.top-listing.is-hidden {
  background: linear-gradient(180deg, #f3d2b8, #e0b089);
  color: #4a2610;
  border-color: #a86a3a;
}
.top-listing-rate {
  opacity: .85;
  font-size: .68rem;
}
.listing-status {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin: 0 0 1rem;
  padding: .85rem .95rem;
  border-radius: .45rem;
  border: 3px solid rgba(107, 61, 34, .35);
  box-shadow: 3px 4px 0 rgba(31, 45, 40, .08);
}
.listing-status strong { color: #1a3d18; }
.listing-status p { margin: .25rem 0 0; }
.listing-status.is-on {
  background: linear-gradient(135deg, rgba(255, 236, 170, .55), rgba(214, 245, 200, .75));
  border-color: rgba(196, 146, 22, .55);
}
.listing-status.is-off {
  background: rgba(248, 252, 255, .85);
}
.listing-status.is-hidden {
  background: linear-gradient(135deg, rgba(255, 228, 210, .7), rgba(255, 244, 230, .85));
  border-color: rgba(180, 90, 40, .45);
}
.listing-status.is-hidden strong { color: #5a2a12; }
.listing-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.server-card.is-shared {
  border-color: rgba(120, 168, 220, .35);
}

.referral-card .referral-rules {
  margin: .85rem 0 1rem;
  display: grid;
  gap: .45rem;
}
.referral-card .referral-rules p {
  margin: 0;
  padding: .7rem .9rem;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid var(--line);
  line-height: 1.4;
}
.referral-share-actions {
  margin-top: .35rem;
}
.promo-card {
  border-top: 3px solid rgba(42, 111, 151, .35);
}
.referral-link {
  font-size: .95rem;
}
.referral-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.field { display: flex; flex-direction: column; gap: .35rem; margin: .9rem 0; }
.field-hint {
  font-size: .85rem;
  line-height: 1.35;
}
.field-hint.warn {
  color: #c62828 !important;
  font-weight: 800;
}
.mc-panel-body .field-hint.warn {
  color: #c62828 !important;
}
input.input-mismatch,
.form-input.input-mismatch {
  border-color: #d64545 !important;
  box-shadow: 0 0 0 2px rgba(214, 69, 69, .18);
}
.field label { font-weight: 700; font-size: .9rem; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field .form-input, .field .form-input:focus,
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field textarea, .field select {
  border: 2px solid rgba(31,45,40,.16); background: #fffef8; color: var(--text);
  border-radius: 10px; padding: .75rem .9rem; font-size: 1rem; outline: none;
  width: 100%;
}
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field .form-input:focus,
.field textarea:focus,
.field select:focus { border-color: #3f9e3a; }

/* Shared inputs outside .field (settings rename/port, etc.) */
.form-input,
input.form-input,
select.form-input,
textarea.form-input {
  border: 2px solid rgba(31,45,40,.16); background: #fffef8; color: var(--text);
  border-radius: 10px; padding: .75rem .9rem; font-size: 1rem; outline: none;
}
.form-input:focus,
input.form-input:focus,
select.form-input:focus,
textarea.form-input:focus { border-color: #3f9e3a; box-shadow: 0 0 0 2px rgba(63,158,58,.18); }
.form-input::placeholder { color: #7a9084; }

.tariff {
  text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 16px;
  background: #152921; color: var(--text); padding: 1rem; display: grid; gap: .25rem;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .2s ease, box-shadow .2s ease;
}
a.tariff:hover { text-decoration: none; color: var(--text); filter: brightness(1.05); }
.tariff.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(62,207,142,.25); }
.tariff span { color: var(--muted); font-size: .92rem; }
.tariff .tagline { color: var(--accent2); font-weight: 600; font-size: .9rem; }
.step-title { font-size: 1.05rem; margin: 1.25rem 0 .6rem; }

.tariff.create-choice {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, var(--tier-shine, rgba(255,255,255,.35)), transparent 48%),
    #fffaf0;
  border-color: var(--tier-edge, var(--line));
  box-shadow: 0 8px 22px rgba(40,70,50,.12);
}
.tariff.create-choice:hover {
  transform: translateY(-2px);
  filter: none;
  border-color: var(--tier-edge-strong, rgba(62,207,142,.4));
  box-shadow: 0 14px 28px rgba(0,0,0,.24), 0 0 0 1px var(--tier-glow, transparent);
}
.tariff.create-choice.selected {
  border-color: #2f8f3a;
  box-shadow: 0 0 0 3px rgba(47, 143, 58, .42), 0 14px 32px rgba(0, 0, 0, .28);
}

/* Showcase tariff cards — SHARED skin with server cards in mc-blocks.css (SYNC TIER SKIN) */
.plans-section { margin-top: 2.25rem; }
.plans-head { margin-bottom: 1.1rem; }
.plans-head h2 { margin: 0 0 .35rem; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.plan-card:not(.block-card) {
  appearance: none; width: 100%; text-align: left; color: var(--text);
  position: relative; overflow: hidden;
  border: 3px solid var(--tier-edge, var(--line)); border-radius: 10px; padding: 1.15rem 1.2rem;
  background:
    linear-gradient(155deg, var(--tier-shine, rgba(255,255,255,.35)), transparent 42%),
    var(--card);
  display: grid; gap: .65rem;
  box-shadow: 0 10px 30px rgba(40,70,50,.12);
  transition: transform .22s cubic-bezier(.16,1,.3,1), border-color .22s ease, box-shadow .22s ease;
  animation: tier-card-in .42s cubic-bezier(.16,1,.3,1) both;
}
.plan-grid > .plan-card:nth-child(1) { animation-delay: .02s; }
.plan-grid > .plan-card:nth-child(2) { animation-delay: .08s; }
.plan-grid > .plan-card:nth-child(3) { animation-delay: .14s; }
.plan-grid > .plan-card:nth-child(4) { animation-delay: .2s; }
.plan-grid > .plan-card:nth-child(5) { animation-delay: .26s; }
button.plan-card { cursor: pointer; font: inherit; }
a.plan-card { text-decoration: none; color: var(--text); cursor: pointer; }
a.plan-card:hover { text-decoration: none; color: var(--text); }
.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--tier-edge-strong, rgba(62,207,142,.4));
  box-shadow: 0 16px 36px rgba(0,0,0,.28), 0 0 24px var(--tier-glow, transparent);
}
.plan-card.selected {
  border-color: var(--tier-edge-strong, var(--accent));
  box-shadow: 0 0 0 2px var(--tier-ring, rgba(62,207,142,.28)), 0 14px 34px rgba(0,0,0,.3), 0 0 28px var(--tier-glow, transparent);
}
.plan-card::before,
.server-card::before,
.selected-tariff::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 2px;
  border-radius: 2px;
  opacity: var(--tier-beam, 0);
  background: var(--tier-beam-grad, transparent);
  pointer-events: none;
}
.plan-top { display: flex; justify-content: space-between; align-items: start; gap: .75rem; }
.plan-ore {
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
  padding: .2rem .55rem; border-radius: 999px; background: rgba(255,255,255,.06);
}
.server-tariff-row .plan-ore { font-size: .88rem; }
.ore-copper { color: #e8a87c; background: rgba(232,168,124,.12); }
.ore-iron { color: #c5d0dc; background: rgba(197,208,220,.12); }
.ore-mythril { color: #7fd0ff; background: rgba(127,208,255,.12); }
.ore-netherite { color: #d4a574; background: rgba(212,165,116,.14); }
.ore-zenith { color: #f0e6a8; background: rgba(240,230,168,.14); }
.plan-price { text-align: right; line-height: 1.1; }
.plan-price strong { font-size: 1.55rem; color: var(--tier-price, var(--accent)); }
.plan-price span { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.plan-discount {
  display: inline-block !important;
  margin-bottom: .2rem;
  padding: .12rem .45rem;
  border-radius: 6px;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  color: #1a3a2a !important;
  background: rgba(62, 207, 142, .9);
}
.plan-list-price {
  text-decoration: line-through;
  opacity: .75;
  font-weight: 600 !important;
}
.plan-tagline { margin: 0; color: var(--accent2); font-weight: 650; font-size: .95rem; }
.plan-desc { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; min-height: 3.9em; }
.plan-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.plan-specs li {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .4rem .55rem; border-radius: 8px; background: rgba(255,255,255,.7);
  font-size: .88rem;
  border: 1px solid rgba(31,45,40,.08);
}
.plan-specs span { color: var(--muted); }
.plan-specs strong { font-weight: 700; }
.plan-packs { display: flex; flex-wrap: wrap; gap: .35rem; }
.pack-chip {
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: .28rem .5rem; border-radius: 999px;
  background: rgba(62,207,142,.12); color: var(--accent);
  border: 1px solid rgba(62,207,142,.22);
}
.plan-cta { margin-top: .25rem; width: 100%; pointer-events: none; }
.create-form { margin-top: .5rem; }
.create-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: .35rem;
}
.create-head h1 { margin-bottom: .25rem; }
.suggest-server {
  margin-top: .75rem;
  padding-top: .35rem;
}
.suggest-server-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.create-start { margin: .85rem 0 1rem; }

.server-card.just-created {
  border-color: var(--tier-edge-strong, var(--accent));
  box-shadow: 0 0 0 2px var(--tier-ring, rgba(62,207,142,.28)), 0 12px 32px rgba(0,0,0,.28), 0 0 24px var(--tier-glow, transparent);
}

.selected-tariff:not(.block-card) {
  position: relative;
  overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.2rem; border-radius: 10px;
  border: 3px solid var(--tier-edge, var(--line));
  background:
    linear-gradient(155deg, var(--tier-shine, rgba(255,255,255,.35)), transparent 50%),
    #fffaf0;
  margin-bottom: .5rem;
  box-shadow: 0 12px 28px rgba(40,70,50,.12), 0 0 22px var(--tier-glow, transparent);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.selected-tariff-main { display: flex; gap: .9rem; align-items: flex-start; }
.selected-tariff-main .plan-tagline { margin: .25rem 0 .15rem; }
.selected-tariff-main p { margin: 0; }
.selected-tariff-price { color: var(--tier-price, var(--accent)); font-size: 1.15rem; }

/* Tier hierarchy: cheaper = quieter, premium = more glass + glow */
.accent-copper {
  --tier-shine: rgba(232,168,124,.09);
  --tier-edge: rgba(232,168,124,.28);
  --tier-edge-strong: rgba(232,168,124,.5);
  --tier-glow: rgba(232,168,124,.08);
  --tier-ring: rgba(232,168,124,.22);
  --tier-price: #e8a87c;
  --tier-beam: 0;
}
.accent-iron {
  --tier-shine: rgba(197,208,220,.1);
  --tier-edge: rgba(197,208,220,.32);
  --tier-edge-strong: rgba(197,208,220,.55);
  --tier-glow: rgba(180,198,220,.12);
  --tier-ring: rgba(197,208,220,.25);
  --tier-price: #d5dde6;
  --tier-beam: .35;
  --tier-beam-grad: linear-gradient(90deg, transparent, rgba(197,208,220,.55), transparent);
}
.accent-mythril {
  --tier-shine: rgba(127,208,255,.14);
  --tier-edge: rgba(127,208,255,.38);
  --tier-edge-strong: rgba(127,208,255,.62);
  --tier-glow: rgba(80,180,255,.18);
  --tier-ring: rgba(127,208,255,.28);
  --tier-price: #8fd8ff;
  --tier-beam: .55;
  --tier-beam-grad: linear-gradient(90deg, transparent, #7fd0ff, transparent);
}
.accent-netherite {
  --tier-shine: rgba(212,165,116,.16);
  --tier-edge: rgba(212,165,116,.42);
  --tier-edge-strong: rgba(240,180,100,.7);
  --tier-glow: rgba(212,140,70,.22);
  --tier-ring: rgba(212,165,116,.3);
  --tier-price: #e0b07a;
  --tier-beam: .7;
  --tier-beam-grad: linear-gradient(90deg, transparent, #d4a574, #f0b429, #d4a574, transparent);
}
.accent-zenith {
  --tier-shine: rgba(240,230,168,.18);
  --tier-edge: rgba(240,230,168,.48);
  --tier-edge-strong: rgba(240,230,168,.82);
  --tier-glow: rgba(240,210,120,.28);
  --tier-ring: rgba(240,230,168,.32);
  --tier-price: #f3e9b0;
  --tier-beam: .95;
  --tier-beam-grad: linear-gradient(90deg, transparent, #f0e6a8, #3ecf8e, #f0e6a8, transparent);
}
.plan-card.accent-mythril,
.server-card.accent-mythril,
.selected-tariff.accent-mythril {
  box-shadow: 0 12px 32px rgba(0,0,0,.24), 0 0 28px var(--tier-glow);
}
.plan-card.accent-netherite,
.server-card.accent-netherite,
.selected-tariff.accent-netherite {
  box-shadow: 0 14px 36px rgba(0,0,0,.28), 0 0 34px var(--tier-glow);
}
.plan-card.accent-zenith,
.server-card.accent-zenith,
.selected-tariff.accent-zenith {
  box-shadow: 0 16px 40px rgba(0,0,0,.32), 0 0 40px var(--tier-glow), inset 0 1px 0 rgba(255,255,255,.08);
}
.plan-card.accent-zenith .plan-cta,
.selected-tariff.accent-zenith .btn {
  box-shadow: 0 0 18px rgba(240,210,120,.2);
}

.form-card.wide { max-width: 960px; }
.form-card.wide .plan-grid { margin-bottom: .5rem; }


.stat { display: grid; gap: .25rem; }
.stat span { color: var(--muted); font-weight: 600; }
.stat strong { font-size: 1.8rem; }
.stat small { color: var(--muted); }

.stats-section { margin-top: 1.5rem; }
.stats-section h2 {
  margin: 0 0 .85rem; font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.revenue-bars { display: grid; gap: .55rem; max-width: 640px; }
.revenue-bar-row {
  display: grid; grid-template-columns: 5.5rem 1fr 5.5rem; gap: .65rem; align-items: center;
}
.revenue-bar-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.revenue-bar-track {
  height: .55rem; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden;
}
.revenue-bar-fill {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #2a9d6a, #3ecf8e);
  min-width: 0;
}
.revenue-bar-value { text-align: right; font-size: .9rem; }
.kind-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.kind-chip {
  display: flex; align-items: baseline; gap: .45rem;
  padding: .55rem .85rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card);
}
.kind-chip span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kind-chip strong { font-size: 1.15rem; }

.alert {
  background: #ffe4e4; border: 2px solid #e57373;
  color: #7a1f1f; padding: .75rem 1rem; border-radius: 10px; margin: .75rem 0;
}

.alert.ok {
  background: #e4f8d8; border: 2px solid #5dbd3a; color: #1f5a22;
}

.tiny-alert {
  margin: .5rem 0 0; padding: .55rem .7rem; font-size: .86rem; line-height: 1.35;
}

.admin-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .15rem 0 .55rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: rgba(62,207,142,.45) transparent;
}
.admin-tabs::-webkit-scrollbar { height: 5px; }
.admin-tabs::-webkit-scrollbar-thumb {
  background: rgba(62,207,142,.4);
  border-radius: 999px;
}
.admin-tabs .tab,
a.tab {
  appearance: none; border: 1px solid var(--line); background: #1a3229; color: var(--muted);
  border-radius: 999px; padding: .55rem 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}
.admin-tabs .tab:hover,
a.tab:hover { color: var(--text); text-decoration: none; }
.admin-tabs .tab.active,
a.tab.active { background: var(--accent); color: #062216; border-color: transparent; }

/* HyHost Control — dense ops admin */
.admin-ops { display: grid; gap: 1rem; }
.admin-ops-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.admin-ops-head h1 { margin: .15rem 0 .35rem; font-size: 1.55rem; }
.admin-ops-body { display: grid; gap: 1rem; min-width: 0; }

.admin-nav {
  display: grid;
  gap: .75rem;
  padding: .9rem 1rem 1rem;
  border: 3px solid #6b3d22;
  border-radius: 0;
  background:
    linear-gradient(160deg, #fffaf0 0%, #eef8ff 55%, #dff5c8 100%);
  box-shadow: 5px 5px 0 rgba(31, 45, 40, .14);
  position: relative;
  z-index: 2;
}
.admin-nav-group { display: grid; gap: .4rem; min-width: 0; }
.admin-nav-label {
  font-family: Oxanium, Nunito, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6a7f92;
}
.admin-nav-links {
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.admin-nav-links .tab,
a.tab.admin-nav-tab,
.admin-nav-links a.tab {
  appearance: none;
  border: 2px solid rgba(107, 61, 34, .28);
  background: rgba(255, 255, 255, .88);
  color: #1f2d28;
  border-radius: 0;
  padding: .48rem .9rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-family: Oxanium, Nunito, sans-serif;
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .1);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.admin-nav-links .tab:hover {
  color: #143018;
  text-decoration: none;
  background: #e7f8da;
  border-color: rgba(63, 158, 58, .55);
  transform: translateY(-1px);
}
.admin-nav-links .tab:active { transform: translateY(1px); box-shadow: 1px 1px 0 rgba(31, 45, 40, .12); }
.admin-nav-links .tab.active {
  background: linear-gradient(180deg, #86d155 0%, #63b437 46%, #47912a 100%);
  color: #fffef7;
  border-color: #3c7a22;
  text-shadow: 0 1px 0 rgba(26, 68, 16, .4);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .35),
    inset 0 -2px 0 rgba(28, 74, 18, .25),
    2px 2px 0 rgba(31, 45, 40, .12);
}
.admin-nav-links .tab .nav-badge {
  background: #2a6f28;
  color: #e8ffd8;
  min-width: 1.15rem;
  height: 1.15rem;
  font-size: .68rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .3rem;
}
.admin-nav-links .tab.active .nav-badge {
  background: rgba(255, 255, 255, .3);
  color: #fffef7;
}

.admin-alert-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.admin-alert {
  display: inline-flex; align-items: baseline; gap: .55rem;
  padding: .7rem .95rem; border-radius: 12px; border: 1px solid var(--line);
  text-decoration: none; color: inherit; background: var(--card);
  transition: border-color .18s ease, transform .18s ease;
}
.admin-alert:hover { text-decoration: none; border-color: rgba(62,207,142,.4); transform: translateY(-1px); }
.admin-alert strong { font-size: 1.25rem; }
.admin-alert.warn { border-color: rgba(240,180,41,.4); background: rgba(240,180,41,.08); }
.admin-alert.danger { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); }

.admin-kpi-grid { gap: .75rem; }
.admin-kpi {
  text-decoration: none; color: inherit; padding: .9rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
  cursor: pointer;
}
a.admin-kpi:hover { text-decoration: none; border-color: rgba(63,158,58,.45); transform: translateY(-1px); background: #f3f9ec; }
button.admin-kpi-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
  width: 100%; text-align: left; font: inherit; appearance: none;
  background: var(--card); color: var(--text);
}
button.admin-kpi-btn:hover { border-color: rgba(63,158,58,.45); transform: translateY(-1px); background: #f3f9ec; }

.revenue-modal {
  max-width: min(920px, 96vw); width: 100%; max-height: 86vh; overflow: auto;
  background: linear-gradient(160deg, #fffef8 0%, #f3f9ec 55%, #e8f5dc 100%);
  border: 1px solid rgba(31, 45, 40, .14);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 18px 48px rgba(31, 45, 40, .18);
  color: var(--text);
}
.revenue-modal-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.revenue-modal-head h2 { margin: 0; color: #1f2d28; font-size: 1.35rem; }
.revenue-granularity { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.revenue-periods { display: grid; gap: .65rem; }
.revenue-period {
  border: 1px solid rgba(31, 45, 40, .12);
  border-radius: 12px;
  padding: .55rem .75rem;
  background: rgba(255, 255, 255, .72);
}
.revenue-period summary {
  cursor: pointer; display: flex; flex-wrap: wrap; gap: .35rem .85rem; align-items: baseline;
  list-style: none; color: var(--text);
}
.revenue-period summary::-webkit-details-marker { display: none; }
.revenue-period summary strong { color: #1f2d28; }
.revenue-table { font-size: .9rem; color: var(--text); }
.revenue-table th, .revenue-table td { white-space: nowrap; }
.revenue-table td:last-child { white-space: normal; max-width: 22rem; }
.revenue-row-failed td { background: rgba(214, 69, 69, .06); }
.revenue-fail-reason { color: #b83232; font-size: .88rem; line-height: 1.35; }
.badge.ok { background: rgba(63,158,58,.16); color: #2f7a28; }
.badge.bad { background: rgba(214, 69, 69, .14); color: #b83232; }
.admin-kpi.accent-warn { border-color: rgba(240,180,41,.35); }
.admin-kpi span { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-kpi strong { font-size: 1.55rem; line-height: 1.1; }
.admin-kpi strong.kpi-pair {
  display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap;
  font-size: 1.55rem;
}
.admin-kpi strong.kpi-pair > span { font-size: inherit; text-transform: none; letter-spacing: 0; font-weight: 700; color: inherit; }
.admin-kpi strong.kpi-pair .kpi-pair-sep { font-weight: 500; opacity: .45; }
.admin-kpi small { font-size: .8rem; }
.kpi-ok { color: var(--accent); font-style: normal; font-weight: 700; }

.admin-overview-grid {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.admin-panel-card {
  margin: 0; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
}
.admin-panel-card h2 { margin: 0 0 .85rem; }
.admin-subhead { margin: 1rem 0 .55rem; font-size: .92rem; color: var(--muted); }
.admin-quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.admin-toolbar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.admin-toolbar h2 { margin: 0; font-size: 1.2rem; }
.admin-toolbar .muted { margin: .2rem 0 0; }
.admin-toolbar-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; justify-content: flex-end; }
.admin-search { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.admin-search .form-input { min-width: 12rem; max-width: 18rem; }
.admin-select { min-width: 7.5rem !important; max-width: 9rem !important; }
.admin-table-wrap { border-radius: 14px; }
.admin-table-dense th, .admin-table-dense td { padding: .55rem .7rem; }
.admin-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-login { font-size: .9rem; }
.admin-table tr.row-expiring td { background: rgba(240,180,41,.06); }
.text-warn { color: var(--accent2); font-weight: 700; }
.text-ok { color: var(--accent); font-weight: 700; }

.admin-push-board { display: grid; gap: 1rem; }
.admin-push-board h3 { margin: 0 0 .35rem; font-size: 1.02rem; }
.admin-push-status {
  display: grid; gap: .75rem; margin-top: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.admin-push-status > div {
  display: grid; gap: .15rem; align-content: start;
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px;
}
.admin-push-status strong { font-size: 1.05rem; }
.admin-push-form {
  display: grid; gap: .7rem; margin-top: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.admin-push-actions {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .85rem;
}
.admin-push-confirm {
  display: flex; gap: .55rem; align-items: flex-start;
  margin-top: .75rem; font-size: .92rem; cursor: pointer;
}
.admin-push-confirm input { margin-top: .2rem; }
.admin-push-form .field.grow { grid-column: 1 / -1; }
.admin-push-body { max-width: 32rem; word-break: break-word; }
.admin-push-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin: .15rem 0 .7rem;
}
.admin-push-tabs .tab { padding: .4rem .85rem; font-size: .88rem; }
.admin-push-tabs .tab .nav-badge {
  margin-left: .4rem; min-width: 1.15rem; padding: 0 .3rem;
  border-radius: 999px; background: rgba(255,255,255,.12);
  font-size: .72rem; font-weight: 800; line-height: 1.35; text-align: center;
}
.admin-push-tabs .tab.active .nav-badge { background: rgba(6,34,22,.18); color: #062216; }
.admin-push-older {
  appearance: none; margin-left: .35rem; padding: 0 .4rem;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.1);
  color: var(--muted); font: inherit; font-size: .72rem; font-weight: 700;
  cursor: pointer;
}
.admin-push-older:hover { color: var(--text); }
.admin-push-older:disabled { opacity: .55; cursor: default; }

@media (max-width: 900px) {
  .admin-overview-grid { grid-template-columns: 1fr; }
}

.admin-list { display: grid; gap: .85rem; }
.admin-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem;
}
.admin-card .row { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.admin-note {
  padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--muted); line-height: 1.5;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.row-banned td { opacity: .72; }
.admin-user-actions {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end;
}
.admin-user-actions .inline-form { display: inline; margin: 0; }
.btn.danger {
  border-color: rgba(255,107,107,.45);
  color: #ffd3d3;
  background: rgba(255,107,107,.12);
}

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center;
  z-index: 50; padding: 1rem;
}
.modal {
  width: min(520px, 100%); max-height: 90vh; overflow: auto;
  background: #173028; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.modal h2 { margin-top: 0; }
.confirm-modal .actions { margin-top: 1.1rem; justify-content: flex-end; }
.back-link { display: inline-block; margin-bottom: .35rem; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.manage-card h2 { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.manage-card h2:first-child { margin-top: 0; }
.manage-card .danger-title { color: #b83232; }
.startup-form { max-width: 640px; }
.startup-motd {
  min-height: 110px; resize: vertical; line-height: 1.45;
  font-family: inherit;
}
.invite-create-form { max-width: 760px; margin-bottom: 1.5rem; }
.member-card { flex-direction: column; align-items: stretch; gap: .75rem; }
.member-perms-form { display: grid; gap: .75rem; }
.invite-perms { margin: 1rem 0 1.35rem; display: grid; gap: .55rem; }

.perm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .75rem;
}
@media (min-width: 720px) {
  .perm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.perm-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  padding: .55rem .7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: #1f2d28;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.perm-item input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem;
  margin: 0;
  padding: 0 !important;
  border: none !important;
  border-radius: 4px !important;
  flex-shrink: 0;
  accent-color: var(--accent);
  background: transparent !important;
  box-shadow: none !important;
}
.perm-item-text {
  line-height: 1.25;
  font-size: .92rem;
  color: #1f2d28;
}
.perm-item:hover {
  border-color: rgba(63, 158, 58, .45);
  background: #eef8e8;
}
.perm-item:has(input:checked) {
  border-color: #3f9e3a;
  background: rgba(63, 158, 58, .2);
  box-shadow: 0 0 0 1px rgba(63, 158, 58, .22);
}
.perm-item:has(input:checked) .perm-item-text {
  color: #14521a;
  font-weight: 800;
}

.perm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.perm-tag {
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 158, 58, .4);
  background: rgba(63, 158, 58, .16);
  color: #14521a;
  font-size: .85rem;
  font-weight: 700;
}

.backup-wait-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 14, 10, .72); backdrop-filter: blur(4px);
}
.backup-wait-overlay[hidden] { display: none !important; }
.backup-wait-card {
  width: min(420px, 92vw); padding: 1.5rem 1.35rem;
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.backup-wait-spinner {
  width: 42px; height: 42px; margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(62,207,142,.2);
  border-top-color: var(--accent);
  animation: backup-spin .8s linear infinite;
}
.backup-wait-title { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 800; }
.backup-wait-text { margin: 0; color: var(--muted); line-height: 1.45; }
@keyframes backup-spin { to { transform: rotate(360deg); } }

.dw-dialog-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(4, 14, 10, .72); backdrop-filter: blur(4px);
}
.dw-dialog-backdrop[hidden] { display: none !important; }
.dw-dialog {
  width: min(440px, 100%);
  background: linear-gradient(180deg, #1a322a, #142820);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.dw-dialog.is-prompt {
  width: min(560px, 100%);
  padding: 1.5rem 1.55rem 1.3rem;
}
.dw-dialog-title {
  margin: 0 0 .55rem;
  font-size: 1.25rem;
  font-weight: 800;
}
.dw-dialog-text {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}
.dw-dialog-field { margin: 0 0 1.15rem; }
.dw-dialog-label {
  display: block; margin-bottom: .45rem; font-weight: 700; font-size: .92rem;
}
.dw-dialog-textarea {
  display: block; width: 100%; min-height: 120px; resize: vertical;
  border: 1px solid var(--line); background: #12241e; color: var(--text);
  border-radius: 14px; padding: .9rem 1rem; font-size: 1rem; line-height: 1.45;
  outline: none; font-family: inherit;
}
.dw-dialog-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(62,207,142,.18); }
.dw-dialog-textarea::placeholder { color: #6f8a7d; }
.dw-dialog-hint { display: block; margin-top: .5rem; }
.dw-dialog-actions {
  display: flex; justify-content: flex-end; gap: .55rem; flex-wrap: wrap;
}
.dw-dialog-actions .btn { min-width: 6.5rem; }
.modal-backdrop[hidden] { display: none !important; }

/* Manage server shell — HyHost light + dark console */
.shell:has(.pterodactyl-shell) { max-width: 1280px; }

.pterodactyl-shell { display: grid; gap: 1rem; }
.ptero-top {
  display: flex; justify-content: space-between; gap: 1.1rem; align-items: flex-end;
  flex-wrap: wrap;
  padding: 1.05rem 1.25rem 1.15rem;
  border-radius: 16px;
  border: 2px solid rgba(107, 61, 34, .28);
  background:
    linear-gradient(165deg, rgba(255, 252, 245, .97) 0%, rgba(236, 248, 228, .94) 55%, rgba(210, 236, 200, .9) 100%);
  box-shadow:
    0 10px 28px rgba(30, 50, 40, .14),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}
.ptero-top-left { min-width: 0; flex: 1 1 14rem; }
.ptero-title-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .75rem;
  margin: .15rem 0 .35rem;
}
.ptero-top h1 {
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #163528;
}
.ptero-title-row .badge { flex: 0 0 auto; }
.ptero-connect {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem;
  margin: 0; font-size: .88rem; font-weight: 650; color: var(--muted);
}
.ptero-game {
  padding: .2rem .55rem;
  border-radius: 6px;
  background: rgba(63, 158, 58, .12);
  border: 1px solid rgba(63, 158, 58, .22);
  color: #1f6b22;
  font-weight: 750;
  font-size: .78rem;
}
.ptero-addr {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .86rem;
  color: #2a4036;
  letter-spacing: .01em;
}
.ptero-top-right,
.ptero-power {
  display: flex; gap: .45rem; align-items: center; flex-wrap: wrap;
}
.ptero-power .power-btn {
  min-width: 5.4rem;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ptero-power .power-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 50, 40, .16);
}
.ptero-power .power-btn:active { transform: none; }

.ptero-body {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  min-height: 540px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(107, 61, 34, .22);
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 12px 32px rgba(30, 50, 40, .12);
}
.ptero-nav {
  display: flex; flex-direction: column; gap: .3rem;
  padding: .85rem .6rem;
  background:
    linear-gradient(180deg, rgba(232, 245, 220, .95), rgba(214, 232, 200, .88));
  border-right: 2px solid rgba(107, 61, 34, .14);
}
.ptero-nav a {
  color: #3a5548;
  text-decoration: none;
  font-weight: 750;
  font-size: .92rem;
  padding: .72rem .9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  cursor: pointer;
}
.ptero-nav a:hover {
  color: #163528;
  background: rgba(255, 255, 255, .55);
  text-decoration: none;
}
.ptero-nav a.active {
  color: var(--on-accent);
  background: linear-gradient(180deg, #4cb348, #3f9e3a);
  border-color: rgba(40, 100, 40, .35);
  box-shadow: 0 2px 0 rgba(40, 90, 40, .25), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.ptero-nav a.active:hover { color: var(--on-accent); filter: brightness(1.03); }
.ptero-content {
  padding: 0; min-width: 0;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, .5), rgba(248, 250, 242, .35));
}

.console-wrap {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
  padding: .85rem .95rem 1rem;
  gap: .7rem;
}
.console-panel {
  display: flex; flex-direction: column;
  flex: 1; min-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(20, 40, 30, .35);
  background: #0b1410;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(20, 40, 30, .18);
}
.console-toolbar {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid rgba(120, 180, 140, .12);
  background: linear-gradient(180deg, #13221b, #0e1a15);
}
.console-toolbar-hint {
  font-size: .78rem;
  font-weight: 650;
  color: rgba(180, 210, 190, .65);
}
.console-live-status {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .65rem; border-radius: 6px;
  border: 1px solid rgba(120, 180, 140, .2);
  color: rgba(180, 210, 190, .7);
  background: #0a1612;
}
.console-live-status.is-live {
  color: #0b2a12;
  background: #5fd36a;
  border-color: transparent;
  animation: console-pulse 1.8s ease-in-out infinite;
}
.console-live-status.is-dead {
  color: #ffc9c9;
  border-color: rgba(200, 80, 80, .45);
  background: #3a1818;
}
@keyframes console-pulse {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 0 0 rgba(95, 211, 106, .35); }
  50% { filter: brightness(1.08); box-shadow: 0 0 0 4px rgba(95, 211, 106, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .console-live-status.is-live { animation: none; }
  .ptero-power .power-btn { transition: none; }
  .ptero-nav a { transition: none; }
}
.console-output {
  flex: 1; margin: 0; padding: .9rem 1.05rem;
  background: #070e0b;
  color: #b8ecc8;
  font-family: "Cascadia Mono", "Consolas", "Courier New", ui-monospace, monospace;
  font-size: .825rem; line-height: 1.45;
  overflow: auto; white-space: pre-wrap; word-break: break-word;
  border: none; min-height: 400px; max-height: 62vh;
  tab-size: 4;
}
.console-input-row {
  display: flex; gap: .55rem; align-items: center;
  padding: .7rem .85rem .8rem;
  border-top: 1px solid rgba(120, 180, 140, .12);
  background: #0f1c17;
}
.console-prompt {
  color: #5fd36a;
  font-weight: 800;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.05rem;
}
.console-input {
  flex: 1;
  border: 1px solid rgba(120, 180, 140, .22);
  background: #0a1410;
  color: #e8f7ee;
  border-radius: 10px;
  padding: .7rem .85rem;
  font-family: ui-monospace, Consolas, monospace;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.console-input::placeholder { color: rgba(180, 210, 190, .45); }
.console-input:focus {
  border-color: #5fd36a;
  box-shadow: 0 0 0 2px rgba(95, 211, 106, .2);
}

.files-panel { padding: 1rem 1.15rem 1.3rem; display: grid; gap: .9rem; }
.files-toolbar {
  display: flex; justify-content: space-between; gap: .85rem; flex-wrap: wrap; align-items: center;
  padding: .8rem .95rem;
  border: 2px solid rgba(107, 61, 34, .16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 245, .98), rgba(236, 248, 228, .9));
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-weight: 700; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.crumb-root { opacity: .95; }
.crumb-sep { color: var(--muted); font-weight: 600; }
.files-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.mkdir-group { display: flex; gap: .45rem; align-items: center; }
.mkdir-input { width: min(180px, 42vw); padding: .55rem .7rem; border-radius: 10px; }

.upload-btn {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border-radius: 10px; cursor: pointer; overflow: hidden;
  border: 2px solid rgba(63, 158, 58, .4);
  background: linear-gradient(180deg, rgba(63, 158, 58, .16), rgba(63, 158, 58, .08));
  color: #1f6b22; font-weight: 750; font-size: .9rem;
  user-select: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.upload-btn:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(63, 158, 58, .24), rgba(63, 158, 58, .12));
  text-decoration: none;
}
.upload-btn.is-disabled { opacity: .55; pointer-events: none; }
.upload-hint { margin: 0; }
.upload-input-hidden-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.dw-upload-dock {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1200;
  width: min(380px, calc(100vw - 1.6rem));
  display: grid;
  gap: .65rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  border: 2px solid rgba(107, 61, 34, .28);
  background: linear-gradient(180deg, rgba(255, 252, 245, .98), rgba(232, 245, 220, .96));
  box-shadow: 0 16px 40px rgba(30, 50, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .75);
  color: var(--text);
  animation: dw-upload-in .28s ease;
}
.dw-upload-dock[hidden] { display: none !important; }
@keyframes dw-upload-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.dw-upload-dock-head {
  display: flex; justify-content: space-between; gap: .75rem; align-items: baseline;
}
.dw-upload-dock-head strong { font-size: .95rem; }
.dw-upload-dock-sub {
  color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%;
}
.dw-upload-dock-list { display: grid; gap: .7rem; max-height: 42vh; overflow: auto; }
.dw-upload-row { display: grid; gap: .32rem; }
.dw-upload-row-top {
  display: flex; justify-content: space-between; gap: .6rem; align-items: baseline;
}
.dw-upload-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem;
}
.dw-upload-pct { color: var(--muted); font-size: .78rem; flex-shrink: 0; }
.dw-upload-track {
  height: 9px; border-radius: 999px; background: rgba(31, 45, 40, .1); overflow: hidden;
  position: relative;
}
.dw-upload-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #2f9e6b, #7dffb8, #2f9e6b);
  background-size: 200% 100%;
  animation: dw-upload-shine 1.2s linear infinite;
  transition: width .12s ease;
}
@keyframes dw-upload-shine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.dw-upload-row.done .dw-upload-bar {
  animation: none;
  background: #3dbf7e;
}
.dw-upload-row.error .dw-upload-bar {
  animation: none;
  background: #c45c5c;
}
.dw-upload-row-meta {
  display: flex; justify-content: space-between; gap: .6rem;
  color: var(--muted); font-size: .75rem;
}
.dw-upload-bytes, .dw-upload-speed { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.upload-progress-panel {
  display: grid; gap: .55rem;
  padding: .75rem .9rem;
  border: 2px solid rgba(107, 61, 34, .16);
  border-radius: 14px;
  background: rgba(255, 252, 245, .9);
}
.upload-progress-row { display: grid; gap: .35rem; }
.upload-progress-meta {
  display: flex; justify-content: space-between; gap: .75rem; align-items: baseline;
}
.upload-progress-meta strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem;
}
.upload-progress-track {
  height: 8px; border-radius: 999px; background: rgba(31, 45, 40, .1); overflow: hidden;
}
.upload-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #2f9e6b, #5fd39a);
  transition: width .15s ease;
}
.upload-progress-row.error .upload-progress-bar { background: #c45c5c; }
.upload-progress-row.done .upload-progress-bar { background: #3dbf7e; }

.files-list {
  border: 2px solid rgba(107, 61, 34, .16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 252, 245, .96);
}
.files-list-head, .file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 170px;
  gap: .75rem; align-items: center;
  padding: .7rem .95rem;
}
.files-list-head {
  color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 750;
  border-bottom: 1px solid rgba(107, 61, 34, .12);
  background: rgba(232, 245, 220, .65);
}
.file-row { border-bottom: 1px solid rgba(107, 61, 34, .08); transition: background .15s ease; }
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: rgba(63, 158, 58, .06); }
.file-row-up { text-decoration: none; color: inherit; }
.file-main { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.file-name {
  font-weight: 700; color: var(--text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.file-name:hover, button.file-name:hover { color: var(--accent); }
.file-sub { font-size: .78rem; }
.file-size { font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--muted); }
.file-row-actions { display: flex; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.file-badge {
  flex: 0 0 auto; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .15rem .45rem; border-radius: 6px; border: 1px solid rgba(31, 45, 40, .12); color: var(--muted);
  background: rgba(255, 255, 255, .6);
}
.file-badge.muted-badge { opacity: .75; }
.file-icon {
  width: 2rem; height: 2rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: rgba(63, 158, 58, .12); color: #2a8a32;
  border: 1px solid rgba(63, 158, 58, .18);
}
.file-icon-dir { background: rgba(226, 184, 91, .22); color: #8a5a00; border-color: rgba(226, 184, 91, .35); }
.file-icon-json { background: rgba(63, 158, 58, .18); color: #1f6b22; }
.file-icon-config { background: rgba(126, 200, 255, .22); color: #1f4f8a; border-color: rgba(126, 200, 255, .35); }
.file-icon-text { background: rgba(31, 45, 40, .06); color: #4d6558; }
.file-icon-archive { background: rgba(180, 140, 220, .18); color: #5a3a8a; border-color: rgba(180, 140, 220, .3); }
.file-icon-bin { background: rgba(255, 155, 155, .18); color: #9b1c1c; border-color: rgba(255, 155, 155, .3); }
.file-icon-up { background: rgba(31, 45, 40, .05); color: var(--muted); }
.files-empty {
  padding: 2rem 1rem; text-align: center; color: var(--muted);
  border: 2px dashed rgba(107, 61, 34, .22); border-radius: 14px;
  background: rgba(255, 252, 245, .6);
}

.file-editor-shell {
  display: grid; gap: 0;
  border: 2px solid rgba(107, 61, 34, .2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 252, 245, .96);
}
.file-editor-top {
  display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: center;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(107, 61, 34, .12);
  background: linear-gradient(180deg, rgba(236, 248, 228, .95), rgba(255, 252, 245, .9));
}
.file-editor-meta { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.file-editor-name { display: block; font-size: 1rem; }
.file-editor-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.file-editor-hint { margin: 0; padding: .65rem 1rem .9rem; }
.file-textarea {
  width: 100%; min-height: 480px; resize: vertical; border: none; border-radius: 0;
  background: #0b1410; color: #d7ffe8;
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: .86rem; line-height: 1.45;
  padding: 1rem 1.1rem; outline: none;
}
.file-textarea:focus { box-shadow: inset 0 0 0 2px rgba(95, 211, 106, .35); }

.files-table { width: 100%; border-collapse: collapse; }
.files-table th, .files-table td {
  text-align: left; padding: .65rem .55rem; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.files-table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.linkish {
  appearance: none; border: none; background: none; color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-align: left;
}
.linkish:hover { color: var(--accent); }
.tiny-btn { padding: .35rem .7rem; font-size: .8rem; }

@media (max-width: 800px) {
  /* Always show actions on touch — hover/focus-within reveal expands over the next row
     and the next tap hits the previous file's Delete button. */
  .files-list-head { grid-template-columns: minmax(0, 1fr) 64px; }
  .files-list-head span:last-child { display: none; }
  .file-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .file-size { display: none; }
  .file-row-actions {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    gap: .3rem;
  }
  .file-row-actions .tiny-btn {
    padding: .4rem .55rem;
    font-size: .75rem;
    min-height: 2.25rem;
  }
}

.settings-panel { padding: 1.2rem 1.3rem 1.4rem; }
.settings-panel h2 {
  margin: 1.25rem 0 .55rem;
  font-size: 1.05rem;
  font-family: var(--brand-font);
  color: #163528;
}
.settings-panel h2:first-child { margin-top: 0; }
.settings-panel .danger-title { color: #b83232; }
.rename-form { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.rename-form .form-input { flex: 1; min-width: 180px; }
.port-form { display: flex; flex-direction: column; gap: .65rem; max-width: 420px; }
.port-form .port-row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.port-form .port-row .form-input { flex: 1; min-width: 120px; max-width: 160px; }
.port-price { color: #b87a00; font-weight: 700; }

.stats-row {
  display: flex; gap: .55rem; flex-wrap: wrap;
  padding: 0;
}
.stat-chip {
  display: inline-flex; align-items: baseline; gap: .35rem;
  background: linear-gradient(180deg, rgba(255, 252, 245, .98), rgba(236, 248, 228, .92));
  border: 2px solid rgba(107, 61, 34, .14);
  border-radius: 10px;
  padding: .5rem .85rem;
  font-size: .85rem;
  font-weight: 650;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.stat-chip .stat-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5a7366;
}
.stat-chip strong {
  color: #1f6b22;
  margin-left: 0;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .92rem;
}
.row-card {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  padding: .75rem 0; border-bottom: 1px solid rgba(107, 61, 34, .1);
}

@media (max-width: 800px) {
  .ptero-body {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    min-height: 0;
  }
  .ptero-nav {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .ptero-nav a,
  .ptero-nav a.active {
    flex: 0 0 auto;
    align-self: center;
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.soft-hr { border: 0; border-top: 1px solid rgba(107, 61, 34, .14); margin: 1.25rem 0; }
.checks { display: grid; gap: .45rem; }
.check { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; cursor: pointer; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ===== Mobile / tablet ===== */
@media (max-width: 860px) {
  .shell {
    padding: .75rem .85rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(.85rem, env(safe-area-inset-right, 0px));
  }

  .top {
    flex-direction: row;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.1rem;
    padding-bottom: .9rem;
    padding-left: .45rem;
    padding-right: .45rem;
  }
  .top-left {
    flex: 0 0 auto;
    gap: .45rem;
  }
  .top-right {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }
  /* Mobile: keep HH mark only — full name collides with profile chip */
  .brand-text { display: none; }
  .brand { gap: 0; }
  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    font-size: .52rem;
  }
  .user-account-stack {
    max-width: min(100%, 13.5rem);
    margin-left: auto;
  }
  .profile-bar {
    max-width: 100%;
  }
  .nav-burger { display: inline-flex; }
  .desktop-nav { display: none !important; }
  .desktop-only-link { display: none !important; }
  a.btn.game.top-login-btn { display: none !important; }

  .balance-chip {
    padding: .28rem .3rem .28rem .55rem;
  }
  .balance-chip strong { font-size: .9rem; }

  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .page-head .actions,
  .page-head .btn { width: 100%; }

  .hero-card, .form-card, .server-card, .stat, .admin-card {
    padding: 1rem 1.05rem;
    border-radius: 14px;
  }
  .form-card, .form-card.wide, .promo-page-card {
    max-width: none;
  }

  .plan-grid,
  .server-grid,
  .stats-grid,
  .tariff-grid {
    grid-template-columns: 1fr;
  }
  .plan-desc { min-height: 0; }
  .plan-price strong { font-size: 1.35rem; }

  .selected-tariff {
    flex-direction: column;
    align-items: stretch;
  }
  .selected-tariff .btn { width: 100%; }

  .actions { gap: .5rem; }
  .actions .btn { flex: 1 1 auto; min-height: 2.75rem; }

  .btn {
    padding: .8rem 1.05rem;
    min-height: 2.75rem;
  }

  .admin-tabs {
    margin-left: -.15rem;
    margin-right: -.15rem;
    padding-left: .15rem;
    padding-right: .15rem;
  }
  .admin-tabs .tab {
    padding: .65rem .9rem;
    font-size: .88rem;
  }

  .admin-table { font-size: .85rem; }
  .admin-table th, .admin-table td { padding: .6rem .65rem; }
  .admin-user-actions { justify-content: flex-start; }

  .modal-backdrop { padding: .65rem; align-items: end; }
  .modal {
    width: 100%;
    max-height: min(92vh, 100%);
    border-radius: 16px 16px 12px 12px;
    padding: 1.1rem;
  }

  .ptero-top {
    padding: .95rem 1rem 1.05rem;
    align-items: flex-start;
  }
  .ptero-top h1 { font-size: 1.28rem; }
  .ptero-top-right,
  .ptero-power {
    width: 100%;
  }
  .ptero-top-right .btn,
  .ptero-power .btn { flex: 1 1 auto; }

  .ptero-body {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    min-height: 0;
    border-radius: 14px;
  }
  .ptero-nav {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    align-self: stretch;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: .35rem;
    padding: .65rem;
    border-right: none;
    border-bottom: 2px solid rgba(107, 61, 34, .14);
  }
  .ptero-nav a,
  .ptero-nav a.active {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: .65rem .8rem;
    font-size: .88rem;
  }

  .console-wrap { padding: .7rem .75rem .85rem; }
  .console-panel { min-height: 400px; }
  .console-toolbar { flex-wrap: wrap; }
  .file-textarea { min-height: 320px; font-size: .8rem; }
  .file-editor-top { flex-direction: column; align-items: stretch; }
  .file-editor-actions .btn { flex: 1; }

  .topup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rename-form .form-input,
  .port-form .port-row .form-input { max-width: none; min-width: 0; width: 100%; }

  .perm-grid { grid-template-columns: 1fr; }
  .connect-value { font-size: .9rem; }
  .btn-copy-sm { font-size: .72rem; padding: .4rem .55rem; }
}

@media (max-width: 420px) {
  .brand-mark { width: 2rem; height: 2rem; font-size: .5rem; }
  .user-account-stack { max-width: min(100%, 12.25rem); }
  .topup-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .stats-grid .stat small { font-size: .75rem; }
}

/* Support tickets */
.support-list { display: grid; gap: .65rem; }
.support-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.support-card:hover { border-color: rgba(62,207,142,.4); text-decoration: none; }
.support-card.has-unread {
  border-color: rgba(232,93,76,.45);
  background: linear-gradient(135deg, rgba(232,93,76,.08), var(--card));
}
.support-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: .25rem;
}
.support-compose .field,
.support-reply .field { margin-bottom: .85rem; }
.support-textarea { resize: vertical; min-height: 6rem; }
.support-thread-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem;
}
.support-admin-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.support-messages {
  display: flex; flex-direction: column; gap: .65rem;
  margin-bottom: 1.1rem;
}
.support-bubble {
  max-width: min(720px, 100%);
  padding: .75rem .95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.support-bubble.user { align-self: flex-start; }
.support-bubble.staff {
  align-self: flex-end;
  background: rgba(62,207,142,.1);
  border-color: rgba(62,207,142,.28);
}
.support-bubble-meta {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  margin-bottom: .35rem; font-size: .78rem; color: var(--muted);
}
.support-bubble-meta-right {
  display: inline-flex; align-items: center; gap: .45rem;
}
.msg-edit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.55rem; height: 1.55rem;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  line-height: 0;
}
.msg-edit-btn:hover {
  color: var(--accent);
  border-color: rgba(62,207,142,.35);
  background: rgba(62,207,142,.1);
  text-decoration: none;
}
.support-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.support-compose-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
  margin-top: .35rem;
}
.attach-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
  font-size: .9rem;
  user-select: none;
}
.attach-btn:hover { color: var(--accent); border-color: rgba(62,207,142,.4); }
.attach-btn[data-filled="1"] {
  color: var(--accent);
  border-color: rgba(62,207,142,.45);
  background: rgba(62,207,142,.1);
}
.attach-input {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0,0,0,0);
}
.attach-icon { display: inline-flex; line-height: 0; }
.support-attach-preview {
  display: block;
  margin-top: .65rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: min(420px, 100%);
}
.support-attach-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  background: rgba(0,0,0,.25);
}

.social-links {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: .1rem;
}
.social-btn {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .12s ease;
}
.social-btn:hover {
  text-decoration: none;
  color: var(--text);
  border-color: rgba(62,207,142,.4);
  background: rgba(62,207,142,.1);
  transform: translateY(-1px);
}
.social-btn.social-vk:hover { color: #8ab4ff; border-color: rgba(138,180,255,.45); background: rgba(70,110,200,.15); }
.social-btn.social-tg:hover { color: #6ec9ff; border-color: rgba(110,201,255,.45); background: rgba(40,150,220,.15); }
.social-btn.social-yt:hover { color: #ff7b7b; border-color: rgba(255,80,80,.5); background: rgba(220,40,40,.14); }

.impersonate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.55rem 1rem;
  background: #3a2c18;
  border-bottom: 1px solid #6a4e24;
  color: #ffd7a8;
  font-size: 0.92rem;
  text-align: center;
}
.impersonate-bar .btn {
  border-color: #6a4e24;
  background: #2a2114;
  color: #ffd7a8;
}

/* Desktop: horizontal header, no drawer */
@media (min-width: 861px) {
  .nav-burger { display: none !important; }
  .side-drawer,
  .nav-scrim { display: none !important; }
  .desktop-nav { display: flex !important; }
  .desktop-only-link { display: inline !important; }
  a.btn.game.top-login-btn { display: inline-flex !important; }
}
/* ===== Manage shell v2 (HyHost) — overrides ===== */
.shell:has(.manage-shell) { max-width: 1280px; }
.manage-shell { display: grid; gap: 1rem; }

.manage-top {
  position: relative;
  display: flex; justify-content: space-between; gap: 1.1rem; align-items: flex-end;
  flex-wrap: wrap;
  padding: 1.2rem 1.35rem 1.25rem;
  border-radius: 14px;
  border: 3px solid rgba(90, 58, 24, .3);
  background: linear-gradient(180deg, #fffdf7, #ebf6d8);
  box-shadow: 0 12px 30px rgba(30, 50, 40, .15), inset 0 1px 0 rgba(255,255,255,.9);
  overflow: hidden;
}
.manage-top::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, #2f7a28, #5dbd3a 50%, #e6a100);
  pointer-events: none;
}
.manage-top-left { min-width: 0; flex: 1 1 14rem; }
.manage-back {
  display: inline-block; margin-bottom: .4rem;
  font-size: .84rem; font-weight: 750; color: #4d6558; text-decoration: none;
}
.manage-back:hover { color: #1f6b22; text-decoration: none; }
.manage-title-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .75rem;
  margin: .1rem 0 .45rem;
}
.manage-top h1 {
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: #143528;
}
.manage-status { font-size: .72rem; border-width: 2px; }
.manage-connect {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem; margin: 0;
}
.manage-pack-upgrade {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .85rem;
  border-color: rgba(62, 207, 142, .45) !important;
  background: rgba(62, 207, 142, .12) !important;
}
.manage-pack-upgrade-actions,
.manage-pack-settings {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
}
.manage-pack-settings { margin: .35rem 0 1rem; }
.manage-shell .ptero-game {
  padding: .22rem .6rem; border-radius: 6px;
  background: rgba(63,158,58,.14); border: 2px solid rgba(63,158,58,.28);
  color: #1f6b22; font-weight: 800; font-size: .76rem; font-family: var(--brand-font);
}
.manage-shell .ptero-addr {
  font-family: ui-monospace, Consolas, monospace; font-size: .86rem; color: #243830;
  padding: .2rem .55rem; border-radius: 6px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(31,45,40,.12);
}
.manage-power {
  display: flex; gap: .4rem; align-items: center; flex-wrap: wrap;
  padding: .4rem; border-radius: 12px;
  background: rgba(255,255,255,.55); border: 2px solid rgba(90,58,24,.14);
}
.manage-power .power-btn { min-width: 5.35rem; }
.manage-power .power-btn:hover {
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,50,40,.16);
}

.manage-body {
  display: grid; grid-template-columns: 208px 1fr; gap: 0;
  min-height: 540px; border-radius: 14px; overflow: hidden;
  border: 3px solid rgba(90,58,24,.24);
  background: #fffaf0;
  box-shadow: 0 14px 34px rgba(30,50,40,.12);
}
.manage-nav {
  display: flex; flex-direction: column; gap: .28rem;
  padding: .9rem .65rem;
  background: linear-gradient(180deg, #e4f3d4, #d4e8c0);
  border-right: 3px solid rgba(90,58,24,.14);
}
.manage-nav a {
  color: #355448; text-decoration: none; font-weight: 750; font-size: .92rem;
  padding: .74rem .95rem; border-radius: 9px; border: 2px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.manage-nav a:hover {
  color: #143528; background: rgba(255,255,255,.62); text-decoration: none;
}
.manage-nav a.active {
  color: #0b2a12;
  background: linear-gradient(180deg, #62c944, #3f9e3a);
  border-color: #2f7a28;
  box-shadow: 2px 2px 0 rgba(47,122,40,.28), inset 0 1px 0 rgba(255,255,255,.3);
}
.manage-nav a.active:hover { color: #0b2a12; filter: brightness(1.03); }
.manage-content {
  padding: 0; min-width: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,253,247,.85), rgba(245,250,238,.55));
}
.manage-shell .console-wrap { padding: .9rem 1rem 1.05rem; gap: .7rem; }
.manage-shell .console-panel {
  border-radius: 12px; border: 3px solid rgba(20,40,30,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 28px rgba(20,40,30,.2);
}
.manage-shell .stat-chip {
  background: linear-gradient(180deg, #fffef8, #eef8e0);
  border: 2px solid rgba(90,58,24,.16);
  border-radius: 10px; padding: .5rem .85rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.manage-shell .files-panel,
.manage-shell .settings-panel {
  color: var(--text);
}

@media (max-width: 860px) {
  .manage-top { align-items: flex-start; padding: 1rem 1.05rem 1.1rem; }
  .manage-power { width: 100%; }
  .manage-power .btn { flex: 1 1 auto; }
  /* Flex column — grid + min-height was stretching the active tab into the content. */
  .manage-body,
  .ptero-body.manage-body {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    min-height: 0;
    border-radius: 12px;
  }
  .manage-nav,
  .ptero-nav.manage-nav {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    align-self: stretch;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: .35rem;
    padding: .65rem;
    border-right: none;
    border-bottom: 3px solid rgba(90,58,24,.14);
  }
  .manage-nav a,
  .manage-nav a.active,
  .ptero-nav.manage-nav a,
  .ptero-nav.manage-nav a.active {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
    height: auto;
    min-height: 0;
    max-height: none;
    box-sizing: border-box;
  }
  .manage-content,
  .ptero-content.manage-content {
    flex: 1 1 auto;
    min-height: 0;
  }
}
