:root {
  color-scheme: dark;
  --bg: #0b090b;
  --surface: #141014;
  --surface-2: #1c151a;
  --surface-3: #241920;
  --border: #35232b;
  --text: #f8f2f4;
  --muted: #a99ba1;
  --orange: #ff762e;
  --red: #e43d45;
  --gradient: linear-gradient(115deg, #ff762e, #e43d45);
  --radius: 15px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(228, 61, 69, .13), transparent 35%),
    radial-gradient(ellipse at 90% 15%, rgba(255, 118, 46, .09), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: #ff9a65; }
[hidden] { display: none !important; }

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.top {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0 24px;
  border-bottom: 1px solid var(--border);
}

.brandmark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: var(--gradient);
  color: white;
  font-size: 27px;
  font-weight: 950;
  box-shadow: 0 7px 25px rgba(228, 61, 69, .2);
}

.top h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 900;
}

.top small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
}

.topright {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}

.live {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 800;
}

.live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4bd68b;
  box-shadow: 0 0 10px rgba(75, 214, 139, .7);
}

.live b { color: var(--text); }

.hero {
  max-width: 850px;
  padding: 100px 0 70px;
}

.eyebrow {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 900;
}

.hero h2 {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -3px;
  font-weight: 950;
}

.hero h2 em {
  color: var(--orange);
  font-style: normal;
}

.hero > p {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 38px 0;
}

.features article, .statgrid article {
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(36, 25, 32, .95), rgba(20, 16, 20, .95));
}

.features article b {
  display: block;
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 1.4px;
}

.features article span {
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 17px;
  border: 0;
  border-radius: 10px;
  background: var(--gradient);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 6px 20px rgba(228, 61, 69, .13);
  transition: transform .18s ease, filter .18s ease;
}

.btn:hover {
  color: white;
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn.big {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 14px;
}

.btn.ghost {
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: none;
}

.btn.danger {
  background: linear-gradient(115deg, #c72f3b, #8e1827);
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.welcomeRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 38px 0 25px;
}

.welcomeRow h2 {
  margin: 7px 0;
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -1px;
}

.welcomeRow p, .panel p {
  color: var(--muted);
  font-size: 13px;
}

.serverpick { min-width: 230px; }

.serverpick select { margin-top: 7px; }

label {
  display: block;
  color: #d9cbd1;
  font-size: 12px;
  font-weight: 750;
}

input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-height: 43px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: #100d10;
  color: var(--text);
  font-size: 13px;
}

select { cursor: pointer; }

select[multiple] {
  min-height: 125px;
  padding: 7px;
}

select option {
  padding: 7px;
  background: var(--surface);
  color: var(--text);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 118, 46, .1);
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  accent-color: var(--orange);
  vertical-align: middle;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 25px;
  margin: 18px 0;
}

.checks label, .check {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
}

.tabs {
  display: flex;
  gap: 7px;
  margin: 10px 0 22px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(20, 16, 20, .9);
  scrollbar-width: thin;
}

.tabs button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: .18s ease;
}

.tabs button:hover {
  background: var(--surface-3);
  color: white;
}

.tabs button.active {
  border-color: rgba(255, 118, 46, .25);
  background: rgba(255, 118, 46, .12);
  color: #ff9864;
}

.tab { display: none; }
.tab.active { display: block; animation: appear .2s ease; }

@keyframes appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}

.statgrid article small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 850;
}

.statgrid article b {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.panel {
  margin-bottom: 17px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(28, 21, 26, .96), rgba(17, 13, 17, .96));
  box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}

.panel h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -.3px;
}

.panel > p { margin: 4px 0 19px; }

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

.grid > label { min-width: 0; }

.status {
  display: inline-block;
  margin-left: 10px;
  color: #75dba0;
  font-size: 12px;
}

.hint {
  color: var(--muted);
  font-size: 11px;
}

.notice {
  margin: 12px 0 18px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 118, 46, .3);
  border-radius: 10px;
  background: rgba(255, 118, 46, .08);
  color: #ffd0b5;
  font-size: 13px;
}

.stickySave {
  position: sticky;
  z-index: 5;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(17, 13, 17, .94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
}

#panelList {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* SERVER MANAGER */

.server-manager { padding: 35px 0 25px; }

.server-manager-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.server-manager-heading h2 {
  margin: 7px 0;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -1.4px;
}

.server-manager-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.server-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.server-user span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.server-user strong { font-size: 13px; }

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

.server-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #20171d, #120e12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
  transition: border-color .2s ease, transform .2s ease;
}

.server-card:hover {
  border-color: rgba(255, 118, 46, .55);
  transform: translateY(-3px);
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}

.server-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 118, 46, .25);
  border-radius: 17px;
  background: var(--gradient);
  color: white;
  font-size: 23px;
  font-weight: 900;
}

.server-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-status {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 9px;
  letter-spacing: .7px;
  font-weight: 900;
  text-align: center;
}

.server-status.installed {
  border-color: rgba(75, 214, 139, .25);
  background: rgba(75, 214, 139, .08);
  color: #75dba0;
}

