/* kaldra — premium SaaS UI (light, shadcn-inspired) */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap");

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --navy: #182237;
  --gradient-start: #428cff;
  --gradient-end: #7b5af2;
  --gradient-primary: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  --gradient-primary-hover: linear-gradient(135deg, #5a9dff, #8f72f5);
  --gradient-subtle: linear-gradient(135deg, rgba(66, 140, 255, 0.14), rgba(123, 90, 242, 0.12));
  --gradient-row-hover: linear-gradient(90deg, rgba(66, 140, 255, 0.07), rgba(123, 90, 242, 0.05));

  --surface: #ffffff;
  --surface-muted: #f0f2f5;
  --surface-elevated: #f8fafc;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --border-input: #d1d5db;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-heading: var(--navy);

  /* Brand (solid fallbacks for links, badges, one-color contexts) */
  --brand: #5c48e0;
  --brand-hover: #4b38c9;
  --brand-soft: rgba(123, 90, 242, 0.1);
  --brand-soft-2: rgba(66, 140, 255, 0.08);
  --brand-border-soft: rgba(123, 90, 242, 0.22);
  --brand-border-strong: rgba(123, 90, 242, 0.38);

  /* Semantic accent */
  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: rgba(5, 150, 105, 0.12);
  --accent-warm: #c2410c;

  /* Elevation — soft SaaS shadows */
  --shadow-xs: 0 1px 2px rgba(24, 34, 55, 0.04);
  --shadow-sm: 0 2px 8px rgba(24, 34, 55, 0.06);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 18px 45px rgba(24, 34, 55, 0.09);
  --shadow-brand: 0 10px 28px rgba(66, 140, 255, 0.22), 0 4px 14px rgba(123, 90, 242, 0.16);
  --shadow-nav: 0 1px 0 rgba(24, 34, 55, 0.04), 0 8px 24px rgba(24, 34, 55, 0.05);

  /* Shape (8px grid) */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
  --transition-slow: 0.3s var(--ease);

  /* Focus ring (violet) */
  --focus-ring: 0 0 0 3px rgba(123, 90, 242, 0.15);

  /* Typography */
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--gradient-end);
  outline-offset: 2px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-brand {
  --bs-btn-color: #fff;
  background: var(--gradient-primary);
  color: #fff !important;
  border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-brand);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition),
    background var(--transition);
}

.btn-brand:hover {
  background: var(--gradient-primary-hover);
  color: #fff !important;
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.03);
  box-shadow: 0 12px 32px rgba(66, 140, 255, 0.28), 0 6px 16px rgba(123, 90, 242, 0.2);
}

.btn-brand:active {
  transform: translateY(0) scale(1);
  filter: brightness(0.98);
  box-shadow: var(--shadow-brand);
}

@media (prefers-reduced-motion: reduce) {
  .btn-brand,
  .btn-brand:hover,
  .btn-brand:active {
    transform: none;
    transition: box-shadow var(--transition), filter var(--transition);
  }
}

.btn-success-soft {
  background: var(--accent);
  color: #fff;
  border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.22);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-success-soft:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}

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

.btn-outline-brand {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn-outline-brand:hover {
  border-color: rgba(123, 90, 242, 0.45);
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

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

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-control,
.form-select {
  font-family: var(--font-body);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-lg);
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gradient-end);
  box-shadow: var(--focus-ring);
  outline: none;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.8375rem;
  margin-bottom: 0.375rem;
}

.form-control-sm,
.form-select-sm {
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
}

/* ── Nav tabs ────────────────────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}

.nav-tabs .nav-link {
  color: var(--text-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  margin-bottom: -1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.nav-tabs .nav-link:hover {
  color: var(--text-heading);
  border-color: transparent;
  background: var(--surface-muted);
}

.nav-tabs .nav-link.active {
  color: var(--text-heading);
  background: var(--surface);
  position: relative;
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

/* ── Shared logo ─────────────────────────────────────────────────────────── */
.kaldra-logo {
  display: inline-block;
  height: 130px;
  width: auto;
  vertical-align: middle;
}

.navbar-brand .kaldra-logo { height: 152px; }
.brand-title .kaldra-logo { height: 152px; }
.app-sidebar-brand .kaldra-logo {
  height: auto;
  max-height: 118px;
  width: auto;
  object-fit: contain;
}
.booking-brand .kaldra-logo { height: 152px; }
.site-footer .footer-brand .kaldra-logo { height: 152px; }

