/* =====================================================
   AZBC Customer Portal — Vista Aero glass, Vietnam scenic
   ===================================================== */

:root {
  /* Brand */
  --c-primary:      #b76770;
  --c-primary-dk:   #8f4a52;
  --c-primary-lt:   #f4e3e5;
  --c-primary-xlt:  #faf0f1;

  --c-secondary:    #7b95bd;
  --c-secondary-dk: #586f95;
  --c-secondary-lt: #e9eef6;

  --c-gold:         #c9a874;
  --c-gold-lt:      #f5ecd9;
  --c-gold-dk:      #a1834f;

  /* Text / muted on (glass over bright photo) */
  --c-text:         #1f1518;
  --c-text-2:       #3a2b2e;
  --c-muted:        #6d585c;
  --c-muted-2:      #8e7a7e;

  /* Feedback */
  --c-success:      #4e7a56;
  --c-success-lt:   rgba(215, 233, 218, 0.85);
  --c-danger:       #9b3535;
  --c-danger-lt:    rgba(243, 207, 207, 0.85);
  --c-info:         #506e98;
  --c-info-lt:      rgba(222, 231, 244, 0.85);
  --c-warn:         #7e6430;
  --c-warn-lt:      rgba(245, 233, 205, 0.85);

  /* Glass surface system */
  --glass-bg:         rgba(255, 255, 255, 0.62);
  --glass-bg-strong:  rgba(255, 255, 255, 0.78);
  --glass-bg-soft:    rgba(255, 255, 255, 0.48);
  --glass-border:     rgba(255, 255, 255, 0.55);
  --glass-border-in:  rgba(255, 255, 255, 0.9);
  --glass-blur:       blur(22px) saturate(1.55);
  --glass-blur-sm:    blur(14px) saturate(1.3);

  --c-bg-fallback:  #d6e0e8; /* tone trung bình của ảnh Hạ Long khi ảnh chưa load */
  --bg-image:       url("/assets/img/bg-1.jpg"); /* Mặc định khi PHP không inject */
  --c-border-soft:  rgba(120, 85, 90, 0.18);

  --radius:        16px;
  --radius-sm:     12px;
  --radius-xs:     8px;

  --shadow-glass:  0 4px 20px rgba(15, 23, 42, 0.10),
                   0 1px 3px rgba(15, 23, 42, 0.05),
                   inset 0 1px 0 rgba(255,255,255,0.5);
  --shadow-glass-hi: 0 12px 40px rgba(15, 23, 42, 0.16),
                     0 2px 6px rgba(15, 23, 42, 0.08),
                     inset 0 1px 0 rgba(255,255,255,0.6);

  --nav-h:         70px;
  --top-h:         60px;
  --maxw:          640px;

  --font-serif:    "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:     -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--c-bg-fallback); }
body {
  font-family: var(--font-sans);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--top-h);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  background: transparent;
  position: relative;
}
body.no-nav { padding-bottom: 0; }

