/* =========================================================================
   Accounts@IET-DAVV — Institutional Accounts Management Portal
   public/css/style.css
   Institute of Engineering & Technology, DAVV, Indore
   ---------------------------------------------------------------------
   Design language: ledger / seal-of-office. Navy is the institution,
   gold is the mark of authority (approvals, totals, the seal). Ledger
   rule-lines run through headers as a quiet nod to an accounts register.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* ---- Brand tokens ---- */
  --navy-950: #0a1f44;      /* primary */
  --navy-900: #081a3a;      /* headers, sidebar base */
  --navy-800: #0f2a5c;      /* hover surfaces on navy */
  --navy-700: #16386f;      /* borders on navy */
  --navy-050: #eef1f7;      /* tinted page background */
  --navy-025: #f6f8fb;      /* card wells */

  --gold-600: #a9853a;      /* gold hover / pressed */
  --gold-500: #c9a84c;      /* accent */
  --gold-300: #e3cd8d;      /* gold tint (borders, dividers) */
  --gold-100: #f8f1de;      /* gold wash background */

  --ink-900: #1a2033;       /* primary text */
  --ink-600: #4c5470;       /* secondary text */
  --ink-400: #838ba6;       /* muted / placeholder */
  --line: #dde2ee;          /* hairline borders */
  --line-soft: #e8ebf3;

  --white: #ffffff;

  --success-ink: #1c6b45;
  --success-bg: #e6f4ec;
  --success-line: #bfe3cd;

  --danger-ink: #a3271c;
  --danger-bg: #fbeae8;
  --danger-line: #f1c3bd;

  --pending-ink: #8a6a12;
  --pending-bg: #fbf1d9;
  --pending-line: #ecd58e;

  --info-ink: #1c4f8a;
  --info-bg: #e8f0fb;
  --info-line: #bcd4ef;

  /* ---- Type ---- */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* ---- Elevation / radius ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 20px 60px rgba(8, 20, 48, 0.35);

  --sidebar-w: 264px;
  --topbar-h: 72px;
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--navy-050);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--gold-600); }

.mono, .amount, td.amount, .ref-no { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   Ledger rule-line motif — reusable background texture
   ========================================================================= */
.ledger-lines {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 27px,
    rgba(255, 255, 255, 0.045) 28px
  );
}

.divider-dotted {
  border: none;
  border-top: 2px dotted var(--gold-300);
  margin: 20px 0;
}

/* =========================================================================
   Seal / monogram — the signature element
   ========================================================================= */
.seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, var(--navy-800), var(--navy-950) 70%);
}
.seal::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 168, 76, 0.55);
}
.seal span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold-500);
  letter-spacing: 0.03em;
}
.seal.seal-sm { width: 40px; height: 40px; }
.seal.seal-sm span { font-size: 12px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy-950);
  color: var(--white);
  border-color: var(--navy-950);
}
.btn-primary:hover { background: var(--navy-800); color: var(--white); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}
.btn-gold:hover { background: var(--gold-600); }

.btn-outline {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy-950); background: var(--navy-050); }

.btn-danger {
  background: var(--white);
  color: var(--danger-ink);
  border-color: var(--danger-line);
}
.btn-danger:hover { background: var(--danger-bg); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* =========================================================================
   Forms
   ========================================================================= */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-600);
  margin-bottom: 7px;
}

.field .hint {
  font-size: 12.5px;
  color: var(--ink-400);
  margin-top: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control::placeholder { color: var(--ink-400); }
.form-control:focus {
  border-color: var(--navy-800);
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.10);
}
.form-control.is-invalid { border-color: var(--danger-ink); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(163, 39, 28, 0.12); }

.invalid-feedback {
  display: block;
  font-size: 12.5px;
  color: var(--danger-ink);
  margin-top: 6px;
  font-weight: 500;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234c5470' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.input-group { position: relative; }
.input-group .form-control { padding-right: 44px; }
.input-group-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-400);
  cursor: pointer;
  padding: 6px;
  display: flex;
}
.input-group-btn:hover { color: var(--navy-800); }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-600);
}
.checkbox-row input { accent-color: var(--navy-950); width: 16px; height: 16px; }

/* =========================================================================
   LOGIN PAGE
   ========================================================================= */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(201, 168, 76, 0.16), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(201, 168, 76, 0.10), transparent 55%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, #061229 100%);
  position: relative;
}

