/* ============================================================================
   landing.css — GratisChat.dk modern landing page
   Works on top of tabler.css / base styles already loaded by base.index.html
   ============================================================================ */

/* ── Custom properties ─────────────────────────────────────────────────────── */
/* ── Visually hidden helper — keeps inputs accessible to screen readers ───── */
.lp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

:root {
  /* Brand accent — teal */
  --lp-accent: #0d9488;
  --lp-accent-dark: #0f766e;
  --lp-accent-light: #5eead4;
  --lp-accent-rgb: 13, 148, 136;

  /* ── Dark-by-default palette — the whole landing page is dark ─────────────
     Matches the hero gradient so sections flow seamlessly without a white break.
  ── */
  --lp-bg: #0c1a2e; /* deep navy — matches hero bottom */
  --lp-surface: #112240; /* slightly lighter navy for cards */
  --lp-surface2: #162d4a; /* inputs / alternate rows */
  --lp-border: rgba(148, 196, 255, 0.14);
  --lp-text: #f1f5f9; /* near-white */
  --lp-sub: #94a3b8; /* slate-400 secondary */
  --lp-muted: #64748b; /* slate-500 captions */
  --lp-placeholder: #475569;

  /* Spacing / radii / motion */
  --lp-radius-sm: 10px;
  --lp-radius: 18px;
  --lp-radius-lg: 28px;
  --lp-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  --lp-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.48);
  --lp-transition: 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Hero — dark gradient (brand colours) */
  --lp-hero-from: #0f172a; /* Slate-900 */
  --lp-hero-to: #134e4a; /* Teal-900 */
  --lp-hero-text: #ffffff;
  --lp-hero-sub-text: rgba(255, 255, 255, 0.75);
  --lp-hero-stats-bg: rgba(255, 255, 255, 0.08);
  --lp-hero-stats-border: rgba(255, 255, 255, 0.14);
  --lp-hero-stat-value: #ffffff;
  --lp-hero-stat-label: rgba(255, 255, 255, 0.6);
  --lp-hero-sep: rgba(255, 255, 255, 0.16);
  --lp-hero-hint: rgba(255, 255, 255, 0.48);

  /* Sections */
  --lp-stats-bg: #0c1a2e;
  --lp-feat-bg: #0c1a2e;
  --lp-trust-bg: #0c1a2e;
  --lp-modal-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5), 0 32px 64px rgba(0, 0, 0, 0.4);
}

/* Landing page is always dark regardless of theme — `:root` sets the dark base.
   Only accent colours differ between theme variants. */

/* TrueBlue accent overrides */
html.theme-trueblue .lp-wrap,
html.trueblue .lp-wrap,
body.theme-trueblue .lp-wrap,
body.trueblue .lp-wrap {
  --lp-accent: #60a5fa;
  --lp-accent-dark: #3b82f6;
  --lp-accent-light: #bfdbfe;
  --lp-accent-rgb: 96, 165, 250;
  --lp-hero-from: #040d1e;
  --lp-hero-to: #0c1f4a;
  --lp-border: rgba(148, 196, 255, 0.22);
  --lp-sub: #bdd4f5;
}
/* ============================================================================
   SETTINGS MODAL — modern sidebar-nav popup
   ============================================================================ */

/* ── Backdrop ─────────────────────────────────────────────────────────────── */
.lp-sm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(9, 14, 28, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

/* ── Modal shell ───────────────────────────────────────────────────────────── */
.lp-sm {
  display: flex;
  width: min(920px, 100%);
  max-width: 100%;
  height: min(760px, calc(100dvh - 3rem));
  min-height: min(560px, calc(100dvh - 3rem));
  background: var(--lp-surface, #fff);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.12);
  animation: lp-sm-in 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
  margin: auto;
}

@keyframes lp-sm-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Left sidebar ──────────────────────────────────────────────────────────── */
.lp-sm__sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--lp-surface2, #f8fafc);
  border-right: 1px solid var(--lp-border, rgba(15, 23, 42, 0.08));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lp-sm__sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--lp-border, rgba(15, 23, 42, 0.08));
}

.lp-sm__sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lp-sm__sidebar-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lp-text, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-sm__sidebar-role {
  font-size: 0.72rem;
  color: var(--lp-muted, #64748b);
  margin-top: 0.1rem;
}

.lp-sm__nav {
  padding: 0.75rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.lp-sm__nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lp-muted, #94a3b8);
  padding: 0.8rem 0.6rem 0.3rem;
}

.lp-sm__nav-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lp-text, #374151);
  cursor: pointer;
  text-align: left;
  transition:
    background 0.12s,
    color 0.12s;
}