/* ── Auth page ───────────────────────────────────────────────────────────── */
.bg-auth {
  background: var(--surface-muted);
}

.bg-auth.page-parallax {
  background: var(--surface-muted);
}

.auth-parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(66, 140, 255, 0.08), transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 85%, rgba(123, 90, 242, 0.06), transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 50%, rgba(24, 34, 55, 0.03), transparent 50%);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .auth-parallax-bg { will-change: auto; }
}

.page-parallax {
  position: relative;
  overflow-x: clip;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Hero panel on auth page left column */
.hero-panel {
  color: var(--text);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-slow);
}

.hero-panel:hover {
  box-shadow: var(--shadow-lg);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-soft);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.hero-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-top: 1rem;
  color: var(--text);
}

.hero-lead {
  color: var(--text-secondary);
  margin-top: 0.875rem;
  font-size: 0.9625rem;
  line-height: 1.65;
  max-width: 32rem;
}

.hero-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-soft);
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.feature-list li {
  margin-bottom: 0.625rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.85;
}

/* Auth card */
.auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow var(--transition-slow);
}

.auth-card:hover {
  box-shadow: var(--shadow-lg);
}

.auth-card .card-body {
  padding: 2rem 1.75rem;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand-accent {
  color: var(--brand);
}

.subtle-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: var(--font-body);
}

/* ── Marketing nav (auth page) ───────────────────────────────────────────── */
.marketing-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
}

.marketing-nav .navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.marketing-nav .navbar-brand span {
  color: var(--brand);
}

/* Login / auth — mobile & narrow viewports */
@media (max-width: 991.98px) {
  .bg-auth .auth-shell {
    min-height: 0;
    align-items: flex-start;
  }

  .bg-auth .hero-panel {
    padding: 1.35rem 1.25rem;
  }

  .bg-auth .auth-card .card-body {
    padding: 1.35rem 1.15rem;
  }

  .bg-auth .hero-panel h1 {
    font-size: clamp(1.35rem, 5.2vw, 1.85rem);
  }

  .bg-auth .hero-lead {
    max-width: none;
    font-size: 0.9375rem;
  }
}

@media (max-width: 575.98px) {
  .bg-auth .marketing-nav .navbar-brand .kaldra-logo {
    max-height: 130px;
    height: auto;
    width: auto;
  }

  .bg-auth .brand-title .kaldra-logo {
    max-height: 130px;
    height: auto;
  }

  /* Equal-width tabs; avoids cramped text */
  .bg-auth .nav.nav-tabs {
    display: flex;
  }

  .bg-auth .nav.nav-tabs .nav-item {
    flex: 1;
    min-width: 0;
  }

  .bg-auth .nav.nav-tabs .nav-link {
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.55rem 0.5rem;
    white-space: nowrap;
  }

  /* Reduces iOS zoom on field focus */
  .bg-auth .form-control,
  .bg-auth .form-select {
    font-size: 16px;
  }

  .bg-auth .feature-list li {
    font-size: 0.8625rem;
    padding-left: 1.35rem;
  }
}

/* ── Stats row (auth hero panel) ─────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--border);
}

@media (min-width: 576px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item { text-align: left; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── App shell ───────────────────────────────────────────────────────────── */
.app-body {
  background: #eceef2;
  background-image: radial-gradient(at 0% 0%, rgba(66, 140, 255, 0.04) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(123, 90, 242, 0.035) 0, transparent 45%);
}

.app-dashboard-body {
  overflow-x: hidden;
}

.app-layout {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.app-sidebar {
  width: 272px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  z-index: 1020;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.app-sidebar::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
}

.app-sidebar-brand {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 124px;
  box-sizing: border-box;
}

.app-sidebar-brand-link {
  flex: 1;
  min-width: 0;
}

.app-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--text-secondary);
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.app-sidebar-close:hover {
  background: var(--border);
  color: var(--text);
}

.app-topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface) !important;
  color: var(--text-heading);
  box-shadow: var(--shadow-xs);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.app-topbar-icon-btn:hover {
  background: var(--surface-muted) !important;
  border-color: var(--border-strong);
  color: var(--text-heading);
}

.app-menu-toggle {
  display: none;
  margin-right: 0.375rem;
  flex-shrink: 0;
}

.app-sidebar-backdrop {
  display: none;
}

.app-sidebar-brand span {
  color: var(--brand);
}

.app-sidebar-nav {
  padding: 0.75rem 0.75rem 1.5rem;
  flex: 1;
}

.app-nav-section-label {
  padding: 1.25rem 1rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.875rem;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}

