:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Updated Color Palette */
  --primary: #80d8ff;
  --primary-dark: #3f6ce6;
  --secondary: #8f7bff;
  --accent: #3fd3b3;
  --accent-dark: #1fa091;
  --support-backdrop: rgba(68, 51, 138, 0.16);
  --support-border: rgba(139, 92, 246, 0.12);

  /* Neutral Colors */
  --gray-50: #eef6ff;
  --gray-100: #d9e3fb;
  --gray-200: #b7c8ed;
  --gray-300: #8fa5d7;
  --gray-400: #6f86bb;
  --gray-500: #5c6d9f;
  --gray-600: #4a577f;
  --gray-700: #333f62;
  --gray-800: #1f2a44;
  --gray-900: #0d1524;

  /* Semantic Colors */
  --background: #070d1b;
  --surface: rgba(11, 18, 36, 0.94);
  --surface-soft: rgba(20, 28, 54, 0.92);
  --surface-hover: rgba(23, 34, 61, 0.95);
  --border: rgba(128, 216, 255, 0.16);
  --border-light: rgba(128, 216, 255, 0.08);

  /* Text Colors */
  --text-primary: #edf2ff;
  --text-secondary: #c6d4f5;
  --text-muted: #9eb2d9;
  --text: #edf2ff;
  --muted: #9eb2d9;

  /* Status Colors */
  --success: #33d7a4;
  --warning: #f7b84b;
  --error: #f26f82;
  --info: #6fc9ff;

  /* Shadows and Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.16), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 25px -5px rgba(0, 0, 0, 0.22), 0 6px 12px -4px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.26), 0 10px 20px -8px rgba(0, 0, 0, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  --gradient-surface: linear-gradient(135deg, var(--surface) 0%, rgba(20, 28, 54, 0.92) 100%);
  --accent-soft: rgba(63, 211, 179, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    /* Clean gradient background */
    linear-gradient(135deg, var(--background) 0%, #0f1419 50%, #0a0b1a 100%),
    /* Subtle pattern overlay */
    radial-gradient(circle at 25% 25%, rgba(0, 191, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
}

body {
  line-height: 1.55;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 18px;
  background: linear-gradient(135deg, #00BFFF, #A855F7);
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-label {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.08);
  color: #eef4ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.icon-button {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 26, 0.94);
  position: relative;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.icon-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: #b7c6ff;
  border-radius: 999px;
  position: absolute;
}

.icon-button span:nth-child(1) { top: 14px; }
.icon-button span:nth-child(2) { top: 22px; }
.icon-button span:nth-child(3) { top: 30px; }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 5, 18, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  padding: 32px 18px;
  background: rgba(7, 12, 28, 0.98);
  border-right: 1px solid rgba(73, 190, 255, 0.12);
  transform: translateX(-112%);
  transition: transform 220ms ease;
  z-index: 30;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(73, 190, 255, 0.14);
}

.sidebar-brand-wrap {
  display: grid;
  gap: 2px;
}

.sidebar-brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e8f4ff;
  margin: 0;
}

.sidebar-brand-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #7fa8c9;
}

.sidebar-tier-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 190, 255, 0.35);
  background: rgba(64, 220, 255, 0.12);
  color: #9bd7ff;
}

.sidebar-tier-badge.tier-standard {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.14);
  color: #d8b4fe;
}

.sidebar-tier-badge.tier-premium {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.sidebar-nav-core {
  display: grid;
  gap: 8px;
}

.sidebar-nav-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(73, 190, 255, 0.12);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-link-icon {
  width: 1.35rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.sidebar-link-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-link-text--command {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.panel-embed-tier-note {
  margin-bottom: 12px;
}

.tier-upgrade-prompt {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(64, 220, 255, 0.08));
}

.tier-upgrade-prompt-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.tier-upgrade-prompt-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: #fde68a;
}

.tier-upgrade-prompt-copy {
  flex: 1;
  min-width: 180px;
}

.tier-upgrade-prompt-title {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
}

.tier-upgrade-prompt-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #b8c9de;
  line-height: 1.45;
}

.tier-upgrade-prompt-btn {
  align-self: center;
  white-space: nowrap;
}

.tier-feature-locked {
  opacity: 0.45;
  filter: grayscale(0.35);
}

.tier-feature-locked input,
.tier-feature-locked textarea,
.tier-feature-locked select,
.tier-feature-locked button {
  pointer-events: none;
}

[data-tier-upgrade-host] {
  min-height: 0;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-nav-group {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.sidebar-nav-heading {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fa8c9;
  padding: 4px 6px 0;
}

.sidebar-nav-panel {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.sidebar-nav-sub {
  display: grid;
  gap: 6px;
  padding-left: 4px;
  border-left: 2px solid rgba(73, 190, 255, 0.2);
  margin-left: 6px;
}

.sidebar-link-sub {
  padding: 8px 12px;
  font-size: 0.84rem;
  min-width: 0;
}

#sidebar-nav-footer {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(73, 190, 255, 0.12);
}

.panel-page-header {
  margin-bottom: 12px;
}

.panel-page-body {
  margin-bottom: 16px;
}

.panel-page-toolbar {
  margin-bottom: 16px;
}

.panel-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 16px;
}

.panel-guild-line code {
  font-size: 0.85em;
}

#dashboard-dynamic-pages {
  display: grid;
  gap: 0;
}

.sidebar-link {
  position: relative;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef4ff;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.sidebar-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  min-width: 180px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(4, 8, 22, 0.95);
  color: #e8f0ff;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  display: none;
  pointer-events: none;
  white-space: normal;
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease;
  transform: translateY(-50%) translateX(-5px);
  z-index: 40;
}

.sidebar-link:hover::after,
.sidebar-link:focus-visible::after {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(64, 220, 255, 0.18);
  transform: translateX(1px);
  color: var(--primary);
}

.sidebar-nav .sidebar-link[data-action] {
  text-align: left;
  width: 100%;
}

