:root {
  color-scheme: dark;
  --bg: #070a14;
  --panel: #0f1424;
  --panel-soft: #131a30;
  --text: #f4f7ff;
  --muted: #95a0c3;
  --accent: #5865f2;
  --border: #202949;
  --ring: rgba(88, 101, 242, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at top, #111a38, var(--bg) 45%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
main { padding: 28px; max-width: 1280px; margin: 0 auto; }
.h-syne, h1, h2, h3 { font-family: Syne, Inter, sans-serif; letter-spacing: 0.2px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.topbar nav { display: flex; gap: 12px; align-items: center; }
.brand { font-weight: 700; letter-spacing: 0.4px; }
.user-chip {
  font-size: 13px;
  color: #d8ddff;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.45);
  border-radius: 999px;
  padding: 6px 11px;
}
.lang-switch { display: inline-flex; gap: 6px; align-items: center; color: #b7b7c9; font-size: 13px; }
.lang-switch a.active { color: #ffffff; font-weight: 700; }

.btn, .btn-secondary {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn { background: var(--accent); color: white; box-shadow: 0 10px 30px -14px var(--ring); }
.btn-lg { padding: 12px 20px; font-size: 16px; }
.btn-secondary { background: #1a2442; color: #e5e7eb; border: 1px solid #2f3d6d; }
.disabled { pointer-events: none; opacity: 0.7; }

.features {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card, .panel {
  background: color-mix(in srgb, var(--panel) 90%, black 10%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.muted { color: var(--muted); font-size: 13px; }
.status-ok { color: #86efac; }
.status-error { color: #fca5a5; }
.notice { margin: 8px 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.success { background: #14532d; }
.error { background: #7f1d1d; }

.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 460px) 1fr;
}
.panel label { display: block; margin: 12px 0 6px; font-size: 14px; }
input, textarea, select {
  width: 100%;
  background: #0d1324;
  border: 1px solid #2e3b65;
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
}
.controls-panel { max-height: calc(100vh - 120px); overflow: auto; position: sticky; top: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.checkbox { display: flex !important; align-items: center; gap: 8px; }
.checkbox input { width: auto; }

.sortable {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.sortable li {
  padding: 10px 12px;
  border: 1px dashed #4f46e5;
  border-radius: 8px;
  cursor: move;
  background: #171733;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sortable li.dragging { opacity: 0.6; }
.drag-handle { color: #9ca3af; font-weight: 700; }

.preview-card, .landing-card {
  border-radius: 18px;
  min-height: 440px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.preview-inner, .landing-content {
  position: relative;
  z-index: 2;
  padding: 22px;
}
.preview-section { margin-bottom: 8px; }
.badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 12px;
}
.preview-title, .landing-content h1 { margin: 14px 0 8px; }
.preview-desc, .landing-desc {
  margin: 0 0 16px;
  color: #eef0ff;
  max-width: 560px;
}
.stats {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stats > * {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
  display: grid;
  gap: 3px;
}

.landing-shell {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
}
.landing-card { width: min(900px, 100%); }
.join-btn-live { border: 1px solid rgba(255, 255, 255, 0.22); }
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 8, 16, .35), rgba(2, 2, 10, .78));
}
.server-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 12px;
}
.server-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
  margin-bottom: 12px;
}

.premium-anim::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: conic-gradient(from 180deg, #8b5cf6, #0ea5e9, #22c55e, #f59e0b, #8b5cf6);
  filter: blur(65px);
  opacity: 0.35;
  animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(1turn); } }

.marketing { display: grid; gap: 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(88, 101, 242, 0.44);
  background: rgba(88, 101, 242, 0.12);
  margin-bottom: 12px;
  font-size: 12px;
}
.marketing h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 10px; }
.marketing p { color: var(--muted); line-height: 1.6; }
.cta-row { display: flex; gap: 10px; margin: 18px 0 14px; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-row span {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
}
.browser-mockup {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #111a30, #0b1020);
  overflow: hidden;
}
.browser-top { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #2a3357; }
.browser-top span { width: 10px; height: 10px; border-radius: 50%; background: #4a557f; }
.mockup-grid { display: grid; grid-template-columns: 240px 1fr; gap: 12px; padding: 14px; }
.server-side-card, .dashboard-mini {
  background: var(--panel-soft);
  border: 1px solid #283866;
  border-radius: 14px;
  padding: 12px;
}
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-pill {
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(88, 101, 242, 0.4);
}
.mini-row { height: 10px; border-radius: 99px; background: #223054; margin-bottom: 10px; }
.mini-row.short { width: 72%; }
.mini-preview {
  margin-top: 14px;
  height: 110px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5865f2, #7c84ff);
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--panel-soft);
}
.faq summary { cursor: pointer; font-weight: 600; }

.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.swatch-btn {
  border: 2px solid transparent;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}
.swatch-btn.active { border-color: #fff; }
.custom-toggle { margin-top: 10px; width: 100%; }
.custom-join-colors { margin-top: 10px; display: none; }
.custom-join-colors.show { display: grid; }
.mini-join-preview {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2e3c66;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.copy-btn { margin-left: 8px; font-size: 12px; padding: 6px 10px; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #1b2a54;
  border: 1px solid #3c4ea8;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .dashboard-grid, .hero-grid, .mockup-grid { grid-template-columns: 1fr; }
  .controls-panel { position: static; max-height: none; }
}

/* —— Layout modes (marketing + dashboard HTML integration) —— */
body.layout-marketing {
  background: #080810;
  color: #e8e8f0;
}
body.layout-marketing main.main--marketing {
  padding: 0;
  max-width: none;
  margin: 0;
}
body.layout-dashboard {
  background: #080810;
  color: #e8e8f0;
}
body.layout-dashboard main.main--dashboard {
  padding: 0;
  max-width: none;
  margin: 0;
}

/* Dashboard top nav */
.dash-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dash-logo {
  font-family: Syne, Inter, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-logo span { color: #5865f2; }
.dash-logo-icon {
  width: 26px;
  height: 26px;
  background: #5865f2;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dash-user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9090a8;
}
.dash-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.dash-user-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.lang-bar {
  display: flex;
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-bar--nav .lang-btn {
  text-decoration: none;
  background: none;
  border: none;
  color: #6b6b85;
  font-family: Syne, Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.lang-bar--nav .lang-btn.active {
  background: #5865f2;
  color: #fff;
}
.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9090a8;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-logout:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #e8e8f0;
}

/* Dashboard shell */
.toast--dash {
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(80px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast--dash.show {
  transform: translateY(0);
  border-color: rgba(87, 242, 135, 0.3);
}
.dash-page {
  padding-top: 4.5rem;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
}
.dash-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #0e0e1a;
  min-height: calc(100vh - 4.5rem);
  position: sticky;
  top: 4.5rem;
  height: calc(100vh - 4.5rem);
  overflow-y: auto;
}
.sidebar-section { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b85;
  padding: 0 0.5rem;
  margin-bottom: 0.2rem;
}
.divider-dash {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0.3rem 0;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label,
.field-label-file {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9090a8;
}
.field input,
.field textarea,
.field select {
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  color: #e8e8f0;
  font-family: Inter, sans-serif;
  font-size: 0.85rem;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}
.field textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}
.field-hint { font-size: 0.72rem; color: #6b6b85; line-height: 1.5; margin: 0; }
.guild-check-msg { min-height: 1.2em; }
.field-url-preview {
  font-size: 0.72rem;
  color: #6b6b85;
  font-family: ui-monospace, monospace;
}
.field-url-preview .url-host { color: inherit; }
.field-url-preview span:last-child { color: #5865f2; }
.guild-row { display: flex; gap: 0.5rem; align-items: center; }
.guild-row input { flex: 1; }
.btn-check {
  background: #1a1a28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8f0;
  padding: 0.65rem 1rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: Inter, sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.btn-check:hover { border-color: #5865f2; color: #5865f2; }
.color-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.color-field { display: flex; flex-direction: column; gap: 0.4rem; }
.color-field label { font-size: 0.75rem; font-weight: 600; color: #9090a8; }
.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0.5rem 0.8rem;
}
.color-picker-wrap.flex-1 { flex: 1; }
.color-picker-wrap input[type="color"] {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  background: none;
}
.color-hex {
  flex: 1;
  border: none;
  background: none;
  color: #e8e8f0;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  outline: none;
}
.slider-field { display: flex; flex-direction: column; gap: 0.5rem; }
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slider-header label { font-size: 0.8rem; font-weight: 600; color: #9090a8; margin: 0; }
.slider-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5865f2;
  background: rgba(88, 101, 242, 0.1);
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  font-family: ui-monospace, monospace;
}
.dash-sidebar input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.dash-sidebar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
  cursor: pointer;
}
.toggle-row-dash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}
.toggle-label-col strong { display: block; font-size: 0.82rem; }
.toggle-label-col span { font-size: 0.72rem; color: #6b6b85; }
.toggle-row-dash .sr-file-input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-row-dash .toggle-ui {
  width: 36px;
  height: 20px;
  background: #6b6b85;
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toggle-row-dash .toggle-ui::after {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
}
.toggle-row-dash input:checked + .toggle-ui {
  background: #5865f2;
}
.toggle-row-dash input:checked + .toggle-ui::after {
  left: 19px;
}
.upload-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.btn-file {
  background: #1a1a28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9090a8;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, sans-serif;
}
.btn-file:hover { border-color: rgba(88, 101, 242, 0.4); color: #e8e8f0; }
.sr-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-name { font-size: 0.75rem; color: #6b6b85; }
.join-swatch-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.5rem; }
.btn-swatch.swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.btn-swatch.swatch-btn:hover { transform: scale(1.12); }
.btn-swatch.swatch-btn.active { border-color: #fff; }
.join-custom-row { display: none; align-items: center; gap: 6px; margin-top: 0.35rem; }
.join-custom-row.join-custom-visible { display: flex; }
.join-arrow-muted { color: #6b6b85; font-size: 0.8rem; }
.btn-use-custom {
  width: 100%;
  margin-top: 8px;
  background: #1a2442;
  border: 1px solid #2f3d6d;
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}
.join-mini-preview { margin-top: 10px; }
.srv-join--mini {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  font-family: Syne, Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dnd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dnd-item {
  background: rgba(88, 101, 242, 0.06);
  border: 1px dashed rgba(88, 101, 242, 0.25);
  border-radius: 9px;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: grab;
  user-select: none;
}
.dnd-item.dragging { opacity: 0.5; }
.dnd-handle { color: #6b6b85; }
.btn-save {
  width: 100%;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 10px;
  font-family: Syne, Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-save:hover { opacity: 0.92; transform: translateY(-1px); }
.field-tight-top { margin-top: 0.35rem; }

.dash-main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.main-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.dash-main-title {
  font-family: Syne, Inter, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}
.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid rgba(87, 242, 135, 0.2);
  color: #57f287;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.preview-badge-dot {
  width: 6px;
  height: 6px;
  background: #57f287;
  border-radius: 50%;
  animation: dash-pulse 2s infinite;
}
@keyframes dash-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(87, 242, 135, 0); }
}
.public-url-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #0e0e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
}
.public-url-icon {
  width: 32px;
  height: 32px;
  background: rgba(88, 101, 242, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.public-url-info { flex: 1; min-width: 0; }
.public-url-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b85;
  margin-bottom: 0.2rem;
}
.public-url-info a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5865f2;
  text-decoration: none;
  word-break: break-all;
  font-family: ui-monospace, monospace;
}
.public-url-info a:hover { text-decoration: underline; }
.btn-copy {
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9090a8;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font-family: Inter, sans-serif;
}
.btn-copy:hover { border-color: #5865f2; color: #5865f2; }
.btn-copy.copied { border-color: #57f287; color: #57f287; background: rgba(87, 242, 135, 0.08); }

.preview-window {
  background: #0e0e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.preview-chrome {
  background: #13131f;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.preview-dots { display: flex; gap: 5px; }
.preview-dots span { width: 9px; height: 9px; border-radius: 50%; }
.pd1 { background: #ff5f57; }
.pd2 { background: #febc2e; }
.pd3 { background: #28c840; }
.preview-url-bar-inner {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  color: #9090a8;
  font-family: ui-monospace, monospace;
  text-align: center;
}
.preview-url-bar-inner span:last-child { color: #5865f2; }

.server-card-wrap {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.server-card-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.card-glow-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.card-glow-layer.premium-anim::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: conic-gradient(from 180deg, #8b5cf6, #0ea5e9, #22c55e, #f59e0b, #8b5cf6);
  filter: blur(65px);
  opacity: 0.35;
  animation: spin 8s linear infinite;
}
.server-card-inner.preview-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 3rem 2rem;
  text-align: center;
  width: 100%;
  max-width: 360px;
}
.srv-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(88, 101, 242, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
  object-fit: cover;
}
.srv-name-tag.badge {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}
.srv-title.preview-title {
  font-family: Syne, Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.stats-row.stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}
.srv-stat {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.srv-stat .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57f287;
}
.srv-desc.preview-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}
.srv-join.join-btn-live {
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 10px;
  font-family: Syne, Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  cursor: default;
  letter-spacing: -0.01em;
}
.srv-join.disabled { pointer-events: none; opacity: 0.95; }

@media (max-width: 900px) {
  .dash-page { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: static;
    height: auto;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .dash-user-name { display: none; }
}

/* —— Marketing landing (dscjoin-landing.html) —— */
.landing-page {
  --lp-bg: #080810;
  --lp-accent: #5865f2;
  --lp-muted: #6b6b85;
  --lp-muted2: #9090a8;
  --lp-green: #57f287;
  background: var(--lp-bg);
  color: #e8e8f0;
  overflow-x: hidden;
  line-height: 1.6;
}
.lang-bar--fixed {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 200;
}
.lang-bar--fixed .lang-btn {
  text-decoration: none;
  font-family: Syne, Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  color: var(--lp-muted);
}
.lang-bar--fixed .lang-btn.active {
  background: var(--lp-accent);
  color: #fff;
}
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.landing-nav-right{
  display:flex;
  align-items:center;
  gap:1.25rem;
}
.landing-page .logo {
  font-family: Syne, Inter, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.landing-page .logo span { color: var(--lp-accent); }
.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--lp-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--lp-muted2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--lp-accent) !important;
  color: #fff !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}
.landing-lang{
  display:flex;
  align-items:center;
  gap:0.4rem;
  padding: 3px;
  border-radius: 999px;
  background: rgba(19,19,31,0.95);
  border: 1px solid rgba(255,255,255,0.07);
}
.landing-lang .lang-btn{
  text-decoration:none;
  background:none;
  border:none;
  color: var(--lp-muted2);
  font-family: Syne, Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor:pointer;
}
.landing-lang .lang-btn.active{
  background: var(--lp-accent);
  color:#fff;
}
.nav-cta .discord-icon { width: 18px; height: 14px; fill: currentColor; }

.landing-page .hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.landing-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 101, 242, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 101, 242, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.12) 0%, transparent 70%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(235, 69, 158, 0.07) 0%, transparent 70%);
  top: 30%;
  right: 5%;
  pointer-events: none;
}
.landing-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.25);
  color: #a5acff;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--lp-accent);
  border-radius: 50%;
  animation: lp-pulse 2s infinite;
}
@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(88, 101, 242, 0); }
}
.landing-page .hero h1 {
  font-family: Syne, Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
}
.landing-page .hero h1 .grad {
  background: linear-gradient(135deg, #7289ff 0%, #eb459e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--lp-muted2);
  max-width: 480px;
  line-height: 1.7;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: var(--lp-accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4);
}
.btn-primary .discord-icon { width: 18px; height: 14px; fill: currentColor; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}
.btn-primary--large { font-size: 1rem; padding: 1rem 2.2rem; }
.btn-ghost {
  background: transparent;
  color: var(--lp-muted2);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.landing-page .trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--lp-muted);
  font-weight: 500;
}
.trust-item svg { color: var(--lp-green); flex-shrink: 0; }
.trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.landing-mock-section {
  padding: 2rem 2rem 6rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.mockup-wrapper { position: relative; width: 100%; max-width: 900px; }
.mockup-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.mockup-frame {
  position: relative;
  z-index: 1;
  background: #0e0e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.mockup-topbar {
  background: #13131f;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots .d1 { background: #ff5f57; }
.mockup-dots .d2 { background: #febc2e; }
.mockup-dots .d3 { background: #28c840; }
.mockup-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: var(--lp-muted2);
  font-family: ui-monospace, monospace;
  text-align: center;
}
.mock-url-slug { color: var(--lp-accent); }
.mockup-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.server-preview {
  background: linear-gradient(135deg, #1a1040 0%, #0d1a3a 50%, #0a2020 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}
.server-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.2), transparent 60%);
}
.server-preview-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: center;
}
.server-preview-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(88, 101, 242, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
}
.server-preview-tag {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  color: var(--lp-muted2);
}
.landing-page .server-name { font-family: Syne, Inter, sans-serif; font-size: 1rem; font-weight: 700; }
.server-preview-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.server-preview-stats div {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  color: #e8e8f0;
}
.server-preview-desc { font-size: 0.72rem; color: var(--lp-muted2); margin: 0; }
.server-join-btn--static {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  padding: 0.5rem 1.3rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: Syne, Inter, sans-serif;
}
.server-preview-foot { font-size: 0.65rem; color: var(--lp-muted); margin-top: 0.3rem; }
.server-preview-foot .accent { color: var(--lp-accent); }

.editor-panel { display: flex; flex-direction: column; gap: 0.8rem; }
.editor-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.editor-row {
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.editor-row.active { border-color: rgba(88, 101, 242, 0.4); background: rgba(88, 101, 242, 0.06); }
.editor-row-label { font-size: 0.72rem; color: var(--lp-muted2); font-weight: 500; }
.editor-mono { font-family: ui-monospace, monospace; font-size: 0.72rem; }
.editor-mono.accent { color: var(--lp-accent); }
.gradient-bar {
  height: 6px;
  border-radius: 4px;
  max-width: 80px;
  flex: 1;
  background: linear-gradient(90deg, #5865f2, #eb459e, #57f287);
}
.editor-theme { font-size: 0.72rem; color: var(--lp-muted2); }
.editor-row--stack { flex-direction: column; align-items: flex-start; }
.fake-slider {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
}
.fake-slider-fill {
  width: 25%;
  height: 100%;
  background: var(--lp-accent);
  border-radius: 2px;
  display: block;
}
.editor-dnd-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
}
.editor-dnd-list { display: flex; flex-direction: column; gap: 4px; }
.editor-dnd-item {
  background: rgba(88, 101, 242, 0.08);
  border: 1px dashed rgba(88, 101, 242, 0.25);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.drag-dots { color: var(--lp-muted); }
.editor-save-pill {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  font-family: Syne, Inter, sans-serif;
}

.landing-page .how { padding: 7rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--lp-accent);
}
.section-eyebrow--center { justify-content: center; }
.section-title {
  font-family: Syne, Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-title--center { text-align: center; }
.how-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.how-header p { max-width: 280px; color: var(--lp-muted2); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.landing-page .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
}
.step {
  background: #0e0e1a;
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.3s;
}
.step:hover { background: #13131f; }
.step-num {
  font-family: Syne, Inter, sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(88, 101, 242, 0.15);
  margin-bottom: 1.2rem;
  transition: color 0.3s;
}
.step:hover .step-num { color: rgba(88, 101, 242, 0.3); }
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
}
.step h3 {
  font-family: Syne, Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.step p { font-size: 0.875rem; color: var(--lp-muted2); line-height: 1.65; margin: 0; }
.step-arrow {
  position: absolute;
  top: 2.5rem;
  right: -12px;
  width: 24px;
  height: 24px;
  background: var(--lp-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--lp-muted);
  z-index: 2;
}

.landing-faq-block { padding: 7rem 2rem; max-width: 700px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 3rem; }
.landing-faq-block .faq-list {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: #0e0e1a; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #e8e8f0;
  font-family: Syne, Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-question:hover { background: #13131f; }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--lp-accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-answer p {
  margin: 0;
  padding: 0 1.5rem 1.4rem;
  font-size: 0.875rem;
  color: var(--lp-muted2);
  line-height: 1.7;
}

.landing-page .cta {
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-page .cta::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  top: 0;
}
.cta-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.landing-page .cta h2 {
  font-family: Syne, Inter, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.landing-page .cta h2 .grad {
  background: linear-gradient(135deg, #7289ff, #eb459e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-page .cta p {
  color: var(--lp-muted2);
  font-size: 1rem;
  max-width: 380px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

.landing-footer {
  background: #0e0e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo--footer { text-decoration: none; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--lp-muted); font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: #e8e8f0; }
.footer-copy { color: var(--lp-muted); font-size: 0.8rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .landing-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .mockup-body { grid-template-columns: 1fr; }
  .landing-page .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .how-header { flex-direction: column; }
  .landing-footer { flex-direction: column; text-align: center; }
  .landing-nav-right { gap: 0.75rem; }
}

@media (max-width: 520px) {
  .dash-nav { padding: 0.85rem 1rem; }
  .dash-nav-right { gap: 0.6rem; }
  .landing-nav { padding: 0.85rem 1rem; }

  .landing-page .hero { padding: 7rem 1.2rem 3.5rem; }

  /* If the viewport is wide enough to still show nav links, keep it readable. */
  .landing-nav .nav-links { gap: 1rem; }
  .landing-nav .nav-links a:not(.nav-cta) { display: none; }

  .landing-lang .lang-btn { padding: 0.25rem 0.55rem; font-size: 0.7rem; }
}
