:root {
  --ink: #153025;
  --mint: #cce7d0;
  --mint-strong: #a4d1ac;
  --panel: rgba(255,255,255,0.9);
  --border: #d8e9db;
  --shadow: 0 12px 40px rgba(14, 45, 30, 0.12);
  --accent: #0f7c4a;
  --accent-2: #c4a46a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: url('./assets/lbgc-bg.png') center/cover no-repeat fixed, #e8f5eb;
}

/* Ensure UAT page remains interactive */
.uat-page * {
  pointer-events: auto !important;
  user-select: text !important;
}
.layout {
  position: relative;
  z-index: 1;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-shell {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(440px, 100%);
}
.auth-links {
  margin-top: 12px;
  text-align: center;
}
.auth-links .btn {
  display: inline-flex;
  justify-content: center;
}


/* Office cash log full background */
.office-page {
  min-height: 100vh;
  background: url('./assets/office-cash-bg.png') center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
.office-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: #2f4972;
  text-shadow: 0 4px 14px rgba(0,0,0,0.18);
  margin: 0;
}
.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 48px 0;
  gap: 10px;
  width: 100%;
}
.cash-topbar {
  padding: 12px 24px 0;
  justify-content: flex-start;
  gap: 12px;
}
.cash-card {
  margin: 18px auto 32px;
  width: min(920px, 100%);
  background: rgba(255,255,255,0.9);
  border: 1px solid #d8e9db;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(14,45,30,0.16);
  backdrop-filter: blur(4px);
  padding: 14px 16px 18px;
}
.cash-card--faded {
  opacity: 0.8; /* ~20% transparent */
}
.cash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 12px;
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,124,74,0.12);
  color: #0f7c4a;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #c4dfca;
}
.cash-form { display: grid; gap: 14px; }
.cash-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.field--full { grid-column: 1 / -1; }
.helper-text {
  margin: 6px 2px 0;
  color: #3a5146;
  font-size: 13px;
}
.helper-text code {
  background: #f2f8f4;
  padding: 2px 6px;
  border-radius: 6px;
}
.actions--right { justify-content: flex-end; }