/* Fixed scenic backdrop — ảnh thiên nhiên VN, chọn ngẫu nhiên từ layout */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: var(--c-bg-fallback);
  background-image: var(--bg-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
}
/* Subtle warmth + slight dim for text contrast over busy photo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(250,240,232,0.22) 55%, rgba(245,220,200,0.28) 100%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-primary-dk); text-decoration: underline; }

h1, h2, h3, h4 { letter-spacing: -0.01em; }

/* ---------- Glass utility ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

/* ---------- Topbar (glass) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--top-h);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--c-text);
  display: flex; align-items: center;
  padding: 0 12px;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.08);
}
.topbar__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--c-primary-dk);
}
.topbar__brand-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(15,23,42,0.18));
}
.topbar__back {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-primary-dk);
  border-radius: 50%;
  transition: background .15s;
}
.topbar__back:hover { background: rgba(255,255,255,0.5); text-decoration: none; }
.topbar__title {
  flex: 1; margin: 0; text-align: center;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 6px;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}
.topbar__avatar {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dk) 100%);
  color: #fff; border-radius: 50%;
  font-weight: 600; text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(143, 74, 82, 0.35),
              inset 0 1px 0 rgba(255,255,255,0.35);
}
.topbar__avatar:hover {
  text-decoration: none;
  filter: brightness(0.95);
  color: #fff;
}
.topbar__spacer { width: 36px; }

/* ---------- Page container ---------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 14px 28px;
}
@media (min-width: 600px) {
  .page { padding: 20px 20px 32px; }
}

/* ---------- Bottom nav (glass) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-around;
  z-index: 30;
  box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.08);
}
.bottom-nav__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--c-muted);
  font-size: 11px;
  letter-spacing: 0.01em;
  gap: 3px;
  padding-top: 8px;
  transition: color .15s;
  position: relative;
}
.bottom-nav__item:hover { text-decoration: none; color: var(--c-primary); }
.bottom-nav__item.is-active { color: var(--c-primary); }
.bottom-nav__item.is-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--c-primary);
}
.bottom-nav__icon { width: 22px; height: 22px; display: block; }
.bottom-nav__icon svg { width: 100%; height: 100%; }
.bottom-nav__item.is-active .bottom-nav__icon svg { stroke-width: 2.2; }

/* ---------- Cards (glass) ---------- */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-glass);
  margin-bottom: 14px;
  border: 1px solid var(--glass-border);
  position: relative;
}
/* Vista-style "sheen" highlight at top */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
.card--primary {
  background:
    linear-gradient(135deg, rgba(183, 103, 112, 0.88) 0%, rgba(143, 74, 82, 0.92) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 36px rgba(143, 74, 82, 0.32),
              inset 0 1px 0 rgba(255,255,255,0.3);
}
.card--primary::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%);
}
.card--primary::after {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 116, 0.30) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.card--primary a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.card--muted {
  background: var(--glass-bg-soft);
  border-color: var(--glass-border);
}
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.card__title {
  margin: 0;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.005em;
  color: inherit;
}
.card__hint {
  color: var(--c-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card--primary .card__hint { color: rgba(255,255,255,0.75); }

/* ---------- List (glass) ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--glass-border);
  display: block;
  color: inherit;
  transition: transform .12s, box-shadow .12s, border-color .12s;
  position: relative;
}
.list-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.list-item > * { position: relative; z-index: 1; }
.list-item:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glass-hi);
  border-color: rgba(255,255,255,0.75);
}
.list-item__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.list-item__title { font-weight: 600; font-size: 15px; color: var(--c-text); }
.list-item__meta { color: var(--c-muted); font-size: 13px; margin-top: 4px; letter-spacing: 0.005em; }

/* ---------- Badge (translucent) ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge--success { background: var(--c-success-lt); color: var(--c-success); }
.badge--danger  { background: var(--c-danger-lt);  color: var(--c-danger);  }
.badge--info    { background: var(--c-info-lt);    color: var(--c-info);    }
.badge--warn    { background: var(--c-warn-lt);    color: var(--c-warn); }
.badge--muted   { background: rgba(255,255,255,0.55); color: var(--c-muted); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--c-muted);
}
.form-control,
input[type=text], input[type=email], input[type=password],
input[type=tel], input[type=date], input[type=number],
textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.04);
}
textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d585c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-control:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(183, 103, 112, 0.20);
  background: rgba(255, 255, 255, 0.96);
}
.form-control:disabled,
input:disabled { background: rgba(255, 255, 255, 0.4); color: var(--c-muted); cursor: not-allowed; }
.form-help { font-size: 12px; color: var(--c-muted); margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-dk) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .15s, box-shadow .15s, transform .08s, color .15s, border-color .15s;
  box-shadow: 0 3px 12px rgba(143, 74, 82, 0.28),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn:hover {
  text-decoration: none;
  filter: brightness(0.96);
  box-shadow: 0 5px 18px rgba(143, 74, 82, 0.38),
              inset 0 1px 0 rgba(255,255,255,0.3);
  color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn--block { display: flex; width: 100%; }
.btn--outline {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--c-primary-dk);
  border-color: rgba(183, 103, 112, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--c-primary-dk);
  border-color: var(--c-primary);
  filter: none;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--c-text);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--c-text);
  filter: none;
}
.btn--danger {
  background: linear-gradient(180deg, #c14444 0%, #933a3a 100%);
  box-shadow: 0 3px 12px rgba(155, 53, 53, 0.3),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--danger:hover { filter: brightness(0.96); }
.btn--gold {
  background: linear-gradient(180deg, var(--c-gold) 0%, var(--c-gold-dk) 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(161, 131, 79, 0.3),
              inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--sm { padding: 8px 14px; font-size: 12px; letter-spacing: 0.05em; }

/* ---------- Flash (glass-tinted) ---------- */
.flash {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid transparent;
  display: flex; gap: 8px; align-items: flex-start;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-glass);
}
.flash--success { background: var(--c-success-lt); color: #315438; border-color: rgba(195, 220, 200, 0.8); }
.flash--error   { background: var(--c-danger-lt);  color: #762424; border-color: rgba(230, 195, 195, 0.8); }

/* ---------- Auth screens ---------- */
.auth {
  min-height: calc(100vh - var(--top-h));
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 36px 24px 48px;
  max-width: 440px;
  margin: 0 auto;
}
.auth__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.auth__logo img {
  width: 140px; height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.25));
}
.auth__title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-text);
  text-shadow: 0 1px 2px rgba(255,255,255,0.35);
}
.auth__title--serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: 0.02em;
}
.auth__subtitle {
  margin: 0 0 26px;
  text-align: center;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(255,255,255,0.35);
}
.auth__tagline {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--c-muted);
  font-size: 14px;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.35);
}
.auth__footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--c-muted);
}

/* Auth form gets a glass panel around inputs for cohesion */
.auth form {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-glass);
  position: relative;
}
.auth form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0; height: 50%;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.auth form > * { position: relative; z-index: 1; }

