:root {
  --color-background: #09090b;
  --color-surface: rgba(24, 24, 27, 0.65);
  --color-surface-raised: rgba(39, 39, 42, 0.55);
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;
  --color-accent: #a855f7;
  --color-accent-hover: #9333ea;
  --color-accent-soft: rgba(168, 85, 247, 0.14);
  --color-accent-end: #ffffff;
  --color-success: #34d399;
  --color-error: #f87171;
  --color-info: #38bdf8;
  --radius-small: 10px;
  --radius-medium: 16px;
  --font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-color: #3f3f46 #09090b;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(168, 85, 247, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
}

.glass {
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.55) 0%, rgba(24, 24, 27, 0.65) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-hover {
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-hover:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 18px 50px -20px rgba(147, 51, 234, 0.45);
}

.grad-border {
  position: relative;
}

.grad-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.9), rgba(168, 85, 247, 0.6), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.ember {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.5;
}

.select-native {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}

.select-native option {
  background-color: #18181b;
  color: #e4e4e7;
}

.rise {
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.app-shell {
  display: contents;
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

.sidebar-brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #f4f4f5;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-nav-group-label {
  color: #52525b;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sidebar-nav-link {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  color: #a1a1aa;
  font-weight: 500;
  font-size: 0.84rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f4f4f5;
}

.sidebar-nav-link.is-active {
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.28);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sidebar-user-avatar-fallback {
  display: grid;
  place-items: center;
  background: #27272a;
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.7rem;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 500;
  font-size: 0.78rem;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-logout {
  color: #52525b;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  transition: color 150ms ease;
}

.sidebar-user-logout:hover {
  color: #c084fc;
}

.app-main {
  display: contents;
}

.page-header {
  display: contents;
}

.page-title {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  color: #f4f4f5;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
}

.notice-success {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  color: var(--color-success);
}

.notice-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: var(--color-error);
}

.notice-info {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: var(--color-info);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card {
  padding: 1.15rem 1.25rem;
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.55) 0%, rgba(24, 24, 27, 0.65) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.stat-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 18px 50px -20px rgba(147, 51, 234, 0.45);
}

.stat-card-label {
  margin: 0 0 0.35rem;
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-card-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
}

.panel {
  padding: 1.35rem;
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.55) 0%, rgba(24, 24, 27, 0.65) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.panel:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 18px 50px -20px rgba(147, 51, 234, 0.4);
}

.panel-header {
  margin-bottom: 1.15rem;
}

.panel-header-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  margin: 0;
  color: #71717a;
  font-size: 0.86rem;
}

.badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-premium,
.badge-pro {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-muted {
  background: rgba(39, 39, 42, 0.8);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state {
  padding: 2.25rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(9, 9, 11, 0.35);
  text-align: center;
}

.empty-state-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: #e4e4e7;
}

.empty-state-text {
  margin: 0;
  color: #71717a;
  font-size: 0.88rem;
}

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

.server-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.45) 0%, rgba(24, 24, 27, 0.7) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.server-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 18px 50px -20px rgba(147, 51, 234, 0.45);
}

.server-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.server-card-icon-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
}

.server-card-stats {
  display: block;
  margin-top: 0.2rem;
  color: #71717a;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.button-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: transparent;
  color: #ffffff;
}

.button-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #7c3aed, #991b1b);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.4);
}

.form-actions-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.global-server-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.global-server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.55);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.global-server-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.55);
  border-color: rgba(168, 85, 247, 0.3);
}

.global-server-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.global-server-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.access-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.access-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.55);
}

.access-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.access-list-name {
  font-weight: 600;
  color: #f4f4f5;
}

.access-list-id {
  color: #71717a;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.server-card-meta {
  min-width: 0;
  flex: 1;
}

.server-card-name {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-card-role {
  color: #71717a;
  font-size: 0.78rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

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

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.button:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: none;
}

.button-primary {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(147, 51, 234, 0.28);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.38);
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
}

.button-secondary:hover {
  border-color: rgba(168, 85, 247, 0.55);
  color: #c084fc;
  background: rgba(168, 85, 247, 0.08);
}

.back-link {
  display: inline-block;
  color: #71717a;
  font-size: 0.88rem;
  transition: color 150ms ease;
}

