:root {
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --ink: #1f2230;
  --muted: #6b7280;
  --accent: #e5748f;
  --accent-2: #47d69d;
  --accent-3: #ed9aae;
  --card: #ffffff;
  --stroke: rgba(15, 23, 42, 0.12);
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  --card-radius: 20px;
  --card-radius-lg: 26px;
}

body.app-body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(180deg, #99edcc 0%, #6fe1b3 45%, #47d69d 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(700px 420px at 10% 20%, rgba(255, 255, 255, 0.22), transparent 60%);
  z-index: -2;
}

body.app-body::after {
  content: "";
  position: fixed;
  inset: -8% -8% -18% -8%;
  background:
    radial-gradient(320px 220px at 78% 18%, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(260px 240px at 18% 72%, rgba(255, 255, 255, 0.18), transparent 55%);
  z-index: -1;
  opacity: 0.5;
}

.app-nav {
  background: linear-gradient(120deg, #e5748f 0%, #ed9aae 45%, #47d69d 100%);
  box-shadow: 0 12px 30px rgba(229, 116, 143, 0.25);
}

.navbar-brand {
  font-family: var(--font-display);
  letter-spacing: 0.2px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
  margin-right: 4px;
}

.navbar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.app-main {
  padding-bottom: 32px;
  flex: 1 0 auto;
  width: 100%;
}

.app-main .container {
  max-width: 1180px;
}

a {
  color: #c85c76;
  text-decoration: none;
}

a:hover {
  color: #b84f69;
}

.card {
  border: 0;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  border-radius: var(--card-radius);
}

.card-glass {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 69, 140, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--card-radius-lg);
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin: 0;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(229, 116, 143, 0.25);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 18px;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn {
  border-radius: 12px;
  font-weight: 600;
}

.btn-primary {
  --bs-btn-bg: #e5748f;
  --bs-btn-border-color: #e5748f;
  --bs-btn-hover-bg: #d96583;
  --bs-btn-hover-border-color: #d96583;
  --bs-btn-active-bg: #cc5a79;
  --bs-btn-active-border-color: #cc5a79;
  --bs-btn-disabled-bg: #ed9aae;
  --bs-btn-disabled-border-color: #ed9aae;
}

.btn-success {
  --bs-btn-bg: #47d69d;
  --bs-btn-border-color: #47d69d;
  --bs-btn-hover-bg: #3bc88f;
  --bs-btn-hover-border-color: #3bc88f;
  --bs-btn-active-bg: #30bb82;
  --bs-btn-active-border-color: #30bb82;
  --bs-btn-disabled-bg: #99edcc;
  --bs-btn-disabled-border-color: #99edcc;
}

.visitor-form .form-label {
  font-weight: 600;
  color: #1f2937;
}

.visitor-form .form-control,
.visitor-form .form-select {
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #f8fafc;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.visitor-form .form-control:focus,
.visitor-form .form-select:focus {
  border-color: rgba(229, 116, 143, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(237, 154, 174, 0.18);
}

.photo-panel {
  background: linear-gradient(135deg, rgba(251, 209, 219, 0.4), rgba(153, 237, 204, 0.35));
  border: 1px dashed rgba(229, 116, 143, 0.35);
  border-radius: 18px;
}

.photo-panel .btn-outline-primary {
  border-radius: 12px;
  border-color: rgba(229, 116, 143, 0.6);
  color: #c85c76;
}
.photo-panel .btn-outline-primary:hover {
  background: rgba(229, 116, 143, 0.12);
  color: #b84f69;
}

.photo-preview img {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.primary-cta {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
}

.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.search-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.visitors-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.visitors-kpi .kpi-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

.visitors-kpi .kpi-sub {
  margin-top: 4px;
  color: #7a8597;
  font-size: 0.82rem;
}

.visitors-kpi.success .kpi-value {
  color: #1f7a57;
}

.visitors-kpi.neutral .kpi-value {
  color: #64748b;
}

.visitors-filter-form .form-control,
.visitors-filter-form .form-select {
  height: 44px;
}

.visitors-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visitors-status-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
}

.visitors-status-chips a.is-active {
  background: rgba(71, 214, 157, 0.2);
  border-color: rgba(71, 214, 157, 0.45);
  color: #1f7a57;
}

.visitors-status-chips a.clear {
  background: rgba(229, 116, 143, 0.12);
  border-color: rgba(229, 116, 143, 0.25);
  color: #8a3d52;
}

.visitors-table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.visitors-actions .btn {
  border-radius: 999px;
}

.visitor-empty-state {
  text-align: center;
  padding: 20px 12px;
}

.visitor-empty-state .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: #1f7a57;
  background: rgba(71, 214, 157, 0.18);
}

.visitor-empty-state h5 {
  margin-bottom: 6px;
}

.visitor-empty-state p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.table thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.table tbody td {
  padding: 0.85rem 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.6);
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-card {
  overflow: hidden;
}

.auth-hero {
  background: linear-gradient(160deg, rgba(237, 154, 174, 0.25), rgba(71, 214, 157, 0.35));
  padding: 32px;
}

.auth-hero .brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-hero p {
  color: rgba(31, 34, 48, 0.75);
}

.auth-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.auth-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #2a3242;
}

.auth-form .form-control,
.auth-form .form-select {
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #f8fafc;
  padding: 12px 14px;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: rgba(229, 116, 143, 0.55);
  box-shadow: 0 0 0 4px rgba(237, 154, 174, 0.18);
  background: #fff;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  color: #1f2d24;
  background: linear-gradient(135deg, rgba(153, 237, 204, 0.9), rgba(255, 255, 255, 0.9));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

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

.profile-kpi {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-kpi .kpi {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  min-width: 140px;
}

.profile-kpi .kpi .label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-kpi .kpi .value {
  font-weight: 700;
  margin-top: 2px;
}

.profile-section-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.profile-card .divider {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 18px 0;
}

.profile-action {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stat {
  border-radius: 20px;
}

.admin-stat .stat-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.admin-toolbar .form-control,
.admin-toolbar .form-select {
  background: rgba(255, 255, 255, 0.95);
}

.admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.75);
}

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

.admin-chip {
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.85rem;
}

.admin-chip.active {
  background: rgba(71, 214, 157, 0.18);
  border-color: rgba(71, 214, 157, 0.5);
  color: #1f7a57;
}

.admin-stat .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(71, 214, 157, 0.18);
  color: #1f7a57;
}

.admin-stat.inactive .icon {
  background: rgba(229, 116, 143, 0.2);
  color: #8a3d52;
}

.admin-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.admin-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(71, 214, 157, 0.9), rgba(153, 237, 204, 0.9));
}