.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 33px, rgba(255,255,255,0.035) 34px
  );
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--gold-500);
}

.auth-card__header {
  padding: 34px 32px 22px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

.auth-card__header .seal { margin: 0 auto 16px; }

.auth-card__header h1 {
  font-size: 21px;
  margin-bottom: 4px;
}
.auth-card__header .institution {
  font-size: 12.5px;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}
.auth-card__header .tagline {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-400);
  border-top: 1px dotted var(--gold-300);
  padding-top: 10px;
}

.auth-card__body { padding: 28px 32px 32px; }

.role-select-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-400);
  margin-top: -8px;
  margin-bottom: 18px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 20px;
}

.auth-card__footer {
  background: var(--navy-050);
  padding: 16px 32px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-400);
  border-top: 1px solid var(--line-soft);
}
.auth-card__footer strong { color: var(--ink-600); }

/* OTP boxes (forgot-password flow) */
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 20px;
}
.otp-box {
  width: 46px;
  height: 54px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-950);
}
.otp-box:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,168,76,0.20); outline: none; }

/* =========================================================================
   APP SHELL — sidebar + topbar + content
   ========================================================================= */
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(185deg, var(--navy-950), var(--navy-900) 80%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 40;
  box-shadow: 2px 0 24px rgba(6, 15, 36, 0.18);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar__brand .brand-text { line-height: 1.25; }
.sidebar__brand .brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--white);
}
.sidebar__brand .brand-text span {
  display: block;
  font-size: 10.5px;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar__nav { flex: 1; overflow-y: auto; padding: 14px 12px; }

.nav-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  padding: 14px 12px 6px;
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-link i { font-size: 16px; width: 18px; text-align: center; opacity: 0.85; }
.nav-link:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-link.active {
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold-300);
  border-left-color: var(--gold-500);
  font-weight: 600;
}

.sidebar__footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}
.sidebar__footer strong { color: rgba(255,255,255,0.6); }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  margin-left: var(--sidebar-w);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 30;
}
.topbar__greeting { line-height: 1.3; }
.topbar__greeting .eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-400);
  font-weight: 600;
}
.topbar__greeting h2 { font-size: 18px; margin: 0; }

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

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.user-chip .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-400, var(--gold-500));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
.user-chip .who { line-height: 1.2; }
.user-chip .who strong { display: block; font-size: 13px; }
.user-chip .who span { font-size: 11px; color: var(--ink-400); text-transform: capitalize; }

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  padding: 28px;
  max-width: 1360px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-head h1 { font-size: 24px; margin-bottom: 4px; }
.page-head .breadcrumb { font-size: 12.5px; color: var(--ink-400); }
.page-head .breadcrumb span { color: var(--navy-800); font-weight: 600; }

/* =========================================================================
   Stat cards
   ========================================================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold-500);
}
.stat-card .stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: 10px;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--navy-950);
  font-weight: 600;
}
.stat-card .stat-value small { font-size: 14px; color: var(--ink-400); font-family: var(--font-body); }
.stat-card .stat-delta { font-size: 12.5px; margin-top: 8px; font-weight: 600; }
.stat-delta.up { color: var(--success-ink); }
.stat-delta.down { color: var(--danger-ink); }

/* Progress bars (budget utilisation) */
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--navy-050);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
}
.progress-fill.danger { background: linear-gradient(90deg, #d1685c, var(--danger-ink)); }
.progress-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-400);
  margin-top: 6px;
}

/* =========================================================================
   Panels / cards
   ========================================================================= */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
  gap: 10px;
}
.panel__head h3 { font-size: 16px; margin: 0; }
.panel__head .sub { font-size: 12.5px; color: var(--ink-400); margin-top: 2px; }
.panel__body { padding: 22px; }
.panel__toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* =========================================================================
   Tables — ledger styling
   ========================================================================= */
.table-wrap { overflow-x: auto; }

table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.ledger thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--navy-050);
  color: var(--ink-600);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 2px solid var(--gold-300);
  white-space: nowrap;
}
table.ledger tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-900);
  vertical-align: middle;
}
table.ledger tbody tr:hover { background: var(--navy-025); }
table.ledger tbody tr:last-child td { border-bottom: none; }
table.ledger td.amount, table.ledger th.amount { text-align: right; }
table.ledger .row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.table-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-400);
}
.table-empty i { font-size: 30px; color: var(--gold-300); display: block; margin-bottom: 10px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-400);
}
.pagination .pages { display: flex; gap: 4px; }
.pagination .pages a, .pagination .pages span {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink-600);
  font-weight: 600;
}
.pagination .pages a:hover { background: var(--navy-050); }
.pagination .pages .current { background: var(--navy-950); color: var(--white); }