/* Helpers and presets */
.helper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.pill-btn {
  border: 1px solid var(--border);
  background: #f6faf7;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}
.pill-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.pill-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  background: #fff;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  border: 1px solid #cfe5d4;
  background: #eef6f1;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Summary table */
.summary-panel {
  width: min(1100px, 100%);
  margin: 0 auto 48px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #d8e9db;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(14,45,30,0.12);
  padding: 14px 14px 18px;
}
.summary-panel--faded {
  opacity: 0.8; /* ~20% transparent */
}
.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
}
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #22382b;
}
.summary-table th,
.summary-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2f0e6;
}
.summary-table th {
  text-align: left;
  background: #f4faf6;
  font-weight: 700;
}
.summary-table tbody tr:nth-child(every) { background: #fff; }
.summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f7c4a;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15,124,74,0.1);
  border: 1px solid #b6d6be;
  transition: transform 0.1s, box-shadow 0.2s;
}
.back-link:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.hero {
  padding: 36px 48px 28px;
  background: linear-gradient(180deg, rgba(21,48,37,0.3), rgba(21,48,37,0.18));
  position: relative;
}
.hero-content {
  display: block;
  max-width: 1100px;
  color: #0d241b;
  background: rgba(255,255,255,0.72);
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid #e2f0e6;
  box-shadow: var(--shadow);
}
.hero-text { flex: 1; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 12px;
  color: #0f7c4a;
}
h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3vw, 32px);
}
.lede { margin: 0 0 6px; line-height: 1.5; }
.note { margin: 0; color: #2f463c; }

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  padding: 20px 48px 36px;
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; padding: 16px 24px 28px; }
  .topbar { padding: 10px 24px 0; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.panel.wide { grid-column: 1 / -1; }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
}
.panel-title { font-weight: 700; font-size: 18px; }
.panel-sub { color: #4a5b52; font-size: 14px; }
.panel-body { padding: 0 18px 18px; pointer-events: auto !important; }

.actions--wrap {
  flex-wrap: wrap;
  gap: 8px;
}
.pill-input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}
.pill-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  padding: 6px;
  background: transparent;
  color: var(--ink);
}
.pill-input input::placeholder { color: #7c8a82; }

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0f7c4a, #0c5e38);
  border-bottom: 1px solid #0a4a2d;
  box-shadow: 0 10px 24px rgba(12, 94, 56, 0.25);
}
.top-nav .brand {
  color: #e8f5eb;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  font-size: 18px;
}
.top-nav .nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #e8f5eb;
  padding: 6px 4px;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__icon {
  width: 18px;
  height: 2px;
  background: #e8f5eb;
  position: relative;
  display: inline-block;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #e8f5eb;
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.top-nav nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-nav nav .nav-link {
  color: rgba(233, 248, 237, 0.88);
  text-decoration: none;
  padding: 6px 0;
  border: none;
  background: transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.top-nav nav .nav-link:hover {
  color: #ffffff;
  text-decoration: none;
}
.top-nav .nav-link.active,
.top-nav .nav-link--btn.active {
  color: #ffffff;
  font-weight: 700;
}
.nav-dropdown {
  position: relative;
}
.nav-link--btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 6px 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
}
.top-nav nav .nav-link:focus-visible,
.top-nav nav .nav-link--btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}
.caret {
  display: inline-block;
  font-size: 0.7em;
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.nav-dropdown__menu {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(8, 64, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  padding: 8px;
  min-width: 220px;
  flex-direction: column;
  gap: 6px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav-dropdown__menu .nav-link {
  display: block;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  color: #e8f5eb;
}
.nav-dropdown__menu .nav-link:hover,
.nav-dropdown__menu .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
}
.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown.open .caret {
  transform: rotate(180deg);
}
.nav-dropdown.has-active > .nav-link--btn {
  color: #ffffff;
  font-weight: 700;
}
.top-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-nav .nav-email {
  color: rgba(233, 248, 237, 0.75);
  font-size: 14px;
  text-decoration: none;
}
.top-nav .nav-actions button {
  border: none;
  background: transparent;
  color: #e8f5eb;
  padding: 6px 0;
  cursor: pointer;
  box-shadow: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.top-nav .nav-actions button:hover {
  color: #ffffff;
}
.top-nav .nav-actions a:not(.nav-avatar) {
  color: #e8f5eb;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.top-nav .nav-actions a:not(.nav-avatar):hover {
  color: #ffffff;
}
.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.14);
  overflow: hidden;
  text-decoration: none;
}
.nav-avatar__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f7c4a, #0c5e38);
  color: #e8f5eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background-size: cover;
  background-position: center;
}
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-dropdown:hover .caret {
    transform: rotate(180deg);
  }
}
@media (max-width: 1040px) {
  .top-nav { flex-wrap: wrap; }
  .top-nav .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .top-nav nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 6px;
  }
  .top-nav.menu-open nav {
    display: flex;
  }
  .top-nav .nav-actions {
    width: 100%;
    display: none;
    justify-content: flex-start;
    gap: 14px;
    padding-top: 2px;
  }
  .top-nav.menu-open .nav-actions {
    display: flex;
  }
  .top-nav .nav-email {
    display: none;
  }
  .nav-dropdown__menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown.open .nav-dropdown__menu {
    display: flex;
  }
}
.feedback-footer {
  margin-top: 24px;
  background: rgba(232, 245, 235, 0.95);
  border-top: 1px solid #cfe5d4;
  padding: 6px 0 10px;
}
.feedback-bar {
  width: 100%;
  padding: 0 16px;
}
.feedback-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.feedback-bar__label {
  font-weight: 800;
  color: #0f7c4a;
  letter-spacing: 0.02em;
}
.feedback-bar input[data-feedback-message] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #b6d6be;
  border-radius: 10px;
  font-size: 14px;
}
.feedback-bar__status {
  min-width: 160px;
  font-size: 13px;
  color: #1f3d32;
}
@media (max-width: 860px) {
  .feedback-bar__inner {
    flex-wrap: wrap;
  }
  .feedback-bar__status {
    min-width: 0;
  }
}
.page,
.su-dashboard {
  padding-top: 12px;
}

