/* Layout styles - landing, auth, dashboard shell (SaaS) */

/* ----- Landing ----- */
.landing-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--tgle-white);
  overflow: hidden;
  background: #0B1220;
}

.landing-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.landing-media-primary {
  animation: landing-ken-in 18s ease-in-out infinite alternate;
  transform-origin: center center;
}

.landing-media-accent {
  opacity: 0;
  animation: landing-crossfade 18s ease-in-out infinite;
  object-position: 70% center;
}

.landing-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 12, 24, 0.88) 0%, rgba(8, 12, 24, 0.55) 42%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(to top, rgba(8, 12, 24, 0.75) 0%, transparent 45%);
}

.landing-nav,
.landing-hero,
.landing-footer {
  position: relative;
  z-index: 1;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8);
}

.landing-brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--tgle-white);
  letter-spacing: var(--ls-tight);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.landing-brand span {
  color: #A5B4FC;
}

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) var(--space-8) var(--space-16);
  max-width: 40rem;
}

.landing-eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C7D2FE;
  animation: tgle-fade-in 0.5s var(--ease-out);
}

.landing-hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  color: var(--tgle-white);
  margin: 0 0 var(--space-4);
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  animation: landing-rise 0.7s var(--ease-out);
}

.landing-hero > p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.82);
  max-width: 32rem;
  margin: 0 0 var(--space-8);
  animation: landing-rise 0.85s var(--ease-out);
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  animation: landing-rise 1s var(--ease-out);
}

.landing-cta-ghost {
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.landing-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

.landing-footer {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

@keyframes landing-ken-in {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes landing-crossfade {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-media-primary,
  .landing-media-accent,
  .landing-eyebrow,
  .landing-hero h1,
  .landing-hero > p,
  .landing-cta,
  .auth-visual-photo,
  .auth-visual-content {
    animation: none !important;
  }
}

/* ----- Auth ----- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg-body);
}

.auth-visual {
  position: relative;
  color: var(--tgle-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-12);
  overflow: hidden;
  background: #0B1220;
  min-height: 100vh;
}

.auth-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  animation: landing-ken-in 22s ease-in-out infinite alternate;
}

.auth-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(11, 18, 32, 0.35) 0%, rgba(11, 18, 32, 0.55) 40%, rgba(15, 23, 42, 0.92) 100%),
    linear-gradient(to right, rgba(79, 70, 229, 0.28), transparent 55%);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  animation: landing-rise 0.8s var(--ease-out);
}

.auth-visual-brand {
  margin: 0 0 var(--space-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: #C7D2FE;
}

.auth-visual h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  color: var(--tgle-white);
  margin: 0 0 var(--space-3);
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.auth-visual-content > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-md);
  max-width: 24rem;
  margin: 0 0 var(--space-6);
}

.auth-visual-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.auth-visual-points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.auth-visual-points i {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #C7D2FE;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  animation: tgle-fade-in var(--duration-slow) var(--ease-out);
}

.auth-form-wrap h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-2);
}

.auth-form-wrap .subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.auth-links {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ----- Dashboard shell ----- */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg-body);
}

.app-shell.sidebar-is-collapsed {
  --sidebar-current: var(--sidebar-collapsed);
}

.app-shell:not(.sidebar-is-collapsed) {
  --sidebar-current: var(--sidebar-width);
}

.sidebar {
  width: var(--sidebar-current, var(--sidebar-width));
  background: var(--bg-sidebar);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-sidebar);
  transition: width var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: var(--navbar-height);
}

.sidebar-brand .logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.sidebar-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: var(--tgle-white);
  white-space: nowrap;
  letter-spacing: var(--ls-tight);
}

.sidebar-brand .logo-text span {
  color: #A5B4FC;
  font-weight: var(--fw-semibold);
}