.back-link:hover {
  color: #c084fc;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d4d4d8;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  color: #f4f4f5;
  background: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.form-input:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-input:focus {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

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

.form-hint {
  color: #71717a;
  font-size: 0.78rem;
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
  font-family: inherit;
}

.form-textarea-broadcast {
  min-height: 12rem;
}

.color-field {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.6rem;
  align-items: stretch;
}

.color-input {
  width: 3rem;
  height: 100%;
  min-height: 2.7rem;
  padding: 0.2rem;
  background: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #71717a 50%),
    linear-gradient(135deg, #71717a 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.form-select.select-native {
  background-image: none;
}

.form-file {
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

.form-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(39, 39, 42, 0.9);
  color: #e4e4e7;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.form-file:not(:disabled)::file-selector-button:hover {
  border-color: rgba(168, 85, 247, 0.55);
  color: #c084fc;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.background-option {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
}

.background-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.background-swatch {
  display: block;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.background-option:hover .background-swatch {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.background-radio:checked + .background-swatch {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.background-radio:focus-visible + .background-swatch {
  border-color: #a855f7;
}

.background-name {
  color: #71717a;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
}

.background-radio:checked ~ .background-name {
  color: #c084fc;
}

.background-swatch-nebula {
  background: linear-gradient(135deg, #2e1065, #6d28d9 55%, #a855f7);
}

.background-swatch-dusk {
  background: linear-gradient(135deg, #431407, #c2410c 55%, #c084fc);
}

.background-swatch-ocean {
  background: linear-gradient(135deg, #082f49, #0369a1 55%, #22d3ee);
}

.background-swatch-forest {
  background: linear-gradient(135deg, #052e16, #15803d 55%, #4ade80);
}

.background-swatch-midnight {
  background: linear-gradient(135deg, #020617, #1e293b 60%, #475569);
}

.background-swatch-ember {
  background: linear-gradient(135deg, #450a0a, #b91c1c 55%, #f97316);
}

.background-swatch-custom {
  background: repeating-linear-gradient(
    45deg,
    rgba(39, 39, 42, 0.9),
    rgba(39, 39, 42, 0.9) 10px,
    rgba(168, 85, 247, 0.14) 10px,
    rgba(168, 85, 247, 0.14) 20px
  );
}

.background-swatch-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.background-swatch-archon-stock-1,
.background-swatch-archon-stock-2 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.advanced-styling {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.45);
  transition: border-color 0.2s ease;
}

.advanced-styling:hover {
  border-color: rgba(168, 85, 247, 0.28);
}

.premium-lock-module {
  position: relative;
}

.premium-lock-module-locked .settings-form {
  filter: saturate(0.72) brightness(0.88);
  pointer-events: none;
  user-select: none;
}

.premium-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(9, 9, 11, 0.72), rgba(9, 9, 11, 0.88));
  border: 1px solid rgba(168, 85, 247, 0.28);
  text-align: center;
  backdrop-filter: blur(2px);
}

.premium-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.14);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25);
}

.premium-lock-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4f4f5;
}

.premium-lock-hint {
  max-width: 28rem;
  color: #a1a1aa;
  font-size: 0.85rem;
  line-height: 1.45;
}

.welcome-setup-progress {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 1.15rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.1), rgba(9, 9, 11, 0.4));
}

.welcome-setup-progress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}

.welcome-setup-progress-label {
  color: #f4f4f5;
  font-size: 0.9rem;
  font-weight: 600;
}

.welcome-setup-progress-label strong {
  margin-left: 0.25rem;
  color: #c084fc;
  font-variant-numeric: tabular-nums;
}

.welcome-setup-progress-hint {
  color: #71717a;
  font-size: 0.76rem;
}

.welcome-setup-progress-track {
  width: 100%;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.welcome-setup-progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.45s ease;
}

.welcome-setup-progress-fill-incomplete {
  background: linear-gradient(90deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.welcome-setup-progress-fill-complete {
  background: linear-gradient(90deg, #34d399 0%, #a855f7 100%);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.3);
}

.premium-comparison-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.1rem;
  box-sizing: border-box;
}

.premium-comparison-column {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 1rem;
  box-sizing: border-box;
}

.premium-comparison-column-dijmentes {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-comparison-column-premium {
  background: linear-gradient(165deg, rgba(88, 28, 135, 0.45) 0%, rgba(24, 24, 27, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.12),
    0 0 22px rgba(168, 85, 247, 0.14);
}

.premium-comparison-heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.premium-comparison-heading-dijmentes {
  color: #a1a1aa;
  text-transform: none;
}

.premium-comparison-heading-premium {
  text-transform: uppercase;
  background: linear-gradient(120deg, #e9d5ff 0%, #a855f7 45%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-comparison-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-comparison-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #e4e4e7;
  font-size: 0.84rem;
  line-height: 1.4;
}

.premium-comparison-column-dijmentes .premium-comparison-feature-list li {
  color: #a1a1aa;
}

.premium-comparison-check {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  font-weight: 700;
}

.premium-comparison-check-muted {
  color: #52525b;
}

.premium-comparison-check-gold {
  color: #c084fc;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.55);
}

.premium-fomo-tooltip-host {
  position: relative;
}

.premium-fomo-floating-tooltip {
  position: fixed;
  z-index: 80;
  max-width: 16.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: linear-gradient(165deg, rgba(39, 24, 63, 0.96), rgba(12, 12, 14, 0.98));
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(168, 85, 247, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.premium-fomo-floating-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .premium-comparison-table {
    grid-template-columns: 1fr;
  }
}

.free-tier-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.55);
}

.free-tier-preview-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.free-tier-preview-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f4f4f5;
}

.free-tier-welcome-preview-stage {
  max-width: 100%;
}

.free-tier-preview-avatar,
.free-tier-preview-text {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.free-tier-preview-avatar {
  border-radius: 50%;
}

.advanced-styling-partial-lock {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.advanced-styling-controls-locked {
  opacity: 0.5;
}

.premium-locked-field .form-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.premium-field-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.45));
}

.premium-upsell-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 12%, rgba(168, 85, 247, 0.22), transparent 46%),
    linear-gradient(165deg, rgba(88, 28, 135, 0.45) 0%, rgba(24, 24, 27, 0.95) 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 0 0 2px rgba(168, 85, 247, 0.16),
    0 0 28px rgba(168, 85, 247, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-upsell-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(216, 180, 254, 0.35), rgba(168, 85, 247, 0.12) 70%);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.45),
    0 0 28px rgba(168, 85, 247, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.35);
  animation: premiumCrownGlow 2.8s ease-in-out infinite;
}

.premium-upsell-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #e9d5ff 0%, #a855f7 42%, #7c3aed 72%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-upsell-message {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}

.premium-upsell-social-proof {
  max-width: 30rem;
  margin-top: 0.15rem;
  color: rgba(216, 180, 254, 0.55);
  font-size: 0.72rem;
  line-height: 1.45;
}

.button-premium-upgrade {
  margin-top: 0.35rem;
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #ffffff;
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 48%, #7c3aed 100%);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.2),
    0 10px 24px rgba(147, 51, 234, 0.28);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button-premium-upgrade:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 48%, #7c3aed 100%);
  box-shadow:
    0 0 0 1px rgba(192, 132, 252, 0.35),
    0 14px 28px rgba(147, 51, 234, 0.4);
}

@keyframes premiumCrownGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(168, 85, 247, 0.4),
      0 0 22px rgba(168, 85, 247, 0.28),
      0 10px 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(192, 132, 252, 0.7),
      0 0 36px rgba(168, 85, 247, 0.5),
      0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

.advanced-styling-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.advanced-styling-header-split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.advanced-styling-header-split > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.button-unlock-premium-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.advanced-styling-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f4f5;
}

.premium-page-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.premium-page-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.premium-page-value-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.55);
}