.sidebar-link.active[data-action] {
  font-weight: 600;
  border-color: rgba(41, 128, 255, 0.38);
}

.sidebar-link.sidebar-link--enabled {
  background: rgba(46, 204, 113, 0.14);
  box-shadow: inset 3px 0 0 rgba(46, 204, 113, 0.85);
}

.sidebar-link.sidebar-link--enabled:hover {
  background: rgba(46, 204, 113, 0.22);
}

/* Admin tab buttons */
.admin-tab {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.admin-tab.active,
.admin-tab:hover {
  background: var(--gradient-primary);
  color: #07112a;
  transform: translateY(-1px);
}

/* Generic right-side tooltip for elements with data-tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(-6px);
  min-width: 180px;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(6, 12, 28, 0.98);
  color: #e8f0ff;
  font-size: 0.9rem;
  line-height: 1.3;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  opacity: 0;
  display: none;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* When JS tooltip is used, hide the CSS ::after tooltip */
[data-tooltip].use-js-tooltip::after {
  display: none;
}

/* Floating tooltip used by JS positioning (fallback for edge cases) */
.tooltip-popup {
  position: fixed;
  min-width: 180px;
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(6, 12, 28, 0.98);
  color: #e8f0ff;
  font-size: 0.9rem;
  line-height: 1.3;
  box-shadow: 0 18px 48px rgba(0,0,0,0.32);
  z-index: 1200;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.tooltip-popup.hidden { opacity: 0; transform: translateY(-4px); }
.tooltip-popup.visible { opacity: 1; transform: translateY(0); }

.admin-panel-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.admin-sidebar {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 24px;
}

.admin-sidebar .admin-tab {
  width: 100%;
  text-align: left;
}

.admin-main {
  min-width: 0;
}

.admin-content {
  display: none;
}

.admin-content.active {
  display: block;
}

.owner-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.overview-guide {
  margin-bottom: 20px;
}

.overview-guide h3 {
  margin-top: 0;
}

.overview-lead {
  margin-bottom: 20px;
}

.overview-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.overview-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.overview-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(64, 220, 255, 0.2);
  color: var(--primary, #40dcff);
  font-weight: 700;
  font-size: 0.85rem;
}

.overview-step p {
  margin: 6px 0 0;
  color: var(--text-muted, #b8c4e0);
  font-size: 0.92rem;
  line-height: 1.5;
}

.overview-step strong {
  color: #eef4ff;
}

.overview-support-card {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(64, 220, 255, 0.08);
  border: 1px solid rgba(64, 220, 255, 0.22);
}

.overview-support-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.overview-support-card p {
  margin: 0 0 14px;
  color: var(--text-muted, #b8c4e0);
  font-size: 0.92rem;
  line-height: 1.5;
}

#dashboard-overview-section {
  display: flex;
  flex-direction: column;
}

.overview-status-grid {
  margin-top: 4px;
}

.member-dashboard--logged-in .overview-status-grid {
  order: -1;
  margin-top: 0;
  margin-bottom: 24px;
}

.member-dashboard--logged-in .overview-guide {
  order: 0;
}

.member-dashboard--public-overview {
  scroll-margin-top: 88px;
}

.member-dashboard--public-overview .overview-status-grid,
.member-dashboard:not(.member-dashboard--logged-in) .overview-status-grid {
  display: none;
}

.owner-summary-card h3 {
  margin-top: 0;
}

.owner-summary-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.owner-summary-list li {
  font-size: 0.95rem;
  color: #dce5ff;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: block;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-header h3 {
  margin: 0 0 8px;
}

.dashboard-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guild-info-card {
  min-height: 110px;
  border-radius: 20px;
  padding: 20px;
  background: rgba(12, 16, 42, 0.96);
  border: 1px solid rgba(86, 196, 255, 0.16);
  display: flex;
  align-items: center;
  color: #dbe8ff;
}

@media (max-width: 960px) {
  .topbar {
    width: calc(100% - 24px);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    max-width: 320px;
  }

  .icon-button {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
}
}

a {
  color: #90d7ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  align-items: stretch;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b7b5ff;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.tagline {
  margin: 20px 0 0;
  max-width: 65ch;
  color: #c8cbff;
  font-size: 1.05rem;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(12, 10, 34, 0.96), rgba(18, 11, 43, 0.92));
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(41, 24, 93, 0.32);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
  color: #dce5ff;
  font-weight: 600;
}

.panel-header small {
  color: #8ecbff;
  font-size: 0.92rem;
}

.panel-content label,
.field-group label {
  display: block;
  margin-bottom: 10px;
  color: #a8caff;
  font-size: 0.95rem;
}

.panel-intro {
  margin-bottom: 20px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(12, 16, 36, 0.95);
  border: 1px solid rgba(72, 195, 255, 0.18);
}

.panel-intro p {
  margin: 0 0 12px;
  color: #e6f3ff;
  line-height: 1.7;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(159, 121, 255, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(12, 8, 28, 0.96);
  color: #f3f5ff;
  font: inherit;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: auto;
  padding: 0;
  margin: 0;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(144, 215, 255, 0.55);
}

button {
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #38b0ff 0%, #f472b6 55%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  box-shadow: 0 12px 28px rgba(59, 132, 255, 0.22);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(139, 92, 246, 0.24);
}

button.save-button {
  width: 100%;
  margin-top: 24px;
}

.status {
  margin-top: 18px;
  color: #c6e9ff;
  font-size: 0.98rem;
}

.section {
  margin-top: 28px;
}

.tos-page {
  display: none !important;
}

.tos-modal-content {
  max-width: 720px;
  width: min(94vw, 720px);
  padding: 0;
}

.tos-modal-intro {
  margin: 0 24px 12px;
  color: #b8c4e0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tos-modal-body {
  padding: 0 24px 24px;
  max-height: min(70vh, 640px);
  overflow-y: auto;
}

.tos-modal-body.tos-document {
  max-width: none;
  margin: 0;
  padding: 0 24px 24px;
  border: none;
  box-shadow: none;
  background: transparent;
}

.tos-document {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 36px;
}

.tos-document h3,
.tos-modal-body h4 {
  margin: 28px 0 12px;
  color: #eef4ff;
  font-size: 1.15rem;
}

.tos-document h3:first-of-type,
.tos-modal-body h4:first-of-type {
  margin-top: 8px;
}

.tos-document p {
  margin: 0 0 14px;
  color: #c6d4f0;
  line-height: 1.75;
  font-size: 0.98rem;
}

.tos-updated {
  margin-bottom: 20px !important;
  color: #9eb4dc !important;
  font-size: 0.9rem !important;
}

.tos-list {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #c6d4f0;
  line-height: 1.75;
}

.tos-list li {
  margin-bottom: 8px;
}

.tos-acknowledgment {
  margin-top: 24px !important;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.22);
  color: #e8f0ff !important;
}

.tos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-actions button:not(.btn-rainbow),
.nav-actions .profile-button {
  background: var(--support-backdrop) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--support-border) !important;
  box-shadow: none !important;
}

.nav-actions .nav-login-btn,
.nav-actions .nav-admin-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-container > .navbar-tos-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 999px;
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
}

