/* =============================================
   ZAHRA WORKER DASHBOARD — DESIGN SYSTEM
   ============================================= */
:root {
  --primary:        #034e4f;
  --primary-mid:    #046364;
  --primary-light:  #e8f5f5;
  --accent:         #009688;
  --accent-hover:   #00796b;
  --warn-color:     #f39c12;
  --danger:         #e74c3c;
  --success-color:  #27ae60;
  --text-base:      #1a2332;
  --text-muted:     #6b7a8d;
  --text-light-inv: #f5f7fa;
  --bg-page:        #f0f4f8;
  --bg-card:        #ffffff;
  --bg-input:       #f7f9fc;
  --border:         #dde3ec;
  --border-subtle:  #eef1f5;
  --shadow-xs:      0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-xl:      20px;
  --font:           'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:      'SF Mono', 'Cascadia Code', monospace;
  --transition:     0.2s ease;
}

/* Dark mode tokens - Neutral/Black Theme */
body.dark {
  /* Backgrounds */
  --bg-page:        #000000;
  --bg-card:        #0d0d0d;
  --bg-input:       #121212;
  
  /* Borders & Text */
  --border:         #262626;
  --border-subtle:  #1a1a1a;
  --text-base:      #e5e5e5;
  --text-muted:     #808080;
  
  /* Neutral Primary-Light (Removing the blue-ish tint) */
  --primary-light:  #141414;
  
  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.8);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.9);
}

/* Neutralize Specific Elements to ensure no blue leakage */
body.dark .role-badge { 
  background: #1a1a1a; 
  color: #a0a0a0; 
  border-color: #333333; 
}

body.dark .week-meta-item { 
  background: #1a1a1a; 
  color: #a0a0a0; 
  border-color: #333333; 
}

body.dark .acc-badge--sn, 
body.dark .acc-badge--sm, 
body.dark .acc-badge--km,
body.dark .acc-badge--ea, 
body.dark .acc-badge--tw { 
  background: #1a1a1a; 
  color: #888888; 
  border: 1px solid #333333; 
}

body.dark .day-total { 
  background: #0f0f0f; 
  color: #888888; 
  border: 1px solid #222222;
}

body.dark .week-total-bar { 
  background: #0f0f0f; 
  border-color: #333333; 
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-base);
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

section {
  flex: 1;
  padding: 0 1rem;
  margin-bottom: 3rem;
}

h2 { font-size: 1.7rem; font-weight: 700; margin: 0 0 0.5rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.75rem; color: var(--primary); }
body.dark h3 { color: var(--accent); }
p { margin: 0 0 0.75rem; }

/* =============================================
   HEADER
   ============================================= */
.main-header {
  background: var(--primary);
  padding: 0 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(3,78,79,0.35);
}

.header-left { display: flex; align-items: center; gap: 0.75rem; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center;
}
.icon-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.header-logo { height: 36px; width: auto; cursor: pointer; }

.header-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}

.header-right { display: flex; align-items: center; gap: 1rem; }

.header-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}
.header-link:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }

/* =============================================
   DASHBOARD LAYOUT
   ============================================= */
.dashboard-container {
  max-width: 1160px;
  margin: 2rem auto;
  padding: 0 0.5rem;
}

/* Worker greeting bar */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.worker-greeting { display: flex; align-items: center; gap: 1rem; }

.worker-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(3,78,79,0.3);
}

.greeting-sub { font-size: 0.8rem; color: var(--text-muted); margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }
.greeting-name { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--text-base); }

.role-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(3,78,79,0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.dark .role-badge { background: rgba(0,150,136,0.15); color: var(--accent); border-color: rgba(0,150,136,0.25); }

/* =============================================
   STATS ROW
   ============================================= */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.4rem;
}

.stat-value { font-size: 1.9rem; font-weight: 800; }