.premium-page-value-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #c084fc;
}

.premium-page-value-text {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .premium-page-value-grid {
    grid-template-columns: 1fr;
  }
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.module-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.55);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.module-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.55);
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.module-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.module-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #f4f4f5;
}

.module-description {
  margin: 0;
  font-size: 0.84rem;
  color: #71717a;
}

.module-toggle-form {
  flex-shrink: 0;
}

.toggle-switch {
  display: inline-flex;
  cursor: pointer;
}

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

.toggle-switch-track {
  position: relative;
  display: inline-block;
  width: 2.9rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #3f3f46;
  transition: background 0.25s ease;
}

.toggle-switch-thumb {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.toggle-switch-input:checked + .toggle-switch-track {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}

.toggle-switch-input:checked + .toggle-switch-track .toggle-switch-thumb {
  transform: translateX(1.3rem);
}

.toggle-switch-input:focus-visible + .toggle-switch-track {
  outline: 2px solid #a855f7;
  outline-offset: 3px;
}

.toggle-switch:hover .toggle-switch-track {
  filter: brightness(1.12);
}

.module-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s ease;
}

.module-body-collapsed {
  grid-template-rows: 0fr;
}

.module-body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.2rem;
}

.module-body:not(.module-body-collapsed) .module-body-inner {
  padding-bottom: 1.2rem;
}

