:root {
  --bg: #f4f8fb;
  --bg-accent: #e6f0f7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --ink: #163042;
  --muted: #637a8b;
  --muted-soft: #8ba0af;
  --border: rgba(22, 48, 66, 0.10);
  --brand: #5d8fb8;
  --brand-dark: #36698f;
  --brand-deep: #224761;
  --brand-soft: #dbeaf5;
  --gold-soft: #e5eef5;
  --gold-text: #53738d;
  --danger-soft: #fbe4e4;
  --shadow: 0 18px 45px rgba(35, 71, 97, 0.09);
  --cream: #f9fcfe;
  --stone: #dbe4ea;
  --outline: #0f1012;
}

html {
  font-size: 15px;
  min-height: 100%;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Aptos", "IBM Plex Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(185, 214, 236, 0.34), transparent 24%),
    radial-gradient(circle at top left, rgba(111, 151, 187, 0.14), transparent 22%),
    linear-gradient(180deg, #fbfeff 0%, var(--bg) 44%, #edf4f9 100%);
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .dashboard-title, .hero-title {
  font-family: "Segoe UI Variable Display", "Aptos Display", "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

a {
  color: var(--brand-dark);
}

a:hover {
  color: var(--brand-deep);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(27, 127, 114, 0.18);
  border-color: rgba(27, 127, 114, 0.35);
}

.app-navbar {
  position: relative;
  z-index: 1100;
  background: linear-gradient(135deg, #163042 0%, #315b79 100%);
  box-shadow: 0 12px 28px rgba(22, 48, 66, 0.18);
  backdrop-filter: blur(18px);
}

.navbar-user-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 253, 248, 0.94);
  font-weight: 600;
}

.logout-form {
  margin: 0;
}

.logout-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fffdf8;
  box-shadow: 0 10px 18px rgba(15, 16, 18, 0.16);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.logout-icon-btn:hover,
.logout-icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(15, 16, 18, 0.2);
}

.logout-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.42);
  outline-offset: 3px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  padding: 0.15rem;
  box-shadow: 0 10px 24px rgba(15, 16, 18, 0.18);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fffdf8;
}

.brand-tag {
  font-size: 0.72rem;
  color: rgba(255, 253, 248, 0.70);
  letter-spacing: 0.03em;
}

.container-fluid {
  position: relative;
}

.sidebar {
  min-height: calc(100vh - 56px);
  background: rgba(244, 249, 247, 0.92);
  border-right: 1px solid rgba(23, 52, 50, 0.08);
  backdrop-filter: blur(16px);
  overflow-x: hidden;
}

.sidebar-shell {
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 1rem;
}

.sidebar-user {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 252, 0.92));
  border: 1px solid rgba(23, 52, 50, 0.08);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(23, 52, 50, 0.08);
  overflow: hidden;
}

.sidebar-user .d-flex {
  min-width: 0;
}

.sidebar-user-info {
  min-width: 100%;
  flex: 1;
  width: 100%;
}

.sidebar-user-info .fw-bold {
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
  font-size: 0.95rem;
  display: block;
}

.avatar-circle {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f97bb 0%, #3c556b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  overflow: hidden;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-link {
  display: flex;
  align-items: center;
  margin: 0.2rem 0;
  padding: 0.8rem 1rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.2s ease-in-out;
}

.sidebar-link:hover {
  background-color: rgba(27, 127, 114, 0.10);
  color: var(--brand-dark);
}

.sidebar-link:focus-visible,
.manage-nav-link:focus-visible,
.poi-list-item:focus-visible,
.surface-link:focus-visible,
.auth-links a:focus-visible,
.auth-inline-link:focus-visible {
  outline: 2px solid rgba(27, 127, 114, 0.35);
  outline-offset: 3px;
}

.sidebar-link i {
  width: 22px;
  margin-right: 0.75rem;
}

.sidebar-link[href]:is(:hover, .active) {
  transform: translateX(2px);
}

.sidebar-footer-nav {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 52, 50, 0.08);
}

.sidebar-link-account {
  margin-bottom: 0.5rem;
}

main.col-md-9,
main.col-12 {
  padding-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--brand-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

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

.hero-brand-name {
  font-family: "Segoe UI Variable Display", "Aptos Display", "IBM Plex Sans", "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #223041;
}

.hero-brand-tag {
  color: var(--brand-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-title,
.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #202934;
}

.dashboard-subtitle,
.hero-copy {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56rem;
}

.marketing-hero {
  padding: 3rem 0 4rem;
}

.hero-panel,
.surface-card,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise-in 0.45s ease both;
}

.hero-panel {
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(243, 249, 253, 0.84)),
    radial-gradient(circle at top right, rgba(111, 151, 187, 0.10), transparent 34%);
}