/* =========================================================================
   Status badges
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success-ink); border-color: var(--success-line); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-ink);  border-color: var(--danger-line); }
.badge-pending { background: var(--pending-bg); color: var(--pending-ink); border-color: var(--pending-line); }
.badge-info    { background: var(--info-bg);    color: var(--info-ink);    border-color: var(--info-line); }
.badge-neutral { background: var(--navy-050); color: var(--ink-600); border-color: var(--line); }

/* Tabs (superadmin user management) */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}
.tab {
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-400);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab:hover { color: var(--navy-800); }
.tab.active { color: var(--navy-950); border-bottom-color: var(--gold-500); }

/* =========================================================================
   Modal
   ========================================================================= */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 20, 48, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold-500);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.modal__head h3 { font-size: 16px; margin: 0; }
.modal__close { background: none; border: none; color: var(--ink-400); cursor: pointer; font-size: 18px; }
.modal__body { padding: 22px 24px; overflow-y: auto; }
.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* =========================================================================
   Toasts
   ========================================================================= */
.toast-stack {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--navy-950);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  border-left: 4px solid var(--gold-500);
  font-size: 13.5px;
  animation: toast-in 0.25s ease;
}
.toast.success { border-left-color: #46c584; }
.toast.error { border-left-color: #e2685a; }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Print view (budget / fee reports)
   ========================================================================= */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0; padding: 0; }
  body { background: var(--white); }
}

/* =========================================================================
   PUBLIC HOME / LANDING PAGE
   ========================================================================= */

.public-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.public-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-nav__brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.public-nav__brand .brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--white);
}
.public-nav__brand .brand-text span {
  display: block;
  font-size: 10.5px;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.public-nav__links { display: flex; align-items: center; gap: 26px; }
.public-nav__links a:not(.btn) {
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  font-weight: 500;
}
.public-nav__links a:not(.btn):hover { color: var(--gold-300); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 480px at 12% -10%, rgba(201, 168, 76, 0.15), transparent 60%),
    radial-gradient(800px 460px at 105% 10%, rgba(201, 168, 76, 0.10), transparent 55%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 60%, #061229 100%);
  color: var(--white);
  padding: 76px 28px 88px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 33px, rgba(255,255,255,0.035) 34px
  );
  pointer-events: none;
}
.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  font-weight: 700;
  border: 1px solid rgba(201,168,76,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 560px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-400, var(--gold-500));
}
.hero p.lead {
  color: rgba(255,255,255,0.72);
  font-size: 15.5px;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dotted rgba(201,168,76,0.4);
  display: flex;
  gap: 34px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}
.hero__meta strong { display: block; color: var(--white); font-family: var(--font-mono); font-size: 18px; }

/* Hero seal panel */
.hero__panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
  backdrop-filter: blur(2px);
}
.hero__panel .seal { width: 88px; height: 88px; margin: 0 auto 18px; }
.hero__panel .seal span { font-size: 22px; }
.hero__panel h3 { color: var(--white); font-size: 17px; margin-bottom: 6px; }
.hero__panel p { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 22px; }

/* Section shell */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 28px;
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head .kicker {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 28px; margin-bottom: 10px; }
.section-head p { color: var(--ink-600); font-size: 14.5px; }

/* Role access cards */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.role-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: block;
}
.role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}
.role-card .role-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--navy-050);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.role-card.role-featured .role-icon { background: var(--gold-100); color: var(--gold-600); }
.role-card h4 { font-size: 15.5px; margin-bottom: 6px; color: var(--navy-950); }
.role-card p { font-size: 12.8px; color: var(--ink-600); margin-bottom: 16px; min-height: 52px; }
.role-card .role-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-900);
}
.role-card:hover .role-cta { color: var(--gold-600); }

/* Services strip */
.svc-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.svc-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--navy-025);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}
.svc-item .svc-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.svc-item h4 { font-size: 14.5px; margin-bottom: 4px; }
.svc-item p { font-size: 12.5px; color: var(--ink-600); margin: 0; }