.support {
  padding: 40px 0 8px;
}

.support-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 32px;
  background: var(--support-backdrop);
  border: 1px solid var(--support-border);
  box-shadow: 0 28px 88px rgba(63, 12, 173, 0.18);
}

.support-card h3 {
  margin-bottom: 18px;
  color: #fff;
}

.support-card ol {
  padding-left: 20px;
  color: #ced7ff;
  line-height: 1.8;
}

.support-card li {
  margin-bottom: 12px;
}

.support-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--support-backdrop);
  border: 1px solid var(--support-border);
  color: #dbe6ff;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(18, 10, 44, 0.96), rgba(13, 11, 32, 0.94));
  border: 1px solid rgba(244, 114, 182, 0.16);
  box-shadow: 0 20px 52px rgba(22, 12, 62, 0.28);
}

.card h2 {
  margin: 0 0 16px;
  color: #f4f5ff;
}

.card p {
  margin: 0;
  color: #c4c7ff;
}

.admin-panel {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr;
}

.panel-shell {
  border-radius: 28px;
  background: rgba(68, 51, 138, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.18);
  padding: 26px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.control-panel-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1280px) {
  .control-panel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .control-panel-grid {
    grid-template-columns: 1fr;
  }
}

#guild-page .panel-shell {
  background: rgba(68, 51, 138, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.18);
  padding: 28px;
}

.guild-settings-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.settings-box {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.2s ease;
  min-width: 0;
}

.settings-box:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.12);
}

.settings-box-header {
  background: rgba(168, 85, 247, 0.08);
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  padding: 16px 20px;
}

.settings-box-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e7fbff;
}

.settings-box-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.settings-box-content textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid rgba(128, 216, 255, 0.14);
  border-radius: 8px;
  background: rgba(24, 33, 55, 0.94);
  color: #eef4ff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  min-height: 80px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.settings-box-content textarea:focus,
.settings-box-content input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(128, 216, 255, 0.14);
}

.settings-box-content textarea::placeholder,
.settings-box-content input::placeholder {
  color: rgba(238, 244, 255, 0.5);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  margin: 0;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.panel-shell.embed-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.embed-settings,
.embed-preview-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.embed-tier-badge {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
  font-size: 0.9rem;
}

.command-preset-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.command-page-fields {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.tier-hint {
  margin-top: 0;
}

.command-page-simplified {
  display: grid;
  gap: 12px;
}

.command-page-simplified .btn {
  justify-self: start;
}

.owner-package-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.owner-plan-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.owner-plan-card h4 {
  margin: 0 0 8px;
}

.owner-plan-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 0.88rem;
  max-height: 180px;
  overflow-y: auto;
}

.owner-plan-card-muted {
  opacity: 0.9;
}

.embed-global-color-row {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .panel-shell.embed-grid {
    grid-template-columns: 1fr;
  }

  .guild-settings-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-box-content {
    padding: 16px;
  }

  .panel-shell {
    padding: 20px;
  }
}

.embed-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.embed-actions button {
  flex: 1;
  min-width: 140px;
}

.preview-panel {
  min-height: 220px;
  border-radius: 20px;
  border: 1px solid rgba(88, 146, 255, 0.18);
  background: rgba(10, 12, 26, 0.94);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.embed-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(32, 37, 47, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d8e3;
  font-size: 0.9rem;
}

.embed-preview-header strong {
  color: #ffffff;
}

.preview-card {
  width: 100%;
  max-width: 520px;
  background: #2f3136;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
}

.discord-message {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(54, 57, 63, 0.95);
  border-radius: 16px;
  padding: 18px;
}

.discord-message-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f97ff 0%, #7f5dff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.discord-message-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.discord-message-author-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.discord-message-bot-label {
  color: #ffffff;
  background: rgba(79, 84, 92, 0.9);
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.discord-message-author-meta {
  font-size: 12px;
  color: #b9bbbe;
}

.discord-embed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #2f3136;
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  position: relative;
  width: 100%;
  font-family: 'Whitney', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  color: #dcddde;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.discord-embed-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.discord-embed-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.discord-embed-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: flex-start;
}

.discord-embed-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.375;
  margin: 0;
  word-wrap: break-word;
}

.discord-embed-description {
  color: #dcddde;
  line-height: 1.625;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
  margin: 0;
}

.discord-embed-footer {
  color: #72767d;
  font-size: 12px;
  line-height: 1.333;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  word-wrap: break-word;
}

.embed-meta-box strong {
  color: #eef4ff;
}

.preview-card {
  width: 100%;
  max-width: 520px;
  background: #36393f;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 16px;
}

