:root {
  --lig-navy: #0b1f3a;
  --lig-gold: #c8962e;
  --lig-gold-light: #f2d48a;
  --lig-gold-pale: #fbf4e3;
  --lig-blue: #1a3a5c;
  --lig-blue-mid: #2c5f8a;
  --lig-surface: #f7f5f0;
  --lig-white: #ffffff;
  --lig-text: #0b1f3a;
  --lig-text-muted: #5a6b7e;
  --lig-border: #ddd5c8;
  --lig-success: #1a6b3a;
  --lig-success-bg: #e8f5ee;
  --lig-danger: #8b1a1a;
  --lig-danger-bg: #fceaea;
  --lig-warn: #7a4f00;
  --lig-warn-bg: #fff4d9;
  --lig-info: #0b3d6b;
  --lig-info-bg: #e4eef8;
  --radius: 8px;
  --radius-lg: 12px;
  font-family: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--lig-surface);
  color: var(--lig-text);
  min-height: 100vh;
  font-size: 14px;
}

/* ── AUTH ── */
html.is-authenticated body {
  background: var(--lig-surface) !important;
}

html.is-authenticated #auth-screen {
  display: none !important;
}

html.is-authenticated #app {
  display: flex !important;
  flex-direction: column !important;
}

#auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b1f3a 60%, #1a3a5c);
  padding: 2rem;
}

.auth-card {
  background: var(--lig-white);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .monogram {
  width: 64px;
  height: 64px;
  background: var(--lig-navy);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-logo .monogram span {
  color: var(--lig-gold);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.auth-logo h1 {
  font-size: 20px;
  color: var(--lig-navy);
  font-weight: 700;
}

.auth-logo p {
  font-size: 12px;
  color: var(--lig-text-muted);
  margin-top: 4px;
  font-family: sans-serif;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--lig-text-muted);
  margin-bottom: 6px;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--lig-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: sans-serif;
  color: var(--lig-text);
  background: var(--lig-white);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lig-gold);
}

.pw-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pw-input-wrapper input {
  width: 100%;
  padding-right: 42px !important;
}

.pw-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--lig-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 0;
}

.pw-toggle-btn:hover {
  color: var(--lig-navy);
  background: rgba(0, 0, 0, 0.06);
}

.pw-toggle-btn:focus-visible {
  outline: 2px solid var(--lig-gold);
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: sans-serif;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--lig-navy);
  color: var(--lig-gold);
}

.btn-primary:hover {
  background: var(--lig-blue);
}

.btn-gold {
  background: var(--lig-gold);
  color: var(--lig-navy);
}

.btn-gold:hover {
  background: #b0821e;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: var(--lig-danger-bg);
  color: var(--lig-danger);
  border: 1px solid #e8b4b4;
}

.btn-danger:hover {
  background: #f5c6c6;
}

.btn-success {
  background: var(--lig-success-bg);
  color: var(--lig-success);
  border: 1px solid #a8d5b8;
}

.btn-outline {
  background: transparent;
  color: var(--lig-navy);
  border: 1px solid var(--lig-border);
}

.btn-outline:hover {
  background: #eed28b;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── APP SHELL ── */
#app {
  display: none;
  min-height: 100vh;
  background: var(--lig-surface);
}

#app.active {
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--lig-navy);
  color: var(--lig-white);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(200, 150, 46, 0.3);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-brand .tb-logo {
  width: 32px;
  height: 32px;
  background: var(--lig-gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--lig-navy);
}

.topbar-brand span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.topbar-brand .role-badge {
  font-size: 10px;
  background: rgba(200, 150, 46, 0.2);
  color: var(--lig-gold-light);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(200, 150, 46, 0.4);
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-user {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-family: sans-serif;
}

.nav-tabs {
  background: var(--lig-blue);
  padding: 0 1.5rem;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}

.nav-tab {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.15s;
}

.nav-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-tab.active {
  color: var(--lig-gold);
  border-bottom-color: var(--lig-gold);
}

.main-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── CARDS ── */
.card {
  background: var(--lig-white);
  border: 1px solid var(--lig-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--lig-border);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--lig-navy);
  font-family: sans-serif;
}

