:root {
  --primary: #006b4f;
  --primary-hover: #013b36;
  --secondary: #013b36;
  --accent: #c9a227;
  --background: #f7f8f5;
  --surface: #ffffff;
  --text: #18201f;
  --text-muted: #596763;
  --border: #dfe6e2;
  --success-bg: #e8f5ef;
  --warning-bg: #fff6da;
  --error: #b42318;
  --info: #256d85;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 20px rgba(24, 32, 31, .06);
  --shadow-md: 0 10px 28px rgba(24, 32, 31, .10);
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.auth-card { box-shadow: var(--shadow-sm); }
.button svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.profile-menu { position: relative; }
.profile-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 250px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; background: #fff; box-shadow: var(--shadow-md); }
.profile-dropdown > div { display: grid; gap: 2px; overflow: hidden; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.profile-dropdown strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.profile-dropdown small { color: var(--text-muted); font-size: 10px; }
.profile-dropdown button { width: 100%; min-height: 40px; margin-top: 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--error); font-weight: 600; text-align: left; cursor: pointer; }
.profile-dropdown button:hover { background: #fff1f0; }

.panel { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 15px 18px; }
.panel-heading h2 { font-size: 16px; }
.panel-heading .eyebrow { margin-bottom: 2px; font-size: 9px; }
.panel-meta { color: var(--text-muted); font-size: 10px; }
.table-wrap table { font-size: 11px; }
.table-wrap th, .table-wrap td { padding: 12px 18px; }
.table-wrap tbody tr { transition: background-color .18s; }
.table-wrap tbody tr:hover { background: #fafbf9; }
.reference { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--secondary); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-badge > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-completed { background: var(--success-bg); color: #006344; }
.status-pending { background: var(--warning-bg); color: #775f00; }
.status-cancelled { background: #edf0ef; color: #56615e; }
.notification-list { margin: 0; padding: 0 16px 10px; list-style: none; }
.notification-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; border-bottom: 1px solid var(--border); padding: 12px 0; }
.notification-list li:last-child { border: 0; }
.notification-type { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--info); }
.notification-type.warning { background: var(--accent); }
.notification-type.error { background: var(--error); }
.notification-list strong { font-size: 11px; }
.notification-list p { margin: 2px 0; color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.notification-list small { color: #78827f; font-size: 9px; }
.empty-state { padding: 34px 16px; }
.empty-state.compact { padding: 28px 16px; }
.empty-state h3 { margin: 10px 0 3px; font-size: 13px; }
.empty-state p { margin: 0; font-size: 10px; }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px; padding: 16px; }
.account-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; background: #fff; }
.account-card > div { display: flex; align-items: center; gap: 10px; }
.account-card > div > div { display: grid; }
.account-card small { color: var(--text-muted); font-size: 9px; }
.currency-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--secondary); color: #fff; font-weight: 800; }
.account-balance { display: grid; gap: 2px; margin: 16px 0 11px; }
.account-balance span { color: var(--text-muted); font-size: 9px; }
.account-balance strong { font-size: 17px; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .panel-meta { display: none; }
  .account-grid { grid-template-columns: 1fr; padding: 12px; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .table-wrap tr { margin: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; }
  .table-wrap td { display: flex; justify-content: space-between; gap: 14px; border: 0; padding: 5px 0; text-align: right; }
  .table-wrap td.money { text-align: right; }
  .table-wrap td[data-label]::before { content: attr(data-label); flex: 0 0 auto; color: var(--text-muted); font-size: 10px; font-weight: 600; text-align: left; }
  .table-wrap td[data-label=""]::before { content: none; }
}