.discord-embed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: #2f3136;
  border-radius: 16px;
  border-left: 4px solid #5865f2;
  position: relative;
  max-width: 520px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
  font-family: 'Whitney', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  color: #dcddde;
}

.discord-embed-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-embed-author-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f97ff 0%, #7f5dff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.discord-embed-author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-embed-author-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.discord-embed-author-subtitle {
  font-size: 12px;
  color: #b9bbbe;
}

.discord-embed-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.discord-embed-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
}

.discord-embed-description {
  color: #dcddde;
  line-height: 1.625;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
  margin: 0;
}

.discord-embed-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: flex-start;
}

.discord-embed-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 16px;
  border-radius: 8px;
}

.discord-embed-footer {
  color: #b9bbbe;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  word-wrap: break-word;
}

.discord-embed-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 16px;
}

.preview-card.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: #36393f;
  color: #b9bbbe;
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-embed-footer {
  color: #b4c8ff;
  font-size: 0.92rem;
  opacity: 0.88;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.command-summary,
.guild-info {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(12, 16, 42, 0.95);
  border: 1px solid rgba(66, 214, 255, 0.18);
  margin-bottom: 16px;
  color: #e6f7ff;
  word-break: break-word;
}

.command-summary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.command-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.command-actions button {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: rgba(64, 220, 255, 0.16);
  color: #ecf5ff;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.command-actions button:hover {
  transform: translateY(-1px);
  background: rgba(99, 204, 255, 0.26);
}

.command-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.command-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(16, 16, 44, 0.92);
  border: 1px solid rgba(72, 199, 255, 0.16);
  transition: all 0.2s ease;
}

.command-item:hover {
  background: rgba(16, 16, 44, 0.98);
  border-color: rgba(72, 199, 255, 0.24);
  transform: translateY(-1px);
}

.command-item-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.command-item-actions button {
  min-width: 80px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.command-item-actions button.enable {
  background: linear-gradient(135deg, #43b581, #3ba55c);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(67, 181, 129, 0.3);
}

.command-item-actions button.enable:hover:not(:disabled) {
  background: linear-gradient(135deg, #3ba55c, #2d7d46);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 181, 129, 0.4);
}

.command-item-actions button.disable {
  background: linear-gradient(135deg, #f04747, #d84040);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(240, 71, 71, 0.3);
}

.command-item-actions button.disable:hover:not(:disabled) {
  background: linear-gradient(135deg, #d84040, #b73535);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 71, 71, 0.4);
}

.command-item-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.command-item strong {
  display: block;
  font-size: 1rem;
  color: #edf0ff;
}

.command-item span {
  display: block;
  margin-top: 4px;
  color: #b7d6ff;
  font-size: 0.9rem;
}

.command-item-settings {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.command-item-settings .command-setting-label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #d3d9ff;
}

.command-item-settings .command-setting-label input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(115, 148, 255, 0.18);
  background: rgba(14, 17, 40, 0.95);
  color: #eff3ff;
}

.command-item-actions .command-save-button {
  min-width: 90px;
  background: linear-gradient(135deg, #7289da, #4f6fd0);
  color: #ffffff;
}

.command-item-actions .command-save-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #5b6ec9, #3d57b7);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: flex-end;
}

.form-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(19, 24, 58, 0.85);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(103, 120, 229, 0.18);
  color: #d7dcff;
}

.form-group-half {
  display: flex;
  flex-direction: column;
}

.form-group-half input {
  border-radius: 10px;
  border: 1px solid rgba(115, 148, 255, 0.18);
  background: rgba(14, 17, 40, 0.95);
  color: #eff3ff;
  padding: 10px 12px;
}

.form-group textarea,
.form-group input[type='text'],
.form-group input[type='number'] {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(115, 148, 255, 0.18);
  background: rgba(14, 17, 40, 0.95);
  color: #eff3ff;
}

/* Guild Help Styles */
.guild-help-guide {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.guide-step {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 191, 255, 0.05);
  border-left: 4px solid #00BFFF;
  border-radius: 8px;
}

.step-number {
  font-size: 24px;
  font-weight: 700;
  color: #00BFFF;
  min-width: 40px;
  text-align: center;
}

.step-content h5 {
  margin: 0 0 8px 0;
  color: #eef4ff;
  font-size: 1rem;
}

.step-content p {
  margin: 0;
  color: #b7d6ff;
  font-size: 0.9rem;
}

.guild-id-note {
  padding: 16px;
  background: rgba(168, 85, 247, 0.05);
  border-radius: 8px;
  border-left: 4px solid #A855F7;
  margin-top: 16px;
}

.guild-id-note p {
  margin: 8px 0;
  color: #b7d6ff;
  font-size: 0.9rem;
}

.guild-id-note code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: #00BFFF;
  font-family: 'Courier New', monospace;
}

.command-item input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #3de3ff;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.permission-item--slash {
  gap: 8px;
  padding: 8px 10px;
  min-width: 0;
  justify-content: flex-start;
}

.permission-item--with-action {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.permission-item--with-action label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.permission-item--with-action .manage-configure-btn {
  flex-shrink: 0;
}

.permission-item--slash .slash-cmd-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8f0ff;
  letter-spacing: -0.02em;
}

.permission-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  grid-auto-flow: dense;
  max-height: 380px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(159, 121, 255, 0.25);
  border-radius: 16px;
  background: rgba(12, 8, 28, 0.96);
}

#member-command-toggle-list.permission-grid,
#member-feature-toggle-list.permission-grid {
  grid-template-columns: 1fr;
  max-height: none;
}

.manage-toggle-grid {
  grid-template-columns: 1fr !important;
}

.manage-toggle-row {
  display: grid;
  grid-template-columns: 20px minmax(88px, 140px) 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(159, 121, 255, 0.12);
  cursor: pointer;
  color: #dce5ff;
  margin: 0;
}

.manage-toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.manage-toggle-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #e8f0ff;
  white-space: nowrap;
}

