/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  --cream:       #F8F4EF;
  --cream-dark:  #EDE7DE;
  --parchment:   #D9CEBC;
  --bark:        #8B6F47;
  --bark-dark:   #6B5335;
  --forest:      #2D4A3E;
  --forest-mid:  #3D6355;
  --forest-light:#4E7A67;
  --gold:        #C9913D;
  --gold-light:  #E8B96A;
  --charcoal:    #2A2622;
  --ink:         #3D3530;
  --text-body:   #4A4035;
  --text-muted:  #8A7A6A;
  --text-light:  #B0A090;
  --success:     #3A7A5A;
  --danger:      #A04040;
  --warning:     #B07820;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 4px rgba(42,38,34,0.08);
  --shadow-md:   0 4px 16px rgba(42,38,34,0.12);
  --shadow-lg:   0 8px 32px rgba(42,38,34,0.16);
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --sidebar-w:   240px;
  --topbar-h:    56px;
  --font-head:   'Libre Baskerville', Georgia, serif;
  --font-body:   'DM Sans', sans-serif;
  --transition:  0.2s ease;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-body);
  height: 100%;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}
a { cursor: pointer; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; }
input, select, textarea { font-family: var(--font-body); }
svg { display: block; }

/* ─── TOPBAR ─────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--forest);
  display: flex; align-items: center;
  padding: 0 16px;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.topbar-left { display: flex; align-items: center; gap: 12px; width: var(--sidebar-w); flex-shrink: 0; }
.topbar-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.topbar-center span { font-family: var(--font-head); font-size: 15px; color: rgba(255,255,255,0.7); letter-spacing: 0.02em; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-date { font-size: 12px; color: rgba(255,255,255,0.5); margin-right: 8px; white-space: nowrap; }

.topbar-brand { display: flex; align-items: center; gap: 8px; }
.topbar-logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--gold); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topbar-title {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em;
}
.topbar-title span { color: var(--gold-light); }

.hamburger {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.hamburger svg { width: 20px; height: 20px; fill: white; }

.window-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.window-btn:hover { background: rgba(255,255,255,0.22); }
.window-btn svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.8); fill: none; }
.close-btn:hover { background: rgba(160,64,64,0.7) !important; }

/* ─── SIDEBAR ────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--forest);
  display: flex; flex-direction: column;
  z-index: 150;
  overflow: hidden;
  transition: transform var(--transition);
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 149;
}
.sidebar-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-brand { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--white); }
.sidebar-sub { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; text-transform: uppercase; }

.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 12px 8px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.nav-section-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); padding: 12px 10px 4px;
  font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65); font-size: 13.5px; font-weight: 400;
  transition: all var(--transition); margin-bottom: 1px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.nav-item.active {
  background: var(--gold); color: var(--white) !important;
  font-weight: 500;
}
.nav-item.active svg { stroke: white; }

.sidebar-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.sidebar-branding { display: flex; align-items: center; gap: 8px; }
.branding-logo {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7);
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.branding-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6); }
.branding-copy { font-size: 10px; color: rgba(255,255,255,0.3); line-height: 1.4; margin-top: 1px; }

/* ─── MAIN CONTENT ───────────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  background: var(--cream);
  padding: 24px;
}

/* ─── PAGE STRUCTURE ─────────────────────────────────────────────────────── */
.page { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.page-header { margin-bottom: 24px; }
.page-header h1 { font-family: var(--font-head); font-size: 22px; color: var(--charcoal); font-weight: 700; }
.page-header p { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 20px;
  border: 1px solid var(--cream-dark);
}
.card-title {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--ink); margin-bottom: 16px;
}