.form-grid { display: grid; gap: 12px; }
.uat-page .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 12px;
  align-items: end;
}
.uat-page .access-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.uat-page .access-row input { max-width: 180px; }
.uat-page .access-row button {
    margin-top: auto;
    position: relative;
    top: -240px; /* lift the Validate button higher */
}
.uat-page .layout {
  gap: 16px;
  padding: 18px 32px 28px;
}
.uat-page .panel-header {
  padding: 14px 16px 10px;
}
.uat-page .panel-body {
  padding: 10px 16px 18px;
}
.uat-page .actions {
  gap: 10px;
  flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 6px; color: #4a5b52; }
.field input, .field select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  pointer-events: auto !important;
}
.field input[data-reg-email] {
  position: relative;
  z-index: 30;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.field input:disabled, .field select:disabled {
  background: #f1f5f2;
  color: #96a39a;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 10px;
}
button, .btn {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  font-family: 'Manrope', sans-serif;
  text-decoration: none;
}
button.primary, .btn.primary {
  background: linear-gradient(135deg, #0f7c4a, #0c5e38);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15,124,74,0.2);
}
button.ghost, .btn.ghost {
  background: #f7faf7;
  color: var(--ink);
  border: 1px solid var(--border);
}
button:disabled { opacity: 0.6; cursor: not-allowed; }

.drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.drop-header { font-weight: 700; margin-bottom: 6px; }
.dropzone {
  border: 1.5px dashed #b6d6be;
  border-radius: 12px;
  background: #f5fbf5;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.drop-inner { text-align: center; padding: 16px; }
.drop-title { font-weight: 700; }
.drop-sub { color: #4a5b52; margin-top: 4px; font-size: 14px; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.file-list {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 1px;
  overflow: hidden;
}
.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
}
.file-name { font-weight: 600; }
.file-meta { color: #4a5b52; font-size: 13px; }
.link-btn { color: #0f7c4a; background: transparent; border: none; padding: 6px 8px; }

.alert {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.alert.error { background: #ffecef; color: #b32632; border: 1px solid #ffc2cb; }
.alert.success { background: #edf9f0; color: #0f7c4a; border: 1px solid #c9ebd4; }
.alert.warning { background: #fff7e0; color: #8a6d00; border: 1px solid #ffe2a6; }

.checklist { display: grid; gap: 10px; }
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.item label { display: flex; flex-direction: column; gap: 4px; }
.item-title { font-weight: 700; }
.item-sub { color: #4a5b52; font-size: 13px; }
.item-actions { display: flex; align-items: center; gap: 12px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tag.ok { background: #edf9f0; color: #0f7c4a; }
.tag.missing { background: #fff7e0; color: #8a6d00; }
.tag.skip { background: #f0f0f0; color: #4a5b52; }

/* Navigation tiles */
.tiles-panel { margin: 16px 48px 0; }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  border: 1px solid #cfe5d4;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(210,235,216,0.9), rgba(224,243,229,0.95));
  box-shadow: 0 10px 24px rgba(14,45,30,0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14,45,30,0.16);
  border-color: #b9d8c0;
}
.tile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,124,74,0.1);
  color: #0f7c4a;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.tile-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; color: var(--ink); }
.tile-desc { margin: 0; color: #3c5148; font-size: 14px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(80px);
  background: #0f1f1a;
  color: #fdfbf7;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 14px;
  z-index: 30;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.instructions-panel { margin: 16px 48px 0; }
.instructions-body { display: grid; gap: 12px; }
.template-note { margin: 0 0 8px; color: #2f463c; }
.template-card {
  border: 1px dashed #b6d6be;
  border-radius: 14px;
  background: #f7faf7;
  padding: 12px 14px;
  display: grid;
  gap: 12px;
}
.template-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cfe5d4;
  background: #eef6f1;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}
.template-chip.subtle {
  background: #f6faf7;
  color: #3c5148;
}
.template-block {
  background: #fff;
  border: 1px solid #d8e9db;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 14px rgba(14,45,30,0.06);
}
.template-title { margin: 0 0 6px; font-weight: 800; color: #123121; }
.template-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #2f463c;
}
.template-list.ordered { list-style: decimal; padding-left: 20px; }
.template-list li { line-height: 1.5; }
.sub-list { margin: 6px 0 0; display: grid; gap: 2px; color: #2f463c; }

.cc-page,
.ob-page,
.os-page,
.mb-page,
.mt-page,
.hk-page,
.bm-page,
.fc-page,
.mem-page,
.uat-page {
  min-height: 100vh;
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  color: #0d241b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.su-page {
  min-height: 100vh;
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  color: #0d241b;
  background-color: #e8f5eb;
  background-image: none;
  display: block;
  padding: 0 0 32px;
  box-sizing: border-box;
}
.cc-page { background: url('./assets/office-credit-card.png') center/cover no-repeat fixed, #e8f5eb; }
.ob-page { background: url('./assets/office-banking.png') center/cover no-repeat fixed, #e8f5eb; }
.os-page { background: url('./assets/office-swipe-topups.png') center/cover no-repeat fixed, #e8f5eb; }
.mb-page { background: url('./assets/members-bills.png') center/cover no-repeat fixed, #e8f5eb; }
.mt-page { background: url('./assets/members-topups.png') center/cover no-repeat fixed, #e8f5eb; }
.hk-page { background: linear-gradient(135deg, #f6faf7, #e9f2ed); }
.bm-page,
.fc-page,
.mem-page,
.su-page,
.uat-page {
  background-color: #e8f5eb;
  background-image: none;
}
.mem-page {
  align-items: flex-start;
  justify-content: flex-start;
}
.mem-page .page-stack {
  align-items: center;
  margin-top: 12px;
}
.mem-page .page-stack .topbar {
  align-self: stretch;
  width: 100%;
  padding: 12px 48px 0;
}
.cta-optout {
  border: 1px solid #c94747;
  background: linear-gradient(135deg, #d94f4f, #b83232);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.cta-optout:hover {
  transform: translateY(-1px);
}
.access-status {
  font-weight: 700;
  color: #0f7c4a;
}
.cc-overlay {
  background: rgba(255,255,255,0.85);
  border: 1px solid #d8e9db;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 16px 44px rgba(14,45,30,0.16);
  max-width: 520px;
  width: min(520px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.info-banner {
  width: min(900px, 95%);
  background: rgba(255,255,255,0.94);
  border: 1px solid #d8e9db;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(14,45,30,0.12);
  color: #123121;
  line-height: 1.6;
}
.info-banner strong { display: block; margin-bottom: 6px; }

.mem-page .info-banner,
.mem-page .cc-overlay {
  width: min(900px, 98%);
  max-width: 900px;
}
.cc-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 3vw, 28px);
}
.cc-note {
  margin: 0 0 16px;
  color: #2f463c;
}
.cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,124,74,0.1);
  color: #0f7c4a;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #b9d8c0;
  font-size: 13px;
}
.cc-info-card {
  text-align: left;
  background: rgba(255,255,255,0.94);
  border: 1px solid #d8e9db;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(14,45,30,0.12);
}
.cc-info-card strong { display: block; margin-bottom: 4px; }
.cc-info-card p { margin: 0; color: #2f463c; line-height: 1.5; }

.hk-page .page { min-height: 100vh; }
.hk-shell { padding-bottom: 80px; }
.hk-hero { padding-bottom: 10px; }
.hk-hero-content {
  border-left: 6px solid #0f7c4a;
  box-shadow: 0 14px 34px rgba(14,45,30,0.12);
}
.hk-layout { grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 1080px) { .hk-layout { grid-template-columns: 1fr; } }
.hk-panel .panel-body { padding-top: 12px; }
.hk-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e9db;
  border-radius: 12px;
  background: #fff;
}
.hk-table th, .hk-table td { white-space: nowrap; }
.hk-empty {
  padding: 12px;
  font-weight: 700;
  color: #2f463c;
}
.hk-alert {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cde3d2;
  background: #f4faf6;
  font-weight: 700;
}
.hk-alert--error { border-color: #e6b4b4; background: #fbeeee; color: #9a1d1d; }
.hk-alert--warning { border-color: #f1d7a3; background: #fff8eb; color: #9a6b1d; }
.hk-alert--success { border-color: #b6d6be; background: #edf8f0; color: #0f7c4a; }
.hk-alert--info { color: #1f3d32; }
.hk-add {
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed #cfe5d4;
  border-radius: 12px;
  background: #f7fbf8;
}
.hk-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  align-items: end;
}
.hk-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hk-pill--warn { background: #ffe9dc; color: #b24f0b; }
.hk-pill--info { background: #e7f3ec; color: #0f7c4a; }
.hk-strong { font-weight: 800; color: #153025; }
.hk-list { margin: 8px 0 0; padding-left: 18px; color: #2f463c; }
.hk-list li { margin-bottom: 6px; }
.hk-summary .panel-body { padding-top: 0; }
.hk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cfe5d4;
  background: #f4faf6;
  font-weight: 800;
  color: #0f7c4a;
}
.hk-badge--warn { background: #fff1e3; border-color: #f3cba6; color: #b24f0b; }
.hk-badge--ok { background: #e7f3ec; border-color: #cfe5d4; color: #0f7c4a; }

/* Super User dashboard */
.su-dashboard { max-width: 1200px; margin: 0 auto; padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 18px; }
.su-dashboard .panel-header { align-items: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat-card { background: rgba(255,255,255,0.9); border: 1px solid #d8e9db; border-radius: 12px; padding: 12px 14px; box-shadow: 0 6px 14px rgba(13,36,27,0.08); }
.stat-label { font-size: 13px; color: #4a5b52; margin-bottom: 6px; }
.stat-number { font-size: 26px; font-weight: 800; color: #0f7c4a; }
.table-wrapper {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.table-slim {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table-wrapper .table-slim {
  min-width: 720px;
}
.table-slim th,
.table-slim td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2f0e6;
  text-align: left;
  vertical-align: top;
}
.table-slim th { background: #f4faf6; font-weight: 700; }
.two-col { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.muted { color: #5f7168; font-size: 13px; }
.page-title { margin: 0; }
.page-subtitle { margin: 4px 0 0; color: #5f7168; }

@media (max-width: 1080px) {
  .tiles-panel { margin: 12px 24px 0; }
  .instructions-panel { margin: 12px 24px 0; }
}

@media (max-width: 1400px) {
  .tiles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