.table-actions .btn {
  border-radius: 999px;
}

.admin-row-muted {
  color: var(--muted);
}

.home-hero {
  padding: 28px 0 10px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
}

.home-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-top: 12px;
}

.home-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.home-metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.home-metrics .metric-value {
  font-weight: 700;
}

.home-metrics .metric-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.home-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  padding: 22px;
}

.home-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.home-pill {
  background: rgba(71, 214, 157, 0.2);
  color: #1f7a57;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.home-card-body {
  display: grid;
  gap: 12px;
}

.home-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.home-stat .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(153, 237, 204, 0.45);
}

.home-stat .label {
  font-size: 0.85rem;
  color: var(--muted);
}

.home-stat .value {
  font-weight: 700;
}

.home-grid {
  margin: 26px 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.home-feature {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.home-steps .step {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 14px;
}

.home-steps .step span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(229, 116, 143, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.home-cta {
  margin: 24px 0 10px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(229, 116, 143, 0.15), rgba(71, 214, 157, 0.2));
  text-align: center;
}

.home-cta h3 {
  font-family: var(--font-display);
}

.home-strip {
  margin: 18px 0 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.strip-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 12px;
  align-items: center;
}

.strip-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 116, 143, 0.18);
  color: #8a3d52;
}

.home-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.home-logos span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 36px;
  padding: 28px 0 20px;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.site-footer .footer-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.site-footer .footer-link {
  display: block;
  color: var(--muted);
  margin: 6px 0;
}

.site-footer .footer-link:hover {
  color: #2a3242;
}

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer .footer-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.error-shell {
  max-width: 760px;
  margin: 0 auto;
}

.error-hero {
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: auto 1fr;
}

.error-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: #8a3d52;
  background: rgba(229, 116, 143, 0.18);
}

.error-code {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.dash-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-card .dash-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.dash-card .dash-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}

.dash-trend {
  font-size: 0.8rem;
  margin-top: 6px;
}

.dash-banner {
  border-radius: 20px;
}

.dash-progress {
  width: 220px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.dash-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(71, 214, 157, 0.9), rgba(153, 237, 204, 0.9));
}

.dash-side .dash-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #2a3242;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.dash-side .dash-link:hover {
  background: rgba(255, 255, 255, 1);
}

.users-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.users-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.users-summary .pill {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
}

.users-toolbar .form-control,
.users-toolbar .form-select {
  background: rgba(255, 255, 255, 0.95);
}

.role-chip {
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-weight: 600;
  font-size: 0.78rem;
}

.role-chip.admin {
  background: rgba(229, 116, 143, 0.2);
  color: #8a3d52;
}

.role-chip.staff {
  background: rgba(71, 214, 157, 0.2);
  color: #1f7a57;
}

.users-actions .btn {
  border-radius: 999px;
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.icon-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  background: rgba(229, 116, 143, 0.18);
  color: #c85c76;
}

.icon-badge.green {
  background: rgba(71, 214, 157, 0.2);
  color: #2f9b73;
}

.company-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.company-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.company-logo img {
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}

.settings-logo-preview {
  min-height: 120px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.settings-logo-preview img {
  max-height: 90px;
  max-width: 180px;
  object-fit: contain;
}

/* UI Enhancements */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 1040;
  backdrop-filter: saturate(1.2) blur(8px);
}

.navbar .nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.navbar .btn,
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

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

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(229, 116, 143, 0.22);
}

