/* ==========================================================================
   iHealthCard Unified Platform Design System & Stylesheet
   Directly harmonized with the exact homepage aesthetic, fonts, tokens & UI/UX.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  /* Core Brand Tokens */
  --teal: #0d605e;
  --teal-dark: #084947;
  --ink: #102e35;
  --muted: #536b70;
  --mint: #dbf1e9;
  --mint-surface: #edf6f1;
  --mint-subtle: #f5f8f6;
  --canvas: #fafcfb;
  --line: #dce7e3;
  --line-subtle: #edf1ef;
  --radius: 20px;
  --radius-card: 20px;
  --radius-control: 10px;
  --radius-badge: 30px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Emergency & Functional Accents */
  --red: #b23732;
  --red-surface: #fff0ec;
  --red-border: #fec5bb;
  --gold-focus: #d59b36;
  --amber: #92400e;
  --amber-surface: #fef3c7;
  --amber-border: #fde68a;

  /* Semantic Aliases */
  --color-brand-700: var(--teal-dark);
  --color-brand-500: var(--teal);
  --color-brand-100: var(--mint);
  --color-brand-50: var(--mint-surface);
  --color-teal-500: var(--teal);
  --color-teal-700: var(--teal-dark);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-surface: #ffffff;
  --color-canvas: var(--canvas);
  --color-border: var(--line);
  --color-border-subtle: var(--line-subtle);
  --color-danger: var(--red);
  --color-danger-bg: var(--red-surface);
  --color-warning: var(--amber);
  --color-warning-bg: var(--amber-surface);
  --color-success: var(--teal-dark);
  --color-success-bg: var(--mint);

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  /* Typography */
  --font-family: 'DM Sans', system-ui, 'Nirmala UI', sans-serif;
  --font-heading: 'Manrope', system-ui, 'Nirmala UI', sans-serif;
}

/* ==========================================================================
   Base Elements & Reset
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}

a {
  color: var(--color-brand-500);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-brand-700);
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

/* High-contrast accessible focus ring */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-focus);
  outline-offset: 4px;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .brand, .brand-link, .font-heading {
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-weight: 750;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 800;
}

h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.7px;
  font-weight: 750;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  font-weight: 700;
}

p {
  color: var(--color-muted);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.app-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--space-4) 20px 48px;
}

@media (min-width: 768px) {
  .app-container {
    padding: var(--space-6) 32px 64px;
  }
}

.app-fullwidth {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 15px 35px rgba(54, 82, 70, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 600px) {
  .card {
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 18px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-control);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: center;
  gap: 8px;
}

.btn-primary, .button {
  background-color: var(--color-brand-500);
  border-color: var(--color-brand-500);
  color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus, .button:hover {
  background-color: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 96, 94, 0.18);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary:active, .button:active {
  transform: translateY(0);
}

.btn-secondary, .button-outline {
  background-color: transparent;
  border-color: #a8c4b8;
  color: var(--color-ink);
}

.btn-secondary:hover, .btn-secondary:focus, .button-outline:hover {
  background-color: #ffffff;
  border-color: var(--color-brand-500);
  color: var(--color-brand-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 96, 94, 0.08);
  text-decoration: none;
}

.btn-danger {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: #ffffff;
}

.btn-danger:hover, .btn-danger:focus {
  background-color: #992824;
  border-color: #992824;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(178, 55, 50, 0.2);
  text-decoration: none;
}

.btn-emergency-112 {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(178, 55, 50, 0.25);
}

.btn-emergency-112:hover {
  background-color: #992824;
  border-color: #992824;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(178, 55, 50, 0.35);
  text-decoration: none;
}

.btn-sm, .button-small {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .button:hover, .btn-emergency-112:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #bce1d4;
}

.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid var(--amber-border);
}

.badge-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--red-border);
}