.grand-total-card {
  background: linear-gradient(135deg, #034e4f 0%, #046364 50%, #05807f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.grand-total-card::after {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.grand-total-card .stat-label { color: rgba(255,255,255,0.75); }
.grand-total-card .stat-value { color: #fff; }

.cash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-base);
}
.cash-stat-card .stat-label { color: var(--text-muted); }
.cash-stat-card .stat-value { font-size: 1.4rem; color: var(--success-color); }

/* =============================================
   PANELS (collapsible)
   ============================================= */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.panel-summary {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
  color: var(--text-base);
}
.panel-summary::-webkit-details-marker { display: none; }
.panel-summary:hover { background: var(--border-subtle); }

details[open] .panel-summary { border-bottom: 1px solid var(--border); }

.summary-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}
details[open] .summary-chevron { transform: rotate(180deg); }

.cash-summary { background: rgba(39,174,96,0.05); }
.cash-panel { border-color: rgba(39,174,96,0.4); }

.panel-body { padding: 1.25rem; }

.badge-count {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  text-align: center;
  line-height: 20px;
  padding: 0 5px;
  margin-left: 6px;
}

/* =============================================
   WEEK CARDS
   ============================================= */
.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.week-header-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.week-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-base);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.week-meta {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}

.week-meta-item {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xl);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; gap: 0.4rem;
  border: 1px solid rgba(3,78,79,0.15);
}
body.dark .week-meta-item { background: rgba(0,150,136,0.12); color: var(--accent); border-color: rgba(0,150,136,0.2); }

/* Week badges */
.week-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.week-badge--active  { background: rgba(0,150,136,0.12); color: var(--accent); border: 1px solid rgba(0,150,136,0.3); }
.week-badge--pending { background: rgba(243,156,18,0.1);  color: var(--warn-color); border: 1px solid rgba(243,156,18,0.3); }
.week-badge--locked  { background: rgba(39,174,96,0.1);   color: var(--success-color); border: 1px solid rgba(39,174,96,0.3); }

/* Week summary row inside collapsed details */
.week-summary-left { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.week-summary-right { display: flex; align-items: center; gap: 0.75rem; }
.week-id-label { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; }
.week-summary-total { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
body.dark .week-summary-total { color: var(--accent); }

/* =============================================
   DAYS GRID
   ============================================= */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.day-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
/* Day Cards - Grey Container */
body.dark .day-card { 
  background: #1a1a1a;        /* Solid dark grey background */
  border: 1px solid #333333;  /* Subtle grey border */
}

/* Task Items - Grey Container */
body.dark .task-item { 
  background: #262626;        /* Slightly lighter grey to contrast with card */
  border: 1px solid #3d3d3d;
}

/* Week Cards - Grey Container */
body.dark .week-card {
  background: #121212;        /* Darkest grey base */
  border: 1px solid #262626;
}

/* Day Totals Bar - Neutralized */
body.dark .day-total { 
  background: #262626; 
  color: #e0e0e0; 
  border: 1px solid #3d3d3d;
}

.day-header { margin-bottom: 0.75rem; }

.day-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-base);
  margin: 0;
}
body.dark .day-title { color: var(--text-base); }

.today-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 4px;
}

/* =============================================
   TASK LIST
   ============================================= */
.task-list {
  flex: 1;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 0;
}

.task-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  transition: border-color var(--transition);
}

/* Force dark mode to be neutral grey */
body.dark .task-item { 
  background: #171717; /* Matches your input background */
  border: 1px solid #262626; 
}

.task-main { flex: 1; min-width: 0; }

.task-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.task-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-base);
  line-height: 1.3;
}

.task-timestamp {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.task-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}

.task-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  padding-top: 1px;
  min-width: 90px;
  text-align: right;
}
body.dark .task-amount { color: var(--accent); }

.task-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
  align-items: flex-start;
  padding-top: 2px;
}