.app-nav-link i {
  font-size: 1rem;
  opacity: 0.65;
  flex-shrink: 0;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

.app-nav-link:hover {
  background: var(--surface-muted);
  color: var(--text-heading);
}

.app-nav-link:hover i {
  opacity: 1;
  color: var(--gradient-start);
  transform: scale(1.04);
}

.app-nav-link.active {
  position: relative;
  background: var(--gradient-row-hover);
  color: var(--text-heading);
  font-weight: 600;
}

.app-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gradient-primary);
}

.app-nav-link.active i {
  opacity: 1;
  color: var(--brand);
}

.app-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.875rem;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
  border-radius: 10px;
  transition: background var(--transition);
  cursor: pointer;
}

.app-nav-toggle:hover {
  background: var(--surface-muted);
}

.app-nav-toggle span {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.app-nav-sublink {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.875rem 0.45rem 2.5rem;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.app-nav-sublink:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.app-nav-sublink.active {
  position: relative;
  color: var(--text-heading);
  font-weight: 600;
  background: var(--gradient-row-hover);
}

.app-nav-sublink.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gradient-primary);
}

#navBusinessSub {
  margin-left: 0.5rem;
  padding: 0.125rem 0 0.25rem 0.75rem;
  border-left: 1px solid var(--border);
}

/* ── App main ────────────────────────────────────────────────────────────── */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 clamp(1.25rem, 3vw, 2.25rem);
  min-height: 64px;
  height: auto;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(24, 34, 55, 0.04);
  position: sticky;
  top: 0;
  z-index: 1010;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.app-breadcrumb-root {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.app-breadcrumb-sep {
  color: var(--border-strong);
  font-size: 0.75rem;
  opacity: 0.65;
  padding: 0 0.25rem;
  user-select: none;
}

.app-business-picker {
  display: inline-flex !important;
  align-items: center;
  max-width: min(340px, 52vw);
  padding: 0.375rem 0.75rem 0.375rem 0.45rem !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-pill) !important;
  background: var(--surface-muted) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  line-height: 1.3;
  color: var(--text-heading) !important;
  text-decoration: none !important;
  box-shadow: var(--shadow-xs);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.app-business-picker:hover,
.app-business-picker:focus-visible {
  background: var(--surface) !important;
  border-color: var(--border-strong) !important;
  color: var(--text-heading) !important;
}

.app-business-picker::after {
  margin-left: 0.35rem;
}

.app-user-menu-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.4rem !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-pill) !important;
  background: var(--surface) !important;
  font-family: var(--font-body) !important;
  box-shadow: var(--shadow-xs);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.app-user-menu-btn:hover,
.app-user-menu-btn:focus-visible {
  background: var(--surface-muted) !important;
  border-color: var(--border-strong) !important;
}

.app-user-menu-btn.dropdown-toggle::after {
  display: none;
}

.app-user-menu-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dropdown-user-email {
  color: var(--text-heading) !important;
}

#businessContextLogo {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
  border-radius: 6px;
  margin-right: 0.5rem;
  vertical-align: text-bottom;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  flex-shrink: 0;
}

.app-topbar .topbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50%;
  background: var(--gradient-subtle);
  border: 1px solid var(--brand-border-soft);
  color: var(--brand);
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.app-content {
  padding: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2.5rem, 4vw, 3.5rem);
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 991.98px) {
  .app-menu-toggle {
    display: inline-flex;
  }

  .app-sidebar-close {
    display: inline-flex;
  }

  .app-layout {
    position: relative;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 90vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    border-right: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.12);
    z-index: 1040;
    align-self: stretch;
  }

  .app-layout.app-sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    pointer-events: none;
  }

  .app-layout.app-sidebar-open .app-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .app-sidebar-brand .kaldra-logo {
    max-height: 130px;
    height: auto;
  }

  .app-topbar {
    padding: 0.5rem 1rem;
    min-height: 56px;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1025;
  }

  .app-content {
    padding: 1rem 1rem 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .app-sidebar {
    transition: none;
  }

  .app-sidebar-backdrop {
    transition: none;
  }
}

