﻿html {
  font-size: 14px;
}

:root {
  color-scheme: dark;
  --topbar-height: 92px;
  --sidebar-width: 248px;
  --bg: #111418;
  --bg-elevated: rgba(29, 35, 42, 0.78);
  --bg-soft: rgba(34, 41, 50, 0.72);
  --panel: rgba(25, 30, 37, 0.88);
  --panel-strong: rgba(20, 24, 30, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #edf1f5;
  --muted: #97a1ad;
  --muted-strong: #c0c8d2;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --accent-warm: #f59e0b;
  --success-soft: rgba(74, 222, 128, 0.16);
  --danger-soft: rgba(248, 113, 113, 0.16);
  --shadow-lg: 0 24px 60px rgba(3, 8, 18, 0.42);
  --shadow-md: 0 18px 40px rgba(3, 8, 18, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(56, 189, 248, 0.25);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #12161b 0%, #14191f 45%, #0f1317 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

.app-shell {
  position: relative;
}

.app-shell-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.app-shell-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.7;
}

.app-shell-orb-a {
  width: 28rem;
  height: 28rem;
  top: -9rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 72%);
}

.app-shell-orb-b {
  width: 24rem;
  height: 24rem;
  left: -9rem;
  top: 24rem;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0) 72%);
}

.app-shell-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 70%);
}

