@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0E1015;
  --surface: #161922;
  --surface-alt: #1D212C;
  --border: #262A38;
  --border-strong: #363C4E;
  --text: #EDEEF2;
  --text-muted: #8B8FA3;
  --accent: #4E86D9;
  --accent-strong: #91B8EF;
  --success: #3ECF8E;
  --danger: #E85C5C;
  --premium: #F0B429;
  --premium-strong: #FFD166;
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: padding-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

body::before { display: none; }

h1, h2, h3, .wordmark {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

a {
  color: inherit;
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  text-align: center;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: fadeUp 0.5s ease both;
}

.wordmark {
  font-size: 44px;
  letter-spacing: -0.02em;
}

.wordmark span {
  color: var(--accent-strong);
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 380px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 24px -12px rgba(78, 134, 217, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background: #6095E2;
  transform: translateY(-1px);
}

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

.btn-outline {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 27px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(78, 134, 217, 0.08);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: color 0.15s ease;
}

.btn-secondary:hover {
  color: var(--text);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(78, 134, 217, 0.08);
  border: 1px solid rgba(78, 134, 217, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
}

.feature-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  min-width: 168px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  background: rgba(22, 25, 34, 0.5);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.feature-row span {
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
}

/* ---------- Landing page (index.html) ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(14, 16, 21, 0.6);

  backdrop-filter: none;

  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav .wordmark {
  font-size: 20px;
}

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

.site-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav-links a:hover {
  color: var(--text);
}

.site-nav-links .btn-primary {
  padding: 9px 18px;
  font-size: 14px;
}

.landing {
  overflow-x: hidden;
}

.landing-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 120px 24px 64px;
  text-align: center;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: fadeUp 0.5s ease both;
}

.landing-hero .wordmark {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.landing-hero .wordmark span {
  color: var(--text-muted);
}

.landing-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  max-width: 720px;
  letter-spacing: -0.01em;
}

.landing-hero .hero-tagline {
  font-size: 17px;
  max-width: 480px;
}

.landing-hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.landing-section {
  padding: 88px 24px;
  border-top: 1px solid var(--border);
}

.landing-section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.landing-section-head {
  max-width: 560px;
  margin: 0 0 44px;
}

.landing-section-head h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.landing-section-head p {
  color: var(--text-muted);
  font-size: 15px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.module-card {
  background: rgba(22, 25, 34, 0.5);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.module-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.7);
}

.module-card .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 16px;
  opacity: 1;
  color: var(--accent-strong);
  margin-bottom: 16px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.module-card:hover .nav-icon {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.module-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

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

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step-item {
  position: relative;
  padding-top: 44px;
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.step-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  background: rgba(22, 25, 34, 0.5);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan-card.plan-premium {
  border-color: rgba(240, 180, 41, 0.4);
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.08), 0 20px 60px -30px rgba(240, 180, 41, 0.35);
}

.plan-name {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-premium .plan-name {
  color: var(--premium-strong);
}

.plan-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 24px;
}

.plan-features li {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.plan-features li::before {
  content: '✓';
  color: var(--success);
  font-size: 12px;
  flex-shrink: 0;
}

.plan-premium .plan-features li::before {
  color: var(--premium);
}

.plan-card .btn-primary,
.plan-card .btn-outline,
.plan-card .btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .wordmark {
  font-size: 16px;
}

.site-footer-links {
  display: flex;
  gap: 20px;
}

.site-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--text);
}

.site-footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 760px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
  .site-nav-links a:not(.btn-primary) {
    display: none;
  }
}

.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.server-select {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.35s ease both;
}

.ss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(14, 16, 21, 0.6);

  backdrop-filter: none;

  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ss-header .wordmark {
  font-size: 24px;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ss-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.ss-logout {
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
}

.ss-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  flex: 1;
}

.ss-title {
  font-size: 34px;
  margin-bottom: 8px;
}

.ss-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.ss-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.ss-search {
  flex: 1;
  max-width: 420px;
}

.ss-reload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.ss-reload:disabled {
  opacity: 0.7;
  cursor: default;
}

.ss-reload-icon {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

.ss-reload.loading .ss-reload-icon {
  animation: spin 0.7s linear infinite;
}

.ss-search input {
  width: 100%;
  border-radius: 999px;
  padding: 12px 18px;
}

.ss-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.ss-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

#invite-section {
  margin-top: 40px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(22, 25, 34, 0.5);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.server-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.server-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.server-card-info {
  min-width: 0;
}

.server-card-name {
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-card-status {
  font-size: 12px;
  color: var(--success);
  margin-top: 3px;
}

.server-card.invite .server-card-status {
  color: var(--text-muted);
}

.server-card-action {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
}

.ss-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 12px;
}

.ss-footer a {
  color: inherit;
}

.module-nav {
  width: 270px;
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(22, 25, 34, 0.5);

  backdrop-filter: none;

  backdrop-filter: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 0.3s ease both;
}

.module-nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.module-nav-header-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.module-nav-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 0;
}

.module-search {
  margin-bottom: 16px;
}

.module-search input {
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.module-nav-footer {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  padding: 12px 0 16px;
  background: #14171F;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-footer-link {
  background: none;
  border: 0;
  text-align: left;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.nav-footer-link:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.sidebar-copy {
  color: var(--text-muted);
  opacity: 0.6;
  font-size: 11px;
  padding: 6px 10px 0;
}

.mobile-back,
.module-nav-toggle {
  display: none;
}

.guild-icon-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.active-guild-name {
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.module-nav-group {
  margin-top: 18px;
}

.module-nav-group:first-child {
  margin-top: 0;
}

.module-nav-group-label {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  opacity: 0.7;
  padding: 0 12px 6px;
}

.module-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.module-nav-row .module-nav-item {
  flex: 1;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 4px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(14px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.module-nav-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.module-nav-item:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.module-nav-item.active {
  background: var(--surface-alt);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.module-nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 40px 56px;
}

.main h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.main .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  max-width: 400px;
}

.module-panel {
  max-width: 820px;
}

.module-panel-anim {
  animation: fadeUp 0.3s ease both;
}

.module-panel .hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.module-panel .hint code {
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

input, select {
  background: rgba(29, 33, 44, 0.5);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field label .badge {
  margin-left: 6px;
  vertical-align: middle;
}

.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-save {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  margin-top: 20px;
}

.btn-save:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.save-status {
  font-size: 13px;
  color: var(--success);
  margin-top: 10px;
  min-height: 16px;
}

.save-status.error {
  color: var(--danger);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  margin-top: 3px;
}

.badge.premium {
  color: var(--success);
  border-color: var(--success);
}

.premium-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 13px;
  line-height: 1;
  color: var(--premium);
  cursor: default;
  vertical-align: middle;
  margin-left: 4px;
}

.premium-star::after {
  content: 'Premium';
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: #0A0B10;
  color: var(--premium-strong);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 20;
}

.premium-star::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #0A0B10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 20;
}

.premium-star:hover::after,
.premium-star:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.premium-star:hover::before,
.premium-star:focus-visible::before {
  opacity: 1;
}

.field-checkbox label {
  color: var(--text);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.field-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

input[type="color"] {
  padding: 4px;
  height: 40px;
  width: 60px;
  cursor: pointer;
}

.ticket-design-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.ticket-design-fields .field:last-child {
  margin-bottom: 0;
}

.embed-preview {
  display: flex;
  background: rgba(43, 45, 49, 0.55);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.embed-preview-bar {
  width: 4px;
  flex-shrink: 0;
  background: var(--accent);
}

.embed-preview-body {
  padding: 12px 14px;
  flex: 1;
  min-width: 0;
}

.embed-preview-thumb-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.embed-preview-text {
  min-width: 0;
  flex: 1;
}

.embed-preview-title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  word-break: break-word;
}

.embed-preview-desc {
  color: #dbdee1;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
}

.embed-preview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.embed-preview-image {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 10px;
}

.embed-preview-footer {
  color: #949ba4;
  font-size: 11px;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .ticket-design-grid {
    grid-template-columns: 1fr;
  }
}

.status-page {
  min-height: 100vh;
  padding: 72px 24px 48px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.status-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease both;
}

.status-header .wordmark {
  font-size: 32px;
  margin-bottom: 10px;
}

.status-header .hero-tagline {
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto;
}

.status-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(22, 25, 34, 0.5);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -32px rgba(0, 0, 0, 0.6);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease 0.05s both;
}

.status-summary-ring {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.status-summary-ring .ring-core {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.status-summary-ring .ring-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.55;
  animation: statusPulse 2.2s ease-out infinite;
}

.status-summary.degraded .ring-core,
.status-summary.degraded .ring-pulse {
  background: var(--premium);
  box-shadow: 0 0 10px var(--premium);
}

.status-summary.down .ring-core,
.status-summary.down .ring-pulse {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}

.status-summary-text h2 {
  font-size: 18px;
  margin-bottom: 2px;
}

.status-summary-text p {
  color: var(--text-muted);
  font-size: 13px;
}

.status-summary-refresh {
  margin-left: auto;
  flex-shrink: 0;
  text-align: right;
}

.status-summary-refresh span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.refresh-track {
  width: 90px;
  height: 3px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.refresh-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width 0.2s linear;
}

.status-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 36px 0 14px;
}

.status-section-title:first-of-type {
  margin-top: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.status-card {
  background: rgba(22, 25, 34, 0.5);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: fadeUp 0.4s ease both;
}

.status-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.status-card.offline {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(232, 92, 92, 0.15);
}

.status-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.status-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent-strong);
  flex-shrink: 0;
}

.status-card-top h3 {
  font-size: 14px;
  font-weight: 600;
}

.status-dot-wrap {
  margin-left: auto;
  position: relative;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}

.status-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot.online::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.6;
  animation: statusPulse 2.2s ease-out infinite;
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.status-value {
  font-size: 24px;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.status-value.offline-text {
  color: var(--danger);
}

.status-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
}

.status-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 40px;
}

.status-footer + .status-footer {
  margin-top: 8px;
}

.status-footer a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

.status-footer a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
  .status-summary {
    flex-wrap: wrap;
  }
  .status-summary-refresh {
    margin-left: 38px;
    text-align: left;
  }
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.info-card {
  background: rgba(29, 33, 44, 0.45);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.ticket-stat-card {
  background: rgba(29, 33, 44, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.ticket-stat-card .stat-value {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.ticket-stat-card .stat-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.transcript-link {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-strong);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 10px;
  margin-top: 4px;
}

.transcript-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

.info-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card-person {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card-name {
  font-size: 13px;
  font-weight: 600;
}

.info-card-id {
  font-size: 11px;
  color: var(--text-muted);
}

.info-card-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.info-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.info-card-body {
  font-size: 13px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.chat-toggle-btn {
  align-self: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-toggle-btn:hover {
  border-color: var(--accent);
}

.ticket-chat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 10px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  font-size: 12px;
}

.chat-message .chat-author {
  font-weight: 600;
  color: var(--accent-strong);
  margin-right: 6px;
}

.chat-message .chat-time {
  color: var(--text-muted);
  font-size: 10px;
}

.chat-empty {
  color: var(--text-muted);
  font-size: 12px;
}

.order-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.order-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: 4px;
  width: 22px;
  height: 18px;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.order-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent);
}

.order-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.command-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-item {
  background: rgba(29, 33, 44, 0.4);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-item .command-trigger {
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
}

.command-item .command-response {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.command-delete {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.command-delete:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.warn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.warn-item {
  background: rgba(29, 33, 44, 0.4);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
}

.warn-item .warn-meta {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 40px auto;
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .module-nav-item.active::before {
    display: none;
  }
  .ss-header {
    padding: 14px 16px;
  }
  .user-chip span {
    display: none;
  }
  .ss-inner {
    padding: 32px 16px;
  }
  .ss-title {
    font-size: 26px;
  }
  .shell {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .module-nav {
    width: 100%;
    height: auto;
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 20;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 20, 27, 0.94);
  }
  .module-nav-header {
    padding: 12px 14px;
  }
  .mobile-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .module-nav-toggle {
    display: block;
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-alt);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .module-nav-body {
    display: none;
    max-height: calc(100vh - 66px);
  }
  .module-nav.open .module-nav-body {
    display: flex;
  }
  .main {
    height: auto;
    overflow: visible;
    padding: 24px 16px 60px;
  }
}

html {
  color-scheme: dark;
}

.nav-back-row {
  flex: 0 0 100%;
}

.module-nav-header {
  flex-wrap: wrap;
  row-gap: 16px;
}

.back-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  min-width: 32px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.back-text {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  white-space: nowrap;
  transition: max-width 0.25s ease, opacity 0.2s ease, margin-left 0.25s ease;
}

.back-pill:hover,
.back-pill:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.back-pill:hover .back-text,
.back-pill:focus-visible .back-text {
  max-width: 160px;
  opacity: 1;
  margin-left: 8px;
}

.back-pill:hover .back-arrow,
.back-pill:focus-visible .back-arrow {
  transform: translateX(-2px);
}

.module-search input,
.ss-search input {
  height: 40px;
  background-color: #12151C;
  border: 1px solid #262B39;
  padding: 0 14px;

  backdrop-filter: none;

  backdrop-filter: none;
}

.module-search input:focus,
.ss-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 134, 217, 0.18);
}

.main {
  padding: 44px 56px 90px;
}

.module-panel {
  max-width: 780px;
}

.main h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.main .hint {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 660px;
}

.module-panel > h2 + .hint {
  max-width: none;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.module-panel h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  margin: 44px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.module-panel > h2 + h3,
.module-panel > h2 + .hint + h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.module-panel h3 + .hint {
  margin-top: -8px;
}

.main code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  color: #CFD2E3;
}

.main .field {
  gap: 8px;
  margin-bottom: 20px;
}

.main .field label {
  font-size: 13px;
  font-weight: 500;
  color: #B4B8CA;
}

.main .field label .badge {
  font-size: 10.5px;
  font-weight: 500;
  padding: 1px 8px;
  margin: 0 0 0 8px;
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.main input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.main select {
  width: 100%;
  height: 44px;
  background-color: #12151C;
  border: 1px solid #262B39;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);

  backdrop-filter: none;

  backdrop-filter: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.main input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):hover,
.main select:hover {
  border-color: #353B4F;
}

.main input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):focus,
.main select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 134, 217, 0.18);
}

.main input::placeholder {
  color: #5A6076;
}

.main select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B8FA3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
}

.main select option {
  background: #161922;
  color: var(--text);
}

.main input[type="file"] {
  width: 100%;
  background: #12151C;
  border: 1px dashed #353B4F;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;

  backdrop-filter: none;
}

.main input[type="file"]::file-selector-button {
  background: #1E2230;
  color: var(--text);
  border: 1px solid #353B4F;
  border-radius: 8px;
  padding: 7px 14px;
  margin-right: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.main input[type="file"]::file-selector-button:hover {
  background: #292F42;
}

.main input[type="color"] {
  width: 60px;
  height: 44px;
  padding: 5px;
  background: #12151C;
  border: 1px solid #262B39;
  border-radius: 10px;
  cursor: pointer;

  backdrop-filter: none;
}

.main input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.main input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}

.main .field-checkbox {
  margin-bottom: 10px;
}

.main .field-checkbox label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.main .field-checkbox label:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: #353B4F;
}

.main .field-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 6px;
  border: 1.5px solid #3A4055;
  background: #12151C;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.main .field-checkbox input[type="checkbox"]::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.12s ease;
}

.main .field-checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.main .field-checkbox input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) scale(1);
}

.main .field-checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 134, 217, 0.25);
}

.main .field-checkbox input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.main .btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  margin-top: 22px;
  background: var(--accent);
  background-image: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  filter: none;
  box-shadow: 0 8px 20px -10px rgba(78, 134, 217, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.main .btn-save:hover {
  background: #6095E2;
  filter: none;
  transform: translateY(-1px);
}

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

.main .btn-save:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.main .save-status {
  display: inline-block;
  margin: 22px 0 0 14px;
  min-height: 0;
  line-height: 42px;
  font-size: 13px;
  vertical-align: top;
}

.main .command-list,
.main .warn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main .command-item,
.main .warn-item,
.main .info-card {
  background: rgba(255, 255, 255, 0.025);

  backdrop-filter: none;

  backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s ease;
}

.main .command-item:hover,
.main .warn-item:hover,
.main .info-card:hover {
  border-color: #353B4F;
}

.main .command-item {
  gap: 14px;
}

.main .command-trigger {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
}

.main .command-response {
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main .command-delete {
  background: transparent;
  border: 1px solid transparent;
  color: #C77474;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.main .command-delete:hover {
  background: rgba(232, 92, 92, 0.12);
  border-color: rgba(232, 92, 92, 0.25);
  color: var(--danger);
}

.main .chat-toggle-btn,
.main .transcript-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.main .chat-toggle-btn:hover,
.main .transcript-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #353B4F;
  color: var(--text);
}

.main .order-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
}

.main .order-btn:hover {
  color: var(--text);
  border-color: #353B4F;
}

.main .empty-state {
  max-width: none;
}

@media (max-width: 860px) {
  .module-nav-header {
    flex-wrap: nowrap;
    row-gap: 0;
  }
  .nav-back-row {
    flex: 0 0 auto;
  }
  .main {
    padding: 24px 16px 70px;
  }
  .main input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
  .main select {
    font-size: 16px;
  }
  .module-panel h3 {
    margin-top: 34px;
    padding-top: 24px;
  }
}

.module-nav-footer {
  margin: 0 -16px;
  padding: 12px 16px 16px;
}

.lock-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin: 0 0 8px;
  background: rgba(240, 180, 41, 0.06);
  border: 1px solid rgba(240, 180, 41, 0.22);
  border-radius: 12px;
}

.lock-banner.hidden {
  display: none;
}

.lock-banner-icon {
  color: var(--premium);
  font-size: 18px;
  line-height: 1.3;
}

.lock-banner strong {
  display: block;
  font-size: 14px;
  color: var(--premium-strong);
  margin-bottom: 2px;
}

.lock-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.module-panel h2 .premium-star {
  font-size: 17px;
  margin-left: 6px;
  vertical-align: 3px;
}

.module-nav-item .premium-star {
  margin-left: 8px;
  font-size: 12px;
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.35;
  cursor: not-allowed;
}

.main select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.main .btn-save:disabled {
  box-shadow: none;
}

/* ---------- Premium page ---------- */

.premium-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 130px 24px 60px;
  text-align: center;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: fadeUp 0.5s ease both;
}

.premium-hero .premium-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--premium-strong);
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid rgba(240, 180, 41, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
}

.premium-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.15;
  max-width: 780px;
  letter-spacing: -0.01em;
}