/* ---------- Profile / key-value row ---------- */
.kv-list { display: flex; flex-direction: column; }
.kv-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(120, 85, 90, 0.14);
}
.kv-row:last-child { border-bottom: none; }
.kv-row__k { color: var(--c-muted); font-size: 12px; flex-shrink: 0;
             letter-spacing: 0.04em; text-transform: uppercase; padding-top: 1px; }
.kv-row__v { font-weight: 500; text-align: right; word-break: break-word; color: var(--c-text); }

/* ---------- Section titles ---------- */
.section-title {
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}
.section-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(120, 85, 90, 0.3) 0%, transparent 100%);
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--c-muted);
}
.empty__icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: inline-flex;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  align-items: center; justify-content: center;
  color: var(--c-primary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline__item {
  position: relative;
  padding: 0 0 20px 26px;
  border-left: 2px solid rgba(120, 85, 90, 0.22);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: -8px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(120, 85, 90, 0.5);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(120, 85, 90, 0.3);
}
.timeline__item--done::before    { background: var(--c-success); box-shadow: 0 0 0 1px var(--c-success); }
.timeline__item--missed::before  { background: var(--c-danger);  box-shadow: 0 0 0 1px var(--c-danger);  }
.timeline__item--pending::before { background: var(--c-gold);    box-shadow: 0 0 0 1px var(--c-gold);    }
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__time {
  font-size: 11px; color: var(--c-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.timeline__title { font-weight: 600; margin: 3px 0; color: var(--c-text); }
.timeline__body { font-size: 13px; color: var(--c-muted); }

/* ---------- Vital signs grid (glass) ---------- */
.vitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vitals__cell {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
.vitals__cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.vitals__k {
  font-size: 10px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  position: relative;
}
.vitals__v {
  font-size: 19px; font-weight: 700;
  margin-top: 4px;
  color: var(--c-text);
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
  position: relative;
}
.vitals__u {
  font-size: 11px; color: var(--c-muted);
  font-weight: 400; margin-left: 3px;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Quick grid (glass shortcuts) ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0 8px;
}
.quick-grid__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--c-text-2);
  padding: 12px 4px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  transition: transform .12s, box-shadow .12s, border-color .12s;
  letter-spacing: 0.01em;
  font-weight: 500;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
.quick-grid__item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.quick-grid__item:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass-hi);
  border-color: rgba(255,255,255,0.8);
}
.quick-grid__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(244, 227, 229, 0.9) 0%, rgba(250, 240, 241, 0.9) 100%);
  color: var(--c-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(143, 74, 82, 0.12),
              inset 0 1px 0 rgba(255,255,255,0.5);
}
.quick-grid__item:nth-child(2) .quick-grid__icon {
  background: linear-gradient(135deg, rgba(215, 224, 238, 0.9) 0%, rgba(233, 238, 246, 0.9) 100%);
  color: var(--c-secondary-dk);
  box-shadow: 0 2px 8px rgba(88, 111, 149, 0.14),
              inset 0 1px 0 rgba(255,255,255,0.5);
}
.quick-grid__item:nth-child(3) .quick-grid__icon {
  background: linear-gradient(135deg, rgba(232, 212, 173, 0.9) 0%, rgba(245, 236, 217, 0.9) 100%);
  color: var(--c-gold-dk);
  box-shadow: 0 2px 8px rgba(161, 131, 79, 0.14),
              inset 0 1px 0 rgba(255,255,255,0.5);
}
.quick-grid__item:nth-child(4) .quick-grid__icon {
  background: linear-gradient(135deg, rgba(200, 223, 205, 0.9) 0%, rgba(233, 241, 234, 0.9) 100%);
  color: var(--c-success);
  box-shadow: 0 2px 8px rgba(78, 122, 86, 0.14),
              inset 0 1px 0 rgba(255,255,255,0.5);
}
.quick-grid__item > *:not(.quick-grid__icon) { position: relative; z-index: 1; }

/* ---------- Filter tabs (glass pill) ---------- */
.tab-filter {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}
.tab-filter a {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab-filter a:hover { text-decoration: none; color: var(--c-text); }
.tab-filter a.is-active {
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-dk) 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(143, 74, 82, 0.28),
              inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ---------- Progress bar ---------- */
.progress {
  height: 8px;
  background: rgba(120, 85, 90, 0.15);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-gold) 100%);
  transition: width .3s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ---------- Misc ---------- */
.text-muted { color: var(--c-muted); }
.text-right { text-align: right; }
.text-small { font-size: 13px; }
.text-gold  { color: var(--c-gold-dk); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 85, 90, 0.25) 20%, rgba(120, 85, 90, 0.25) 80%, transparent 100%);
  margin: 16px 0;
}
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nowrap { white-space: nowrap; }

/* ---------- Fallback for browsers without backdrop-filter ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .list-item, .topbar, .bottom-nav, .tab-filter,
  .quick-grid__item, .vitals__cell, .empty__icon, .auth form,
  .btn--outline, .btn--ghost, .flash {
    background: rgba(255, 255, 255, 0.92) !important;
  }
  input, textarea, select { background: rgba(255,255,255,0.98) !important; }
}