/* ─── STAT CARDS ─────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark); padding: 18px 20px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--parchment);
}
.stat-card.green::before { background: var(--forest-light); }
.stat-card.gold::before  { background: var(--gold); }
.stat-card.red::before   { background: var(--danger); }
.stat-card.bark::before  { background: var(--bark); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.stat-value { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--charcoal); margin: 4px 0 2px; line-height: 1.1; }
.stat-sub { font-size: 12px; color: var(--text-muted); }
.stat-value.positive { color: var(--forest); }
.stat-value.negative { color: var(--danger); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-mid); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--bark); }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #7A2828; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--cream-dark); }
.btn-ghost:hover { background: var(--cream-dark); color: var(--ink); }
.btn-success { background: var(--success); color: var(--white); }

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-control {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--parchment); background: var(--white);
  font-size: 14px; color: var(--text-body);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(45,74,62,0.1); }
.form-control.error { border-color: var(--danger); background: #FFF5F5; }
.form-control.error::placeholder { color: var(--danger); }
.form-hint { font-size: 11.5px; color: var(--danger); margin-top: 4px; display: none; }
.form-hint.visible { display: block; }
.form-row { display: grid; gap: 12px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ─── TABLES ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); font-weight: 700; padding: 10px 12px;
  border-bottom: 2px solid var(--cream-dark); text-align: left; white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--cream-dark); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
tbody td { padding: 11px 12px; font-size: 13.5px; }
.td-label { font-weight: 600; color: var(--ink); }
.td-muted { color: var(--text-muted); font-size: 12.5px; }
.td-amount { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.td-amount.positive { color: var(--forest); }
.td-amount.negative { color: var(--danger); }

/* ─── BADGE ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border-radius: 20px; font-size: 11.5px; font-weight: 600;
}
.badge-green { background: #E8F5EF; color: var(--success); }
.badge-red { background: #FAEAEA; color: var(--danger); }
.badge-gold { background: #FFF4E0; color: var(--gold); }
.badge-gray { background: var(--cream-dark); color: var(--text-muted); }

/* ─── MODAL ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 10000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--cream-dark);
}
.modal-header h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--charcoal); }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cream-dark); display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--parchment); }
.modal-close svg { width: 14px; height: 14px; fill: none; stroke: var(--text-muted); stroke-width: 2; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding-top: 12px; }

/* ─── TOAST ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 20px; border-radius: var(--radius-md);
  background: var(--charcoal); color: var(--white);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 1000;
  opacity: 0; transform: translateY(12px);
  transition: all 0.3s ease; pointer-events: none; max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--forest); }
.toast.error { background: var(--danger); }

/* ─── EMPTY STATE ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 40px; height: 40px; stroke: var(--parchment); fill: none; margin: 0 auto 12px; }
.empty-state h4 { font-family: var(--font-head); color: var(--text-light); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ─── LOADING ────────────────────────────────────────────────────────────── */
.loading { text-align: center; padding: 32px; color: var(--text-muted); }
.spinner {
  width: 28px; height: 28px; margin: 0 auto 10px;
  border: 2.5px solid var(--cream-dark); border-top-color: var(--forest);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── DIVIDER ────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--cream-dark); margin: 20px 0; }

/* ─── PROFIT/LOSS INDICATOR ──────────────────────────────────────────────── */
.pl-indicator {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px; font-weight: 600; font-size: 13px;
}
.pl-indicator.profit { background: #E8F5EF; color: var(--success); }
.pl-indicator.loss { background: #FAEAEA; color: var(--danger); }

/* ─── DATE FILTER BAR ────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 14px 18px;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark); box-shadow: var(--shadow-sm);
}
.filter-bar label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.filter-bar .form-control { width: auto; padding: 7px 10px; font-size: 13px; }
.filter-bar .btn { padding: 7px 14px; font-size: 13px; }

/* ─── SUMMARY ROW ────────────────────────────────────────────────────────── */
.summary-row {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px;
  padding: 14px 18px; background: var(--cream); border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
}
.summary-item { }
.summary-item .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.summary-item .value { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--charcoal); }
.summary-item .value.green { color: var(--forest); }
.summary-item .value.red { color: var(--danger); }
.summary-item .value.gold { color: var(--gold); }

/* ─── TABS ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--cream-dark); }
.tab-btn {
  padding: 9px 16px; font-size: 13.5px; font-weight: 500;
  color: var(--text-muted); background: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--transition); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--forest); background: var(--cream); }
.tab-btn.active { color: var(--forest); border-bottom-color: var(--forest); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── REPORT SPECIFIC ────────────────────────────────────────────────────── */
.report-section { margin-bottom: 24px; }
.report-section-title {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--charcoal); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--cream-dark);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tax-highlight {
  background: #FFF4E0; border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-md); padding: 16px 20px;
}
.tax-highlight .th-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--bark-dark); margin-bottom: 12px; }
.tax-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(201,145,61,0.2); }
.tax-row:last-child { border-bottom: none; }
.tax-row .t-label { font-size: 13px; color: var(--text-body); }
.tax-row .t-value { font-family: var(--font-head); font-weight: 700; color: var(--bark-dark); }
.tax-total { margin-top: 8px; padding-top: 8px; border-top: 2px solid var(--gold-light); display: flex; justify-content: space-between; }
.tax-total .t-label { font-weight: 700; font-size: 13.5px; }
.tax-total .t-value { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--danger); }

/* ─── DASHBOARD CHART ────────────────────────────────────────────────────── */
.chart-wrap { padding: 8px 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; }
.chart-bar-group { flex: 1; display: flex; gap: 2px; align-items: flex-end; }
.chart-bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; transition: height 0.4s ease; }
.bar-sales { background: var(--forest-light); }
.bar-expenses { background: var(--parchment); }
.chart-labels { display: flex; gap: 6px; margin-top: 6px; }
.chart-label { flex: 1; text-align: center; font-size: 10px; color: var(--text-muted); }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; }