.hero-panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.hero-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(23, 52, 50, 0.08);
}

.hero-step:first-of-type {
  border-top: 0;
}

.hero-step i {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(221, 236, 247, 0.95), rgba(242, 249, 253, 0.96));
  color: var(--brand-dark);
}

.hero-step p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.btn-brand,
.btn-outline-brand {
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(17, 51, 47, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand) 0%, #88abc8 100%);
  border: 0;
  color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  background: linear-gradient(135deg, #557b9d 0%, #7297b7 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(60, 85, 107, 0.22);
}

.btn-outline-brand {
  color: var(--brand-dark);
  border: 1px solid rgba(111, 151, 187, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-brand:hover {
  color: var(--brand-dark);
  border-color: rgba(111, 151, 187, 0.52);
  background: rgba(219, 232, 243, 0.72);
  transform: translateY(-1px);
}

.btn-outline-secondary,
.btn-secondary,
.btn-outline-danger,
.btn-danger,
.btn-warning {
  border-radius: 999px;
  padding-inline: 1.15rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-outline-secondary {
  color: var(--ink);
  border-color: rgba(23, 52, 50, 0.12);
  background: rgba(255,255,255,0.72);
}

.btn-outline-secondary:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.95);
  border-color: rgba(23, 52, 50, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #eef5f2;
  color: var(--ink);
  border-color: transparent;
}

.btn-warning {
  background: var(--gold-soft);
  color: var(--gold-text);
  border-color: transparent;
}

.btn-outline-danger {
  background: rgba(255,255,255,0.72);
}

.btn-danger {
  background: linear-gradient(135deg, #cc5f5f 0%, #b94747 100%);
  border-color: transparent;
}

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

.dashboard-shell,
.poi-form-shell {
  padding-top: 1rem;
}

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem 1.9rem;
  border-radius: 32px;
  border: 1px solid rgba(34, 71, 97, 0.10);
  background:
    radial-gradient(circle at top right, rgba(150, 192, 221, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239, 247, 252, 0.90));
  box-shadow: 0 22px 52px rgba(35, 71, 97, 0.10);
}

.dashboard-hero-copy {
  max-width: 52rem;
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.poi-hero,
.poi-editor-hero,
.poi-detail-hero {
  border-color: rgba(56, 101, 133, 0.12);
  background:
    radial-gradient(circle at top right, rgba(175, 207, 230, 0.30), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(237, 246, 251, 0.92));
}

.metric-card {
  padding: 1.4rem;
  min-height: 185px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(242, 248, 252, 0.84));
}

.metric-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.metric-card-link:hover {
  color: inherit;
}

.metric-card-link .metric-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.metric-card-link:hover .metric-card,
.metric-card-link:focus-visible .metric-card {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(35, 71, 97, 0.14);
  border-color: rgba(56, 101, 133, 0.18);
}

.metric-card-clinical {
  position: relative;
  overflow: hidden;
  border-color: rgba(56, 101, 133, 0.10);
}

.metric-card-clinical::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -24px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(169, 204, 228, 0.30) 0%, rgba(169, 204, 228, 0.08) 58%, transparent 76%);
  pointer-events: none;
}

.metric-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214, 231, 244, 0.96), rgba(244, 250, 254, 0.98));
  color: var(--brand-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.metric-label {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.metric-value {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #163533;
  margin-bottom: 0.7rem;
}

.metric-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.surface-card {
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(242, 248, 252, 0.84));
}

.clinical-panel,
.clinical-filter-card {
  border-color: rgba(56, 101, 133, 0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(241, 248, 252, 0.88));
  box-shadow: 0 18px 40px rgba(35, 71, 97, 0.08);
}

.card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(242, 248, 252, 0.86));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body,
.card-header {
  background: transparent;
  border-color: rgba(23, 52, 50, 0.08);
}

.card-header {
  padding: 1.15rem 1.35rem 0;
}

.card-body {
  padding: 1.35rem;
}

.surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.surface-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.surface-header p {
  color: var(--muted);
}

.surface-link {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.poi-list-item,
.registration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(23, 52, 50, 0.08);
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.poi-list-item {
  text-decoration: none;
  color: inherit;
}

.poi-list-item:hover {
  color: inherit;
  border-color: rgba(27, 127, 114, 0.22);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(17, 51, 47, 0.08);
}

.poi-row-arrow {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(220, 234, 245, 0.95), rgba(245, 250, 253, 0.98));
  color: var(--brand-deep);
  border: 1px solid rgba(56, 101, 133, 0.10);
}