.badge-neutral {
  background: var(--color-brand-50);
  color: var(--color-brand-700);
  border: 1px solid #cce1d6;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-ink);
  font-size: 0.9375rem;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-family: var(--font-family);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--color-brand-500);
  outline: 3px solid var(--gold-focus);
  outline-offset: 2px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--space-3);
  min-height: 36px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  min-width: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--color-brand-500);
  cursor: pointer;
}

.form-error {
  color: var(--color-danger);
  font-size: 0.875rem;
  margin-top: var(--space-1);
  font-weight: 600;
}

/* ==========================================================================
   Alert Banners
   ========================================================================== */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-control);
  margin-bottom: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: #b7e4d5;
}

.alert-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: var(--amber-border);
}

.alert-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--red-border);
}

.alert-info {
  background: var(--color-brand-50);
  color: var(--color-brand-700);
  border-color: #cce5dc;
}

/* ==========================================================================
   Header & Site Navigation (Identical to Homepage)
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 36px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.header, .site-header {
  background: #fffefc;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner, .site-header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-light {
  font-weight: 500;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  color: var(--teal);
}

.brand-mark .icon {
  width: 34px;
  height: 36px;
  stroke-width: 1.85;
}

.desktop-nav {
  display: flex;
  gap: 27px;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
}

.desktop-nav a {
  padding: 12px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--teal);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language {
  display: flex;
  align-items: center;
  gap: 5px;
}

.language .icon {
  width: 17px;
  height: 17px;
  color: var(--ink);
}

.language select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  max-width: 76px;
  cursor: pointer;
  font-family: inherit;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 18px rgba(13,96,94,0.18);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.button-small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border-color: #a8c4b8;
}

.button-outline:hover {
  background: #ffffff;
  color: var(--teal);
  border-color: var(--teal);
}

.menu-button {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
}

.mobile-menu {
  padding: 12px 24px 24px;
  max-width: 640px;
  margin: auto;
  border-top: 1px solid var(--line);
  background: #fffefc;
}

.mobile-menu a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-menu a:hover {
  color: var(--teal);
}

.mobile-menu .button {
  width: 100%;
  margin-top: 10px;
}

[hidden] {
  display: none !important;
}

@media(max-width: 1050px) {
  .desktop-nav { gap: 16px; font-size: 12px; }
  .header-actions { gap: 10px; }
  .container { padding: 0 28px; }
  .header-inner, .site-header-inner { gap: 15px; }
  .brand { font-size: 20px; }
}

@media(max-width: 800px) {
  .desktop-nav, .desktop-cta { display: none !important; }
  .menu-button { display: block; }
  .header-inner, .site-header-inner { height: 70px; }
  .container { padding: 0 24px; }
}

@media(max-width: 480px) {
  .container { padding: 0 20px; }
  .brand { font-size: 20px; gap: 6px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-mark .icon { width: 28px; height: 28px; }
  .header-actions { gap: 5px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  margin-top: 48px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
  gap: 32px;
}

.footer-main > p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.footer-main nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-main nav a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-main nav a:hover {
  color: var(--color-brand-500);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.75rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}

.footer-bottom p {
  max-width: 520px;
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-bottom a {
  color: var(--color-danger);
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 20px 24px;
  }
  .footer-main nav {
    justify-content: flex-start;
  }
  .footer-bottom {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   Admin Ops Console Theme (Modern Left Sidebar & Elevated SaaS Design)
   ========================================================================== */

body.admin-body {
  background-color: #f8fafc;
  margin: 0;
  min-height: 100vh;
  color: #1e293b;
  overflow-x: hidden;
}

body.sidebar-locked {
  overflow: hidden;
}

.admin-layout-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: #f8fafc;
}

/* ==========================================================================
   Untitled UI Vertical Left Sidebar
   ========================================================================== */

.admin-sidebar {
  width: 272px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: #ffffff;
  border-right: 1px solid #eaecf0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 1px 0 3px rgba(16, 24, 40, 0.04);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

/* Brand Header */
.admin-sidebar-header {
  padding: 18px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-sizing: border-box;
}

.admin-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}