/* ─── PAYSLIP PRINT ──────────────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .filter-bar, .btn, .tabs, .no-print { display: none !important; }
  .main-content { margin: 0 !important; padding: 0 !important; height: auto !important; overflow: visible !important; }
  body { overflow: visible !important; background: white; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .topbar-left { width: auto; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .page-header-row { flex-direction: column; }
  .filter-bar { gap: 8px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-center { display: none; }
}

/* ── PRINT LETTERHEAD ────────────────────────────────────────────────────────── */
.print-only { display: none; }
.print-letterhead { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 12px; }
.lh-left { display: flex; align-items: center; gap: 14px; }
.lh-logo { max-height: 60px; max-width: 120px; object-fit: contain; }
.lh-name { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: #1A2236; }
.lh-detail { font-size: 11px; color: #7A8AAB; margin-top: 2px; }
.lh-right { font-size: 11px; color: #7A8AAB; text-align: right; }
.print-letterhead-divider { height: 2px; background: #2D4A3E; margin: 8px 0 4px; }
.print-doc-title { font-family: Georgia, serif; font-size: 16px; font-weight: 700; color: #1A2236; margin-top: 12px; }
.print-doc-sub { font-size: 12px; color: #7A8AAB; margin-top: 3px; }

@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .sidebar, .topbar, .filter-bar, .btn, .tabs { display: none !important; }
  .main-content { margin: 0 !important; padding: 10mm !important; height: auto !important; overflow: visible !important; }
  body { overflow: visible !important; background: white; font-size: 11pt; }
  .card { box-shadow: none !important; border: 0.5pt solid #ddd !important; break-inside: avoid; }
  .stats-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .stat-value { font-size: 16pt !important; }
  .two-col { grid-template-columns: 1fr 1fr !important; }
  h1, .report-section-title { color: #1A2236 !important; }
  .tax-highlight { background: #f9f9f9 !important; border: 0.5pt solid #ccc !important; }
}

/* ── LOGIN SCREEN ──────────────────────────────────────────────────────────── */
.login-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #1A2A1A 0%, #2D4A3E 60%, #3D6B55 100%);
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 360px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.login-header {
  background: var(--forest); padding: 28px 24px 20px; text-align: center;
}
.login-logo {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold); color: var(--forest);
  font-family: var(--font-head); font-weight: 700; font-size: 24px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.login-header h1 { font-family: var(--font-head); font-size: 20px; color: var(--white); margin-bottom: 4px; }
.login-header h1 span { color: var(--gold-light); }
.login-header p { font-size: 12px; color: rgba(255,255,255,0.55); }
.login-body { padding: 24px; }
.login-error {
  background: #FAEAEA; color: var(--danger); font-size: 12.5px;
  padding: 7px 10px; border-radius: var(--radius-sm); margin-top: 6px;
}
.login-footer {
  padding: 10px 24px; border-top: 1px solid var(--cream-dark);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-muted);
}
.login-sigma {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--forest); color: var(--white);
  font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* ── ROLE BADGE ────────────────────────────────────────────────────────────── */
.role-badge {
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.role-badge.admin { background: rgba(212,168,71,0.2); color: var(--gold); }
.role-badge.worker { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }

/* ── DANGER NAV ITEM ───────────────────────────────────────────────────────── */
.nav-item.nav-danger { color: rgba(200,80,80,0.7); }
.nav-item.nav-danger svg { stroke: rgba(200,80,80,0.7); }
.nav-item.nav-danger:hover { background: rgba(200,80,80,0.12); color: #E05050; }
.nav-item.nav-danger:hover svg { stroke: #E05050; }

/* ── LOGIN SCREEN ────────────────────────────────────────────────────────────── */
.login-screen {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #2D4A3E 0%, #1A3028 50%, #0F2019 100%);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 380px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-header {
  background: var(--forest); padding: 28px 28px 22px; text-align: center;
}
.login-logo {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--gold); color: var(--forest);
  font-family: var(--font-head); font-weight: 700; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.login-header h1 {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: white; margin-bottom: 4px;
}
.login-header h1 span { color: var(--gold); }
.login-header p { font-size: 12px; color: rgba(255,255,255,0.55); }
.login-body { padding: 24px 28px; }
.login-error {
  background: #FAEAEA; color: var(--danger); font-size: 12.5px;
  padding: 8px 10px; border-radius: var(--radius-sm); margin-top: 6px;
}
.login-footer {
  padding: 12px 28px; border-top: 1px solid var(--cream-dark);
  display: flex; align-items: center; gap: 8px;
}