.lp-sm__nav-btn i {
  font-size: 1rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.lp-sm__nav-btn:hover {
  background: var(--lp-border, rgba(15, 23, 42, 0.07));
  color: var(--lp-text, #0f172a);
}

.lp-sm__nav-btn--active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--lp-accent, #0d9488);
  font-weight: 600;
}

.lp-sm__nav-btn--active i {
  opacity: 1;
}

/* ── Right content area ────────────────────────────────────────────────────── */
.lp-sm__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.lp-sm__pane {
  display: none;
  flex: 1 1 0%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
}

.lp-sm__pane--active {
  display: flex;
}

.lp-sm__content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--lp-border, rgba(15, 23, 42, 0.08));
  flex-shrink: 0;
  background: var(--lp-surface, #fff);
}

.lp-sm__content-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text, #0f172a);
  margin: 0;
}

.lp-sm__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--lp-surface2, #f1f5f9);
  color: var(--lp-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition:
    background 0.12s,
    color 0.12s;
  flex-shrink: 0;
}
.lp-sm__close:hover {
  background: var(--lp-border, rgba(15, 23, 42, 0.12));
  color: var(--lp-text, #0f172a);
}

/* ── Field groups ──────────────────────────────────────────────────────────── */
.lp-sm__field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lp-border, rgba(15, 23, 42, 0.07));
}

.lp-sm__field-group:last-of-type {
  border-bottom: none;
}

.lp-sm__field-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-muted, #94a3b8);
}

.lp-sm__field-desc {
  font-size: 0.82rem;
  color: var(--lp-muted, #64748b);
  margin: 0;
  line-height: 1.5;
}

.lp-sm__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lp-sm__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lp-sm__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lp-text, #374151);
}