.admin-brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #eaecf0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-brand-img {
  max-height: 24px;
  max-width: 32px;
  object-fit: contain;
}

.admin-brand-svg {
  color: #0d9488;
}

.admin-brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #101828;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-brand-sub {
  font-size: 0.75rem;
  color: #475467;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.admin-brand-chevrons {
  color: #98a2b3;
  flex-shrink: 0;
  margin-left: auto;
}

.admin-sidebar-close {
  display: none;
  background: #f8fafc;
  border: 1px solid #eaecf0;
  color: #64748b;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: all 0.15s ease;
}

.admin-sidebar-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Untitled UI Search Input */
.admin-sidebar-search {
  padding: 0 16px 14px;
  flex-shrink: 0;
}

.admin-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.admin-search-icon {
  position: absolute;
  left: 12px;
  color: #667085;
  pointer-events: none;
  flex-shrink: 0;
}

.admin-search-input {
  width: 100%;
  height: 38px;
  padding: 8px 30px 8px 36px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font-family);
  color: #101828;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.admin-search-input::placeholder {
  color: #667085;
}

.admin-search-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.admin-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #98a2b3;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: none;
}

.admin-search-clear:hover {
  color: #101828;
}

/* Sidebar Scroll Area */
.admin-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: #eaecf0 transparent;
}

.admin-sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar-scroll::-webkit-scrollbar-thumb {
  background: #eaecf0;
  border-radius: 4px;
}

.admin-sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: #d0d5dd;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #98a2b3;
  padding: 14px 12px 6px;
  user-select: none;
}

.nav-section-title:first-child {
  padding-top: 2px;
}

/* Nav Links (Single Level) */
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #344054;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
  user-select: none;
}

.admin-nav-item:hover {
  background-color: #f9fafb;
  color: #101828;
  text-decoration: none;
}

.admin-nav-item.active {
  background-color: #f0fdf9;
  color: #0d605e;
  font-weight: 600;
  text-decoration: none;
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.admin-nav-item:hover .nav-item-icon {
  color: #344054;
}

.admin-nav-item.active .nav-item-icon {
  color: #0d605e;
}

.nav-item-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Badges */
.nav-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f2f4f7;
  color: #344054;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1.35;
}

.nav-badge-danger {
  background: #fee4e2;
  color: #d92d20;
  font-weight: 600;
}

.nav-badge-amber {
  background: #fef3c7;
  color: #b45309;
  font-weight: 600;
}

/* Collapsible Navigation Groups (Untitled UI Accordion) */
.nav-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 2px;
}

.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  color: #344054;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.nav-group-header:hover {
  background-color: #f9fafb;
  color: #101828;
}

.nav-group.active-group > .nav-group-header {
  color: #0d605e;
  font-weight: 600;
}

.nav-group.active-group > .nav-group-header .nav-item-icon {
  color: #0d605e;
}

.nav-group-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-group-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-group-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-group-chevron {
  color: #98a2b3;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Tree Submenu with vertical connector line */
.nav-sub-tree {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: relative;
  margin-left: 21px;
  padding-left: 14px;
  border-left: 1.5px solid #eaecf0;
  margin-top: 3px;
  margin-bottom: 6px;
}

.nav-group.open .nav-sub-tree {
  display: flex;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475467;
  text-decoration: none;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-sub-item:hover {
  background-color: #f9fafb;
  color: #101828;
  text-decoration: none;
}

.nav-sub-item.active {
  background-color: #f0fdf9;
  color: #0d605e;
  font-weight: 600;
  text-decoration: none;
}

/* Active tree indicator dot on the vertical guide line */
.nav-sub-item.active::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #0d605e;
  box-shadow: 0 0 0 2px #ffffff;
}

/* Untitled UI Footer User Profile Card */
.admin-sidebar-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid #eaecf0;
  flex-shrink: 0;
  background: #ffffff;
}

.admin-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #101828;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.profile-email {
  font-size: 0.75rem;
  color: #475467;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.profile-logout-btn {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 6px;
  color: #98a2b3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.profile-logout-btn:hover {
  color: #dc2626;
  background: #fee2e2;
}