body.app-sidebar-open-body {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .app-topbar-left {
    flex: 1;
    min-width: 0;
  }

  .app-business-picker.dropdown-toggle {
    max-width: min(160px, 42vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }

  #businessContextName {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}

/* ── Dashboard home widgets ──────────────────────────────────────────────── */
.dash-welcome-wrap {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 767.98px) {
  .dash-welcome-wrap {
    grid-template-columns: 1fr;
  }
}

.dash-welcome-banner {
  border-radius: var(--radius-xl);
  padding: 2rem 2rem;
  background:
    linear-gradient(135deg, rgba(66, 140, 255, 0.35) 0%, transparent 45%),
    linear-gradient(120deg, #121b2e 0%, var(--navy) 38%, #243352 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--transition-slow), transform var(--transition);
}

.dash-welcome-banner:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.dash-welcome-banner::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.dash-welcome-banner::after {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.dash-welcome-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 38rem;
  position: relative;
  z-index: 1;
  line-height: 1.45;
  opacity: 0.97;
}

.dash-welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.dash-btn-light {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.dash-btn-light:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.dash-btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
}

.dash-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.dash-qr-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 34, 55, 0.04), 0 10px 28px rgba(24, 34, 55, 0.06);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.dash-qr-card:hover {
  box-shadow: 0 2px 4px rgba(24, 34, 55, 0.05), 0 16px 40px rgba(24, 34, 55, 0.08);
  border-color: rgba(24, 34, 55, 0.1);
}

.dash-qr-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius);
}

.dash-qr-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stat cards scroller */
.dash-stats-scroller {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.375rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dash-stats-scroller::-webkit-scrollbar {
  height: 5px;
}

.dash-stats-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.dash-stats-scroller::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}

.dash-stat-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.25rem;
  min-height: 110px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dash-stat-card .label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.dash-stat-card .value {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0.4rem;
  line-height: 1.1;
}

.dash-stat-pink   { background: #fce7f3; color: #9d174d; border-color: #fbcfe8; }
.dash-stat-mint   { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.dash-stat-amber  { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.dash-stat-sky    { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.dash-stat-purple { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.dash-stat-sand   { background: #e7e5e4; color: #57534e; border-color: #d6d3d1; }

/* Dashboard widgets */
.dash-widget {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 34, 55, 0.04), 0 10px 28px rgba(24, 34, 55, 0.06);
  height: 100%;
  overflow: hidden;
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.dash-widget:hover {
  box-shadow: 0 2px 4px rgba(24, 34, 55, 0.05), 0 16px 40px rgba(24, 34, 55, 0.08);
  border-color: rgba(24, 34, 55, 0.1);
}

.dash-widget .widget-head {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--surface);
}

.dash-widget .widget-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.dash-recent-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.dash-recent-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* App main view — de-template, stronger hierarchy */
.app-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#appMount > .text-secondary.py-4,
#appMount > .text-secondary.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  font-size: 0.9375rem;
  color: var(--text-secondary) !important;
}

#appMount .row {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
}

#appMount .mb-3 {
  margin-bottom: 1.25rem !important;
}

#appMount .mb-4 {
  margin-bottom: 1.75rem !important;
}

#appMount .mt-3 {
  margin-top: 1.25rem !important;
}

#appMount .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

#appMount .bg-light.bg-opacity-50 {
  background-color: var(--surface-muted) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
}

#appMount .alert {
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
}

#appMount .alert-secondary {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-secondary);
}

/* App content cards (from app.js) */
#appMount .card {
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(24, 34, 55, 0.04), 0 10px 28px rgba(24, 34, 55, 0.06);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

#appMount .card:hover {
  box-shadow: 0 2px 4px rgba(24, 34, 55, 0.05), 0 16px 40px rgba(24, 34, 55, 0.08);
  border-color: rgba(24, 34, 55, 0.1);
}

#appMount .card .card-body {
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
}

#appMount .card h4 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

#appMount .card h5 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

#appMount .card h6 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

#appMount .card .text-secondary.small,
#appMount .card p.small.text-secondary {
  font-size: 0.875rem !important;
  line-height: 1.6;
  color: var(--text-secondary) !important;
  max-width: 42rem;
}

#appMount .business-setup-card h5 {
  margin-bottom: 0.35rem;
}

#appMount .table-responsive {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

#appMount .table-responsive .table {
  margin-bottom: 0;
}

.business-setup-form {
  max-width: 32rem;
}

.business-setup-lead {
  max-width: 36rem;
}