.card-subtitle {
  font-size: 12px;
  color: var(--lig-text-muted);
  font-family: sans-serif;
  margin-top: 2px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--lig-white);
  border: 1px solid var(--lig-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lig-gold);
}

.kpi-label {
  font-size: 11px;
  color: var(--lig-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: sans-serif;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--lig-navy);
  font-family: sans-serif;
}

.kpi-sub {
  font-size: 11px;
  color: var(--lig-text-muted);
  font-family: sans-serif;
  margin-top: 4px;
}

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 13px;
}

th {
  background: var(--lig-surface);
  color: var(--lig-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--lig-border);
  font-weight: 600;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0ede8;
  color: var(--lig-text);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #fafaf8;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: sans-serif;
}

.badge-active {
  background: var(--lig-success-bg);
  color: var(--lig-success);
}

.badge-inactive {
  background: var(--lig-warn-bg);
  color: var(--lig-warn);
}

.badge-exited {
  background: #f0ede8;
  color: #888;
}

.badge-savings {
  background: var(--lig-info-bg);
  color: var(--lig-info);
}

.badge-welfare {
  background: #eee8f8;
  color: #4a2d8a;
}

.badge-penalty {
  background: var(--lig-danger-bg);
  color: var(--lig-danger);
}

.badge-interest {
  background: #e8f5ee;
  color: #1a5c2e;
}

.badge-admin {
  background: var(--lig-warn-bg);
  color: var(--lig-warn);
}

.badge-admin-fee {
  background: var(--lig-warn-bg);
  color: var(--lig-warn);
}

.badge-exit {
  background: #f5e8e8;
  color: #7a2020;
}

.badge-exit-penalty {
  background: #f5e8e8;
  color: #7a2020;
}

.badge-withdrawal {
  background: #eee8f8;
  color: #4a2d8a;
}

.badge-correction {
  background: #f0ede8;
  color: #666;
}

.badge-expense {
  background: #f3eaf8;
  color: #5c1a8a;
}

.badge-expense-welfare {
  background: #eee8f8;
  color: #4a2d8a;
}

.badge-expense-admin {
  background: var(--lig-warn-bg);
  color: var(--lig-warn);
}

.badge-expense-savings-refund {
  background: var(--lig-info-bg);
  color: var(--lig-info);
}

/* ── MODAL ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--lig-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--lig-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--lig-navy);
  font-family: sans-serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--lig-text-muted);
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--lig-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: sans-serif;
  font-size: 13px;
  margin-bottom: 1rem;
}

.alert-success {
  background: var(--lig-success-bg);
  color: var(--lig-success);
  border: 1px solid #a8d5b8;
}

.alert-error {
  background: var(--lig-danger-bg);
  color: var(--lig-danger);
  border: 1px solid #e8b4b4;
}

.alert-info {
  background: var(--lig-info-bg);
  color: var(--lig-info);
  border: 1px solid #a8c8e8;
}

/* ── STATEMENT ── */
.statement-header {
  background: var(--lig-navy);
  color: var(--lig-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.statement-body {
  border: 1px solid var(--lig-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.stmt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1.25rem;
  border-bottom: 1px solid #f0ede8;
  font-family: sans-serif;
  font-size: 13px;
}

.stmt-row:last-child {
  border-bottom: none;
}

.stmt-row.debit {
  color: var(--lig-danger);
}

.stmt-row.credit {
  color: var(--lig-success);
}

.stmt-row.balance {
  font-weight: 700;
  font-size: 14px;
  color: var(--lig-navy);
  background: var(--lig-surface);
}

.stmt-row.section-head {
  background: var(--lig-gold-pale);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lig-text-muted);
}

/* ── AUDIT ── */
.audit-entry {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ede8;
  font-family: sans-serif;
  font-size: 12px;
}

.audit-time {
  color: var(--lig-text-muted);
  white-space: nowrap;
  min-width: 140px;
}

.audit-user {
  font-weight: 600;
  color: var(--lig-navy);
}

/* ── SECTION ── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--lig-navy);
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 13px;
  color: var(--lig-text-muted);
  font-family: sans-serif;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.flex-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── MEMBER HERO ── */
.member-hero {
  background: var(--lig-navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--lig-white);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.member-hero::after {
  content: "LIG";
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 120px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -4px;
}

.member-hero h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.member-hero p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: sans-serif;
}

.member-hero .balance-display {
  font-size: 32px;
  font-weight: 700;
  color: var(--lig-gold);
  margin-top: 1rem;
}

/* ── UTILS ── */
.text-right {
  text-align: right;
}

.text-muted {
  color: var(--lig-text-muted);
  font-family: sans-serif;
}

.text-success {
  color: var(--lig-success);
}

.text-danger {
  color: var(--lig-danger);
}

.text-gold {
  color: var(--lig-gold);
}

.font-sans {
  font-family: sans-serif;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--lig-text-muted);
  font-family: sans-serif;
}

.empty-state p {
  font-size: 14px;
}

#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--lig-navy);
  color: var(--lig-white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-family: sans-serif;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
  border-left: 3px solid var(--lig-gold);
  max-width: 320px;
}

@media print {

  .topbar,
  .nav-tabs,
  .btn,
  #toast {
    display: none !important;
  }
}