/* --- Main Content Area --- */
.admin-main-wrap {
  margin-left: 272px;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

/* Topbar */
.admin-topbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #eaecf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-hamburger {
  display: none;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #344054;
  padding: 7px 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.admin-hamburger:hover {
  background: #f9fafb;
  border-color: #98a2b3;
  color: #101828;
}

.topbar-brand-mobile {
  display: none;
}

.topbar-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: #0f2d34;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
}

.topbar-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-btn-secondary {
  background: #ffffff;
  color: #344054;
  border: 1px solid #d0d5dd;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.topbar-btn-secondary:hover {
  background: #f9fafb;
  color: #101828;
  border-color: #98a2b3;
  text-decoration: none;
}

.topbar-btn-logout {
  background: #ffffff;
  color: #d92d20;
  border: 1px solid #fecdca;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.topbar-btn-logout:hover {
  background: #fee4e2;
  color: #b42318;
  border-color: #fda29b;
}

/* Main Container */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 28px 64px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

/* Page Header */
.admin-page-header {
  margin-bottom: 1.5rem;
}

/* Metrics Grid Enhancement */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

.metric-subtext {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.35rem;
}

/* Dashboard Split & Activity Lists */
.admin-dashboard-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1.5rem;
}

.admin-activity-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.15s ease;
}

.admin-activity-item:hover {
  background-color: #f8fafc;
}

.admin-activity-item:last-child {
  border-bottom: none;
}

/* --- Responsive Off-Canvas Drawer (Tablets & Mobile) --- */
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (max-width: 1024px) {
  .admin-sidebar {
    width: 280px;
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 1050;
  }

  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }

  .admin-sidebar-backdrop {
    display: block;
  }

  .admin-sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-sidebar-close {
    display: flex;
  }

  .admin-main-wrap {
    margin-left: 0;
    width: 100%;
  }

  .admin-hamburger {
    display: inline-flex;
  }

  .topbar-brand-mobile {
    display: inline-flex;
    align-items: center;
  }

  .topbar-status-badge {
    display: none;
  }

  .admin-topbar {
    padding: 0 18px;
    height: 60px;
  }

  .admin-container {
    padding: 20px 16px 56px;
  }
}

@media (max-width: 640px) {
  .admin-topbar {
    padding: 0 14px;
    height: 56px;
  }

  .topbar-btn span,
  .topbar-action-link span,
  .topbar-logout-btn span {
    display: none;
  }

  .topbar-btn,
  .topbar-action-link,
  .topbar-logout-btn {
    padding: 6px 9px;
  }

  .admin-container {
    padding: 16px 12px 48px;
  }

  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .metric-card {
    padding: 14px 14px;
    border-radius: 12px;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .metric-label {
    font-size: 0.68rem;
  }

  .metric-subtext {
    font-size: 0.7rem;
  }

  .admin-dashboard-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .admin-activity-item {
    padding: 0.75rem 0.875rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .admin-activity-item .btn,
  .admin-activity-item a.btn {
    align-self: flex-start;
  }
}

@media (max-width: 360px) {
  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Data Tables
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #eaecf0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.table, table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table th, table.data-table th {
  background: #f9fafb;
  color: #475467;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid #eaecf0;
  white-space: nowrap;
}

.table td, table.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eaecf0;
  vertical-align: middle;
  color: #344054;
}

.table tr:last-child td, table.data-table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td, table.data-table tr:hover td {
  background: #f9fafb;
}

/* ==========================================================================
   Responsive Dual Presentation (Desktop Table vs Mobile Cards)
   ========================================================================== */

.desktop-table-view {
  display: block;
}

.mobile-card-list {
  display: none;
}

@media (max-width: 768px) {
  .desktop-table-view {
    display: none !important;
  }

  .mobile-card-list {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
}

/* Admin Mobile Data Card */
.admin-mobile-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.admin-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #101828;
  line-height: 1.3;
}

.admin-card-subtitle {
  font-size: 0.75rem;
  color: #667085;
  margin-top: 2px;
  font-family: monospace;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 1px solid #f2f4f7;
  border-bottom: 1px solid #f2f4f7;
  font-size: 0.8125rem;
}

.admin-card-grid-full {
  grid-column: 1 / -1;
}

.admin-card-prop-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #667085;
  margin-bottom: 2px;
}

