html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg-dark: #0e1013;
  --bg-card: #15171c;
  --bg-surface: #1d1f26;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #f2f3f5;
  --text-muted: #949ba4;
  --accent: #ffffff;
  --green: #23a55a;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  padding-bottom: 32px;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 16, 19, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: #ffffff !important;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #252830;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap;
}

/* Original Clean Status Pill */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--green);
  background: rgba(35, 165, 90, 0.12);
  border: 1px solid rgba(35, 165, 90, 0.28);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

/* Dynamic Equalizer Widget (Clean frameless, right next to Operational badge) */
.header-equalizer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 4px;
  background: transparent;
  border: none;
  cursor: default;
  user-select: none;
}

.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.eq-bar {
  width: 2.5px;
  background: #ffffff;
  border-radius: 1.5px;
  height: 3px;
  transition: height 0.15s ease;
}

.playing .eq-bar:nth-child(1) { animation: bounce 0.8s infinite ease-in-out; }
.playing .eq-bar:nth-child(2) { animation: bounce 0.6s infinite ease-in-out 0.2s; }
.playing .eq-bar:nth-child(3) { animation: bounce 0.9s infinite ease-in-out 0.4s; }
.playing .eq-bar:nth-child(4) { animation: bounce 0.7s infinite ease-in-out 0.1s; }

@keyframes bounce {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text-main);
}

.btn-login {
  background: #ffffff;
  color: #0e1013;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

/* =================================================== */
/* HAMBURGER NAVIGATION MENU & INTERACTIVE POPOVER     */
/* =================================================== */
.nav-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  padding: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  outline: none;
  border-radius: 6px;
  box-shadow: none !important;
}

.nav-menu-btn:hover,
.nav-menu-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08) !important;
}