/* ── Print overlay ── */
@media print {
  body>*:not(#_print_overlay) {
    display: none !important;
  }

  #_print_overlay {
    position: static !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #_print_toolbar {
    display: none !important;
  }

  .statement-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  @page {
    margin: 1.5cm;
    size: A4;
  }
}

/* ═══ UI REFRESH v7 ═══ */
:root {
  --lig-shadow:
    0 1px 2px rgba(11, 31, 58, 0.05), 0 6px 18px rgba(11, 31, 58, 0.06);
  --lig-ring: 0 0 0 3px rgba(200, 150, 46, 0.22);
}

body {
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.section-sub {
  margin-bottom: 1.25rem;
  max-width: 720px;
  line-height: 1.5;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.page-head .section-sub {
  margin-bottom: 1rem;
}

.topbar {
  background: linear-gradient(90deg, #0b1f3a, #12304f);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  border-bottom: 0;
}

.topbar-brand .tb-logo {
  background: linear-gradient(135deg, #e2b04a, #b8861f);
  box-shadow: 0 2px 8px rgba(200, 150, 46, 0.4);
}

.card,
.kpi-card {
  border-color: #e6e0d5;
  box-shadow: var(--lig-shadow);
  border-radius: 14px;
}

.kpi-card {
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(11, 31, 58, 0.06),
    0 12px 24px rgba(11, 31, 58, 0.09);
}

.kpi-card::before {
  height: 4px;
  background: linear-gradient(90deg, #c8962e, #f2d48a);
}

.kpi-value {
  letter-spacing: -0.3px;
}

th {
  position: sticky;
  top: 0;
  background: #faf8f3;
  z-index: 1;
}

tr:hover td {
  background: #fbf9f4;
}

td,
th {
  padding: 11px 14px;
}

.btn {
  border-radius: 9px;
  transition:
    transform 0.1s,
    box-shadow 0.15s,
    background 0.15s;
}

.btn:hover {
  box-shadow: 0 3px 10px rgba(11, 31, 58, 0.15);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.pill:focus-visible,
.nav-tab:focus-visible {
  outline: none;
  box-shadow: var(--lig-ring);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: var(--lig-ring);
}

input,
select,
textarea {
  font-family: inherit;
}

td input,
td select,
.flex-row input,
.flex-row select,
.att-sel {
  padding: 7px 10px;
  border: 1px solid var(--lig-border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}

.modal-backdrop {
  backdrop-filter: blur(3px);
}

.modal {
  border-radius: 16px;
  animation: lig-pop 0.18s ease-out;
}

@keyframes lig-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#toast {
  border-radius: 10px;
  border-left: 4px solid var(--lig-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.badge {
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

.empty-state {
  padding: 2rem 1rem;
}

/* sidebar navigation (desktop) */
.nav-tabs {
  background: linear-gradient(180deg, #14304f, #0e2640);
  padding: 8px 10px;
  gap: 2px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-tab.active {
  background: rgba(200, 150, 46, 0.18);
  color: #f2d48a;
  box-shadow: inset 3px 0 0 var(--lig-gold);
}

.nav-ic {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex: none;
}

.nav-group {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  padding: 14px 12px 4px;
  font-family: sans-serif;
  white-space: nowrap;
}

@media (min-width: 960px) {
  #app.active {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-rows: 56px 1fr;
  }

  .topbar {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .nav-tabs {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    overflow-y: auto;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    align-self: start;
  }

  .main-content {
    grid-column: 2;
    grid-row: 2;
    max-width: 1280px;
    padding: 1.75rem 2rem;
  }
}

@media (max-width: 959px) {
  .nav-group {
    display: none;
  }

  .nav-tab {
    padding: 10px 12px;
    white-space: nowrap;
  }

  .nav-tabs {
    padding: 4px 8px;
  }

  .main-content {
    padding: 1rem;
  }

  .topbar-user {
    display: none;
  }

  .section-title {
    font-size: 20px;
  }
}

/* new components */
.pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pill {
  border: 1px solid var(--lig-border);
  background: #fff;
  color: var(--lig-text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font: 600 12px sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}

.pill:hover {
  border-color: var(--lig-gold);
  color: var(--lig-navy);
}

.pill.on {
  background: var(--lig-navy);
  color: var(--lig-gold-light);
  border-color: var(--lig-navy);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.progress,
.bar {
  background: #eee9de;
  border-radius: 99px;
  overflow: hidden;
  height: 10px;
}

.bar {
  display: inline-block;
  width: 70px;
  height: 7px;
  vertical-align: middle;
  margin-right: 6px;
}

.progress span,
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1a6b3a, #3fa66a);
  border-radius: 99px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: var(--lig-danger-bg);
  color: var(--lig-danger);
  padding: 4px 10px;
  border-radius: 99px;
  font: 600 11.5px sans-serif;
}

.notice {
  padding: 12px 0;
  border-bottom: 1px solid #f0ede8;
  font-family: sans-serif;
}

.notice:last-child {
  border-bottom: 0;
}

@media print {

  .nav-group,
  .pills {
    display: none !important;
  }
}

/* ═══ GROWTH & INVESTMENT BACKGROUND ═══ */
#auth-screen {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 78% 20%,
      #1d4568 0%,
      #12304f 45%,
      #0b1f3a 100%);
}

#auth-screen .auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#auth-screen .auth-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

#auth-screen .auth-card {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(2px);
}

.auth-tagline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
  font: 600 11px sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.lg-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: lg-rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lg-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: lg-draw 2.2s 0.5s ease-out forwards;
}

.lg-dot,
.lg-arrow {
  opacity: 0;
  animation: lg-fade 0.6s 2.2s forwards;
}

.lg-tree {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: lg-grow 2s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lg-sp {
  animation: lg-twinkle 4s ease-in-out infinite;
}

@keyframes lg-rise {
  from {
    transform: scaleY(0);
    opacity: 0;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes lg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes lg-fade {
  to {
    opacity: 1;
  }
}

@keyframes lg-grow {
  from {
    transform: scale(0.05);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 0.9;
  }
}

@keyframes lg-twinkle {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {

  .lg-bar,
  .lg-line,
  .lg-dot,
  .lg-arrow,
  .lg-tree,
  .lg-sp {
    animation: none !important;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .lg-sp {
    opacity: 0.4;
  }
}

@media (max-width: 700px) {
  #auth-screen .auth-bg svg {
    opacity: 0.7;
  }
}

#app.active {
  background-color: var(--lig-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 900 520%22 fill=%22none%22%3E%3Crect x=%22330%22 y=%22480%22 width=%2234%22 height=%2240%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22384%22 y=%22442%22 width=%2234%22 height=%2278%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22438%22 y=%22404%22 width=%2234%22 height=%22116%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22492%22 y=%22366%22 width=%2234%22 height=%22154%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22546%22 y=%22328%22 width=%2234%22 height=%22192%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22600%22 y=%22290%22 width=%2234%22 height=%22230%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22654%22 y=%22252%22 width=%2234%22 height=%22268%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22708%22 y=%22214%22 width=%2234%22 height=%22306%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22762%22 y=%22176%22 width=%2234%22 height=%22344%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Crect x=%22816%22 y=%22138%22 width=%2234%22 height=%22382%22 rx=%225%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cpath d=%22M347 454 L401 416 L455 378 L509 340 L563 302 L617 264 L671 226 L725 188 L779 150 L833 112%22 stroke=%22%23C8962E%22 stroke-opacity=%22.22%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cellipse cx=%2270%22 cy=%22516%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cellipse cx=%2270%22 cy=%22504%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.12%22 stroke=%22%23C8962E%22 stroke-opacity=%22.18%22/%3E%3Cellipse cx=%2270%22 cy=%22503%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cellipse cx=%2270%22 cy=%22491%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.12%22 stroke=%22%23C8962E%22 stroke-opacity=%22.18%22/%3E%3Cellipse cx=%2270%22 cy=%22490%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cellipse cx=%2270%22 cy=%22478%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.12%22 stroke=%22%23C8962E%22 stroke-opacity=%22.18%22/%3E%3Cellipse cx=%22170%22 cy=%22516%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cellipse cx=%22170%22 cy=%22504%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.12%22 stroke=%22%23C8962E%22 stroke-opacity=%22.18%22/%3E%3Cellipse cx=%22170%22 cy=%22503%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cellipse cx=%22170%22 cy=%22491%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.12%22 stroke=%22%23C8962E%22 stroke-opacity=%22.18%22/%3E%3Cellipse cx=%22170%22 cy=%22490%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cellipse cx=%22170%22 cy=%22478%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.12%22 stroke=%22%23C8962E%22 stroke-opacity=%22.18%22/%3E%3Cellipse cx=%22170%22 cy=%22477%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cellipse cx=%22170%22 cy=%22465%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.12%22 stroke=%22%23C8962E%22 stroke-opacity=%22.18%22/%3E%3Cellipse cx=%22170%22 cy=%22464%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.10%22/%3E%3Cellipse cx=%22170%22 cy=%22452%22 rx=%2244%22 ry=%2210%22 fill=%22%23C8962E%22 fill-opacity=%22.12%22 stroke=%22%23C8962E%22 stroke-opacity=%22.18%22/%3E%3Cpath d=%22M170 420 C167 380 175 345 170 305%22 stroke=%22%231A6B3A%22 stroke-opacity=%22.22%22 stroke-width=%226%22 stroke-linecap=%22round%22/%3E%3Cpath transform=%22translate%28170 305%29 rotate%280%29%22 d=%22M0 0 C-18 -10 -18 -36 0 -46 C18 -36 18 -10 0 0Z%22 fill=%22%231A6B3A%22 fill-opacity=%22.16%22/%3E%3Cpath transform=%22translate%28150 340%29 rotate%28-50%29%22 d=%22M0 0 C-18 -10 -18 -36 0 -46 C18 -36 18 -10 0 0Z%22 fill=%22%231A6B3A%22 fill-opacity=%22.16%22/%3E%3Cpath transform=%22translate%28190 345%29 rotate%2850%29%22 d=%22M0 0 C-18 -10 -18 -36 0 -46 C18 -36 18 -10 0 0Z%22 fill=%22%231A6B3A%22 fill-opacity=%22.16%22/%3E%3Cpath transform=%22translate%28135 372%29 rotate%28-65%29%22 d=%22M0 0 C-18 -10 -18 -36 0 -46 C18 -36 18 -10 0 0Z%22 fill=%22%231A6B3A%22 fill-opacity=%22.16%22/%3E%3Cpath transform=%22translate%28205 375%29 rotate%2865%29%22 d=%22M0 0 C-18 -10 -18 -36 0 -46 C18 -36 18 -10 0 0Z%22 fill=%22%231A6B3A%22 fill-opacity=%22.16%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 bottom 0;
  background-size: min(900px, 70vw) auto;
  background-attachment: fixed;
}

@media (max-width: 959px) {
  #app.active {
    background-size: 90vw auto;
  }
}

@media print {
  #app.active {
    background-image: none;
  }
}