.section-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.tab-button {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream-dim);
  border-radius: 9999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button.active {
  background: rgba(163,230,53,0.12);
  border-color: rgba(163,230,53,0.35);
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.section-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.command-filter {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  border-radius: 18px;
  padding: 0.8rem 1rem;
  width: min(420px, 100%);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.command-filter:focus {
  border-color: rgba(163,230,53,0.42);
  box-shadow: 0 0 0 3px rgba(163,230,53,0.12);
}

.category-tab {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream-dim);
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab.active {
  background: rgba(163,230,53,0.12);
  border-color: rgba(163,230,53,0.38);
  color: white;
}

.command-list {
  display: grid;
  gap: 1rem;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}

.command-name {
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.command-meta {
  color: var(--cream-dim);
  font-size: 0.8rem;
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-admin {
  background: rgba(240,120,120,0.12);
  color: #f7b1b1;
  border-color: rgba(240,120,120,0.22);
}

.badge-user {
  background: rgba(94,219,138,0.12);
  color: #9be8b3;
  border-color: rgba(94,219,138,0.22);
}

.config-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.config-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
  min-height: 240px;
}

.config-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.55rem;
}

.config-card p {
  color: var(--cream-dim);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--cream-dim);
}

.switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  transition: .2s ease;
  border: 1px solid rgba(255,255,255,0.12);
}

.slider:before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: .2s ease;
}

.switch input:checked + .slider {
  background: rgba(163,230,53,0.35);
  border-color: rgba(163,230,53,0.4);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.mini-select,
.mini-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
  outline: none;
  margin-top: 0.5rem;
}

.mini-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(94,219,138,0.12);
  color: #a7f0bc;
  border: 1px solid rgba(94,219,138,0.25);
}

.table-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.table-box table {
  width: 100%;
  border-collapse: collapse;
}

.table-box th,
.table-box td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}

.table-box th {
  color: var(--cream-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.02);
}

.table-box td {
  color: var(--cream);
  font-size: 0.8rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.summary-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.summary-box .label {
  color: var(--cream-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.summary-box .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-top: 0.3rem;
}

.dashboard-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

.dashboard-page-header {
  margin-bottom: 1.5rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.dashboard-sidebar {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1rem 0.9rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.dashboard-menu-list {
  display: grid;
  gap: 0.35rem;
}

.dashboard-menu {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream-dim);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.dashboard-menu.active,
.dashboard-menu:hover {
  background: rgba(163,230,53,0.12);
  border-color: rgba(163,230,53,0.35);
  color: white;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1rem 1rem 0.9rem;
  min-height: 210px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01);
}

.dashboard-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.45rem;
}

.dashboard-card p {
  color: var(--cream-dim);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  color: var(--cream-dim);
  font-size: 0.82rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  transition: 0.2s ease;
}

.slider:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: 0.2s ease;
}

.switch input:checked + .slider {
  background: rgba(163,230,53,0.38);
  border-color: rgba(163,230,53,0.45);
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

.mini-select,
.mini-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  color: var(--cream);
  margin-top: 0.5rem;
  font-size: 0.8rem;
  outline: none;
}

.footer-note {
  color: var(--cream-dim);
  text-align: center;
  margin: 2rem auto 4rem;
  font-size: 0.8rem;
}

@keyframes pulse-ring {
  0% { transform: scale(0.96); opacity: 0.9; }
  70% { transform: scale(1.06); opacity: 0; }
  100% { transform: scale(1.06); opacity: 0; }
}

.dashboard-login-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.dashboard-login-card {
  width: min(540px, 100%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  text-align: center;
}

.dashboard-login-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  font-family: 'Baloo 2', sans-serif;
  margin-bottom: 0.75rem;
}

.dashboard-login-desc {
  color: var(--cream-dim);
  line-height: 1.7;
  font-size: 0.96rem;
}

.dashboard-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.dashboard-sidebar {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1rem 0.9rem;
}

.dashboard-menu-list {
  display: grid;
  gap: 0.6rem;
}

.dashboard-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream-dim);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  transition: all 0.2s ease;
}

.dashboard-menu.active,
.dashboard-menu:hover {
  background: rgba(163,230,53,0.12);
  border-color: rgba(163,230,53,0.35);
  color: white;
}

.guild-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(163,230,53,0.15);
  color: var(--lime-soft);
  font-weight: 800;
  font-size: 0.8rem;
}