.poi-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(223, 236, 246, 0.86), rgba(246, 251, 254, 0.96));
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.poi-address,
.poi-summary,
.registration-date {
  color: var(--muted);
  font-size: 0.95rem;
}

.registration-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(223, 236, 246, 0.76), rgba(247, 251, 254, 0.96));
  color: var(--brand-deep);
  font-weight: 600;
}

.hero-inline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-meta-text {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(34, 71, 97, 0.28);
}

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

.empty-state.compact {
  min-height: 180px;
}

.empty-state i {
  font-size: 2rem;
  color: var(--brand);
}

.form-control,
.form-select {
  border-radius: 16px;
  border: 1px solid rgba(23, 52, 50, 0.13);
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.form-check-input {
  border-color: rgba(23, 52, 50, 0.22);
}

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

textarea.form-control {
  min-height: 120px;
}

.poi-autocomplete-note {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(223, 236, 246, 0.55);
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.profile-avatar-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-shell {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(111, 151, 187, 0.92), rgba(60, 85, 107, 0.96));
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(35, 71, 97, 0.14);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.role-check {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(56, 101, 133, 0.12);
  background: rgba(255,255,255,0.76);
}

.pac-container {
  margin-top: 0.45rem;
  padding: 0.4rem;
  border: 1px solid rgba(56, 101, 133, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(35, 71, 97, 0.16);
  font-family: "Segoe UI Variable Text", "Aptos", "IBM Plex Sans", "Helvetica Neue", sans-serif;
  z-index: 2000;
}

.pac-container::after {
  display: none;
}

.pac-item {
  padding: 0.8rem 0.95rem;
  border-top: 0;
  border-radius: 14px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
}

.pac-item:hover,
.pac-item-selected {
  background: rgba(223, 236, 246, 0.52);
}

.pac-icon {
  margin-right: 0.75rem;
  opacity: 0.7;
}

.pac-item-query {
  color: var(--ink);
  font-size: 0.96rem;
}

.poi-table th {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poi-table td,
.poi-table th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-color: rgba(23, 52, 50, 0.08);
}

.table > :not(caption) > * > * {
  border-color: rgba(23, 52, 50, 0.08);
}

.table-hover > tbody > tr {
  transition: background 0.18s ease;
}

.table-hover > tbody > tr:hover {
  background: rgba(219, 232, 243, 0.24);
}

.status-badge {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-active {
  background-color: #d8e7f3;
  color: #35536d;
}

.status-inactive {
  background-color: #f6dede;
  color: #a63d3d;
}

.status-pending {
  background-color: #f8efcf;
  color: #8e6b1d;
}

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

.detail-grid .full {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hover-lift {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.alert {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(44, 53, 66, 0.08);
}

.alert-success {
  background: #d8e7f3;
  color: #35536d;
}

.alert-danger {
  background: #fbe4e4;
  color: #923535;
}

.table-actions {
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.ui-panel {
  overflow: hidden;
}

.ui-panel-header {
  margin-bottom: 1rem;
}

.ui-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.ui-panel-body > :last-child {
  margin-bottom: 0;
}

.detail-grid dl,
.detail-grid ul,
.surface-card dl,
.surface-card ul {
  margin-bottom: 0;
}

.surface-note {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(223, 236, 246, 0.42);
  border: 1px solid rgba(54, 105, 143, 0.08);
}

.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  border-radius: 28px;
  color: #f8fffd;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(135deg, #224761 0%, #5d8fb8 100%);
  box-shadow: 0 22px 46px rgba(35, 71, 97, 0.16);
}

.page-header h1,
.page-header h2,
.page-header p {
  margin: 0;
}

.page-header p {
  color: rgba(248,255,253,0.8);
}

.list-group {
  gap: 0.65rem;
  display: flex;
  flex-direction: column;
}

.list-group-item {
  border-radius: 18px;
  border: 1px solid rgba(23, 52, 50, 0.08);
  background: rgba(255,255,255,0.72);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #88abc8 100%);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(17, 51, 47, 0.08);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #557b9d 0%, #7297b7 100%);
  border-color: transparent;
}

.btn-info {
  background: rgba(219, 232, 243, 0.72);
  color: var(--brand-dark);
  border-color: rgba(111, 151, 187, 0.16);
}

.btn-info:hover,
.btn-info:focus {
  background: rgba(219, 232, 243, 0.92);
  color: var(--brand-dark);
  border-color: rgba(111, 151, 187, 0.28);
}

.action-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-shell {
  padding: 3rem 1rem 4rem;
}

.auth-shell-narrow {
  max-width: 840px;
  margin: 0 auto;
}

.auth-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.auth-stage-register {
  grid-template-columns: 0.95fr 1.05fr;
}

.auth-intro,
.auth-card,
.manage-sidebar-card {
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise-in 0.45s ease both;
}

.auth-intro {
  padding: 2.1rem;
  background:
    radial-gradient(circle at top left, rgba(185, 214, 236, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(243, 249, 253, 0.78));
}

.auth-card {
  padding: 1.8rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(243, 249, 253, 0.86));
}

.auth-card-centered {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.auth-card-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.auth-card-header p,
.auth-copy-centered {
  color: var(--muted);
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214, 231, 244, 0.85), rgba(243, 249, 253, 0.95));
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.auth-feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(23, 52, 50, 0.08);
}

.auth-feature i {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214, 231, 244, 0.85), rgba(243, 249, 253, 0.95));
  color: var(--brand-dark);
}

.auth-feature p,
.auth-secondary p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.auth-secondary {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(23, 52, 50, 0.08);
}

.auth-secondary h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-links a,
.auth-inline-link {
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 600;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.manage-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.6rem;
  padding: 1.5rem 0 2.5rem;
}

.manage-shell-single {
  grid-template-columns: minmax(0, 1fr);
}

.manage-sidebar-card {
  position: sticky;
  top: 1.25rem;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(243, 249, 253, 0.84));
}

.manage-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.manage-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.6rem;
}

.manage-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.manage-nav-link i {
  width: 18px;
  text-align: center;
  color: var(--brand-dark);
}

.manage-nav-link:hover,
.manage-nav-link.active {
  color: var(--brand-dark);
  background: rgba(219, 232, 243, 0.72);
  transform: translateX(2px);
}

.manage-content {
  min-width: 0;
}

.manage-shell-single .manage-content {
  max-width: 980px;
}

.manage-form {
  max-width: 680px;
}

.manage-form-narrow {
  max-width: 460px;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.2rem;
}

.setup-steps li {
  padding-left: 0.35rem;
}

.verification-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #d8e7f3;
  color: #35536d;
  font-weight: 700;
}