.lp-sm__input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--lp-border, rgba(15, 23, 42, 0.15));
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--lp-text, #0f172a);
  background: var(--lp-surface, #fff);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.lp-sm__input:focus {
  border-color: var(--lp-accent, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.lp-sm__input--readonly {
  background: var(--lp-surface2, #f8fafc);
  color: var(--lp-muted, #64748b);
  cursor: default;
  display: flex;
  align-items: center;
}

select.lp-sm__input {
  cursor: pointer;
}

/* ── Avatar upload widget ──────────────────────────────────────────────────── */
.lp-sm__avatar-upload {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Clickable ring around the photo */
.lp-sm__avatar-ring {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2.5px solid var(--lp-border, rgba(15, 23, 42, 0.12));
  padding: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.15s;
}
.lp-sm__avatar-ring:hover {
  border-color: var(--lp-accent, #0d9488);
}

.lp-sm__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Camera overlay that appears on hover */
.lp-sm__avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.lp-sm__avatar-ring:hover .lp-sm__avatar-overlay {
  opacity: 1;
}

.lp-sm__avatar-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.lp-sm__avatar-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lp-text, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-sm__avatar-hint {
  font-size: 0.75rem;
  color: var(--lp-muted, #94a3b8);
}

.lp-sm__avatar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

/* dark mode */
html.dark .lp-sm__avatar-name,
html.theme-dark .lp-sm__avatar-name,
body.theme-dark .lp-sm__avatar-name {
  color: #e2e8f0;
}

html.dark .lp-sm__avatar-ring,
html.theme-dark .lp-sm__avatar-ring,
body.theme-dark .lp-sm__avatar-ring {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Toggle rows ───────────────────────────────────────────────────────────── */
.lp-sm__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--lp-border, rgba(15, 23, 42, 0.06));
}
.lp-sm__toggle-row:last-child {
  border-bottom: none;
}

.lp-sm__toggle-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
  flex: 1;
}

.lp-sm__toggle-label strong {
  font-size: 0.875rem;
  color: var(--lp-text, #0f172a);
  font-weight: 600;
}

.lp-sm__toggle-label small {
  font-size: 0.78rem;
  color: var(--lp-muted, #64748b);
  line-height: 1.4;
}

/* Reuse existing .lp-toggle / .lp-toggle-wrap */
.lp-toggle-wrap {
  flex-shrink: 0;
}

/* ── About textarea ────────────────────────────────────────────────────────── */
.lp-sm__about-wrap {
  border: 1.5px solid var(--lp-border, rgba(15, 23, 42, 0.15));
  border-radius: 10px;
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.lp-sm__about-wrap:focus-within {
  border-color: var(--lp-accent, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.lp-sm__textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--lp-text, #0f172a);
  background: var(--lp-surface, #fff);
  line-height: 1.6;
  box-sizing: border-box;
}

.lp-sm__textarea::placeholder {
  color: var(--lp-muted, #94a3b8);
}

.lp-sm__about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  background: var(--lp-surface2, #f8fafc);
  border-top: 1px solid var(--lp-border, rgba(15, 23, 42, 0.08));
}

.lp-sm__charcount {
  font-size: 0.75rem;
  color: var(--lp-muted, #94a3b8);
}

.lp-sm__autosave-hint {
  font-size: 0.75rem;
  color: var(--lp-muted, #94a3b8);
  min-width: 80px;
  text-align: right;
}

/* ── User list (blocked / hidden) ──────────────────────────────────────────── */
.lp-sm__list-section {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lp-border, rgba(15, 23, 42, 0.07));
}
.lp-sm__list-section:last-child {
  border-bottom: none;
}
.lp-sm__list-section--muted .lp-sm__list-label {
  opacity: 0.6;
}

.lp-sm__list-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lp-muted, #94a3b8);
  margin-bottom: 0.5rem;
}

.lp-sm__user-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lp-sm__list-empty {
  font-size: 0.85rem;
  color: var(--lp-muted, #94a3b8);
  padding: 0.5rem 0;
}

/* User row — injected by JS (reuses existing lp-tbl-* classes for avatar) */
.lp-sm__user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: var(--lp-surface2, #f8fafc);
}

.lp-sm__user-row-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lp-text, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Verify pane ───────────────────────────────────────────────────────────── */
.lp-sm__verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.lp-sm__verify-card {
  background: var(--lp-surface2, #f8fafc);
  border: 1px solid var(--lp-border, rgba(15, 23, 42, 0.1));
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.lp-sm__verify-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lp-muted, #64748b);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-sm__verify-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: var(--lp-surface2, #f1f5f9);
  border-radius: 6px;
}

.lp-sm__verify-badge {
  margin-top: 0.5rem;
}

/* ── Danger zone ───────────────────────────────────────────────────────────── */
.lp-sm__danger-zone {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.lp-sm__danger-zone-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lp-sm__danger-text {
  font-size: 0.83rem;
  color: var(--lp-muted, #64748b);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.lp-sm__danger-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.lp-sm__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.lp-sm__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.lp-sm__btn--primary {
  background: var(--lp-accent, #0d9488);
  color: #fff;
}
.lp-sm__btn--primary:hover:not(:disabled) {
  background: #0f766e;
}

.lp-sm__btn--ghost {
  background: var(--lp-surface2, #f1f5f9);
  color: var(--lp-text, #374151);
}
.lp-sm__btn--ghost:hover:not(:disabled) {
  background: var(--lp-border, rgba(15, 23, 42, 0.12));
}

.lp-sm__btn--danger {
  background: #ef4444;
  color: #fff;
}
.lp-sm__btn--danger:hover:not(:disabled) {
  background: #dc2626;
}

.lp-sm__btn--danger-ghost {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.lp-sm__btn--danger-ghost:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.14);
}

/* ── Form footer ───────────────────────────────────────────────────────────── */
.lp-sm__form-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.lp-sm__form-footer--wrap {
  flex-wrap: wrap;
}

.lp-sm__status {
  font-size: 0.8rem;
  color: var(--lp-muted, #64748b);
}

.lp-sm__hint {
  font-size: 0.78rem;
  color: var(--lp-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Badges (reused across panes) ─────────────────────────────────────────── */
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.lp-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.lp-badge--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.lp-badge--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.lp-badge--muted {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

/* ── Status message ────────────────────────────────────────────────────────── */
.lp-status-msg {
  font-size: 0.8rem;
  color: var(--lp-muted, #64748b);
}
.lp-status-msg--ok {
  color: #059669;
}
.lp-status-msg--error {
  color: #dc2626;
}

/* ── Dark mode ─────────────────────────────────────────────────────────────── */
html.dark .lp-sm,
html.theme-dark .lp-sm,
body.theme-dark .lp-sm {
  background: #1a2035;
}

html.dark .lp-sm__sidebar,
html.theme-dark .lp-sm__sidebar,
body.theme-dark .lp-sm__sidebar {
  background: #141928;
  border-color: rgba(255, 255, 255, 0.07);
}

html.dark .lp-sm__sidebar-name,
html.theme-dark .lp-sm__sidebar-name,
body.theme-dark .lp-sm__sidebar-name,
html.dark .lp-sm__content-title,
html.theme-dark .lp-sm__content-title,
body.theme-dark .lp-sm__content-title,
html.dark .lp-sm__avatar-name,
html.theme-dark .lp-sm__avatar-name,
body.theme-dark .lp-sm__avatar-name {
  color: #e2e8f0;
}

html.dark .lp-sm__content-header,
html.theme-dark .lp-sm__content-header,
body.theme-dark .lp-sm__content-header {
  background: #1a2035;
  border-color: rgba(255, 255, 255, 0.07);
}

html.dark .lp-sm__input,
html.theme-dark .lp-sm__input,
body.theme-dark .lp-sm__input {
  background: #141928;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html.dark .lp-sm__input--readonly,
html.theme-dark .lp-sm__input--readonly,
body.theme-dark .lp-sm__input--readonly {
  background: #0f1422;
  color: #64748b;
}

html.dark .lp-sm__textarea,
html.theme-dark .lp-sm__textarea,
body.theme-dark .lp-sm__textarea {
  background: #141928;
  color: #e2e8f0;
}

html.dark .lp-sm__about-footer,
html.theme-dark .lp-sm__about-footer,
body.theme-dark .lp-sm__about-footer,
html.dark .lp-sm__user-row,
html.theme-dark .lp-sm__user-row,
body.theme-dark .lp-sm__user-row,
html.dark .lp-sm__verify-card,
html.theme-dark .lp-sm__verify-card,
body.theme-dark .lp-sm__verify-card {
  background: #0f1422;
  border-color: rgba(255, 255, 255, 0.07);
}

html.dark .lp-sm__btn--ghost,
html.theme-dark .lp-sm__btn--ghost,
body.theme-dark .lp-sm__btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}

html.dark .lp-sm__close,
html.theme-dark .lp-sm__close,
body.theme-dark .lp-sm__close {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

html.dark .lp-sm__nav-btn,
html.theme-dark .lp-sm__nav-btn,
body.theme-dark .lp-sm__nav-btn {
  color: #94a3b8;
}
html.dark .lp-sm__nav-btn:hover,
html.theme-dark .lp-sm__nav-btn:hover,
body.theme-dark .lp-sm__nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
html.dark .lp-sm__nav-btn--active,
html.theme-dark .lp-sm__nav-btn--active,
body.theme-dark .lp-sm__nav-btn--active {
  background: rgba(13, 148, 136, 0.18);
  color: #2dd4bf;
}

html.dark .lp-sm__toggle-label strong,
html.theme-dark .lp-sm__toggle-label strong,
body.theme-dark .lp-sm__toggle-label strong {
  color: #e2e8f0;
}

/* Reuse existing .lp-toggle dark mode styles from below */

/* ── Responsive — tablet and below ─────────────────────────────────────────── */
/* Simplified settings modal: regular popup layout, no outer scroll */
@media (max-width: 860px) {
  .lp-sm-backdrop {
    align-items: center;
    overflow: hidden;
    padding: 1rem;
  }
  .lp-sm {
    width: min(780px, 100%);
    height: min(760px, calc(100dvh - 2rem));
    min-height: min(480px, calc(100dvh - 2rem));
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    margin: auto;
  }
  .lp-sm__sidebar {
    width: 100%;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--lp-border, rgba(15, 23, 42, 0.08));
    overflow: visible;
  }
  .lp-sm__sidebar-user {
    padding: 1rem 1rem 0.85rem;
  }
  .lp-sm__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.7rem 0.8rem 0.8rem;
    overflow: visible;
  }
  .lp-sm__nav-group-label {
    display: none;
  }
  .lp-sm__nav-btn {
    width: auto;
    white-space: nowrap;
  }
  .lp-sm__content {
    flex: 1 1 auto;
    overflow: hidden;
  }
  .lp-sm__content-header {
    padding: 0.95rem 1.2rem;
  }
  .lp-sm__pane {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.2rem;
  }
}

@media (max-width: 640px) {
  .lp-sm-backdrop {
    align-items: center;
    padding: 0.75rem;
  }
  .lp-sm {
    width: min(740px, 100%);
    height: min(760px, calc(100dvh - 1.5rem));
    min-height: min(420px, calc(100dvh - 1.5rem));
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    animation: lp-sm-in 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .lp-sm__sidebar {
    width: 100%;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--lp-border, rgba(15, 23, 42, 0.08));
    overflow: visible;
  }
  .lp-sm__sidebar-user {
    padding: 1rem;
  }
  .lp-sm__nav {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }
  .lp-sm__nav-group-label {
    display: none;
  }
  .lp-sm__nav-btn {
    white-space: nowrap;
    width: auto;
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }
  .lp-sm__content {
    flex: 1 1 auto;
    overflow: hidden;
  }
  .lp-sm__pane {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .lp-sm__field-row {
    grid-template-columns: 1fr;
  }
  .lp-sm__verify-grid {
    grid-template-columns: 1fr;
  }
}