.nav-dropdown-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 200px;
  background: rgba(20, 22, 27, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 6px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-popover.show {
  display: flex !important;
  animation: popoverIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-popover-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-popover-item {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  color: #dbdee1 !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-popover-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.nav-popover-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}


.user-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
  color: inherit;
}

.user-pill-btn:hover,
.user-pill-btn.open {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #252830;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #f2f3f5;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-owner-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transition: all 0.2s ease;
}

/* Founder Badge - Platinum Monochrome */
.user-owner-badge.badge-founder,
.dropdown-badge-owner.badge-founder {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Co-Founder Badge - Soft Silver Monochrome */
.user-owner-badge.badge-cofounder,
.dropdown-badge-owner.badge-cofounder {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e4e4e7;
}

/* Owner Generic Badge */
.user-owner-badge.badge-owner,
.dropdown-badge-owner.badge-owner {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f4f4f5;
}

/* Member / Regular User Badge - Clean Pure Monochrome */
.user-owner-badge.badge-member,
.dropdown-badge-owner.badge-member {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8d94;
}

.chevron-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.user-pill-btn.open .chevron-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

/* User Popover Dropdown Card */
.user-dropdown-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #14161a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 0;
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

.user-dropdown-card.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Mini Discord Profile Banner */
.dropdown-mini-banner {
  height: 64px;
  background: linear-gradient(135deg, #1e1f22 0%, #2b2d31 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
}

.dropdown-mini-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to bottom, transparent, #14161a);
  pointer-events: none;
}

.dropdown-banner-chip {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.user-dropdown-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 16px;
  margin-top: -24px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.dropdown-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.dropdown-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #14161a;
  background: #252830;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.dropdown-online-indicator {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: #23a55a;
  border-radius: 50%;
  border: 2px solid #14161a;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  padding-top: 26px;
}

.dropdown-user-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dropdown-display-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-badge-owner {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: none;
  transition: all 0.2s ease;
}

.dropdown-tag {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Quick Statistics / Spec Cards */
.dropdown-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 16px;
  margin-bottom: 10px;
}

.dropdown-spec-card {
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-spec-lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dropdown-spec-val {
  font-size: 11.5px;
  font-weight: 700;
  color: #f2f3f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-details {
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 16px 10px 16px;
}

.user-dropdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.user-dropdown-label {
  color: var(--text-muted);
}

.user-dropdown-val {
  color: #f2f3f5;
  font-weight: 600;
}

.copy-id-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-id-wrap:hover .code-font {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.user-dropdown-val.code-font {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.user-dropdown-val.role-highlight {
  color: #ffffff;
  font-weight: 600;
  font-size: 11.5px;
}

/* Managed Servers Mini List */
.dropdown-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #dbdee1;
  margin: 0 16px 6px 16px;
}

.dropdown-mini-guilds {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

.dropdown-mini-guild-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.dropdown-mini-guild-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-mini-guild-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dropdown-mini-guild-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-mini-guild-name {
  font-size: 12px;
  font-weight: 600;
  color: #f2f3f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

/* Audio Player Quick Controls in Dropdown */
.dropdown-audio-control {
  margin: 0 16px 10px 16px;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-audio-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eq-mini-anim {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-mini-bar {
  width: 2px;
  height: 4px;
  background: #ffffff;
  border-radius: 1px;
  animation: eqMiniDance 0.8s ease-in-out infinite alternate;
}

.eq-mini-bar:nth-child(2) {
  animation-delay: 0.25s;
  height: 9px;
}

.eq-mini-bar:nth-child(3) {
  animation-delay: 0.5s;
  height: 6px;
}

@keyframes eqMiniDance {
  0% { height: 3px; }
  100% { height: 12px; }
}

.dropdown-audio-control.paused .eq-mini-bar {
  animation: none;
  height: 3px;
  background: var(--text-muted);
}

.dropdown-audio-text {
  display: flex;
  flex-direction: column;
}

.dropdown-audio-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f2f3f5;
}

.dropdown-audio-sub {
  font-size: 9.5px;
  color: var(--text-muted);
}

.dropdown-audio-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbdee1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.dropdown-audio-btn:hover {
  background: rgba(88, 101, 242, 0.25);
  color: #ffffff;
  border-color: rgba(88, 101, 242, 0.5);
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 6px 16px 8px 16px;
}

/* Network & Location Telemetry */
.dropdown-network-telemetry {
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 16px;
}

.network-telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.network-telemetry-lbl {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.network-telemetry-lbl svg {
  color: var(--text-muted);
}

.network-telemetry-val {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 11.5px;
}

.network-telemetry-val.code-font {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.network-telemetry-val.code-font:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.user-dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 14px 16px;
}

.dropdown-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #dbdee1;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dropdown-action-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.dropdown-logout-btn {
  color: #f23f43;
}

.dropdown-logout-btn:hover {
  background: rgba(242, 63, 67, 0.12);
  color: #ff5e62;
}

.managed-servers-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.server-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.server-item-chip:hover {
  background: #20232a;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.server-item-chip img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #252830;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.server-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.server-name-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.server-sub-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-manage-badge {
  background: #ffffff;
  color: #0e1013;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  margin-left: auto;
  transition: opacity 0.15s ease;
}

.server-item-chip:hover .btn-manage-badge {
  opacity: 0.9;
}

/* =================================================== */
/* PER-SERVER MANAGEMENT DASHBOARD VIEW               */
/* =================================================== */
.server-dash-view {
  display: none;
  animation: fadeIn 0.25s ease;
}

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

.server-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.server-dash-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.server-dash-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #252830;
}

.server-dash-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-dash-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-back-communities {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-back-communities:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Server Modules Grid */
.server-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.module-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.module-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.badge-active {
  background: rgba(35, 165, 90, 0.15);
  color: #23a55a;
  border: 1px solid rgba(35, 165, 90, 0.3);
}

.badge-standby {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.module-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.module-kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.module-kv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.module-kv-label {
  color: var(--text-muted);
}

.module-kv-val {
  font-family: 'JetBrains Mono', monospace;
  color: #f2f3f5;
  font-weight: 600;
}

.btn-login:hover {
  opacity: 0.9;
}

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 30px 0 10px;
}

.hero-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  padding: 4px 14px;
  border-radius: 30px;
  background: var(--bg-surface);
}

.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
  max-width: 800px;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-main {
  background: #f2f3f5;
  color: #0e1013;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.2s;
}

.btn-main:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
}

/* Live Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 860px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.stat-val {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  font-family: monospace;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Module Grid */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid var(--border-color);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}


/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.price-card.featured {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.price-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: #ffffff;
  color: #0e1013;
  letter-spacing: 0.5px;
}

.price-name {
  font-size: 18px;
  font-weight: 800;
}

.price-amount {
  font-size: 28px;
  font-weight: 800;
  font-family: monospace;
}

.price-period {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: normal;
}

.price-features {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li::before {
  content: "✓";
  color: #ffffff;
  font-weight: bold;
}

/* Anchor Scroll Offsets & Section Isolation */
#features,
#commands,
#pricing,
#leadership,
#developer {
  scroll-margin-top: 80px;
}

#features,
#commands,
#pricing,
.leadership-section {
  margin-top: 56px;
  margin-bottom: 56px;
}

.discord-owners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.discord-profile-card {
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  position: relative;
}

.discord-profile-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
}

.discord-card-banner {
  height: 110px;
  background: linear-gradient(135deg, #1e1f22 0%, #2b2d31 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}

.discord-card-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(24, 25, 28, 0.7));
  pointer-events: none;
}

.discord-card-body {
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  flex: 1;
}

.discord-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-top: -36px;
  margin-bottom: 4px;
}

.discord-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #18191c;
  background: #202225;
  object-fit: cover;
  display: block;
}

.discord-status-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #18191c;
}

.status-online {
  background: #23a55a;
}

.status-idle {
  background: #f0b232;
}

.status-dnd {
  background: #f23f43;
}

.status-offline {
  background: #80848e;
}

.discord-card-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-display-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-role-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.founder-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.cofounder-pill {
  background: rgba(255, 255, 255, 0.07);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.discord-user-tag {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.discord-card-bio {
  font-size: 12.5px;
  color: #dbdee1;
  line-height: 1.55;
  margin: 0;
}

.discord-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 8px;
}

.discord-id-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-discord-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-discord-contact:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Command Search Box */
.command-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.cmd-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 24px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
}

.search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.cmd-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.tab-btn.active {
  background: #ffffff;
  color: #0e1013;
  border-color: #ffffff;
}

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cmd-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #ffffff;
  font-size: 13.5px;
  letter-spacing: -0.2px;
}