.input-with-badge {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.input-with-badge .form-control {
  flex: 1;
}

.table-action-btn {
  display: inline-flex;
  align-items: center;
  width: 6.9rem;
  min-height: 2.65rem;
  padding: 0.6rem 1rem;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  box-sizing: border-box;
}

.relink-home {
  padding-top: 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy-column {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hero-action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-metric {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255,255,255,0.68);
  box-shadow: 0 12px 24px rgba(44, 53, 66, 0.06);
}

.hero-metric-value {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}

.hero-metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual-column {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.logo-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.logo-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.logo-orbit-gold {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(221, 236, 247, 0.62) 0%, rgba(221, 236, 247, 0.08) 62%, transparent 78%);
  top: 2%;
  left: 8%;
}

.logo-orbit-blue {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(111, 151, 187, 0.44) 0%, rgba(111, 151, 187, 0.06) 64%, transparent 80%);
  right: 0;
  bottom: 2%;
}

.logo-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 1.2rem;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(243,249,253,0.82));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 24px 56px rgba(44, 53, 66, 0.16);
}

.home-logo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

.story-card {
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(243,249,253,0.82));
  box-shadow: var(--shadow);
}

.story-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.story-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.story-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.story-step i {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214, 231, 244, 0.85), rgba(243, 249, 253, 0.95));
  color: var(--brand-deep);
}

.story-step p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

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

.home-feature-card {
  padding: 1.35rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(243,249,253,0.78));
  box-shadow: 0 16px 30px rgba(44, 53, 66, 0.07);
}

.home-feature-card i {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214, 231, 244, 0.82), rgba(243, 249, 253, 0.95));
  color: var(--brand-deep);
}

.home-feature-card h2 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.home-feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.registration-row strong,
.poi-list-item strong,
.surface-card strong {
  font-weight: 700;
}

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

@media (max-width: 991.98px) {
  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 52, 50, 0.08);
  }

  .sidebar-shell {
    height: auto;
    overflow: visible;
    padding-bottom: 0;
  }

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

  .auth-stage,
  .auth-stage-register,
  .manage-shell,
  .hero-grid,
  .home-feature-band {
    grid-template-columns: 1fr;
  }

  .manage-sidebar-card {
    position: static;
  }
}

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

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

  .metric-card {
    min-height: auto;
  }

  .auth-shell {
    padding-inline: 0;
  }

  .auth-intro,
  .auth-card,
  .manage-sidebar-card,
  .surface-card,
  .metric-card,
  .hero-panel {
    border-radius: 24px;
  }

  .surface-header,
  .auth-card-header {
    flex-direction: column;
  }

  .input-with-badge {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-tag {
    display: none;
  }

  .logo-stage {
    min-height: 300px;
  }
}