.server-status.missing {
  border-color: rgba(255, 118, 46, .25);
  background: rgba(255, 118, 46, .08);
  color: #ffab7c;
}

.server-card h3 {
  overflow-wrap: anywhere;
  margin: 0 0 5px;
  font-size: 17px;
}

.server-card > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.server-open {
  width: 100%;
  margin-top: 19px;
}

.server-loading {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed var(--border);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.selected-server-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 25px 0 17px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(255, 118, 46, .09), rgba(228, 61, 69, .04));
}

.selected-server-bar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selected-server-bar strong { font-size: 16px; }

/* AUTOMOD WORD TAGS */

.tag-field { min-width: 0; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 15px;
  margin: 12px 0 8px;
}

.word-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px 6px 11px;
  border: 1px solid rgba(255, 118, 46, .32);
  border-radius: 30px;
  background: rgba(255, 118, 46, .11);
  color: #ffd0b5;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.word-tag button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(228, 61, 69, .2);
  color: #ff9a9f;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.word-tag button:hover {
  background: var(--red);
  color: white;
}

.tag-field input { margin-top: 4px; }
.tag-field .hint { display: block; margin-top: 7px; }

/* MULTI-SELECT PERMISSIONS */

.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 310px;
  margin-top: 9px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #100d10;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(36, 25, 32, .55);
  color: #e8dce1;
  cursor: pointer;
  font-size: 11px;
  overflow-wrap: anywhere;
  transition: .15s ease;
}

.choice-item:hover {
  border-color: rgba(255, 118, 46, .35);
  background: rgba(255, 118, 46, .08);
}

.choice-item:has(input:checked) {
  border-color: rgba(255, 118, 46, .45);
  background: rgba(255, 118, 46, .12);
  color: #ffb28a;
}

.choice-item input {
  flex: 0 0 16px;
  margin: 0;
}

/* TICKET PANEL MANAGER */

.ticket-panel-item {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(16, 13, 16, .8);
  list-style: none;
}

.ticket-panel-item > strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.ticket-panel-item > p { margin: 5px 0 12px; }

.ticket-panel-item > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.ticket-panel-item > label { margin-top: 14px; }
.ticket-panel-item select { margin-top: 6px; }

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.panel-actions .btn {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 11px;
}

/* NEW FEATURE MANAGEMENT PANELS */

#moderationNotesList,
#ticketRatingSummary,
#rolePanelList,
#giveawayList,
#pollList,
#backupList {
  display: grid;
  gap: 10px;
  margin-top: 17px;
  min-width: 0;
}

.feature-item,
.moderation-note-item,
.rating-item,
.role-panel-item,
.giveaway-item,
.poll-item,
.backup-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(36, 25, 32, .65), rgba(16, 13, 16, .9));
  overflow-wrap: anywhere;
}

.feature-item strong,
.moderation-note-item strong,
.rating-item strong,
.role-panel-item strong,
.giveaway-item strong,
.poll-item strong,
.backup-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 13px;
}

.feature-item p,
.moderation-note-item p,
.rating-item p,
.role-panel-item p,
.giveaway-item p,
.poll-item p,
.backup-item p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.feature-item small,
.moderation-note-item small,
.rating-item small,
.role-panel-item small,
.giveaway-item small,
.poll-item small,
.backup-item small {
  color: var(--muted);
  font-size: 10px;
}

.feature-item .panel-actions,
.moderation-note-item .panel-actions,
.role-panel-item .panel-actions,
.giveaway-item .panel-actions,
.poll-item .panel-actions,
.backup-item .panel-actions {
  margin-top: 12px;
}

.feature-empty {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.feature-meta span {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: 10px;
}

.feature-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(75, 214, 139, .25);
  border-radius: 20px;
  background: rgba(75, 214, 139, .08);
  color: #75dba0;
  font-size: 10px;
  font-weight: 800;
}

.feature-status.disabled {
  border-color: var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
}

.rating-average {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid rgba(255, 118, 46, .25);
  border-radius: 12px;
  background: rgba(255, 118, 46, .07);
}

.rating-average strong {
  color: #ffad7d;
  font-size: 30px;
}

.rating-average span {
  color: var(--muted);
  font-size: 11px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #30242b;
}

.progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
}

#settings {
  min-width: 0;
}

#settings .panel > button { margin-top: 8px; }

#settings input,
#settings select,
#settings textarea { max-width: 100%; }

#settings .grid > label { overflow-wrap: anywhere; }

#panelList {
  padding: 0;
  list-style: none;
}

#panelList:empty { display: none; }

#logout { cursor: pointer; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 900px) {
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 620px);
    padding-top: 14px;
  }

  .top { flex-wrap: wrap; }

  .topright {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .hero { padding: 65px 0 45px; }
  .hero h2 { letter-spacing: -2px; }

  .welcomeRow {
    align-items: stretch;
    flex-direction: column;
    padding-top: 28px;
  }

  .serverpick { width: 100%; }
  .panel { padding: 17px; }
  .tabs { margin-right: -2px; margin-left: -2px; }

  .server-manager-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-user { text-align: left; }
}