.task-action-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  width: 28px; height: 28px;
  padding: 0;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  width: auto; /* override global button */
}
.task-action-btn--edit  { color: #3498db; }
.task-action-btn--edit:hover { background: rgba(52,152,219,0.1); border-color: rgba(52,152,219,0.3); }
.task-action-btn--delete { color: var(--danger); }
.task-action-btn--delete:hover { background: rgba(231,76,60,0.1); border-color: rgba(231,76,60,0.3); }

/* Account type badges */
.acc-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.acc-badge--sn { background: #1a3550; color: #7ec8f5; }
.acc-badge--sm { background: #1a3828; color: #7edca4; }
.acc-badge--km { background: #2d1f40; color: #d4a9f5; }
.acc-badge--ea { background: #3d2d1f; color: #f5b77e; }
.acc-badge--tw { background: #1f3d3d; color: #7ef5f5; }

body.dark .acc-badge--sn { background: rgba(52,152,219,0.2); color: #7ec8f5; }
body.dark .acc-badge--sm { background: rgba(39,174,96,0.2); color: #7edca4; }
body.dark .acc-badge--km { background: rgba(155,89,182,0.2); color: #d4a9f5; }
body.dark .acc-badge--ea { background: rgba(230,126,34,0.2); color: #f5b77e; }
body.dark .acc-badge--tw { background: rgba(26,188,156,0.2); color: #7ef5f5; }

/* =============================================
   DAY TOTALS
   ============================================= */
.day-total {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
body.dark .day-total { background: rgba(0,150,136,0.1); color: var(--accent); }
.day-total-time { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.day-total-ksh { font-size: 0.9rem; }

/* =============================================
   TASK FORM
   ============================================= */
.task-form {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-form-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
}

.task-form-row--three {
  grid-template-columns: 1fr 70px 70px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.88rem;
  background: var(--bg-input);
  color: var(--text-base);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,150,136,0.12);
}

body.dark .form-input, body.dark .form-select, body.dark .form-textarea {
  background: var(--bg-input);
  border-color: var(--border);
  color: var(--text-base);
}

.form-textarea { resize: vertical; min-height: 80px; }

.live-total {
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 1.4rem;
  padding: 0 0.2rem;
}

/* Global override so narrow inputs inside form don't get the global 100% width/margin */
.task-form input, .task-form select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.88rem;
  background: var(--bg-input);
  color: var(--text-base);
  outline: none;
  margin: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.task-form input:focus, .task-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,150,136,0.12);
}
body.dark .task-form input, body.dark .task-form select {
  background: var(--bg-input);
  border-color: var(--border);
  color: var(--text-base);
}

/* =============================================
   BUTTONS
   ============================================= */
button {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
button:active:not(:disabled) { transform: scale(0.98); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary, .addTask {
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,150,136,0.25);
}
.btn-primary:hover:not(:disabled), .addTask:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 3px 10px rgba(0,150,136,0.35);
}

/* =============================================
   WEEK TOTAL BAR
   ============================================= */
.week-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-light), #dff0ef);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(3,78,79,0.15);
}
body.dark .week-total-bar { background: rgba(0,150,136,0.1); border-color: rgba(0,150,136,0.2); }

.week-total-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.week-total-value { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
body.dark .week-total-value { color: var(--accent); }

/* =============================================
   PAYMENT SUBMIT AREA
   ============================================= */
.payment-submit-area {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.4rem;
}

.btn-submit-payment {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(3,78,79,0.25);
}
.btn-submit-payment:hover:not(:disabled) {
  background: var(--primary-mid);
  box-shadow: 0 4px 14px rgba(3,78,79,0.35);
}

/* =============================================
   DAY LOCKED NOTICE
   ============================================= */
.day-locked-notice {
  margin-top: auto;
  padding: 0.6rem 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem;
}

/* =============================================
   CASH PAYMENTS
   ============================================= */
.cash-payment-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}
.cash-payment-item:last-child { border-bottom: none; }

.cash-payment-left { display: flex; flex-direction: column; gap: 0.2rem; }
.cash-payment-week { font-weight: 600; font-size: 0.9rem; font-family: var(--font-mono); }
.cash-payment-note { font-size: 0.8rem; color: var(--text-muted); }
.cash-payment-date { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.cash-payment-amount { font-weight: 700; color: var(--success-color); font-size: 0.95rem; white-space: nowrap; }

.muted-text { color: var(--text-muted); font-size: 0.88rem; display: flex; align-items: center; gap: 0.4rem; }

/* =============================================
   SECTION DIVIDER
   ============================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
}

/* =============================================
   EMPTY HISTORY
   ============================================= */
.empty-history {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.empty-history i { font-size: 2rem; opacity: 0.4; }
.empty-history p { font-size: 0.95rem; margin: 0; }

/* =============================================
   ACCESS DENIED
   ============================================= */
.access-denied-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}
.access-denied-icon { font-size: 3rem; color: var(--danger); margin-bottom: 0.5rem; }
.access-denied-title { font-size: 2rem; font-weight: 800; color: var(--danger); margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
.access-denied-divider { width: 40px; height: 3px; background: var(--danger); border-radius: 2px; margin: 0.75rem auto; }
.access-denied-message { color: var(--text-muted); font-size: 1rem; margin: 0; }

/* =============================================
   AD CARD
   ============================================= */
.ad-card {
  border: 1px dashed var(--border);
  background: transparent;
  box-shadow: none;
  min-height: 250px;
  display: flex; align-items: center; justify-content: center;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}
.footer-left img { height: 36px; }
.social-links { display: flex; gap: 1rem; }
.social-links a { font-size: 1.6rem; transition: transform var(--transition); opacity: 0.8; }
.social-links a:hover { transform: scale(1.15); opacity: 1; }
.social-links a.facebook { color: #1877F2; }
.social-links a.youtube  { color: #FF0000; }
.social-links a.whatsapp { color: #25D366; }
.social-links a.telegram { color: #0088cc; }

/* =============================================
   ADSENSE
   ============================================= */
.adsense-center {
  text-align: center;
  margin: 1.5rem auto;
  width: 100%;
  max-width: 1160px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0.75rem;
  box-sizing: border-box;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .main-header { padding: 0 1rem; }
  .header-brand { display: none; }
  .stats-row { grid-template-columns: 1fr; }
  .cash-stat-card { display: none; }
}

@media (max-width: 768px) {
  .main-header { padding: 0 0.75rem; height: 52px; }
  .header-logo { height: 32px; }
  .icon-btn { font-size: 1.1rem; }

  .dashboard-container { margin: 1.25rem auto; }
  .dashboard-header { margin-bottom: 1.25rem; }
  .worker-avatar { width: 44px; height: 44px; font-size: 1.2rem; }
  .greeting-name { font-size: 1.25rem; }

  .stat-card { padding: 1.1rem 1.25rem; }
  .grand-total-card .stat-value { font-size: 1.6rem; }

  .week-card { padding: 1.25rem; }
  .week-header { flex-direction: column; align-items: flex-start; }
  .days-grid { grid-template-columns: 1fr; }

  .btn-submit-payment { max-width: 100%; }
}

@media (max-width: 480px) {
  section { padding: 0 0.5rem; }
  .main-header { padding: 0 0.6rem; }
  .header-logo { height: 30px; }

  .dashboard-container { margin: 1rem auto; padding: 0; }
  .week-card { padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; }
  .day-card { padding: 1rem; }

  .task-item { padding: 0.6rem; }
  .task-amount { font-size: 0.88rem; min-width: 75px; }

  .week-total-value { font-size: 1.1rem; }
  .grand-total-card .stat-value { font-size: 1.4rem; }

  .task-form-row { grid-template-columns: 80px 1fr; }
  .task-form-row--three { grid-template-columns: 1fr 60px 60px; }

  .adsense-center { padding: 0.25rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}