.premium-hero .hero-tagline {
  font-size: 16px;
  max-width: 620px;
}

.premium-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.premium-toc a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.premium-toc a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.reason-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.reason-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.reason-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-strong);
  flex-shrink: 0;
}

.reason-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.reason-block p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 640px;
}

.reason-block p + p {
  margin-top: 10px;
}

.reason-block code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: #CFD2E3;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.cost-card {
  background: rgba(22, 25, 34, 0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.cost-card .cost-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cost-card .cost-value {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-reason-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.feature-reason-row {
  display: grid;
  grid-template-columns: 1fr auto 120px;
  align-items: center;
  gap: 16px;
  background: rgba(22, 25, 34, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}

.feature-reason-row .frr-name {
  font-size: 14px;
  font-weight: 500;
}

.feature-reason-row .frr-why {
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: right;
}

.frr-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-align: center;
}

.frr-tag.resource {
  color: var(--danger);
  background: rgba(232, 92, 92, 0.1);
  border: 1px solid rgba(232, 92, 92, 0.25);
}

.frr-tag.value {
  color: var(--accent-strong);
  background: rgba(78, 134, 217, 0.1);
  border: 1px solid rgba(78, 134, 217, 0.25);
}

.free-promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.free-promise-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(62, 207, 142, 0.05);
  border: 1px solid rgba(62, 207, 142, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
}

.free-promise-item .fp-check {
  color: var(--success);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.free-promise-item p {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
  padding: 0 4px 20px;
  max-width: 700px;
}

.premium-final-cta {
  text-align: center;
  padding: 90px 24px 100px;
}

.premium-final-cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.premium-final-cta p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 28px;
}

:root {
  --bg: #101215;
  --surface: #181B20;
  --surface-alt: #20242B;
  --border: #2B3038;
  --border-strong: #424A55;
  --text: #F1F3F5;
  --text-muted: #A2AAB6;
  --radius: 7px;
}
body { background: var(--bg); }
h1, h2, h3 { letter-spacing: -0.025em; }
.site-nav, .ss-header, .module-nav { background: var(--surface); }
.hero, .landing-hero, .premium-hero { background-image: none; }
.btn-primary, .main .btn-save { box-shadow: none; border-radius: 7px; }
.btn-primary:hover, .btn-outline:hover, .main .btn-save:hover { transform: none; }
.module-card, .plan-card, .server-card, .status-card, .cost-card, .feature-reason-row {
  background: var(--surface); border-radius: 8px; box-shadow: none;
}
.module-card:hover, .server-card:hover, .status-card:hover { transform: none; box-shadow: none; }
.plan-card.plan-premium { border-color: #77643E; box-shadow: none; }
.module-card .nav-icon { background: transparent; border: none; width: 26px; height: 26px; margin-bottom: 12px; }
.ss-header .wordmark { background: none; -webkit-text-fill-color: var(--text); }
.module-nav-item.active { background: #223047; color: #C5DCFA; }
.main { background: var(--bg); }
.main input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.main select, .main textarea { background-color: #15181D; border-color: var(--border-strong); border-radius: 7px; }
.back-text { max-width: 160px; opacity: 1; margin-left: 8px; }
.back-pill { border-radius: 6px; }
a.server-card { text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
.landing-hero { max-width: 1120px; min-height: 670px; margin: auto; padding: 150px 32px 80px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; text-align: left; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-copy h1 { font-size: clamp(38px, 4.5vw, 58px); line-height: 1.08; }
.hero-copy .hero-tagline { max-width: 490px; line-height: 1.7; }
.hero-copy .landing-hero-ctas { justify-content: flex-start; gap: 12px; }
.hero-kicker { padding: 0; background: none; border: none; border-radius: 0; color: var(--text-muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.product-preview { border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); overflow: hidden; }
.preview-top { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.preview-top span { font-size: 11px; color: var(--text-muted); }
.preview-body { padding: 26px 24px; }
.preview-body h2 { font-size: 20px; margin-bottom: 4px; }
.preview-body > p { color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.preview-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--border); font-size: 14px; gap: 12px; }
.preview-row small { display: block; color: var(--text-muted); margin-top: 3px; font-size: 12px; }
.preview-state { font-size: 11px; color: #94CBA8; background: #20362A; border-radius: 4px; padding: 4px 8px; }
.preview-foot { color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--border); padding: 14px 24px; }
.site-footer { max-width: 1120px; margin: auto; }
.landing-section { padding: 68px 24px; }
@media (max-width: 860px) {
 .landing-hero { grid-template-columns: 1fr; min-height: auto; padding: 120px 24px 56px; gap: 36px; }
 .hero-copy h1 { font-size: 40px; }
 .site-nav { padding: 16px 20px; }
 .main { padding: 24px 16px 70px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.chat-message { white-space: pre-wrap; overflow-wrap: anywhere; }

.brand-home { text-decoration: none; display: inline-flex; }
.site-nav { position: sticky; background: #14171B; }
.site-nav-links a[aria-current="page"] { color: var(--text); }
.site-nav-links a.btn-primary { color: #fff; }
.landing-hero { padding-top: 76px; padding-bottom: 84px; min-height: 590px; }
.wordmark { font-weight: 750; letter-spacing: -.07em; }
.wordmark span { color: #97B7CB; }
:root { --accent: #397ABD; --accent-strong: #8CBDDF; }
.hero-copy h1 { font-weight: 700; letter-spacing: -.045em; }
.btn-primary, .main .btn-save { background: #397ABD; }
.btn-primary:hover, .main .btn-save:hover { background: #458ACA; }
.landing-section-head h2 { font-size: 30px; }
.section-eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.spotlight-section { background: #161B20; }
.spotlight-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 72px; }
.spotlight-layout h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; margin-bottom: 20px; }
.spotlight-layout > div > p { color: var(--text-muted); max-width: 470px; margin-bottom: 24px; }
.spotlight-note { padding: 28px; border: 1px solid #414339; background: #1B1E1C; border-radius: 10px; }
.spotlight-star { display: block; color: #D7B976; font-size: 34px; line-height: 1; margin-bottom: 20px; }
.spotlight-note h3 { font-size: 18px; margin-bottom: 8px; }
.spotlight-detail { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #343831; font-size: 12px; }
.spotlight-detail span { color: var(--text-muted); }
.module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.module-card { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 24px 24px 24px 0; }
.module-card:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--border); }
.module-card:hover { background: #171B20; }
.module-card .nav-icon svg, .module-nav-item .nav-icon svg { width: 19px; height: 19px; display: block; }
.module-nav-item .nav-icon { display: inline-flex; align-items: center; justify-content: center; opacity: .9; }
.module-nav { background: #15181D; }
.module-nav-group-label { font-size: 10px; letter-spacing: .09em; }
.module-nav-item { border-radius: 6px; font-size: 12.5px; }
.new-label { font-size: 9px; font-weight: 600; color: #AFCCBA; background: #24382B; padding: 2px 5px; border-radius: 4px; margin-left: auto; }
.workspace-header { display: flex; justify-content: space-between; gap: 20px; max-width: 780px; padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.workspace-header a { text-decoration: none; }
.module-panel h2 { font-size: 30px; font-weight: 650; }
.main .field > label { font-size: 12px; font-weight: 600; }
.main .field > .hint { margin: 8px 0 0; font-size: 12px; }
.main textarea { width: 100%; resize: vertical; line-height: 1.6; }
.highlight-summary { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid #444239; background: #1D201E; border-radius: 8px; margin-bottom: 28px; }
.highlight-summary-icon { color: #D7B976; font-size: 28px; }
.highlight-summary p { color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.highlight-preview { padding: 18px 20px; background: var(--surface); border-left: 3px solid #BDA363; border-radius: 4px; }
.highlight-preview .section-eyebrow { margin-bottom: 8px; }
.highlight-preview p { font-size: 13px; color: var(--text-muted); }
.premium-hero { min-height: auto; padding: 70px 24px 56px; text-align: left; align-items: flex-start; max-width: 1090px; margin: auto; }
.premium-hero h1 { font-size: clamp(32px, 4vw, 48px); max-width: 650px; }
.premium-toc { justify-content: flex-start; gap: 8px; }
.premium-toc a { border-radius: 5px; background: var(--surface); }
.premium-kicker { border-radius: 5px !important; }
.status-page { max-width: 1120px; padding-top: 48px; }
.status-header { text-align: left; align-items: flex-start; }
.status-summary { background: var(--surface); box-shadow: none; border-radius: 8px; }
.status-grid { gap: 16px; }
@media (max-width: 760px) {
 .site-nav { flex-wrap: wrap; gap: 12px; padding: 14px 18px; }
 .site-nav-links { gap: 16px; flex-wrap: wrap; }
 .site-nav-links a:not(.btn-primary) { display: inline; font-size: 12px; }
 .site-nav-links .btn-primary { padding: 7px 12px; font-size: 12px; }
 .landing-hero { padding: 46px 20px 48px; }
 .spotlight-layout { grid-template-columns: 1fr; gap: 28px; }
 .module-grid { grid-template-columns: 1fr; }
 .module-card:nth-child(even) { padding-left: 0; border-left: 0; }
 .workspace-header { margin-bottom: 24px; font-size: 11px; }
 .module-panel h2 { font-size: 25px; }
 .premium-hero { padding: 40px 20px; }
 .ss-header { padding: 16px 20px; }
 .ss-inner { padding: 32px 20px; }
 .status-page { padding: 32px 20px; }
}