@media (max-width: 520px) {
  .features, .grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 43px; }
  .hero > p { font-size: 14px; }
  .top h1 { font-size: 18px; }
  .live { font-size: 9px; }
  .panel { padding: 15px; }

  .stickySave {
    align-items: stretch;
    flex-direction: column;
  }

  .stickySave .status { margin-left: 0; }
  .status { display: block; margin: 9px 0 0; }
  .server-grid { grid-template-columns: 1fr; }
  .server-card { padding: 17px; }
  .choice-list { grid-template-columns: 1fr; max-height: 250px; }

  .selected-server-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .selected-server-bar .btn { width: 100%; }

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

  .panel-actions .btn { width: 100%; }
  .stickySave { bottom: 6px; }

  .rating-average {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* FOXTRIX PREMIUM UPGRADE */
.premium-buy {
  position: static;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 5px 18px rgba(228, 61, 69, .22);
  white-space: nowrap;
}

.premium-support-link {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  margin: 12px 0;
}

.premium-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.premium-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
}

.premium-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, #21171d, #100d10);
  box-shadow: 0 25px 90px rgba(0, 0, 0, .55);
}

.premium-modal-card h2 {
  margin: 8px 0 0;
  font-size: 29px;
  letter-spacing: -.8px;
}

.premium-modal-card > p {
  color: var(--muted);
  font-size: 13px;
}

.premium-modal-card .premium-price {
  margin: 12px 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 950;
}

.premium-price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.premium-modal-card ul {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  color: #e9dce2;
  font-size: 13px;
}

.premium-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
}

.premium-checkout-notice {
  margin: 20px 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 118, 46, .3);
  border-radius: 10px;
  background: rgba(255, 118, 46, .08);
  color: #ffd0b5;
  font-size: 12px;
}

.premium-close-action {
  width: 100%;
}

@media (max-width: 520px) {
  .premium-buy {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .premium-modal-card {
    padding: 24px 20px;
  }
}


/* FOXTRIX DASHBOARD USABILITY UPDATE */
.brandmark {
  overflow: hidden;
  padding: 0;
  background: #080708;
  border: 1px solid rgba(255, 118, 46, .28);
  box-shadow: 0 7px 25px rgba(228, 61, 69, .2);
}
.brandmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top {
  position: relative;
  gap: 15px;
  padding-top: 18px;
  padding-bottom: 22px;
}
.topright { gap: 10px; }
.tabs {
  position: sticky;
  top: 8px;
  z-index: 20;
  scroll-padding-inline: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}
.tabs button { min-height: 40px; }
.panel {
  padding: 25px;
  border-radius: 17px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.panel:focus-within {
  border-color: rgba(255, 118, 46, .38);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 118, 46, .06);
}
.grid { gap: 20px; }
input:not([type="checkbox"]), select, textarea {
  min-height: 46px;
  border-radius: 11px;
}
textarea { min-height: 112px; }
.btn { min-height: 44px; }
.btn:focus-visible, .tabs button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.server-card { min-height: 190px; }
.server-open { min-height: 46px; }
.stickySave { z-index: 30; }
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 680px); padding-top: 14px; }
  .top {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
  }
  .brandmark { width: 48px; height: 48px; flex-basis: 48px; }
  .topright {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 9px;
    margin: 5px 0 0;
  }
  .topright .btn { flex: 1 1 auto; }
  .live { margin-right: auto; }
  .hero { padding: 54px 0 38px; }
  .hero h2 { letter-spacing: -2px; }
  .tabs {
    top: 5px;
    margin: 8px -2px 18px;
    padding: 6px;
    gap: 5px;
    border-radius: 12px;
  }
  .tabs button { padding: 9px 12px; font-size: 12px; }
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .statgrid article { padding: 16px; }
  .statgrid article b { font-size: 22px; }
  .panel { padding: 18px; margin-bottom: 13px; }
  .grid { gap: 15px; margin: 16px 0; }
  .server-manager { padding-top: 25px; }
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 24px); padding-bottom: 36px; }
  .top h1 { font-size: 19px; letter-spacing: 1.7px; }
  .top small { font-size: 8px; letter-spacing: 1.5px; }
  .topright { flex-wrap: wrap; }
  .topright .live { flex: 1 0 100%; }
  .topright .btn { min-height: 42px; }
  .hero { padding: 42px 0 28px; }
  .hero h2 { font-size: clamp(38px, 11vw, 46px); }
  .features, .grid { grid-template-columns: 1fr; }
  .features { gap: 10px; margin: 26px 0; }
  .features article { padding: 17px; }
  .tabs { top: 4px; }
  .statgrid article { padding: 14px; }
  .statgrid article small { font-size: 9px; }
  .panel { padding: 16px; }
  .server-grid { grid-template-columns: 1fr; }
  .stickySave { bottom: 5px; padding: 10px; }
  .stickySave .btn { width: 100%; }
  .premium-buy { flex: 0 0 auto; }
}