.app-header,
.app-content,
.site-footer {
  position: relative;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.app-content,
.site-footer {
  z-index: auto;
}

.app-layout {
  flex: 1;
  width: 100%;
  display: block;
  padding: 0;
}

.app-layout-auth {
  min-height: 100vh;
}

.app-layout-guest {
  min-height: 100vh;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: calc(var(--topbar-height) + 1.25rem) 1.25rem 1.25rem;
}

.app-layout-auth .app-main {
  margin-left: var(--sidebar-width);
}

.app-content {
  flex: 1;
  min-width: 0;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 35;
  padding: calc(var(--topbar-height) + 1.1rem) 1rem 1rem;
  background: #15191f;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 20px 0 50px rgba(2, 6, 12, 0.22);
  overflow-y: auto;
}

.app-sidebar-inner {
  min-height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.app-sidebar-section {
  display: grid;
  gap: 0.55rem;
}

.app-sidebar-label {
  color: #6f7f92;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0 0.75rem;
}

.app-sidebar-nav {
  display: grid;
  gap: 0.2rem;
}

.app-sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #b6c2d2;
  padding: 0.78rem 0.85rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  transition: 180ms ease;
  font-weight: 600;
}

.app-sidebar-link i {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.98rem;
  color: var(--accent);
}

.app-sidebar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.app-sidebar-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.app-sidebar-link.active::before {
  content: "";
  position: absolute;
  left: -0.1rem;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.app-sidebar-link.active i {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.14);
  color: #ffd08a;
}

.site-footer {
  background: rgba(9, 17, 31, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.site-footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1rem 1.25rem;
}

.site-footer-title {
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.site-footer-copy {
  color: var(--muted);
}

.site-footer-links-wrap {
  display: flex;
  align-items: center;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 500;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.site-footer-links a:hover {
  color: #ffffff;
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.2);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-nav {
  background: transparent;
  padding: 0;
}

.app-nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  min-height: var(--topbar-height);
  background: rgba(6, 13, 24, 0.9);
  border-bottom: 1px solid rgba(145, 184, 255, 0.12);
  padding: 0.75rem 1.15rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(3, 8, 18, 0.16);
  width: 100%;
}

.nav-link-icc {
  color: var(--muted-strong) !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 0.95rem !important;
  transition: 180ms ease;
}

.nav-link-icc:hover {
  color: #ffffff !important;
  background: rgba(125, 211, 252, 0.1);
}

.nav-link-icc.active {
  color: #ffffff !important;
  background: rgba(245, 158, 11, 0.14);
}

.app-nav-links {
  gap: 0.35rem;
}

.app-nav-spacer {
  flex: 1 1 auto;
}

.app-nav .navbar-collapse {
  flex: 1 1 auto;
  align-items: center;
}

.app-nav-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.app-mobile-nav-trigger {
  display: none;
}

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-strong);
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399, #22c55e);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #1f1607;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.05;
}

.brand-subtext {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-user-link {
  background: rgba(255, 255, 255, 0.04);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  white-space: nowrap;
}

.nav-notification-link {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.nav-notification-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.nav-notification-count {
  position: absolute;
  top: -0.4rem;
  right: -0.55rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1f1607;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-notification-menu {
  width: min(420px, calc(100vw - 2rem));
  padding: 0;
  overflow: hidden;
}

.nav-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-notification-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-notification-header small,
.nav-notification-empty,
.nav-notification-copy small {
  color: var(--muted);
}

.nav-notification-empty {
  padding: 1rem;
}

.nav-notification-list {
  display: grid;
  max-height: 420px;
  overflow-y: auto;
}

.nav-notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-notification-item.is-unread {
  background: rgba(255, 255, 255, 0.025);
}

.nav-notification-copy p {
  color: var(--text);
  line-height: 1.35;
}

.nav-notification-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.nav-notification-heading {
  color: var(--text);
  font-size: 0.92rem;
}

.nav-notification-priority {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-notification-priority-high {
  background: rgba(248, 113, 113, 0.14);
  color: #ffc7c7;
}

.nav-notification-priority-normal {
  background: rgba(245, 158, 11, 0.14);
  color: #ffe1a8;
}

.nav-notification-priority-low {
  background: rgba(100, 116, 139, 0.14);
  color: #dbe3ec;
}

.nav-notification-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.nav-notification-actions form {
  margin: 0;
}

@media (min-width: 992px) {
  .app-nav .navbar-toggler {
    display: none;
  }

  .app-nav .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: flex-end;
  }
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metric-card {
  background: linear-gradient(180deg, rgba(29, 34, 41, 0.98) 0%, rgba(22, 27, 33, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 18px 36px rgba(2, 8, 18, 0.2);
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f8fbff;
  line-height: 1.15;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.metric-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-user-list {
  border-top: 1px solid rgba(145, 184, 255, 0.12);
}

.dashboard-user-list .list-group-item {
  background: transparent;
  border-color: rgba(145, 184, 255, 0.12);
  color: var(--text);
}

.panel {
  background: linear-gradient(180deg, rgba(29, 34, 41, 0.98) 0%, rgba(22, 27, 33, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: 0 18px 36px rgba(2, 8, 18, 0.2);
  backdrop-filter: blur(8px);
}

.panel-header {
  border-bottom: 1px solid rgba(145, 184, 255, 0.12);
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
}

.trend-grid {
  display: grid;
  gap: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  gap: 10px;
}

.trend-day {
  font-weight: 600;
  color: var(--text);
}

.trend-bar-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.trend-bar {
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  height: 100%;
  border-radius: 999px;
}

.trend-value {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.home-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 28%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.14), transparent 28%),
    linear-gradient(135deg, #2b2114 0%, #241c14 42%, #1a1f26 100%);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 22px;
  padding: 2rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
  box-shadow: 0 24px 46px rgba(2, 8, 18, 0.22);
  overflow: hidden;
  position: relative;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -30% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-chip-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #fbbf24;
}

.home-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 700;
}

.home-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.97;
  max-width: 18ch;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.home-copy {
  max-width: 54ch;
  opacity: 0.92;
  color: rgba(232, 240, 255, 0.86);
  font-size: 1.02rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.home-inline-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 34rem;
}

.inline-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.inline-stat-value {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.inline-stat-label {
  display: block;
  color: rgba(232, 240, 255, 0.76);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.home-hero-side {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.home-status {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 1.1rem;
  backdrop-filter: blur(12px);
}

.home-status-list {
  display: grid;
  gap: 0.8rem;
}

.home-status-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-status-list i {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}

.home-callout {
  border-radius: 22px;
  padding: 1.1rem;
  background: rgba(5, 10, 20, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-callout-label {
  color: rgba(232, 240, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 0.55rem;
}

.home-callout code {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: #dff6ff;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
}

.home-callout span {
  color: #fef3c7;
}

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

.feature-card,
.quick-card {
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.98) 0%, rgba(10, 16, 27, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.35rem;
  height: 100%;
  box-shadow: 0 18px 36px rgba(2, 8, 18, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.6), rgba(125, 211, 252, 0));
}

.feature-card-primary {
  background: linear-gradient(135deg, rgba(37, 43, 52, 0.98) 0%, rgba(30, 36, 44, 0.98) 55%, rgba(25, 30, 37, 0.96) 100%);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent);
  font-size: 1.35rem;
}

.quick-label {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.quick-value {
  margin-bottom: 1rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  max-width: 28ch;
}

.quick-link {
  color: #dff6ff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-link::after {
  content: "→";
}

.quick-link.disabled {
  color: #7f8c9a;
}

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

.detail-card {
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.98), rgba(10, 16, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 18px 36px rgba(2, 8, 18, 0.2);
}

.detail-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.detail-card h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.detail-card p {
  color: var(--muted);
}

.legal-page {
  padding-top: 6px;
}

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

.legal-admin-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-admin-card {
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.98), rgba(10, 16, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 18px 36px rgba(2, 8, 18, 0.2);
}

.legal-admin-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--accent);
  font-size: 1.2rem;
}

.legal-admin-kicker {
  color: #8b98aa;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.legal-admin-card p {
  color: #9eacbd;
}

.legal-admin-list {
  display: grid;
  gap: 0.85rem;
}

.legal-admin-list div {
  display: grid;
  gap: 0.15rem;
}

.legal-admin-list span {
  color: #7f90a5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
}

.legal-admin-list strong {
  color: #f4f8ff;
}

.legal-hero {
  background: linear-gradient(140deg, #102448 0%, #155e75 55%, #0f766e 100%);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: var(--shadow-md);
}

.legal-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 600;
}

.legal-title {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.legal-copy {
  opacity: 0.95;
  max-width: 70ch;
}

.legal-grid {
  display: grid;
  gap: 12px;
}

.legal-card {
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.92), rgba(8, 17, 31, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  max-width: 860px;
  box-shadow: var(--shadow-md);
}

.legal-card h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
}

.legal-card p {
  color: var(--muted);
}

.login-shell,
.auth-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
  margin-top: 8px;
}

.login-hero,
.auth-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent 28%),
    linear-gradient(145deg, #241d15, #1d1916 55%, #171b21);
  color: #ffffff;
  border-radius: 22px;
  padding: 2rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 24px 46px rgba(2, 8, 18, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0.85;
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.login-subtitle {
  opacity: 0.95;
  max-width: 36ch;
}

.login-card,
.auth-card,
.auth-form-card {
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.94), rgba(8, 17, 31, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 24px 46px rgba(2, 8, 18, 0.22);
  backdrop-filter: blur(14px);
}

.auth-card-header {
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card-kicker,
.auth-kicker,
.auth-state-kicker {
  color: #98a6b8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce8f4;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-title,
.auth-state-title {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.auth-copy,
.auth-state-copy {
  color: #a0aec0;
  max-width: 52ch;
}

.auth-feature-list {
  display: grid;
  gap: 0.75rem;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-feature-item i {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--accent);
}

.panel-header i,
.table a i,
.dropdown-item i,
.site-footer-links i,
.quick-link,
.quick-link i,
.auth-card-header i,
.auth-state-card i,
.btn i,
.badge i {
  color: var(--accent);
}

.btn-primary i {
  color: #1f1607;
}

.login-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #dbe5f1;
  border-radius: 14px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.login-input::placeholder {
  color: #7f8da0;
}

.denied-shell {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.denied-card {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(135deg, #0f172a 0%, #102448 55%, #155e75 100%);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #e6f0fb;
  box-shadow: var(--shadow-lg);
}

.denied-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 700;
}

.denied-title {
  font-size: 2rem;
  font-weight: 700;
}

.denied-copy {
  max-width: 62ch;
  opacity: 0.95;
}

.auth-state-shell,
.auth-form-shell {
  display: flex;
  justify-content: center;
}

.auth-state-card,
.auth-form-card {
  width: min(100%, 760px);
}

.auth-state-card {
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 26%),
    linear-gradient(145deg, #1c222b, #161b22 55%, #13181e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 24px 46px rgba(2, 8, 18, 0.22);
}

.auth-state-card-wide {
  margin-bottom: 1rem;
}

.users-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 14px;
  align-items: start;
}

.users-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.users-main {
  display: grid;
  gap: 14px;
}

.users-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent 28%),
    linear-gradient(135deg, #241d15 0%, #1d1916 48%, #171b21 100%);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 20px;
  padding: 1.6rem;
  color: #edf5ff;
  box-shadow: 0 20px 38px rgba(2, 8, 18, 0.2);
}

.dashboard-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 26%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(135deg, #2a2012 0%, #241b11 45%, #1a1f26 100%);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  padding: 1.6rem;
  color: #edf5ff;
  box-shadow: 0 24px 44px rgba(2, 8, 18, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-hero-badge {
  min-width: 180px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-hero-badge-label {
  display: block;
  color: rgba(255, 241, 214, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dashboard-hero-badge strong {
  display: block;
  color: #fff4da;
  font-size: 1.35rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.dashboard-secondary-grid,
.dashboard-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-mini-stat {
  padding: 1rem 1.1rem;
}

.dashboard-health-card {
  padding: 1rem 1.1rem;
}

.dashboard-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dashboard-health-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f8ff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-health-good .dashboard-health-pill {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.18);
  color: #d8ffe6;
}

.dashboard-health-warn .dashboard-health-pill {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.2);
  color: #ffe7b5;
}

.dashboard-health-neutral .dashboard-health-pill {
  background: rgba(100, 116, 139, 0.14);
  border-color: rgba(148, 163, 184, 0.18);
  color: #dce3eb;
}

.dashboard-health-copy {
  color: var(--muted);
}

.dashboard-log-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-log-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 150px;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-log-item.is-success {
  border-left: 3px solid rgba(74, 222, 128, 0.7);
}

.dashboard-log-item.is-fail {
  border-left: 3px solid rgba(248, 113, 113, 0.7);
}

.dashboard-log-time,
.dashboard-log-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-log-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.users-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 600;
}

.users-title {
  font-size: 2rem;
  font-weight: 800;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.users-copy {
  max-width: 62ch;
  opacity: 0.96;
}

.users-create {
  position: static;
  top: auto;
}

.users-actions-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.users-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.users-bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.users-bulk-actions .form-select {
  min-width: 240px;
}

.users-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.users-create-card {
  background: linear-gradient(180deg, rgba(14, 27, 46, 0.94) 0%, rgba(8, 17, 31, 0.98) 100%);
  border-color: var(--line-strong);
}

.users-table-card {
  background: linear-gradient(180deg, rgba(29, 34, 41, 0.98) 0%, rgba(22, 27, 33, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.users-policy-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
}

.users-policy-list li + li {
  margin-top: 0.4rem;
}

.users-login-detail {
  max-width: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: #9fb0c5;
  white-space: normal;
  word-break: break-word;
}

.app-page-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 26%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent 28%),
    linear-gradient(135deg, #241d15 0%, #1d1916 48%, #171b21 100%);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 20px;
  padding: 1.6rem;
  color: #edf5ff;
  box-shadow: 0 20px 38px rgba(2, 8, 18, 0.2);
}

.app-page-kicker {
  color: #8b98aa;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.app-page-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 800;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.app-page-copy,
.admin-section-copy {
  color: #98a6b8;
  max-width: 68ch;
}

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

.admin-surface-card {
  overflow: hidden;
}

.admin-empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  color: var(--muted);
}

.admin-empty-state,
.logs-empty-state {
  position: relative;
}

.admin-empty-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dbe7f4;
  font-size: 1.8rem;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #d4e0ee;
  font-size: 0.82rem;
}

.admin-table tbody tr:hover {
  transform: translateY(-1px);
}

.image-file-cell {
  display: grid;
  gap: 0.25rem;
}

.image-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.image-upload-form {
  display: grid;
  gap: 0.9rem;
}

.image-dropzone {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 220px;
  padding: 1.4rem;
  text-align: center;
  border: 1px dashed rgba(245, 158, 11, 0.32);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  cursor: pointer;
}

.image-dropzone-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  font-size: 1.8rem;
}

.image-dropzone-title {
  color: var(--text);
  font-weight: 800;
  font-size: 1.02rem;
}

.image-dropzone-copy {
  max-width: 32ch;
  color: var(--muted);
}

.image-upload-list {
  display: grid;
  gap: 0.65rem;
}

.image-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.image-detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.image-detail-preview-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 280px;
  display: grid;
  place-items: center;
}

.image-detail-preview {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.image-detail-meta {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.image-detail-row {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.image-detail-row span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.image-detail-row code,
.image-detail-row strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.image-detail-row code {
  display: inline-flex;
  width: 100%;
}

.profile-grid {
  display: grid;
  gap: 0.8rem;
}

.profile-row {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-row span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.profile-row code,
.profile-row strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-row code {
  display: inline-flex;
  width: 100%;
}

.profile-notification-list {
  display: grid;
  gap: 0.85rem;
}

.profile-notification-item {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.profile-notification-item.is-unread {
  border-color: rgba(245, 158, 11, 0.2);
}

.profile-image-list {
  display: grid;
  gap: 0.8rem;
}

.profile-image-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-image-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.help-step-list {
  display: grid;
  gap: 0.9rem;
}

.help-step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.help-step-number {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.help-metric-code {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.2;
  word-break: break-word;
}

.help-code-block {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dff6ff;
  overflow-x: auto;
}

.logs-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent 30%),
    linear-gradient(135deg, #241d15 0%, #1d1916 48%, #171b21 100%);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  color: #edf5ff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  position: relative;
}

.logs-hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.logs-hero-copy {
  position: relative;
  z-index: 1;
}

.logs-hero-pulse {
  position: relative;
  min-width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fbff;
}

.logs-hero-pulse-ring,
.logs-hero-pulse-core {
  position: absolute;
  border-radius: 999px;
}

.logs-hero-pulse-ring {
  inset: 18px;
  border: 1px solid rgba(232, 240, 255, 0.24);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.logs-hero-pulse-core {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 30% 30%, #ffe3aa, #f59e0b 58%, #d97706 100%);
  box-shadow:
    0 0 0 14px rgba(245, 158, 11, 0.08),
    0 0 36px rgba(217, 119, 6, 0.18);
}

.logs-hero-pulse span {
  position: relative;
  z-index: 1;
  margin-top: 105px;
  background: rgba(5, 10, 20, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

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

.logs-summary-card {
  position: relative;
  overflow: hidden;
}

.logs-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.65), rgba(125, 211, 252, 0));
}

.logs-filter-card {
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(14, 24, 40, 0.96) 0%, rgba(8, 17, 31, 0.99) 100%);
}

.logs-search-input {
  background-image: linear-gradient(90deg, rgba(125, 211, 252, 0.06), rgba(125, 211, 252, 0));
}

.logs-table-card {
  overflow: hidden;
}

.logs-table-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.logs-count-badge {
  white-space: nowrap;
}

.logs-empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  color: var(--muted);
}

.logs-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  font-size: 2rem;
  color: #dff6ff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logs-table thead th {
  background: rgba(255, 255, 255, 0.02);
}

.logs-table tbody tr {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.logs-table tbody tr:hover {
  transform: translateY(-1px);
}

.logs-time-cell,
.logs-user-cell {
  display: grid;
  gap: 0.2rem;
}

.logs-time-main,
.logs-user-name {
  font-weight: 700;
  color: #f8fbff;
}

.logs-time-date,
.logs-user-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.logs-action-cell code {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
}

.logs-status-badge {
  min-width: 74px;
  text-align: center;
}

.log-detail-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.7rem 0.85rem;
}

.log-detail-card summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 600;
}

.log-detail-card summary::-webkit-details-marker {
  display: none;
}

.log-detail-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.log-detail-item {
  display: grid;
  gap: 0.18rem;
}

.log-detail-label {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.log-detail-value {
  white-space: pre-wrap;
  word-break: break-word;
}

.logs-ip-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.users-modal-content {
  background: linear-gradient(180deg, rgba(13, 22, 37, 0.98), rgba(8, 17, 31, 0.98));
  border: 1px solid var(--line);
  color: #dbe5f1;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.users-modal-content .modal-header {
  border-bottom-color: rgba(145, 184, 255, 0.12);
}

.users-modal-content .modal-footer {
  border-top-color: rgba(145, 184, 255, 0.12);
}

.users-modal-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.users-token-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
}

.shell-dropdown-menu {
  background: linear-gradient(180deg, rgba(13, 19, 30, 0.98), rgba(9, 14, 23, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(2, 8, 18, 0.28);
  padding: 0.4rem;
  backdrop-filter: blur(16px);
}

.shell-dropdown-menu .dropdown-item {
  color: var(--text);
  padding: 0.72rem 0.8rem;
}

.shell-dropdown-menu .dropdown-item:hover,
.shell-dropdown-menu .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.05);
}

.shell-modal-content {
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.99), rgba(9, 15, 24, 0.99));
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(2, 8, 18, 0.36);
}

.shell-empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.55rem;
  color: var(--muted);
}

.shell-empty-state-compact {
  min-height: auto;
  padding: 1.1rem;
}

.shell-empty-title {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.shell-empty-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

.shell-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.shell-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  animation: shell-shimmer 1.5s infinite;
}

@keyframes shell-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.app-mobile-nav-shell {
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.99), rgba(11, 16, 24, 0.99));
  color: var(--text);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-mobile-nav-shell .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1rem 0.85rem;
}

.app-mobile-nav-shell .offcanvas-body {
  padding: 1rem;
}

.my-image-thumb-small {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(145, 184, 255, 0.16);
  display: block;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.table {
  --bs-table-color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(145, 184, 255, 0.12);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
}

.table th,
.table td {
  color: var(--text) !important;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  vertical-align: middle;
}

.table th {
  color: #7f90a5 !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
}

.table a {
  color: #a5e3ff;
}

.table a:hover {
  color: #dff6ff;
}

.mobile-card-table td[data-label]::before {
  content: none;
}

.table code {
  color: #d3efff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.28rem 0.5rem;
}

.table > tbody > tr.log-row-success > * {
  --bs-table-accent-bg: rgba(25, 135, 84, 0.14);
  background: linear-gradient(90deg, rgba(25, 135, 84, 0.16), rgba(25, 135, 84, 0.07)) !important;
}

.table > tbody > tr.log-row-fail > * {
  --bs-table-accent-bg: rgba(220, 53, 69, 0.14);
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.16), rgba(220, 53, 69, 0.07)) !important;
}

.logs-details {
  display: inline-block;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.72rem 1rem;
}

.btn-primary {
  color: #1f1607;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #1f1607;
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  border-color: transparent;
}

.btn-outline-light,
.btn-outline-primary,
.btn-outline-info,
.btn-outline-danger {
  border-width: 1px;
}

.btn-outline-light {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: #05111f;
  background: #ffffff;
  border-color: #ffffff;
}

.btn-outline-primary {
  color: #a5e3ff;
  border-color: rgba(125, 211, 252, 0.28);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #05111f;
  background: #7dd3fc;
  border-color: #7dd3fc;
}

.btn-outline-info {
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.28);
}

.btn-outline-info:hover,
.btn-outline-info:focus {
  color: #04111f;
  background: #67e8f9;
  border-color: #67e8f9;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  color: #ffffff;
}

.pagination .page-link {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #d8efff;
  border-radius: 12px;
  margin: 0 0.15rem;
}

.pagination .page-link:hover {
  background: rgba(125, 211, 252, 0.12);
  color: #ffffff;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: transparent;
  color: #1f1607;
}

.pagination .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.02);
  color: #6f7f92;
  border-color: rgba(145, 184, 255, 0.08);
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #dbe5f1;
  border-radius: 12px;
  min-height: 3rem;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.06);
  color: #dbe5f1;
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.15);
}

.form-label {
  color: var(--muted-strong);
  font-weight: 600;
}

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

.text-muted {
  color: #99a8b8 !important;
}

.alert {
  border-radius: 16px;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-soft);
  border-color: rgba(74, 222, 128, 0.18);
  color: #d9ffe6;
}

.alert-danger {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.18);
  color: #ffe0e0;
}

.badge {
  border-radius: 999px;
  padding: 0.5em 0.75em;
  font-weight: 700;
}

.dropdown-menu-dark {
  background: rgba(11, 17, 27, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(2, 8, 18, 0.24);
  z-index: 1080;
}

.modal {
  z-index: 1060;
}

.modal-backdrop {
  z-index: 1050;
}

.dropdown-item {
  border-radius: 12px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(125, 211, 252, 0.12);
}

.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: grid;
  gap: 0.75rem;
  width: min(380px, calc(100vw - 1.5rem));
}

.toast-icc {
  width: 100%;
  background: rgba(19, 24, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  box-shadow: 0 22px 42px rgba(2, 8, 18, 0.3);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.toast-icc .toast-body {
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  color: var(--text);
}

.toast-icc .toast-body i {
  color: var(--accent);
  font-size: 1.1rem;
}

.toast-icc .btn-close {
  opacity: 0.9;
}

.toast-icc-success {
  border-left: 4px solid rgba(74, 222, 128, 0.9) !important;
}

.toast-icc-error {
  border-left: 4px solid rgba(248, 113, 113, 0.9) !important;
}

@media (max-width: 991.98px) {
  .app-header {
    position: sticky;
    top: 0;
  }

  .app-layout,
  .app-layout-auth,
  .app-layout-guest {
    min-height: auto;
  }

  .app-main,
  .app-layout-auth .app-main {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 1rem) 1rem 1rem;
  }

  .app-sidebar {
    display: none;
  }

  .app-nav-inner {
    gap: 0.85rem;
    padding: 0.7rem 1rem;
  }

  .app-mobile-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    order: 3;
  }

  .app-nav-meta {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
  }

  .login-shell,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .login-hero,
  .auth-hero {
    min-height: auto;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .home-detail-grid,
  .home-inline-stats,
  .logs-summary,
  .app-stat-grid,
  .dashboard-secondary-grid,
  .dashboard-health-grid,
  .legal-admin-grid,
  .legal-admin-grid-wide {
    grid-template-columns: 1fr;
  }

  .users-layout {
    grid-template-columns: 1fr;
  }

  .users-sidebar {
    position: static;
    top: auto;
  }

  .users-bulk-bar,
  .users-bulk-actions,
  .nav-notification-header,
  .nav-notification-header-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .logs-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-log-item {
    grid-template-columns: 1fr;
  }

  .image-detail-layout {
    grid-template-columns: 1fr;
  }

  .logs-hero-pulse {
    min-width: 140px;
    width: 140px;
    height: 140px;
  }

  .users-create {
    position: static;
    top: auto;
  }

  .site-footer-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --topbar-height: 68px;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .brand-subtext,
  .nav-status-pill {
    display: none;
  }

  .app-nav-inner {
    min-height: var(--topbar-height);
  }

  .nav-user-link span {
    display: none;
  }

  .nav-user-link {
    min-width: 2.75rem;
    justify-content: center;
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }

  .home-hero,
  .login-card,
  .login-hero,
  .auth-card,
  .auth-form-card,
  .auth-hero,
  .auth-state-card,
  .logs-hero,
  .app-sidebar-inner,
  .users-hero,
  .app-page-hero,
  .detail-card,
  .panel,
  .site-footer {
    border-radius: 20px;
  }

  .home-title {
    max-width: none;
  }

  .mobile-card-table thead,
  .logs-table thead {
    display: none;
  }

  .mobile-card-table,
  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td,
  .logs-table,
  .logs-table tbody,
  .logs-table tr,
  .logs-table td {
    display: block;
    width: 100%;
  }

  .mobile-card-table tbody,
  .logs-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .mobile-card-table tr,
  .logs-table tr {
    border: 1px solid rgba(145, 184, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 24, 33, 0.98), rgba(12, 18, 26, 0.98));
  }

  .mobile-card-table td,
  .logs-table td {
    border: 0;
    padding: 0.8rem 1rem;
  }

  .mobile-card-table td::before,
  .logs-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
  }

  .mobile-card-table td:last-child,
  .logs-table td:last-child {
    padding-bottom: 1rem;
  }

  .mobile-card-table .users-actions-cell {
    justify-content: flex-start !important;
  }

  .mobile-card-table code {
    display: inline-flex;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mobile-card-table .my-image-thumb-small {
    width: 84px;
    height: 84px;
  }

  .users-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-main,
  .app-layout-auth .app-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .app-sidebar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .toast-stack {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }
}