.muted-note {
  font-size: 0.8375rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Old topbar styles (kept for compatibility) */
.topbar {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.topbar .navbar-brand {
  font-family: var(--font-display);
  color: var(--text) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topbar .navbar-brand span {
  color: var(--brand);
}

.topbar .badge {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
  font-weight: 600;
  border: 1px solid var(--brand-border-strong);
}

.app-shell {
  margin-top: 1.25rem;
}

.sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow var(--transition-slow);
}

.sidebar-card:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}

.sidebar-card .list-group-item {
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
}

.sidebar-card .list-group-item:last-child { border-bottom: 0; }

.sidebar-card .list-group-item:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.sidebar-card .list-group-item.active {
  position: relative;
  background: var(--gradient-row-hover);
  color: var(--text-heading);
  font-weight: 600;
  border-left: 0;
}

.sidebar-card .list-group-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gradient-primary);
}

/* ── Public booking page ─────────────────────────────────────────────────── */
.public-booking {
  background: var(--surface-muted);
  min-height: 100vh;
}

.public-booking.page-parallax {
  background: var(--surface-muted);
}

.booking-parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 15% -5%, rgba(66, 140, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 60%, rgba(123, 90, 242, 0.05), transparent 55%);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .booking-parallax-bg { will-change: auto; }
}

.booking-top {
  padding: 1rem 0 0;
}

.booking-brand {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.booking-header {
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition-slow);
}

.booking-header:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}

.booking-header h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.booking-header .booking-desc {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.booking-business-logo-wrap {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}

.booking-business-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.booking-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow var(--transition-slow);
}

.booking-card:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}

/* ── Landing page nav ────────────────────────────────────────────────────── */
.page-landing {
  background: var(--surface);
}

.landing-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
  z-index: 1030;
}

.landing-nav .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-heading) !important;
}

.landing-nav .nav-link {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem !important;
  margin: 0 0.125rem;
  border-radius: var(--radius-lg);
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.landing-nav .nav-link:hover {
  color: var(--text-heading);
  background: var(--surface-muted);
}

.landing-nav .nav-link:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}

/* Scrollspy / explicit current section */
.landing-nav .nav-link.active {
  color: var(--text-heading);
  font-weight: 600;
  background: var(--brand-soft);
}

.landing-nav .nav-link.active::after {
  content: "";
  display: block;
  margin: 0.35rem auto 0;
  height: 2px;
  width: 1.5rem;
  border-radius: 2px;
  background: var(--gradient-primary);
}

/* ── Landing hero ────────────────────────────────────────────────────────── */
.landing-hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 55%);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 992px) {
  .landing-hero {
    padding: 4.5rem 0 5rem;
  }
}

.landing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-heading);
}

.landing-hero .lead {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 36rem;
  line-height: 1.7;
}

.landing-hero--split {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.landing-hero-inner {
  z-index: 1;
}

.landing-hero-deco {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 85%;
  min-height: 420px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 35%, rgba(66, 140, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 20%, rgba(123, 90, 242, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 70% 75%, rgba(24, 34, 55, 0.04) 0%, transparent 55%);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-deco { will-change: auto; }
}

/* ── Hero eyebrow badge ──────────────────────────────────────────────────── */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-soft);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* ── Landing stats ───────────────────────────────────────────────────────── */
.landing-stats {
  padding: 2.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.landing-stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.landing-stat__label {
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* ── Trust line ──────────────────────────────────────────────────────────── */
.landing-trust-line {
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  padding: 0.875rem 0;
}

.landing-trust-line__text {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.025em;
}

/* ── Parallax bands ──────────────────────────────────────────────────────── */
.landing-parallax-section {
  position: relative;
  overflow: hidden;
}

.landing-parallax-band {
  display: flex;
  align-items: center;
  min-height: 320px;
}

.landing-parallax-band--short {
  min-height: 240px;
}

.landing-parallax-band__inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 992px) {
  .landing-parallax-band__inner {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

.landing-parallax-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -25%;
  bottom: -25%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .landing-parallax-bg {
    top: 0;
    bottom: 0;
    will-change: auto;
  }
}

.landing-parallax-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(125deg, rgba(0, 45, 95, 0.93) 0%, rgba(0, 97, 193, 0.8) 48%, rgba(0, 74, 148, 0.87) 100%);
}

.landing-parallax-scrim--soft {
  background: linear-gradient(115deg, rgba(15, 23, 42, 0.9) 0%, rgba(0, 74, 148, 0.84) 100%);
}

.landing-parallax-band .container {
  z-index: 2;
}

.landing-parallax-float {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .landing-parallax-float { will-change: auto; }
}

.landing-parallax-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
}

.landing-parallax-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.landing-parallax-lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  opacity: 0.9;
}

/* ── Hero media ──────────────────────────────────────────────────────────── */
.landing-hero-media {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface-muted);
}

.landing-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: min(420px, 70vh);
}