.manage-toggle-row--slash .manage-toggle-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.manage-toggle-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #9aa8c7;
  min-width: 0;
}

@media (max-width: 520px) {
  .manage-toggle-row {
    grid-template-columns: 20px 1fr;
  }
  .manage-toggle-desc {
    grid-column: 2;
  }
}

.panel-manage-hint {
  margin-bottom: 12px;
}

.permission-config-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.permission-panel h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #cfd3f8;
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: #dce5ff;
  font-size: 0.92rem;
}

.permission-grid label.permission-item--slash {
  padding: 8px 10px;
  font-size: 0.8rem;
}

.permission-grid input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #3de3ff;
}

.permission-grid--dense {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  max-height: 200px;
}

.permission-config-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .permission-config-grid--wide {
    grid-template-columns: 1fr;
  }
}

.owner-admin-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.owner-admin-top-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .owner-admin-top-row {
    grid-template-columns: 1fr;
  }
}

.owner-permissions-shell {
  width: 100%;
}

.control-panel-settings-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-panel {
  border: 1px solid rgba(159, 121, 255, 0.28);
  border-radius: 14px;
  background: rgba(12, 8, 28, 0.92);
  overflow: hidden;
}

.settings-panel > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: #e8ecff;
  list-style: none;
}

.settings-panel > summary::-webkit-details-marker {
  display: none;
}

.settings-panel-body {
  padding: 0 16px 16px;
}

.feature-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.feature-toggle-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.command-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.command-settings-panel summary .command-summary-desc {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #a8b2d8;
}

.command-settings-body .command-setting-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.command-settings-body .command-setting-label input {
  width: 100%;
}

.embed-builder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 1fr);
  gap: 20px;
}

.embed-color-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.embed-color-inputs input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid rgba(159, 121, 255, 0.35);
  border-radius: 8px;
  background: rgba(12, 10, 24, 0.6);
  cursor: pointer;
}

.embed-color-inputs input[type="text"] {
  flex: 1;
}

.embed-send-options {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(159, 121, 255, 0.15);
}

.embed-send-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.embed-send-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

.embed-webhook-fields {
  margin-bottom: 12px;
}

.embed-scheduler .scheduled-embed-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: center;
}

.embed-schedule-webhook-toggle {
  grid-column: 1 / -1;
}

.word-filter-editor-wrap {
  margin-bottom: 0;
}

.blocked-words-editor {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

.word-filter-count {
  margin-top: 8px;
  margin-bottom: 0;
}

.blocked-word-list-wrap h4 {
  margin: 0 0 8px;
}

.purge-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0;
}

.purge-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

.purge-section-title {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.purge-divider {
  border: none;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  margin: 20px 0;
}

.purge-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.purge-schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.purge-schedule-item-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.purge-schedule-item-copy span {
  opacity: 0.85;
}

.purge-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .purge-weekday-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.purge-weekday-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(159, 121, 255, 0.15);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.purge-weekday-option input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.purge-weekday-label {
  line-height: 1;
  white-space: nowrap;
}

#purge-schedule-days-wrap.purge-days-disabled .purge-weekday-option {
  opacity: 0.55;
  pointer-events: none;
}

