
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #ea580c;
  --warning-light: #ffedd5;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background-color: var(--bg-main); color: var(--text-main); -webkit-tap-highlight-color: transparent; padding-bottom: 80px; }

/* Utility */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }

/* Buttons */
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
.btn-primary { background: var(--primary); color: white; padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: #059669; color: white; padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-light-green { background: #22c55e; color: white; padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-purple { background: #6366f1; color: white; padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-outline { border: 1px solid var(--border); background: white; color: var(--text-main); padding: 8px 16px; border-radius: var(--radius-md); font-weight: 600; }
.fab-btn { position: fixed; bottom: 90px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: #047857; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 12px rgba(4,120,87,0.3); z-index: 50; border: 2px solid white; }

/* Layout */
.app-container { max-width: 600px; margin: 0 auto; min-height: 100vh; background: white; position: relative; box-shadow: 0 0 20px rgba(0,0,0,0.05); }

/* Header */
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: white; position: sticky; top: 0; z-index: 40; }
.brand-info { display: flex; align-items: center; gap: 12px; }
.brand-logo-box { width: 40px; height: 40px; background: #4f46e5; color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.brand-title-wrap { display: flex; flex-direction: column; }
.brand-title { font-size: 1.1rem; font-weight: 800; color: #1e1b4b; display: flex; align-items: center; gap: 6px; margin: 0; }
.brand-badge { background: #e0e7ff; color: #4338ca; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.brand-subtitle { font-size: 0.75rem; font-weight: 600; color: #059669; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.brand-subtitle::before { content: ''; width: 6px; height: 6px; background: #10b981; border-radius: 50%; display: inline-block; }
.header-actions .profile-btn { width: 36px; height: 36px; background: #4338ca; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Sub Navigation Tabs */
.sub-nav { display: flex; padding: 0 20px 16px; background: white; gap: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav-item { padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); background: var(--bg-main); white-space: nowrap; border: 1px dashed transparent; display: flex; align-items: center; gap: 6px; }
.sub-nav-item.active { background: white; color: var(--primary); border: 1px dashed var(--primary); box-shadow: 0 2px 4px rgba(79,70,229,0.1); }
.count-badge { background: #4338ca; color: white; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.count-badge.red { background: var(--danger); }
.count-badge.gray { background: #e2e8f0; color: var(--text-muted); }

/* Main Content Area */
.main-content { padding: 20px; background: var(--bg-main); min-height: calc(100vh - 140px); }

/* Today's Due Specific */
.collections-card { background: #f8faff; border: 1px solid #e0e7ff; border-radius: var(--radius-lg); padding: 16px; margin-bottom: 20px; }
.collections-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.collections-title { font-size: 0.75rem; font-weight: 700; color: #4338ca; display: flex; align-items: center; gap: 6px; }
.date-badge { background: #e0e7ff; color: #4338ca; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-sm); }
.collections-amount { font-size: 2rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.collections-sub { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.collections-right { text-align: right; }
.students-count { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.students-status { font-size: 0.75rem; color: #059669; font-weight: 600; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.progress-wrap { margin-top: 16px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.progress-bg { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #059669; border-radius: 3px; }

/* Student Cards (Today's Due) */
.student-card { background: white; border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); position: relative; overflow: hidden; }
.student-card.border-left-blue { border-left: 4px solid #4338ca; }
.student-card.border-left-red { border-left: 4px solid var(--danger); }
.student-card.border-left-green { border-left: 4px solid var(--success); }
.card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.badges-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 4px 8px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; }
.pill-gray { background: #f1f5f9; color: #475569; }
.pill-purple { background: #e0e7ff; color: #4338ca; }
.pill-red { background: var(--danger-light); color: var(--danger); }
.pill-green { background: var(--success-light); color: var(--success); }
.fee-block { text-align: right; }
.fee-amount { font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.fee-date { font-size: 0.7rem; color: var(--danger); font-weight: 600; }
.student-name { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.student-shift { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; font-weight: 500; }
.card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.action-icons { display: flex; gap: 12px; }
.icon-btn-outline { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; }
.icon-btn-solid { width: 36px; height: 36px; background: #059669; color: white; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; border: none; }
.btn-receive { background: #059669; color: white; padding: 8px 16px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; border: none; }

/* Overdue Screen Specific */
.overdue-alert { background: #fff5f5; border: 1px solid #fed7d7; border-radius: var(--radius-md); padding: 16px; display: flex; justify-content: space-between; margin-bottom: 20px; }
.alert-left { display: flex; flex-direction: column; gap: 4px; }
.alert-title { color: var(--danger); font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.alert-desc { font-size: 0.75rem; color: #7f1d1d; }
.alert-right { text-align: right; }
.alert-right-title { font-size: 0.7rem; font-weight: 700; color: var(--danger); text-transform: uppercase; letter-spacing: 0.5px; }
.alert-right-amount { font-size: 1.5rem; font-weight: 800; color: #7f1d1d; }
.alert-dots { display: flex; gap: 16px; margin-top: 12px; font-size: 0.75rem; font-weight: 600; color: #7f1d1d; }
.dot-red::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; margin-right: 6px; }
.dot-pink::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #fca5a5; border-radius: 50%; margin-right: 6px; }

.search-bar { display: flex; gap: 12px; margin-bottom: 20px; }
.search-input-wrap { flex: 1; position: relative; }
.search-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-input { width: 100%; padding: 12px 16px 12px 40px; border: 1px solid var(--border); border-radius: var(--radius-full); outline: none; font-family: inherit; font-size: 0.9rem; }
.sort-btn { width: 44px; height: 44px; background: white; border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-main); }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; margin-top: 24px; }
.section-title-red { font-weight: 800; color: #4c0519; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.section-title-blue { font-weight: 800; color: #1e1b4b; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.badge-red-solid { background: var(--danger); color: white; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }
.badge-blue-solid { background: #e0e7ff; color: #4338ca; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }

.overdue-card-header { display: flex; justify-content: space-between; }
.overdue-avatar { width: 48px; height: 48px; border-radius: 8px; background: #e2e8f0; object-fit: cover; }
.overdue-info { flex: 1; margin-left: 12px; }
.overdue-name { font-size: 1.1rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.overdue-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.overdue-amount-box { text-align: right; }
.overdue-label { font-size: 0.65rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.overdue-val { font-size: 1.1rem; font-weight: 800; color: #7f1d1d; }
.overdue-actions { display: flex; gap: 12px; margin-top: 16px; }
.btn-wa-remind { flex: 1; background: #047857; color: white; border: none; padding: 10px; border-radius: var(--radius-sm); font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 6px; }
.btn-fee-purple { flex: 1; background: #6366f1; color: white; border: none; padding: 10px; border-radius: var(--radius-sm); font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 6px; }

/* All Students Specific */
.roster-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.roster-title { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 8px; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill { padding: 6px 16px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; background: white; color: var(--text-muted); border: 1px solid var(--border); white-space: nowrap; }
.filter-pill.active { background: #4338ca; color: white; border-color: #4338ca; }

.all-card { background: white; border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; display: flex; flex-direction: column; border-left: 4px solid var(--success); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.all-card.overdue { border-left-color: var(--danger); }
.all-card-top { display: flex; justify-content: space-between; }
.all-avatar-initials { width: 40px; height: 40px; border-radius: 50%; background: #e0e7ff; color: #4338ca; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.all-card.overdue .all-avatar-initials { background: var(--danger-light); color: var(--danger); }
.all-info { flex: 1; margin-left: 12px; }
.all-name { font-size: 1rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.all-phone { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.all-fee-box { text-align: right; }
.all-fee { font-size: 1rem; font-weight: 800; }
.all-fee-mo { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.all-status { font-size: 0.75rem; font-weight: 700; margin-top: 4px; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.all-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.all-date { font-size: 0.8rem; font-weight: 600; color: #059669; display: flex; align-items: center; gap: 6px; }
.all-date.expires { color: #4338ca; }
.all-actions { display: flex; gap: 12px; align-items: center; }
.all-action-btn { width: 32px; height: 32px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.all-action-btn.green { color: #059669; background: #ecfdf5; }

/* Student Detail Screen */
.detail-top-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: white; border-bottom: 1px dashed var(--border); }
.back-link { font-size: 0.85rem; font-weight: 600; color: #4338ca; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.edit-btn { border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; background: white; }
.detail-card { background: white; border-radius: var(--radius-lg); padding: 20px; margin: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-left: 6px solid var(--success); }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.detail-profile { display: flex; gap: 16px; align-items: center; }
.detail-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; }
.detail-name { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.detail-id { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.detail-box { background: #f8fafc; padding: 12px; border-radius: var(--radius-sm); }
.detail-box-label { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; }
.detail-box-val { font-size: 1.1rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.detail-alert { background: #fee2e2; border-radius: var(--radius-sm); padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.detail-alert-title { font-size: 0.9rem; font-weight: 800; color: #991b1b; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.detail-alert-sub { font-size: 0.75rem; color: #7f1d1d; }
.detail-alert-amt { font-size: 1.4rem; font-weight: 800; color: #991b1b; }
.detail-actions { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
.wa-preview-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 20px; overflow: hidden; }
.wa-preview-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.wa-preview-title { font-size: 0.75rem; font-weight: 800; color: #059669; display: flex; align-items: center; gap: 6px; }
.wa-preview-body { padding: 16px; background: #dcfce7; border-radius: 8px; margin: 16px; font-size: 0.85rem; line-height: 1.5; color: #064e3b; position: relative; }
.wa-preview-body strong { font-weight: 800; }
.wa-footer-note { text-align: right; font-size: 0.7rem; color: #059669; margin-top: 12px; font-weight: 600; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.detail-contact-card { background: white; border-radius: var(--radius-md); padding: 16px 20px; margin: 0 20px 20px; display: flex; justify-content: space-between; align-items: center; }

/* Dashboard Specific */
.dash-welcome { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.dash-library-name { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dash-welcome-title { font-size: 1.2rem; font-weight: 800; color: #0f172a; display: flex; justify-content: space-between; }
.dash-pending-text { font-size: 0.8rem; font-weight: 700; color: #991b1b; display: flex; align-items: center; gap: 6px; margin-top: 8px; margin-bottom: 8px; }
.dash-oversight { font-size: 0.8rem; font-weight: 700; color: #059669; }
.dash-current-due { background: white; border: 1px solid #fee2e2; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; position: relative; }
.dash-due-label { font-size: 0.8rem; font-weight: 800; color: #991b1b; display: flex; align-items: center; gap: 6px; }
.dash-due-amt { font-size: 2.5rem; font-weight: 800; color: #991b1b; margin-top: 12px; line-height: 1; }
.dash-due-pill { position: absolute; top: 20px; right: 20px; background: #fee2e2; color: #991b1b; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 800; }
.dash-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.dash-metric { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; position: relative; }
.dash-metric-label { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
.dash-metric-icon { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.dash-metric-amt { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.dash-metric-sub { font-size: 0.75rem; font-weight: 700; }
.dash-export { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.dash-export-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.dash-export-icon { width: 40px; height: 40px; background: #e0e7ff; color: #4338ca; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.dash-export-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.dash-export-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.recent-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.recent-list-title { font-size: 1.1rem; font-weight: 800; }
.recent-item { background: white; border-radius: var(--radius-md); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.recent-item-left { display: flex; align-items: center; gap: 12px; }
.recent-initial { width: 40px; height: 40px; background: #dcfce7; color: #059669; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.recent-name { font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; }
.recent-meta { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* Add Student Specific */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.75rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; text-transform: uppercase; }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; outline: none; background: white; }
.form-input:focus { border-color: var(--primary); }
.wa-toggle-box { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.shift-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; cursor: pointer; flex: 1; background: white; }
.shift-card.active { border-color: var(--primary); background: #f8faff; box-shadow: 0 0 0 1px var(--primary); }
.shift-icon { font-size: 1.5rem; margin-bottom: 8px; color: var(--text-muted); }
.shift-card.active .shift-icon { color: var(--primary); }
.shift-name { font-weight: 800; font-size: 0.9rem; }
.shift-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.add-student-footer { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 12px; z-index: 50; max-width: 600px; margin: 0 auto; }

/* Settings */
.settings-profile-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.settings-avatar { width: 56px; height: 56px; background: #e0e7ff; color: #4338ca; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.settings-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.settings-phone { font-size: 0.8rem; color: var(--text-muted); }
.settings-section-title { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px; margin-top: 24px; letter-spacing: 0.5px; }
.settings-item { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.settings-item-title { font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.settings-item-desc { font-size: 0.75rem; color: var(--text-muted); }
.toggle-switch { width: 44px; height: 24px; background: var(--success); border-radius: 12px; position: relative; cursor: pointer; }
.toggle-switch::after { content: ''; position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; }

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 600px; margin: 0 auto; height: 70px; background: white; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--border); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 0.7rem; font-weight: 700; width: 33%; height: 100%; justify-content: center; }
.nav-item i { font-size: 1.2rem; margin-bottom: 2px; }
.nav-item.active { color: var(--primary); }

/* Loaders & Misc */
.loader-box { height: 60vh; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); }