.landing-hero-img.js-parallax-hero-img {
  transform-origin: center center;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-img.js-parallax-hero-img {
    transform: none !important;
    will-change: auto;
  }
}

/* ── Landing sections ────────────────────────────────────────────────────── */
.landing-section {
  padding: 4rem 0;
}

.landing-section--tight {
  padding: 3rem 0;
}

@media (min-width: 992px) {
  .landing-section--tight {
    padding: 3.75rem 0;
  }
}

.landing-section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.625rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-soft);
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  line-height: 1.18;
}

.section-sub {
  font-family: var(--font-body);
  color: var(--text-secondary);
  max-width: 40rem;
  margin-bottom: 0;
  font-size: 1.0125rem;
  line-height: 1.65;
}

/* ── Feature tiles ───────────────────────────────────────────────────────── */
.feature-tile {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition-slow), transform var(--transition-slow);
}

.feature-tile:hover {
  border-color: rgba(123, 90, 242, 0.25);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.feature-tile .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-subtle);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--brand-border-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-tile:hover .icon-wrap {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(123, 90, 242, 0.15);
}

.feature-tile h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.feature-tile p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.feature-tile--quiet {
  box-shadow: none;
}

.feature-tile--quiet:hover {
  box-shadow: var(--shadow-sm);
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.landing-step {
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition-slow), transform var(--transition);
}

.landing-step:hover {
  border-color: rgba(123, 90, 242, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  background: var(--gradient-row-hover);
}

.landing-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  margin-bottom: 0.875rem;
  box-shadow: var(--shadow-brand);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.landing-faq .accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.landing-faq .accordion-button:not(.collapsed) {
  color: var(--text-heading);
  background: var(--brand-soft);
  box-shadow: none;
}

.landing-faq .accordion-button:focus {
  box-shadow: var(--focus-ring);
  border-color: transparent;
}

/* ── Pricing cards ───────────────────────────────────────────────────────── */
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: var(--surface);
  height: 100%;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border: 1px solid rgba(123, 90, 242, 0.35);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(123, 90, 242, 0.12);
  position: relative;
}

.pricing-card.featured:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(123, 90, 242, 0.18);
}

.pricing-card .badge-featured {
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-brand);
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-card > .text-secondary {
  font-family: var(--font-body);
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.pricing-card .price-period {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 0.1em;
}

/* Pricing list with checkmarks */
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.375rem 0;
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}

.pricing-list li .bi {
  color: var(--gradient-end);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* Legacy pricing ul (fallback) */
.pricing-card ul {
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.pricing-card li {
  margin-bottom: 0.375rem;
}

/* ── Step cards ──────────────────────────────────────────────────────────── */
.step-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  height: 100%;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-slow), transform var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-brand);
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  background: var(--surface);
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-slow), transform var(--transition);
}

.testimonial-card:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.testimonial-card .quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(66, 140, 255, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(123, 90, 242, 0.3), transparent 45%),
    linear-gradient(125deg, #101828 0%, var(--navy) 45%, #1e2d4a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-band p {
  font-family: var(--font-body);
  opacity: 0.88;
  max-width: 34rem;
}

.cta-band .btn-light {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-band .btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.cta-band .btn-outline-light {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
  border-color: rgba(255, 255, 255, 0.5);
  transition: background var(--transition), border-color var(--transition);
}

.cta-band .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 0;
}

.trust-strip .stat-value {
  font-size: 1.35rem;
}

/* ── Site footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: #e2e8f0;
}

.site-footer .footer-brand {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.site-footer .footer-brand span {
  color: #a5b4fc;
}

.site-footer h6 {
  font-family: var(--font-body);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer p {
  color: #64748b;
  line-height: 1.65;
}

/* ── Misc refinements ────────────────────────────────────────────────────── */

/* Better Bootstrap alert overrides */
.alert {
  border-radius: var(--radius);
  font-family: var(--font-body);
}

/* Better dropdown */
.dropdown-menu {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.dropdown-item {
  border-radius: calc(var(--radius) - 2px);
  transition: background var(--transition), color var(--transition);
}

/* Better badge */
.badge {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
}

/* Text utility */
.opacity-95 { opacity: 0.95; }

/* ── Bootstrap harmonization (shadcn-like, light only) ───────────────────── */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
  background: var(--gradient-primary) !important;
  border: 0 !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 600;
  padding: 0.5rem 1.125rem;
  box-shadow: var(--shadow-brand);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gradient-primary-hover) !important;
  filter: brightness(1.03);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 32px rgba(66, 140, 255, 0.28), 0 6px 16px rgba(123, 90, 242, 0.2);
}