.dashboard-main-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1rem;
  min-height: 500px;
}

.dashboard-empty-state {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.empty-box {
  text-align: center;
  color: var(--cream-dim);
  padding: 2rem;
}

.empty-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.empty-subtitle {
  font-size: 0.8rem;
  line-height: 1.6;
}

.server-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}

.server-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(163,230,53,0.22), rgba(163,230,53,0.08));
  border: 1px solid rgba(163,230,53,0.28);
  color: var(--lime-soft);
  font-weight: 800;
}

.server-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.server-subtitle {
  color: var(--cream-dim);
  font-size: 0.78rem;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.dashboard-tab {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream-dim);
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.dashboard-tab.active {
  background: rgba(163,230,53,0.12);
  border-color: rgba(163,230,53,0.38);
  color: white;
}

.dashboard-panel {
  display: block;
}

.panel-card {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: white;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.field-block label {
  font-size: 0.78rem;
  color: var(--cream-dim);
}

.mini-select,
.mini-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font-size: 0.8rem;
  outline: none;
}

.mini-input {
  resize: vertical;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.metric-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.metric-label {
  display: block;
  color: var(--cream-dim);
  font-size: 0.72rem;
  margin-bottom: 0.4rem;
}

.metric-card strong {
  color: white;
  font-size: 1.5rem;
}

.mini-chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 0.5rem;
  padding: 1rem 0.5rem 0;
  background: rgba(0,0,0,0.12);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.bar {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(163,230,53,0.9), rgba(163,230,53,0.35));
}

.mini-log-list,
.mini-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mini-log-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream-dim);
  font-size: 0.78rem;
}

.mini-pill-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(163,230,53,0.1);
  border: 1px solid rgba(163,230,53,0.25);
  color: var(--lime-soft);
  font-size: 0.72rem;
}

.server-logs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: grid;
  place-items: center;
  z-index: 50;
}

.server-logs-card {
  width: min(700px, calc(100% - 2rem));
  background: rgba(20, 23, 31, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
}

.server-logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.server-logs-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.server-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: white;
  font-size: 1.3rem;
}

.server-logs-body {
  max-height: 460px;
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.log-line {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.07);
}

.log-line.info { background: rgba(96,184,240,0.08); color: #d9ebff; }
.log-line.success { background: rgba(94,219,138,0.08); color: #d7f7de; }
.log-line.warn { background: rgba(240,176,96,0.08); color: #fce6bd; }
.log-line.error { background: rgba(240,120,120,0.08); color: #ffdada; }

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--cream-dim);
  font-size: 0.82rem;
}

.info-key {
  color: var(--cream-dim);
}

.info-val {
  color: white;
  font-weight: 600;
  text-align: right;
}

.info-val.green { color: #9fe8ac; }
.mono { font-family: 'Inter', sans-serif; letter-spacing: 0.03em; }

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.tech-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.tech-name {
  color: white;
  font-weight: 700;
  font-size: 0.86rem;
}

.tech-ver {
  color: var(--cream-dim);
  font-size: 0.72rem;
}

.changelog-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.changelog-version {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.changelog-desc {
  color: var(--cream-dim);
  line-height: 1.6;
  font-size: 0.8rem;
}

.feat-card {
  background: rgba(242,239,226,0.03);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(163,230,53,0.3);
  background: rgba(242,239,226,0.05);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.feat-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.feat-desc {
  color: var(--cream-dim);
  font-size: 0.85rem;
  line-height: 1.6;
}

.list-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream-dim);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.list-item-remove {
  background: rgba(240,120,120,0.12);
  border: 1px solid rgba(240,120,120,0.25);
  color: #f7b1b1;
  border-radius: 9999px;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
}

.list-item-remove:hover { background: rgba(240,120,120,0.22); }

.cmd-cat-block {
  margin-bottom: 1.4rem;
}

.cmd-cat-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.settings-status {
  font-size: 0.75rem;
  min-height: 1rem;
}

.invite-hero {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(163,230,53,0.08), rgba(232,199,126,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 1.6rem 1.25rem;
}

.invite-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  font-family: 'Baloo 2', sans-serif;
  margin-bottom: 0.5rem;
}

.invite-hero-sub {
  color: var(--cream-dim);
  margin-bottom: 1rem;
}

.invite-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .command-row {
    grid-template-columns: 1fr;
  }

  .section-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-main-panel {
    padding: 0.8rem;
  }

  .dashboard-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 0.25rem;
  }
}