.card,
.home-feature,
.strip-card,
.home-steps .step {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover,
.home-feature:hover,
.strip-card:hover,
.home-steps .step:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.page-title {
  letter-spacing: -0.01em;
}

.home-title {
  background: linear-gradient(120deg, #1f2230 0%, #264567 35%, #b84f69 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dash-value,
.stat-value {
  text-wrap: balance;
}

.table-responsive {
  border-radius: 14px;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
}

.table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.75);
}

.table tbody tr:hover {
  background: rgba(237, 154, 174, 0.12);
}

.form-control::placeholder,
.form-select::placeholder {
  color: #98a2b3;
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -55% auto auto -12%;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(237, 154, 174, 0.28), transparent 68%);
  pointer-events: none;
}

.footer-note {
  letter-spacing: 0.01em;
}

.reveal-item {
  opacity: 0;
  transform: translateY(12px) scale(0.995);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    transform 0.55s ease var(--reveal-delay, 0ms);
}

.alert {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.alert-fade-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (max-width: 991.98px) {
  .app-main {
    margin-top: 6px;
  }

  .page-head,
  .users-hero,
  .admin-hero,
  .dash-hero,
  .profile-hero {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .primary-cta {
    padding: 9px 16px;
  }

  .visitors-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.app-body {
    background: linear-gradient(180deg, #b6f4dd 0%, #89e9c2 45%, #61dca8 100%);
  }

  .card-glass {
    border-radius: 18px;
  }

  .table thead th {
    position: static;
  }

  .home-title {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .visitors-insight-grid {
    grid-template-columns: 1fr;
  }

  .visitors-table-meta {
    margin-bottom: 8px;
  }

  .visitor-empty-state {
    padding: 16px 6px;
  }

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

  .error-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.25rem;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -42px;
  z-index: 3000;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.quick-actions-trigger {
  align-items: center;
  gap: 6px;
}

.quick-actions-trigger .shortcut-hint {
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.9);
}

.command-palette[hidden] {
  display: none !important;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: start center;
  padding: 10vh 14px 20px;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.52);
  backdrop-filter: blur(5px);
}

.command-dialog {
  position: relative;
  width: min(760px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(18, 26, 37, 0.92);
  color: #e5ecf4;
  box-shadow: 0 26px 52px rgba(3, 6, 10, 0.5);
  overflow: hidden;
}

.command-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.command-head i {
  color: rgba(229, 236, 244, 0.75);
}

.command-head input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f8fc;
  font-size: 0.95rem;
}

.command-head input::placeholder {
  color: rgba(229, 236, 244, 0.58);
}

.command-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  color: rgba(229, 236, 244, 0.85);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.command-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.command-meta {
  padding: 8px 14px 6px;
  font-size: 0.73rem;
  color: rgba(229, 236, 244, 0.64);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.command-list {
  max-height: min(56vh, 420px);
  overflow: auto;
  padding: 6px;
}

.command-list a {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #ecf2f9;
  border-radius: 12px;
  padding: 10px 10px;
}

.command-list a i {
  color: rgba(229, 236, 244, 0.68);
}

.command-list a kbd {
  font: inherit;
  font-size: 0.68rem;
  line-height: 1;
  color: rgba(229, 236, 244, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 3px 5px;
  background: rgba(255, 255, 255, 0.08);
}

.command-list a:hover,
.command-list a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.command-list a:hover i,
.command-list a.is-active i {
  color: #fff;
}

.command-foot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(229, 236, 244, 0.8);
  font-size: 0.74rem;
}

.command-foot kbd {
  font: inherit;
  font-size: 0.67rem;
  color: rgba(229, 236, 244, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.08);
  margin-right: 2px;
}

body.command-open {
  overflow: hidden;
}

.mobile-quick-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 680px;
  z-index: 1035;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(18, 26, 37, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.mobile-quick-nav.admin-nav {
  grid-template-columns: repeat(3, 1fr);
}

.mobile-quick-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  border-radius: 12px;
  padding: 8px 6px;
  display: grid;
  gap: 4px;
  place-items: center;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mobile-quick-nav a i {
  font-size: 1.05rem;
}

.mobile-quick-nav a.cta {
  background: linear-gradient(135deg, #e5748f, #ed9aae);
  color: #fff;
}

.mobile-quick-nav a.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mobile-quick-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-quick-nav a.cta:hover {
  background: linear-gradient(135deg, #d96583, #e68ba1);
}

.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 96px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1f2230, #2f3c52);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
  display: grid;
  place-items: center;
  z-index: 1032;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  filter: brightness(1.08);
}

button.is-loading,
input.is-loading {
  pointer-events: none;
}

button.is-loading .spinner-border {
  vertical-align: -0.12em;
}

@media (max-width: 991.98px) {
  .app-main {
    padding-bottom: 86px;
  }

  .quick-actions-trigger {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .mobile-quick-nav {
    gap: 6px;
    padding: 7px;
  }

  .mobile-quick-nav a {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item.is-visible,
  .btn,
  .card,
  .home-feature,
  .strip-card,
  .home-steps .step,
  .back-to-top,
  .command-dialog {
    transition: none !important;
    animation: none !important;
  }
}