.btn-primary:active {
  transform: translateY(0) scale(1);
  filter: brightness(0.98);
}

.btn-primary:disabled,
.btn-primary.disabled {
  opacity: 0.55;
  transform: none !important;
  filter: none;
  box-shadow: none;
}

.btn-secondary {
  --bs-btn-bg: var(--surface-muted);
  --bs-btn-color: var(--text-heading);
  --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: var(--border);
  --bs-btn-hover-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--text-heading);
  border-radius: var(--radius-xl) !important;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-outline-secondary {
  color: var(--text-secondary);
  border-color: var(--border);
  border-radius: var(--radius-xl) !important;
  font-weight: 600;
  background: var(--surface);
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-outline-secondary:hover {
  border-color: rgba(123, 90, 242, 0.35);
  color: var(--text-heading);
  background: var(--brand-soft);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.btn-outline-danger {
  border-radius: var(--radius-xl) !important;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-outline-danger:hover {
  transform: translateY(-1px);
}

.btn-link {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), opacity var(--transition);
}

.btn-link:hover {
  color: var(--gradient-start);
}

.card:not(.auth-card) {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-slow);
}

.modal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom-color: var(--border);
}

.modal-footer {
  border-top-color: var(--border);
}

.list-group-item {
  transition: background var(--transition), color var(--transition);
}

.list-group-item-action:hover {
  background: var(--surface-muted);
}

.list-group-item-action:active {
  background: var(--brand-soft);
  color: var(--text-heading);
}

.form-check-input:checked {
  background-color: var(--gradient-end);
  border-color: var(--gradient-end);
}

.form-check-input:focus {
  border-color: var(--gradient-end);
  box-shadow: var(--focus-ring);
}

.pagination .page-link {
  border-radius: var(--radius) !important;
  margin: 0 0.125rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.pagination .page-link:hover {
  background: var(--brand-soft);
  color: var(--text-heading);
  border-color: rgba(123, 90, 242, 0.3);
  transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

#appMount .table {
  --bs-table-bg: transparent;
  border-color: var(--border);
}

#appMount .table > :not(caption) > * > * {
  padding: 0.8rem 1rem;
  border-bottom-color: var(--border);
}

#appMount .table.table-sm > :not(caption) > * > * {
  padding: 0.7rem 0.9rem;
}

#appMount .table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

#appMount .table tbody tr {
  transition: background var(--transition);
}

#appMount .table tbody tr:hover {
  background: var(--gradient-row-hover);
}

.text-muted {
  color: var(--text-muted) !important;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-primary:focus-visible,
  .btn-primary:active,
  .btn-secondary:hover,
  .btn-outline-secondary:hover,
  .btn-outline-danger:hover,
  .pagination .page-link:hover,
  #appMount .card:hover,
  .dash-welcome-banner:hover,
  .hero-panel:hover,
  .auth-card:hover,
  .feature-tile:hover,
  .feature-tile:hover .icon-wrap,
  .landing-step:hover,
  .testimonial-card:hover,
  .pricing-card:hover,
  .app-nav-link:hover i,
  .step-card:hover {
    transform: none;
  }
}

/* ── Custom popup (replaces browser alert) ───────────────────────────────── */
.kaldra-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2200;
  backdrop-filter: blur(2px);
}

.kaldra-popup-backdrop.is-open {
  display: flex;
}

.kaldra-popup {
  width: min(28rem, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.25rem 1.1rem;
  text-align: left;
}

.kaldra-popup__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 0.55rem;
  border: 1px solid var(--brand-border-soft);
}

.kaldra-popup__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.kaldra-popup__message {
  margin: 0.55rem 0 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.kaldra-popup__actions {
  margin-top: 0.95rem;
  display: flex;
  justify-content: flex-end;
}

/* ── Premium pass: landing + login polish ───────────────────────────────── */
.landing-nav {
  min-height: 108px;
}

.landing-nav .container {
  max-width: 1180px;
}

.landing-nav .navbar-brand .kaldra-logo {
  max-height: 128px;
  height: auto;
}

.landing-nav .navbar-collapse {
  gap: 1.5rem;
}

.landing-nav .nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.landing-hero {
  padding: clamp(4rem, 7vw, 5.75rem) 0 clamp(4.25rem, 7vw, 6.25rem);
}

.landing-hero .container,
.landing-section .container,
.landing-trust-line .container,
.landing-stats .container,
.cta-band .container,
.site-footer .container {
  max-width: 1160px;
}

.landing-hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 14ch;
}