.cmd-badge {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pro {
  background: rgba(255, 255, 255, 0.14);
  color: #f2f3f5;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-reg {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =================================================== */
/* SITE FOOTER & LEGAL DOCUMENTATION LINKS            */
/* =================================================== */
/* SITE FOOTER & LEGAL DOCUMENTATION LINKS            */
/* =================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: rgba(14, 16, 19, 0.95);
  padding: 48px 32px 36px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand strong {
  font-size: 16px;
  letter-spacing: 0.8px;
  color: #ffffff;
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 750px;
  line-height: 1.5;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .footer-brand p {
    white-space: normal;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0 auto;
  font-size: 12px;
  color: #717882;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-left {
  text-align: left;
}

.footer-bottom-right {
  text-align: right;
  color: #555d66;
}

/* =================================================== */
/* LEGAL PAGES (PRIVACY POLICY & TERMS OF SERVICE)    */
/* =================================================== */
.legal-container {
  max-width: 880px;
  margin: 48px auto 80px auto;
  padding: 0 24px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 44px;
  line-height: 1.7;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.legal-card h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.legal-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 14px;
  color: #ffffff;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-card p {
  color: #dbdee1;
  font-size: 14.5px;
  margin-bottom: 14px;
  line-height: 1.68;
}

.legal-card ul {
  margin-bottom: 20px;
  padding-left: 24px;
  color: #dbdee1;
  font-size: 14px;
}

.legal-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-card strong {
  color: #ffffff;
}

.legal-card code {
  background: #252830;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  color: #f2f3f5;
  font-family: 'JetBrains Mono', monospace;
}

/* =================================================== */
/* INTERACTIVE MODULE CONFIGURATION MODAL / DRAWER    */
/* =================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #14161b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.modal-close-btn svg {
  display: block;
  pointer-events: none;
  margin: auto;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.modal-cmd-box {
  background: #1b1e26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.modal-cmd-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.modal-cmd-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* =================================================== */
/* LIVE JSON CONFIGURATION EDITOR & TABS               */
/* =================================================== */
.btn-live-json-editor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-live-json-editor:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.06);
}

.modal-tab-bar {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.modal-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.modal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.modal-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.json-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.json-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.json-file-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2.5px 8px;
  border-radius: 5px;
}

.json-status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.json-status-pill.status-valid {
  background: rgba(35, 165, 90, 0.15);
  border: 1px solid rgba(35, 165, 90, 0.35);
  color: #23a55a;
}

.json-status-pill.status-error {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.35);
  color: #ed4245;
}

.json-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-json-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-json-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.json-editor-wrap {
  width: 100%;
}

.json-code-textarea {
  width: 100%;
  height: 290px;
  background: #090a0d;
  color: #e4e4e7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 10px 10px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  tab-size: 2;
  transition: border-color 0.15s ease;
}

.json-code-textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.json-feedback-notice {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.15s ease;
}

.json-feedback-notice.feedback-success {
  background: rgba(35, 165, 90, 0.14);
  border: 1px solid rgba(35, 165, 90, 0.3);
  color: #23a55a;
}

.json-feedback-notice.feedback-error {
  background: rgba(237, 66, 69, 0.14);
  border: 1px solid rgba(237, 66, 69, 0.3);
  color: #ed4245;
}

.json-editor-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.btn-json-discard {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-json-discard:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-json-save {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #0b0c0e;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-json-save:hover:not(:disabled) {
  background: #e4e4e7;
  border-color: #e4e4e7;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.btn-json-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}