.purge-everyday-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.purge-schedule-form {
  margin-top: 12px;
  padding: 14px;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.backup-upload-btn {
  cursor: pointer;
  margin: 0;
}

.backup-upload-btn input[type="file"] {
  display: none;
}

.backup-status-note {
  margin-top: 12px;
}

.ticket-section-title {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.ticket-types-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.ticket-type-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.ticket-type-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.ticket-type-add-row input,
.ticket-type-add-row select {
  flex: 1 1 120px;
}

.verification-checks-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.verification-checks-row label {
  font-size: 0.92rem;
  cursor: pointer;
}

.preview-verify-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #248046;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-danger {
  background: #ed4245;
  border-color: #ed4245;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #c03537;
  border-color: #c03537;
}

@media (max-width: 900px) {
  .embed-builder-grid {
    grid-template-columns: 1fr;
  }
}

.form-row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-row-wrap input,
.form-row-wrap textarea,
.form-row-wrap select {
  flex: 1 1 180px;
  min-width: 140px;
}

.panel-divider {
  border: none;
  border-top: 1px solid rgba(159, 121, 255, 0.2);
  margin: 20px 0;
}

.panel-save-bar {
  margin-top: 16px;
  justify-content: flex-start;
}

.preview-host {
  margin-top: 12px;
  min-height: 80px;
}

.preview-host .preview-card {
  display: block;
}

.field-help {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #7a92b0;
  line-height: 1.45;
}

.btn[data-tooltip],
button[data-tooltip],
.sidebar-link[data-tooltip] {
  position: relative;
}

[data-tooltip]:not(.sidebar-link):hover {
  cursor: help;
}

.page-logo {
  width: 140px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .hero,
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    max-width: none;
    left: 0;
    transform: translateX(0);
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(73, 190, 255, 0.12);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-link {
    padding: 12px 14px;
  }

  .sidebar-link[data-tooltip]::after {
    display: none;
  }
}

/* Clean professional overrides for the public landing page */
.light-theme {
  --bg: #07101f;
  --surface: rgba(11, 18, 36, 0.95);
  --surface-soft: rgba(20, 28, 54, 0.92);
  --border: rgba(128, 216, 255, 0.18);
  --text: #edf2ff;
  --muted: #9eb2d9;
  --accent: #3fd3b3;
  --accent-soft: rgba(63, 211, 179, 0.12);
  --shadow: 0 24px 60px rgba(3, 9, 28, 0.30);
}

html, body {
  background: radial-gradient(circle at 15% 18%, rgba(128, 216, 255, 0.10), transparent 18%),
              radial-gradient(circle at 85% 20%, rgba(63, 211, 179, 0.08), transparent 16%),
              linear-gradient(180deg, #07101f 0%, #081a30 45%, #091426 100%);
  color: var(--text-primary);
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

button,
.btn {
  font: inherit;
  cursor: pointer;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 35px rgba(63, 108, 240, 0.18);
}

.nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-button {
  min-width: 140px;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(11, 18, 36, 0.98);
  border: 1px solid rgba(128, 216, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 60;
}

.profile-dropdown.active {
  display: block;
}

.profile-dropdown button {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
}

.profile-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hidden {
  display: none !important;
}

.member-dashboard {
  padding: 60px 0;
}

.dashboard-section-label {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #eef4ff;
  letter-spacing: 0.02em;
}

.cart-page,
.activate-page {
  padding: 60px 0;
}

.cart-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: start;
}

.cart-subheading {
  margin: 24px 0 12px;
  color: #eef4ff;
}

.payment-methods {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.payment-option {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(128, 216, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.payment-option:hover,
.payment-option.selected {
  border-color: rgba(41, 128, 255, 0.45);
  background: rgba(41, 128, 255, 0.12);
  transform: translateY(-1px);
}

.payment-option-title {
  font-weight: 600;
}

.payment-option-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-payment-alt-note {
  margin: 12px 0 0;
  line-height: 1.5;
}

.cart-payment-alt-note a {
  color: #6eb5ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-payment-alt-note a:hover {
  color: #9eceff;
}

.cart-payment-details {
  margin-top: 18px;
}

.payment-code-hero {
  margin: 20px 0;
  padding: 18px;
  border-radius: 14px;
  background: rgba(41, 128, 255, 0.1);
  border: 1px solid rgba(41, 128, 255, 0.28);
  text-align: center;
}

.payment-code-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.payment-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-code-hero .payment-code {
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
}

.payment-code-hint {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.payment-order-ref {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.payment-method-card {
  margin-top: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(128, 216, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.payment-method-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(41, 128, 255, 0.18);
  color: #b9d7ff;
}

.payment-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.payment-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.payment-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #8ec5ff;
}

.payment-step-text {
  line-height: 1.45;
  color: #e8eef8;
}

.payment-visual {
  margin-top: 16px;
}

.payment-visual-screen {
  max-width: 280px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(41, 128, 255, 0.2), rgba(0, 0, 0, 0.2));
  border: 1px dashed rgba(128, 216, 255, 0.25);
  display: grid;
  gap: 6px;
  text-align: center;
}

.payment-visual-screen--cash {
  background: linear-gradient(160deg, rgba(0, 200, 83, 0.18), rgba(0, 0, 0, 0.2));
}

.payment-visual-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.payment-visual-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.payment-visual-note {
  font-size: 0.85rem;
  color: #c5d4ea;
  word-break: break-word;
}

.payment-detail-panel {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(128, 216, 255, 0.12);
}

.stripe-card-element {
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(128, 216, 255, 0.18);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(128, 216, 255, 0.1);
}

.cart-summary-total {
  font-size: 1.1rem;
  border-bottom: none;
  margin-top: 8px;
}

.cart-plan-blurb {
  margin: 16px 0;
  color: var(--muted);
  line-height: 1.5;
}

.cart-pending-panel {
  margin-top: 24px;
}

.payment-code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(128, 216, 255, 0.12);
  color: #e8f4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.payment-instructions p {
  margin: 8px 0;
}

.panel-rejoin-results {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(128, 216, 255, 0.2);
  background: rgba(8, 20, 36, 0.55);
}

.panel-rejoin-results h4 {
  margin: 0 0 10px;
}

.panel-rejoin-results ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.panel-rejoin-invite-list a {
  color: #80d8ff;
}

.activate-form {
  display: grid;
  gap: 4px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.dashboard-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.dashboard-tab {
  border: 1px solid rgba(128, 216, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.dashboard-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-tab.active {
  background: rgba(41, 128, 255, 0.16);
  color: var(--primary);
  border-color: rgba(41, 128, 255, 0.38);
}

.dashboard-tab-content {
  animation: fadeIn 0.18s ease;
}

.dashboard-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-grid-compact {
  grid-template-columns: minmax(340px, 1.6fr) minmax(260px, 1fr);
}

.dashboard-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(13, 18, 39, 0.96);
  border: 1px solid rgba(86, 196, 255, 0.14);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.dashboard-card-primary {
  display: grid;
  gap: 18px;
}

.dashboard-card-secondary {
  display: grid;
  gap: 16px;
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.dashboard-card h3 {
  margin: 0 0 12px;
  color: #eef4ff;
}

.btn-rainbow,
button.btn-rainbow {
  background: linear-gradient(135deg, #38b0ff 0%, #f472b6 55%, #8b5cf6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 30px rgba(56, 176, 255, 0.24);
}

.btn-rainbow:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.dashboard-card p,
.dashboard-info-row,
.dashboard-links {
  margin: 0;
  color: #c6d8ff;
  line-height: 1.7;
}

.dashboard-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(128, 216, 255, 0.08);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.dashboard-links li {
  margin: 0;
}

.dashboard-links .sidebar-link,
.dashboard-links a.sidebar-link {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(128, 216, 255, 0.08);
  color: #e8f3ff;
}

.dashboard-links .sidebar-link:hover,
.dashboard-links a.sidebar-link:hover {
  background: rgba(63, 211, 179, 0.08);
  border-color: rgba(63, 211, 179, 0.18);
  }

  .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
  }

  .nav-link-action {
    color: var(--primary);
    font-weight: 700;
  }

  .nav-link-action:hover {
    color: #a1dbff;
    text-decoration: underline;
  }

  .nav-link-action.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
  }

  .nav-link:hover {
    color: var(--primary);
    background: rgba(0, 191, 255, 0.1);
  }

.icon-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 20, 39, 0.92);
  position: relative;
  padding: 0;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary,
button.btn-primary {
  background: var(--support-backdrop);
  color: var(--text-primary);
  border-color: var(--support-border);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.28);
}

.btn-secondary,
button.btn-secondary {
  background: var(--support-backdrop);
  color: var(--text-primary);
  border: 1px solid var(--support-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(68, 51, 138, 0.22);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--text-primary);
}

.btn-outline,
button.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  margin: 24px 0 18px;
  font-size: clamp(3rem, 4.5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 44rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.stat-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
}

.login-page {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 14, 0.96);
  backdrop-filter: blur(22px);
  z-index: 1000;
}

.login-page.active {
  display: flex;
}

.login-panel {
  width: min(540px, 100%);
  background: rgba(68, 51, 138, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 32px;
  box-shadow: 0 36px 96px rgba(63, 12, 173, 0.24);
  padding: 34px;
}

.login-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef4ff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.login-panel-form .form-group {
  margin-bottom: 18px;
}

.login-panel-help {
  margin-top: 22px;
  color: #c8d8ff;
  line-height: 1.7;
}

.login-panel-help h4 {
  margin-bottom: 12px;
  color: #ffffff;
}

.login-panel-help ol {
  padding-left: 20px;
  margin: 0;
}

.login-panel-help li {
  margin-bottom: 10px;
}

.login-note {
  margin-top: 16px;
  color: #9bb8e3;
}

.login-panel-form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #eef4ff;
  padding: 14px 16px;
}

.login-panel-form label {
  display: block;
  margin-bottom: 8px;
  color: #b8d1ff;
}

.login-panel-form .btn-block {
  width: 100%;
}

.dashboard-preview {
  width: 100%;
  max-width: 500px;
  border-radius: 32px;
  padding: 28px;
  background: var(--support-backdrop);
  border: 1px solid var(--support-border);
  box-shadow: 0 20px 50px rgba(63, 12, 173, 0.16);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.preview-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.preview-content {
  display: grid;
  gap: 18px;
}

.preview-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(68, 51, 138, 0.10);
  border: 1px solid var(--support-border);
  box-shadow: 0 20px 45px rgba(63, 12, 173, 0.12);
}

.preview-card h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text);
}

.preview-card .metric,
.preview-card .status {
  color: #62749c;
  line-height: 1.7;
}

.features {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 60px;
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.section-header p {
  margin: 0;
  color: #667992;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
}

.feature-card {
  padding: 26px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 55px rgba(28, 40, 65, 0.08);
  min-height: 220px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: #677d99;
  line-height: 1.75;
}

.pricing {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pricing-card {
  position: relative;
  padding: 28px;
  border-radius: 32px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow: 0 26px 70px rgba(56, 23, 117, 0.08);
}

.pricing-card.featured {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.12);
}

.pricing-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #2f4fb7;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.pricing-header h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 6px;
}

.amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
}

.period {
  color: #60769e;
}

.pricing-card p {
  color: #667d9b;
  margin: 0;
}

.pricing-features-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 30px;
}

.pricing-see-more-btn {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  min-height: 120px;
}

.pricing-see-more-btn:hover,
.pricing-see-more-btn:focus-visible {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.55);
  outline: none;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-feature-excluded {
  opacity: 0.72;
}

.pricing-features-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pricing-features-modal.hidden {
  display: none;
}

.pricing-features-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(4px);
}

.pricing-features-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 28px 80px rgba(20, 10, 50, 0.35);
}