.landing-hero .lead {
  font-size: 1.08rem;
  line-height: 1.78;
  color: #4b5563;
  max-width: 52ch;
}

.landing-hero .btn {
  min-height: 46px;
}

.landing-hero-media {
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 0.5rem;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
}

.landing-hero-img {
  border-radius: 18px;
}

.landing-trust-line {
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
}

.landing-trust-line__text {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.landing-stats {
  padding: 1.75rem 0 2.1rem;
}

.landing-stat__value {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.landing-stat {
  padding: 0.75rem 0.5rem;
}

.landing-section {
  padding: clamp(4rem, 6vw, 5rem) 0;
}

.section-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.03rem;
  line-height: 1.75;
  color: #4b5563;
}

.feature-tile {
  padding: 2rem;
  border-radius: 20px;
}

.feature-tile h3 {
  font-size: 1.06rem;
  margin-bottom: 0.65rem;
}

.feature-tile p {
  font-size: 0.935rem;
  line-height: 1.72;
}

.landing-step {
  padding: 2rem 1.75rem;
  border-radius: 20px;
}

.landing-step .h6 {
  font-size: 1rem;
  margin-bottom: 0.65rem !important;
}

.landing-step p {
  font-size: 0.92rem !important;
  line-height: 1.68;
}

.pricing-card {
  padding: 2.15rem;
}

.pricing-card .price {
  font-size: clamp(2rem, 3.2vw, 2.35rem);
}

.pricing-list li {
  font-size: 0.9rem;
  line-height: 1.58;
  padding: 0.48rem 0;
}

.landing-faq .accordion-item {
  border-radius: 14px !important;
}

.landing-faq .accordion-button {
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
}

.landing-faq .accordion-body {
  padding: 0.1rem 1.1rem 1.1rem;
  font-size: 0.91rem !important;
  line-height: 1.68;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.1;
  color: #fff !important;
}

.cta-band p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #fff !important;
}

.landing-parallax-eyebrow,
.landing-parallax-title,
.landing-parallax-lead {
  color: #fff !important;
}

.site-footer {
  padding-top: 4.25rem;
  padding-bottom: 2.4rem;
}

.site-footer .footer-brand .kaldra-logo {
  display: block;
  height: auto !important;
  max-height: 154px !important;
  width: auto;
}

.site-footer p,
.site-footer li,
.site-footer a {
  font-size: 0.9rem;
}

.marketing-nav {
  min-height: 104px;
}

.marketing-nav .container {
  max-width: 1120px;
}

.marketing-nav .navbar-brand .kaldra-logo {
  max-height: 126px;
  height: auto;
}

.auth-shell {
  max-width: 1160px;
  margin-inline: auto;
  padding-top: clamp(2rem, 4vw, 3rem) !important;
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem) !important;
}

.hero-panel {
  padding: clamp(2rem, 3.4vw, 2.7rem);
  border-radius: 22px;
}

.hero-panel h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.12;
  margin-top: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.76;
  max-width: 44ch;
}

.feature-list {
  margin-top: 1.6rem !important;
}

.feature-list li {
  font-size: 0.93rem;
  line-height: 1.62;
  margin-bottom: 0.75rem;
}

.auth-card {
  border-radius: 22px;
}

.auth-card .card-body {
  padding: clamp(1.65rem, 3vw, 2.25rem);
}

.auth-card .brand-title .kaldra-logo {
  max-height: 142px;
  height: auto;
}

.auth-card .subtle-text {
  font-size: 0.9rem;
}

.auth-card .nav-tabs {
  margin-top: 0.7rem;
  margin-bottom: 1.2rem !important;
}

.auth-card .form-label {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.auth-card .form-control,
.auth-card .form-select {
  min-height: 46px;
}

#forgotPasswordBtn {
  font-size: 0.88rem;
}

@media (max-width: 991.98px) {
  .landing-nav {
    min-height: 112px;
  }

  .landing-nav .navbar-brand .kaldra-logo {
    max-height: 144px;
  }

  .landing-hero {
    padding-top: 3.25rem;
  }

  .landing-hero h1,
  .hero-panel h1 {
    max-width: none;
  }

  .feature-tile,
  .landing-step,
  .pricing-card {
    padding: 1.5rem;
  }

  .marketing-nav {
    min-height: 110px;
  }

  .marketing-nav .navbar-brand .kaldra-logo {
    max-height: 142px;
  }
}