.language-selector {
  width: auto;
  min-width: 9.5rem;
}

.form-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.form-grid-compact .form-hint {
  font-size: 0.72rem;
}

.form-grid-compact .form-field {
  gap: 0.3rem;
}

.toggle-switch-field {
  height: 2.7rem;
  align-items: center;
}

.collapsible-field-group {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
}

.collapsible-field-inner {
  overflow: hidden;
  min-height: 0;
}

.collapsible-field-group-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
}

.welcome-preview-text-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes module-field-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.module-body:not(.module-body-collapsed) .module-body-inner > * > * {
  animation: module-field-fade-in 0.4s ease backwards;
}

.module-body:not(.module-body-collapsed) .module-body-inner > * > *:nth-child(1) { animation-delay: 0.05s; }
.module-body:not(.module-body-collapsed) .module-body-inner > * > *:nth-child(2) { animation-delay: 0.1s; }
.module-body:not(.module-body-collapsed) .module-body-inner > * > *:nth-child(3) { animation-delay: 0.15s; }
.module-body:not(.module-body-collapsed) .module-body-inner > * > *:nth-child(4) { animation-delay: 0.2s; }
.module-body:not(.module-body-collapsed) .module-body-inner > * > *:nth-child(5) { animation-delay: 0.25s; }
.module-body:not(.module-body-collapsed) .module-body-inner > * > *:nth-child(6) { animation-delay: 0.3s; }
.module-body:not(.module-body-collapsed) .module-body-inner > * > *:nth-child(7) { animation-delay: 0.35s; }
.module-body:not(.module-body-collapsed) .module-body-inner > * > *:nth-child(8) { animation-delay: 0.4s; }

.form-input:hover:not(:disabled),
.form-select:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.welcome-preview-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1024 / 450;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.welcome-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 14, 0.25), rgba(8, 8, 14, 0.62));
  pointer-events: none;
}

.welcome-preview-draggable {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.welcome-preview-draggable:hover {
  outline: 2px dashed rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.welcome-preview-dragging {
  cursor: grabbing;
  outline: 2px dashed #a855f7;
  outline-offset: 4px;
}

.welcome-preview-avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #a855f7;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 60%),
    rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.welcome-preview-text {
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.welcome-preview-locked .welcome-preview-draggable {
  pointer-events: none;
}

.range-value {
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.range-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 0.4rem;
  margin: 0.55rem 0;
  border-radius: 999px;
  background: #3f3f46;
  cursor: pointer;
  transition: background 0.2s ease;
}

.range-input:hover {
  background: #52525b;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: linear-gradient(135deg, #9333ea, #7c3aed);
}

.range-input::-moz-range-thumb {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
}

.range-input::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: linear-gradient(135deg, #9333ea, #7c3aed);
}

.range-input:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 3px;
}

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

.range-input:disabled::-webkit-slider-thumb {
  transform: none;
  background: #71717a;
}

.range-input:disabled::-moz-range-thumb {
  transform: none;
  background: #71717a;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
  padding: 2.5rem 2rem;
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.55) 0%, rgba(24, 24, 27, 0.75) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 40px -12px rgba(147, 51, 234, 0.25);
  text-align: center;
}

.login-brand-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.35);
}

.login-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fafafa;
}

.login-description {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.9rem;
}

.login-button {
  width: 100%;
  padding: 0.75rem 1rem;
}

.login-footnote {
  margin: 0;
  color: #71717a;
  font-size: 0.76rem;
}

@media (max-width: 900px) {
  .stat-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .global-server-row {
    flex-direction: column;
    align-items: stretch;
  }

  .global-server-actions {
    justify-content: flex-start;
  }
}

.nexus-panel {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12), 0 18px 40px rgba(249, 115, 22, 0.08);
  background:
    linear-gradient(160deg, rgba(249, 115, 22, 0.1), rgba(220, 38, 38, 0.05) 42%, transparent 70%),
    linear-gradient(160deg, rgba(39, 39, 42, 0.55) 0%, rgba(24, 24, 27, 0.65) 100%);
}