.pricing-features-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pricing-features-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.pricing-features-modal-close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.pricing-features-modal-close:hover {
  background: rgba(168, 85, 247, 0.12);
}

.pricing-features-modal-note {
  margin: 0 0 16px;
}

.pricing-features-modal-list {
  margin: 0;
}

body.pricing-modal-open {
  overflow: hidden;
}

/* Font Preview Grid */
.font-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.font-preview-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}

@media (max-width: 768px) {
  .font-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.font-preview-box:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 216, 255, 0.15);
}

.font-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.font-preview-text {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}

/* Horizontal Admin Panel Layout */
.admin-panel .control-panel-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-list, .command-list {
  max-height: 500px;
  overflow-y: auto;
}

.feature-list > div, .command-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  .font-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .admin-panel .control-panel-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 280px;
  }

  .nav-menu {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .font-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .sidebar {
    width: 100%;
    max-width: 80vw;
  }

  .navbar {
    padding: 12px 0;
  }

  .nav-container {
    gap: 8px;
  }

  .nav-menu {
    gap: 0;
  }

  .nav-link {
    font-size: 14px;
    padding: 6px 12px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    margin: 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .member-dashboard .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel .control-panel-grid {
    grid-template-columns: 1fr;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-control, textarea, input[type="text"], input[type="email"], input[type="number"] {
    font-size: 16px;
    padding: 12px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .table-view {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .font-preview-grid {
    grid-template-columns: 1fr;
  }

  .nav-title {
    display: none;
  }

  .nav-link {
    display: none;
  }

  .btn-lg {
    width: 100%;
    margin-bottom: 8px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .pricing-features li {
    font-size: 14px;
  }

  .amount {
    font-size: 1.8rem;
  }
}
  color: #6c7f9f;
}

.pricing-features li::before {
  content: '•';
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 0;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--support-backdrop);
  border-radius: 16px;
  border: 1px solid var(--support-border);
  box-shadow: 0 25px 50px rgba(63, 12, 173, 0.25);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.login-modal-content {
  padding: 24px;
}

.login-form {
  margin-bottom: 24px;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
  background: var(--surface-hover);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.login-help {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.login-help h4 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 1.1rem;
}

.login-help ol {
  margin: 0;
  padding-left: 20px;
}

.login-help li {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.status-message {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.status-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.status-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.2);
}

.status-message.info {
  background: rgba(0, 191, 255, 0.1);
  color: var(--info);
  border-color: rgba(0, 191, 255, 0.2);
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(32, 41, 67, 0.15);
  transition: background 180ms ease;
}

.slider::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 180ms ease;
  box-shadow: 0 2px 10px rgba(32, 41, 67, 0.1);
}

.switch input:checked + .slider {
  background: rgba(63, 108, 240, 0.24);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.guild-id-guide {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 100px;
}

.guide-content {
  padding: 40px 42px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.guide-content h2 {
  margin: 0 0 18px;
  font-size: 2.1rem;
}

.guide-steps {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: #f8f9fe;
  border: 1px solid rgba(32, 41, 67, 0.08);
  border-radius: 22px;
}

.step-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  color: #2f4fb7;
  font-weight: 700;
}

.step-content h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step-content p {
  margin: 0;
  color: #5f748f;
  line-height: 1.8;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.preview-discord-button-row {
  margin-top: 12px;
}

.preview-discord-button {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.preview-discord-button--primary {
  background: #5865f2;
}

.preview-discord-button--secondary {
  background: #4e5058;
}

.preview-discord-button--success {
  background: #248046;
}

.preview-discord-button--danger {
  background: #da373c;
}

.preview-discord-button--custom {
  color: #fff;
}

.preview-verify-btn.preview-discord-button--custom {
  background: var(--preview-btn-bg, #248046);
}

@media (max-width: 720px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-container > .navbar-tos-btn {
    align-self: flex-end;
    margin-left: 0;
  }

  .nav-menu {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 10vw, 3.6rem);
  }

  .features-grid,
  .pricing-grid,
  .guide-steps {
    grid-template-columns: 1fr;
  }
}

.discord-setup-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.discord-setup-category.card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.discord-setup-category-head {
  align-items: flex-end;
  margin-bottom: 12px;
}

.discord-setup-channel.card-soft {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(7, 13, 27, 0.35);
}

.discord-setup-roles-section {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.discord-setup-roles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.discord-setup-perms-details {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(7, 13, 27, 0.25);
}

.discord-setup-perms-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.discord-setup-perms-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discord-setup-perms-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  align-items: center;
}

.discord-setup-perms-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.discord-setup-perm-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.discord-setup-role-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.discord-setup-perm-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
}

.discord-setup-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .discord-setup-layout {
    grid-template-columns: 1fr;
  }
}

.discord-setup-template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}

.discord-setup-template-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.discord-setup-template-card:hover {
  border-color: var(--accent, #80d8ff);
  box-shadow: 0 4px 20px rgba(128, 216, 255, 0.12);
  transform: translateY(-1px);
}

.discord-setup-template-card--active {
  border-color: var(--accent, #80d8ff);
  box-shadow: 0 0 0 1px var(--accent, #80d8ff);
}

.discord-setup-template-card-name {
  font-weight: 700;
  font-size: 15px;
}

.discord-setup-template-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.discord-setup-template-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.discord-setup-template-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(128, 216, 255, 0.15);
  color: var(--accent, #80d8ff);
}

.discord-setup-template-badge--custom {
  background: rgba(143, 123, 255, 0.15);
  color: #b8a8ff;
}

.discord-setup-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
}

.discord-setup-section-head .ticket-section-title {
  margin: 0;
}

.discord-setup-count {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
}

.discord-setup-stepper-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.discord-setup-stepper-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}

.discord-setup-stepper-btn--plus:hover {
  border-color: #3fd3b3;
  background: rgba(63, 211, 179, 0.12);
  color: #3fd3b3;
}

.discord-setup-stepper-btn--minus:hover {
  border-color: #ff6b8a;
  background: rgba(255, 107, 138, 0.1);
  color: #ff6b8a;
}

.discord-setup-row-head {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.discord-setup-ch-hash {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 8px;
}

.discord-setup-color-field input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.discord-setup-category-head {
  margin-bottom: 8px;
}

.discord-setup-advanced {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed var(--border-light);
  font-size: 13px;
}

.discord-setup-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
}

.discord-setup-preview-wrap {
  position: sticky;
  top: 12px;
}

.discord-setup-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1e1f22;
  min-height: 320px;
}

.discord-preview-frame {
  padding: 10px 8px;
  background: #2b2d31;
  border-bottom: 1px solid #1e1f22;
}

.discord-preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 10px;
  font-weight: 700;
  font-size: 14px;
  color: #f2f3f5;
}

.discord-preview-guild-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #5865f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.discord-preview-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 6px 8px;
}

.discord-preview-role-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--role-color) 25%, transparent);
  color: var(--role-color);
  border-left: 3px solid var(--role-color);
}