.sidebar-collapse-btn {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-close-btn {
  margin-left: auto;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sidebar-close-btn:hover,
.sidebar-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-backdrop.show {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.45);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-3) var(--space-3) var(--space-4);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.nav-group {
  margin-bottom: var(--space-1);
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.55rem var(--space-3);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.nav-group-toggle:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.nav-group-toggle i.chevron {
  transition: transform var(--duration-fast) var(--ease-out);
  font-size: 0.65rem;
}

.nav-group.open .nav-group-toggle i.chevron {
  transform: rotate(180deg);
}

.nav-group-items {
  display: none;
  padding-bottom: var(--space-2);
}

.nav-group.open .nav-group-items {
  display: block;
  animation: tgle-fade-in var(--duration-fast) var(--ease-out);
}

.sidebar-nav .nav-section {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  padding: var(--space-3) var(--space-3) var(--space-2);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.55rem 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 2px;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.sidebar-nav a i {
  width: 1.25rem;
  text-align: center;
  font-size: 1rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--tgle-white);
}

.sidebar-nav a.active {
  background: var(--tgle-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  scroll-margin-block: var(--space-2);
}

.sidebar-nav a.active i {
  opacity: 1;
}

.sidebar-nav a:focus {
  outline: none;
}

.sidebar-nav a:focus-visible {
  outline: 2px solid #A5B4FC;
  outline-offset: 2px;
}

.sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.sidebar-footer .progress-thin {
  margin-top: var(--space-2);
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sidebar-footer .progress-thin > span {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, #6366F1, #A5B4FC);
  border-radius: inherit;
}

/* Collapsed sidebar */
.sidebar-is-collapsed .sidebar .logo-text,
.sidebar-is-collapsed .sidebar .nav-group-toggle span,
.sidebar-is-collapsed .sidebar .nav-group-toggle .chevron,
.sidebar-is-collapsed .sidebar a span,
.sidebar-is-collapsed .sidebar-footer {
  display: none;
}

.sidebar-is-collapsed .sidebar-brand {
  justify-content: center;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.sidebar-is-collapsed .sidebar-collapse-btn {
  display: none;
}

.sidebar-is-collapsed .sidebar-nav a {
  justify-content: center;
  padding: 0.7rem;
}

.sidebar-is-collapsed .nav-group-items {
  display: block !important;
}

.sidebar-is-collapsed .nav-group-toggle {
  display: none;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-current, var(--sidebar-width));
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left var(--duration-base) var(--ease-out);
}

.topbar {
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

[data-theme="dark"] .topbar {
  background: rgba(17, 24, 39, 0.92);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.topbar-search {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.topbar-search input {
  width: 100%;
  padding: 0.55rem 2.75rem 0.55rem 2.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-muted);
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.topbar-search input:focus {
  outline: none;
  border-color: var(--tgle-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--tgle-primary-soft);
}

.topbar-search .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.topbar-search .kbd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.topbar-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
}

.topbar-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.topbar-btn .badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--tgle-danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-btn .badge-count.primary {
  background: var(--tgle-primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
}

.user-menu:hover {
  background: var(--bg-muted);
  border-color: var(--border-subtle);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

.user-meta {
  text-align: left;
  line-height: 1.2;
}

.user-meta .name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

.user-meta .role {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.content-area {
  flex: 1;
  padding: var(--section-gap) var(--space-6);
  background: var(--bg-body);
}

.page-header {
  margin-bottom: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.page-header h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-1);
  color: var(--text-heading);
}

.page-header .page-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: 0;
}

.app-footer {
  padding: var(--space-4) var(--space-6);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

/* Dropdown */
.dropdown-tgle {
  position: relative;
}

.dropdown-menu-tgle {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  background: var(--bg-dropdown);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  display: none;
}

.dropdown-menu-tgle.show {
  display: block;
  animation: tgle-fade-in var(--duration-fast) var(--ease-out);
}

.dropdown-menu-tgle.panel-lg {
  min-width: 320px;
  max-width: 360px;
}

.dropdown-menu-tgle a,
.dropdown-menu-tgle button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-dropdown);
  font-size: var(--fs-sm);
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.dropdown-menu-tgle a:hover,
.dropdown-menu-tgle button:hover {
  background: var(--bg-table-hover);
  color: var(--text-primary);
}

.dropdown-menu-tgle .panel-head {
  padding: 0.5rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* Command palette */
.command-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: var(--z-command);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.command-palette-backdrop.show {
  display: flex;
}

.command-palette {
  width: min(560px, calc(100vw - 2rem));
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.command-palette input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.15rem;
  font-size: 1rem;
  background: transparent;
  color: var(--text-primary);
}

.command-palette input:focus {
  outline: none;
}

.command-palette-list {
  max-height: 320px;
  overflow: auto;
  padding: var(--space-2);
}

.command-palette-list a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}

.command-palette-list a:hover,
.command-palette-list a.active {
  background: var(--tgle-primary-soft);
  color: var(--tgle-primary);
}

.command-palette-list .hint {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Dashboard widgets */
.dash-welcome {
  margin-bottom: var(--section-gap);
}

.dash-welcome h1 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin-bottom: 0.25rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  margin-bottom: var(--section-gap);
}

.kpi-grid-8 {
  grid-template-columns: repeat(4, 1fr);
}

.module-snap .status-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-action-stack {
  display: grid;
  gap: 0.6rem;
}

.quick-action-stack .btn-tgle {
  justify-content: flex-start;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-sm);
}

.status-row:last-child {
  border-bottom: none;
}

.status-row .label {
  color: var(--text-secondary);
}

.login-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.login-row:last-child {
  border-bottom: none;
}

.action-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.action-icon.login { background: var(--tgle-info-bg); color: var(--tgle-info); }
.action-icon.create { background: var(--tgle-success-bg); color: var(--tgle-success); }
.action-icon.update { background: var(--tgle-warning-bg); color: var(--tgle-warning); }
.action-icon.delete { background: var(--tgle-danger-bg); color: var(--tgle-danger); }
.action-icon.default { background: var(--tgle-primary-soft); color: var(--tgle-primary); }

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
  background: var(--bg-body);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--tgle-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.error-page h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-3);
  color: var(--text-heading);
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Responsive */
@media (max-width: 1199.98px) {
  .kpi-grid,
  .kpi-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 220px;
    padding: var(--space-6);
    justify-content: flex-end;
  }

  .auth-visual h1 {
    font-size: 1.5rem;
  }

  .auth-visual-points {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
    z-index: 1050;
  }

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

  .app-main {
    margin-left: 0 !important;
  }

  .sidebar-is-collapsed .sidebar .logo-text,
  .sidebar-is-collapsed .sidebar a span {
    display: inline;
  }

  .landing-nav,
  .landing-hero,
  .landing-footer {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .topbar-search {
    max-width: none;
  }

  .user-meta {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .content-area {
    padding: var(--space-4);
  }

  .kpi-grid,
  .kpi-grid-8 {
    grid-template-columns: 1fr;
  }

  .landing-cta {
    flex-direction: column;
  }

  .topbar {
    padding: 0 var(--space-4);
  }

  .topbar-search .kbd {
    display: none;
  }
}