.nexus-title {
  background-image: linear-gradient(90deg, #f97316, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.resolve-banner {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 22, 0.55);
  background: linear-gradient(135deg, #f97316 0%, #ea580c 48%, #dc2626 100%);
  color: #fff7ed;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.22);
}

.resolve-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c2d12;
  background: rgba(255, 247, 237, 0.95);
}

.resolve-title {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff7ed;
}

.resolve-subtitle {
  margin: 0;
  max-width: 46rem;
  color: rgba(255, 247, 237, 0.92);
  font-size: 0.92rem;
  line-height: 1.45;
}

.nexus-module-item {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.08), rgba(220, 38, 38, 0.04));
}

.nexus-form .form-input:focus,
.nexus-form .form-textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.nexus-button {
  background: linear-gradient(135deg, #f97316, #dc2626);
  border-color: transparent;
  color: #fff7ed;
}

.nexus-button:hover,
.nexus-button:focus-visible {
  background: linear-gradient(135deg, #ea580c, #b91c1c);
  border-color: transparent;
}

.nexus-button-secondary {
  border-color: #f97316;
  color: #f97316;
}

.nexus-button-secondary:hover,
.nexus-button-secondary:focus-visible {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(249, 115, 22, 0.1);
}

.nexus-toggle .toggle-switch-input:checked + .toggle-switch-track {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.nexus-row {
  border-color: rgba(249, 115, 22, 0.28);
}

.nexus-category-emoji {
  margin-right: 0.35rem;
}

.nexus-panel:hover,
.nexus-panel.glass-hover:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12), 0 18px 50px -20px rgba(220, 38, 38, 0.45);
}

.module-item.ai-pro-module {
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.08);
}

.module-item.ai-pro-module:hover {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.14), 0 18px 50px -20px rgba(220, 38, 38, 0.4);
}

.module-item.ai-pro-module .badge-pro {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(220, 38, 38, 0.2));
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.5);
}

.module-item.ai-pro-module .button-primary {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff7ed;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.28);
}

.module-item.ai-pro-module .button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ea580c, #b91c1c);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.38);
}

.module-item.ai-pro-module .toggle-switch-input:checked + .toggle-switch-track {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.module-item.ai-pro-module .form-input:focus,
.module-item.ai-pro-module .form-textarea:focus,
.module-item.ai-pro-module .form-select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.premium-comparison-table {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-comparison-column-premium {
  background: linear-gradient(165deg, rgba(88, 28, 135, 0.45) 0%, rgba(24, 24, 27, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.12), 0 0 22px rgba(168, 85, 247, 0.14);
}

.premium-comparison-heading-premium {
  background: linear-gradient(120deg, #f5f3ff 0%, #c084fc 45%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-comparison-column-proplus {
  position: relative;
  background: linear-gradient(165deg, rgba(124, 45, 18, 0.55) 0%, rgba(24, 24, 27, 0.95) 100%);
  border: 1px solid rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.16), 0 0 28px rgba(249, 115, 22, 0.22);
}

.premium-comparison-column-proplus.is-disabled {
  opacity: 0.78;
  filter: saturate(1.05);
}

.premium-comparison-proplus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.premium-comparison-heading-proplus {
  text-transform: uppercase;
  background: linear-gradient(120deg, #fdba74 0%, #f97316 45%, #dc2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.premium-comparison-proplus-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff7ed;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.premium-comparison-check-proplus {
  color: #fb923c;
}

.premium-comparison-proplus-button,
.premium-page-tier-button {
  margin-top: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff7ed;
  opacity: 0.55;
  cursor: not-allowed;
}

.premium-page-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.premium-page-tier-card {
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.premium-page-tier-card-pro {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(165deg, rgba(88, 28, 135, 0.35), rgba(24, 24, 27, 0.9));
}

.premium-page-tier-card-proplus {
  border-color: rgba(249, 115, 22, 0.55);
  background: linear-gradient(165deg, rgba(124, 45, 18, 0.45), rgba(24, 24, 27, 0.95));
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.18);
}

.premium-page-tier-card-proplus.is-disabled {
  opacity: 0.8;
}

.premium-page-tier-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c084fc;
}

.premium-page-tier-label-proplus {
  color: #fb923c;
}

.premium-page-tier-badge {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff7ed;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.premium-page-tier-title {
  margin: 0.2rem 0 0.45rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
}

.premium-page-tier-text {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .premium-comparison-table,
  .premium-page-tier-grid {
    grid-template-columns: 1fr;
  }
}