.discord-preview-channel-list {
  max-height: 220px;
  overflow-y: auto;
}

.discord-preview-category {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.discord-preview-cat-chevron {
  color: #949ba4;
  font-size: 10px;
}

.discord-preview-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  margin: 1px 4px;
  border-radius: 4px;
  cursor: pointer;
  color: #949ba4;
  font-size: 14px;
}

.discord-preview-channel:hover {
  background: #35373c;
  color: #dbdee1;
}

.discord-preview-channel--active {
  background: #404249;
  color: #f2f3f5;
}

.discord-preview-ch-bar {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.discord-preview-hash {
  opacity: 0.7;
  font-weight: 600;
}

.discord-preview-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  font-size: 11px;
  color: #949ba4;
  border-top: 1px solid #1e1f22;
}

.discord-preview-main {
  padding: 12px;
  flex: 1;
  background: #313338;
}

.discord-preview-main-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3f4147;
}

.discord-preview-guide {
  position: relative;
  padding: 12px 12px 12px 16px;
  background: #2b2d31 !important;
  border-color: #3f4147 !important;
}

.discord-preview-guide-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.discord-preview-guide strong {
  display: block;
  color: #f2f3f5;
  margin-bottom: 6px;
}

.discord-preview-guide p {
  margin: 0;
  font-size: 13px;
  color: #b5bac1;
  line-height: 1.45;
}

.discord-preview-empty {
  padding: 16px;
  text-align: center;
  color: #949ba4;
  font-size: 13px;
}

.discord-setup-actions {
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
