: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;
}

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;
}

.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);
}

.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);
}

.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;
}