.admin-card-prop-value {
  color: #1e293b;
  font-weight: 600;
  word-break: break-word;
}

.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.admin-card-actions .btn {
  flex: 1;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

/* Admin Filter Bar */
.admin-filter-bar {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.admin-filter-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

@media (max-width: 768px) {
  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .admin-filter-bar > div {
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-filter-actions {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .admin-filter-actions .btn {
    flex: 1;
    min-height: 42px;
  }
}

/* Modern Pill Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.badge-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-info {
  background: #eff8ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-neutral {
  background: #f8fafc;
  color: #475467;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Public QR Emergency Scan Presentation
   ========================================================================== */

.emergency-scan-page {
  padding-bottom: 120px;
}

/* Physical Card Visual Banner */
.physical-card-banner {
  background: linear-gradient(125deg, #0e6c67, #104c52);
  color: #ffffff;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 16px 36px rgba(16, 56, 45, 0.2);
  position: relative;
  overflow: hidden;
}

.physical-card-banner .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.physical-card-banner .brand-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
}

.physical-card-banner .sub-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.physical-card-banner .code-info {
  font-size: 0.8125rem;
  color: #c1e0d8;
  margin-top: 4px;
}

.critical-fact-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.critical-fact-item:last-child {
  border-bottom: none;
}

.critical-label {
  font-size: 0.9375rem;
  color: var(--color-muted);
  font-weight: 500;
}

.critical-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-ink);
  text-align: right;
}

.sticky-emergency-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(16, 46, 53, 0.08);
  z-index: 1000;
}

.sticky-emergency-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .sticky-emergency-bar-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.medical-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.medical-tag {
  background: var(--color-brand-50);
  color: var(--color-brand-700);
  border: 1px solid #cce5dc;
  padding: 6px 12px;
  border-radius: var(--radius-badge);
  font-size: 0.9375rem;
  font-weight: 600;
}

.medical-tag-allergy {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--red-border);
}

/* ==========================================================================
   Grid System & Utilities
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.text-muted { color: var(--color-muted) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-success { color: var(--color-brand-700) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.font-bold { font-weight: 700 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }

/* Password visibility toggle */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrapper input {
  padding-right: 48px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  color: var(--teal);
  outline: none;
}

/* ==========================================================================
   Dedicated Authentication Views (Register / Login)
   Directly matching Homepage Design System Tokens & Craft
   ========================================================================== */

.auth-page-wrapper {
  min-height: calc(100vh - 88px - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  background: var(--canvas, #fafcfb);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid var(--line, #dce7e3);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(16, 46, 53, 0.08);
  padding: 38px 34px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control {
  border: 1.5px solid var(--line, #dce7e3);
  border-radius: 10px;
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
  background-color: #ffffff;
  color: var(--ink, #102e35);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-card .form-control:focus {
  border-color: var(--teal, #0d605e);
  outline: 3px solid var(--gold-focus, #d59b36);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(13, 96, 94, 0.08);
}

.auth-card .consent-box {
  margin: 20px 0 24px;
  padding: 14px 16px;
  background: #f8faf9;
  border: 1.5px solid #dce7e3;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.18s ease;
}

.auth-card .consent-box:hover {
  border-color: #b9d3c7;
}

.auth-card .consent-box input[type="checkbox"] {
  accent-color: var(--teal, #0d605e);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .auth-page-wrapper {
    padding: 24px 16px 40px;
    min-height: auto;
  }
  .auth-card {
    padding: 28px 20px;
    border-radius: 18px;
  }
}