/* Public footer */
.public-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.55);
  padding: 36px 28px 26px;
  font-size: 12.5px;
}
.public-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px dotted rgba(201,168,76,0.3);
  padding-top: 20px;
}
.public-footer strong { color: rgba(255,255,255,0.85); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 992px) {
  :root { --sidebar-w: 224px; }
  .main-content { padding: 20px; }
}

@media (max-width: 768px) {
  .sidebar {
    left: -100%;
    transition: left 0.2s ease;
  }
  .sidebar.open { left: 0; }
  .topbar, .main-content { margin-left: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .auth-card { max-width: 100%; }
}

/* Live portal additions */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.filter-bar{display:flex;gap:10px;margin-bottom:18px;align-items:center}.filter-bar .form-control{max-width:280px}.narrow{max-width:620px}.compact{padding:6px 8px;margin-bottom:6px}.progress-row{margin-bottom:20px}.progress-label{display:flex;justify-content:space-between;font-weight:600}.tabs{display:flex;gap:6px;margin-bottom:18px;border-bottom:1px solid var(--line)}.tabs a{padding:10px 16px;text-transform:capitalize;font-weight:600}.tabs a.active{color:var(--navy-950);border-bottom:3px solid var(--gold-500)}dialog{border:0;padding:0;border-radius:var(--radius-md);box-shadow:var(--shadow-lg);width:min(94vw,560px);max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow-x:hidden;overflow-y:auto}dialog:has(.dialog-card.wide){width:min(94vw,760px)}dialog::backdrop{background:rgba(8,26,58,.65)}.dialog-card{background:#fff;width:100%;min-width:0}.dialog-card.wide{width:100%}.icon-btn{border:0;background:transparent;font-size:26px;cursor:pointer}.btn-outline.light{border-color:rgba(255,255,255,.3);color:#fff}.services-section{background:var(--navy-050);max-width:none}.row-actions form{display:inline-flex}textarea.form-control{min-height:90px;resize:vertical}small{color:var(--ink-400)}
@media(max-width:760px){.form-grid{grid-template-columns:1fr}.filter-bar{align-items:stretch;flex-direction:column}.filter-bar .form-control{max-width:none}.topbar{height:auto;min-height:64px}.user-chip .who{display:none}}

/* Home login popup */
.home-login-dialog{width:min(92vw,480px);max-height:calc(100vh - 32px);overflow:auto}.home-login-card{width:100%}.home-login-head{display:flex;align-items:center;gap:13px;padding:20px 22px;background:var(--navy-950);border-bottom:3px solid var(--gold-500);color:#fff}.home-login-head h3{color:#fff;font-size:18px;margin:0 0 2px}.home-login-head p{margin:0;color:rgba(255,255,255,.65);font-size:12.5px}.home-login-head .icon-btn{margin-left:auto;color:#fff}.home-login-notice{padding:10px 12px;margin-bottom:16px;border:1px solid var(--pending-line);border-radius:6px;background:var(--pending-bg);color:var(--pending-ink);font-size:13px}.home-login-links{text-align:right;margin:-7px 0 18px;font-size:13px}.home-login-actions{display:flex;justify-content:flex-end;gap:10px}.home-login-actions .btn{min-width:112px}@media(max-width:520px){.home-login-actions{flex-direction:column-reverse}.home-login-actions .btn{width:100%}}

/* Shared institutional logo used on Home, authentication, and dashboards */
.seal{background-color:#fff;background-image:url('/logo.jpeg');background-size:cover;background-position:center;background-repeat:no-repeat;border-color:var(--gold-500);box-shadow:0 2px 10px rgba(0,0,0,.2)}
.seal::before{display:none}.seal span{display:none}

/* Quick Access is redundant now that every login action opens one modal. */
.hero__panel{display:none}.hero__inner{grid-template-columns:minmax(0,820px);justify-content:start}

/* Dashboard title block alignment */
.sidebar__brand{justify-content:flex-start;text-align:left}.sidebar__brand .brand-text{text-align:left}

/* Keep the Home logo/title at the page's true left padding, not centered in a max-width wrapper. */
.public-nav__inner{width:100%;max-width:none;margin:0;padding-left:28px;padding-right:28px}.public-nav__brand{margin-right:auto;text-align:left}
