/* assets/css/style.css */
/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --green:        #2D7A3A;
  --green-dark:   #1E5428;
  --green-light:  #E8F5EA;
  --green-mid:    #4CAF50;
  --gold:         #F5A623;
  --red:          #E53935;
  --red-light:    #FFEBEE;
  --yellow:       #F9A825;
  --yellow-light: #FFF8E1;
  --blue:         #1565C0;
  --blue-light:   #E3F2FD;

  --text-primary:   #1A2E1A;
  --text-secondary: #5A7A5A;
  --text-muted:     #9AB09A;

  --bg:           #F5F8F5;
  --bg-card:      #FFFFFF;
  --border:       #E0EDE0;
  --border-light: #F0F7F0;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm: 0 1px 4px rgba(45,122,58,.08);
  --shadow-md: 0 4px 16px rgba(45,122,58,.12);
  --shadow-lg: 0 8px 32px rgba(45,122,58,.16);

  --nav-h: 68px;
  --header-h: 56px;
  --font: 'Nunito', 'Segoe UI', sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: var(--font); outline: none; }
img { max-width: 100%; }

/* ─── SPLASH SCREEN ──────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 999;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 60%, #3a9e4a 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; padding: 40px 24px;
  transition: opacity .5s, transform .5s;
}
#splash.hidden { opacity: 0; pointer-events: none; transform: scale(1.05); }
.splash-logo {
  width: 110px; height: 110px; background: rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 52px; margin-bottom: 24px;
  box-shadow: 0 0 0 16px rgba(255,255,255,.06), 0 0 0 32px rgba(255,255,255,.03);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }
.splash-title { font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.splash-sub { font-size: 14px; opacity: .75; margin-top: 6px; }
.splash-tagline { font-size: 13px; opacity: .55; margin-top: 32px; font-style: italic; }
.splash-wave {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='rgba(255,255,255,0.08)' d='M0,64L60,58.7C120,53,240,43,360,48C480,53,600,75,720,80C840,85,960,75,1080,64C1200,53,1320,43,1380,37.3L1440,32L1440,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom/cover;
}

/* ─── APP SHELL ──────────────────────────────────────────────── */
#app { display: none; flex-direction: column; min-height: 100vh; }
#app.ready { display: flex; }

/* ─── TOP HEADER ─────────────────────────────────────────────── */
.top-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  height: var(--header-h);
  display: flex; align-items: center; padding: 0 16px; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.top-header .back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: white; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.top-header h1 { color: white; font-size: 17px; font-weight: 700; flex: 1; }
.top-header .header-action {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: white; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.greeting-header {
  background: var(--green);
  padding: 14px 16px 16px;
  color: white;
}
.greeting-header .salaam { font-size: 16px; font-weight: 700; }
.greeting-header .sub { font-size: 13px; opacity: .8; margin-top: 2px; }

/* ─── BOTTOM NAV ─────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--nav-h);
  background: white; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px; z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 8px 4px; cursor: pointer; border-radius: var(--radius-sm);
  transition: all .2s; color: var(--text-muted); background: none;
}
.nav-item.active { color: var(--green); }
.nav-item .nav-icon { font-size: 22px; line-height: 1; }
.nav-item .nav-label { font-size: 10px; font-weight: 600; letter-spacing: .2px; }
.nav-fab {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green); color: white; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); margin-top: -20px;
  flex-shrink: 0; transition: transform .2s, box-shadow .2s;
}
.nav-fab:active { transform: scale(.92); box-shadow: var(--shadow-sm); }

/* ─── PAGES ──────────────────────────────────────────────────── */
.page {
  display: none; flex-direction: column;
  padding-bottom: calc(var(--nav-h) + 12px);
  min-height: 100vh; animation: pageIn .25s ease;
}
.page.active { display: flex; }
@keyframes pageIn { from{opacity:0;transform:translateX(18px)} to{opacity:1;transform:none} }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  overflow: hidden;
}
.card-pad { padding: 16px; }

/* ─── SECTION TITLE ──────────────────────────────────────────── */
.section-title {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  padding: 16px 16px 8px; display: flex; align-items: center; justify-content: space-between;
}
.section-title a { font-size: 12px; color: var(--green); font-weight: 600; }

/* ─── DASHBOARD ──────────────────────────────────────────────── */
.dashboard-content { padding: 0 12px; display: flex; flex-direction: column; gap: 12px; }
.sambung-card {
  background: var(--green); border-radius: var(--radius-lg); padding: 16px;
  color: white; display: flex; align-items: center; justify-content: space-between;
}
.sambung-card .info .label { font-size: 12px; opacity: .8; }
.sambung-card .info .date { font-size: 15px; font-weight: 700; margin-top: 2px; }
.sambung-card .btn-rekap {
  background: white; color: var(--green); border-radius: var(--radius-sm);
  padding: 8px 16px; font-size: 13px; font-weight: 700;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  background: white; border-radius: var(--radius-md); padding: 14px 16px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
}
.stat-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.stat-card .val { font-size: 22px; font-weight: 800; color: var(--green-dark); }
.stat-card .lbl { font-size: 11px; color: var(--text-secondary); font-weight: 600; margin-top: 1px; }
.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-size: 17px; flex-shrink: 0;
}
.activity-item .activity-text { flex: 1; }
.activity-item .activity-text .title { font-size: 13px; font-weight: 600; }
.activity-item .activity-text .sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.badge-status {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 99px;
}
.badge-selesai { background: var(--green-light); color: var(--green-dark); }
.badge-baru { background: var(--yellow-light); color: #8a6800; }
.badge-proses { background: var(--blue-light); color: var(--blue); }

/* ─── ABSENSI ────────────────────────────────────────────────── */
.absensi-header { background: var(--green); padding: 12px 16px 16px; }
.sesi-selector { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 0;
  scrollbar-width: none; }
.sesi-selector::-webkit-scrollbar { display: none; }
.sesi-pill {
  flex-shrink: 0; padding: 6px 14px; border-radius: 99px; font-size: 12px;
  font-weight: 600; border: 1.5px solid var(--border); background: white;
  color: var(--text-secondary); cursor: pointer; transition: all .2s;
}
.sesi-pill.active {
  background: var(--green); border-color: var(--green); color: white;
}
.absensi-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
}
.abs-stat {
  background: white; padding: 12px; text-align: center;
}
.abs-stat .num { font-size: 26px; font-weight: 800; line-height: 1; }
.abs-stat .lbl { font-size: 11px; color: var(--text-secondary); font-weight: 600; margin-top: 3px; }
.num-hadir { color: var(--green); }
.num-izin  { color: var(--yellow); }
.num-alfa  { color: var(--red); }
.progress-bar {
  height: 5px; background: var(--border);
}
.progress-fill {
  height: 100%; background: var(--green); transition: width .5s ease;
}
.search-box {
  margin: 12px 16px 8px; position: relative;
}
.search-box input {
  width: 100%; padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: 14px; background: white; color: var(--text-primary);
  transition: border-color .2s;
}
.search-box input:focus { border-color: var(--green); }
.search-box::before {
  content: '🔍'; position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%); font-size: 15px; pointer-events: none;
}
.member-list { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.member-card {
  background: white; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.member-card:active { border-color: var(--green); }
.member-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 800;
  color: var(--green-dark); flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-info .name { font-size: 14px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.member-info .kk { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.status-btns { display: flex; gap: 5px; flex-shrink: 0; }
.status-btn {
  padding: 6px 10px; border-radius: var(--radius-sm); font-size: 12px;
  font-weight: 700; border: 1.5px solid; cursor: pointer; transition: all .15s;
  min-width: 44px; text-align: center;
}
.status-btn.H        { background: var(--green);   border-color: var(--green);   color: white; }
.status-btn.H.outline{ background: white;           border-color: var(--green);   color: var(--green); }
.status-btn.I        { background: var(--yellow);   border-color: var(--yellow);  color: white; }
.status-btn.I.outline{ background: white;           border-color: var(--yellow);  color: var(--yellow); }
.status-btn.A        { background: var(--red);      border-color: var(--red);     color: white; }
.status-btn.A.outline{ background: white;           border-color: var(--red);     color: var(--red); }
.btn-simpan {
  margin: 14px 16px; background: var(--text-primary); color: white;
  border-radius: var(--radius-md); padding: 15px; font-size: 15px;
  font-weight: 700; text-align: center; cursor: pointer;
  transition: opacity .2s;
}
.btn-simpan:active { opacity: .85; }

/* ─── JEMAAH / KK LIST ───────────────────────────────────────── */
.filter-tabs {
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0; padding: 6px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: none;
  background: white; color: var(--text-secondary);
  border: 1.5px solid var(--border); transition: all .2s;
}
.filter-tab.active { background: var(--green); border-color: var(--green); color: white; }
.kk-count { font-size: 12px; color: var(--text-secondary); font-weight: 600;
  padding: 0 16px 8px; }
.kk-list { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.kk-card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); padding: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all .2s;
}
.kk-card:active { box-shadow: var(--shadow-md); border-color: var(--green); }
.kk-badge {
  background: var(--green-dark); color: white; border-radius: var(--radius-sm);
  padding: 4px 10px; font-size: 13px; font-weight: 800; letter-spacing: .5px;
  flex-shrink: 0; min-width: 46px; text-align: center;
}
.kk-info { flex: 1; min-width: 0; }
.kk-info .kk-name { font-size: 14px; font-weight: 700; }
.kk-info .kk-meta { font-size: 12px; color: var(--text-secondary); margin-top: 3px;
  display: flex; align-items: center; gap: 8px; }
.kk-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.wilayah-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
}
.wilayah-masjid { background: var(--green-light); color: var(--green-dark); }
.wilayah-rawa   { background: var(--blue-light);  color: var(--blue); }
.status-aktif { display: flex; align-items: center; gap: 4px; font-size: 12px;
  color: var(--green); font-weight: 600; }
.status-aktif::before { content:''; width:7px; height:7px; border-radius:50%;
  background: var(--green); display:inline-block; }
.pecah-kk-badge {
  background: var(--yellow-light); color: #8a6800; border-radius: var(--radius-sm);
  padding: 2px 8px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.chevron { color: var(--text-muted); font-size: 16px; }

/* ─── DETAIL KK ──────────────────────────────────────────────── */
.detail-page { display: none; flex-direction: column; min-height: 100vh;
  padding-bottom: 24px; animation: pageIn .25s ease; }
.detail-page.active { display: flex; }
.kk-detail-hero {
  background: white; padding: 16px; border-bottom: 1px solid var(--border);
}
.kk-detail-hero .kode-big {
  display: inline-block; background: var(--green-dark); color: white;
  border-radius: var(--radius-md); padding: 6px 16px; font-size: 18px;
  font-weight: 800; margin-bottom: 10px;
}
.kk-detail-hero .nama-big { font-size: 20px; font-weight: 800; }
.kk-detail-hero .meta-row {
  display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap;
}
.detail-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px;
}
.btn-edit {
  padding: 12px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700;
  text-align: center; border: 2px solid var(--green); color: var(--green);
  background: white; cursor: pointer;
}
.btn-pecah {
  padding: 12px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700;
  text-align: center; background: var(--green); color: white; cursor: pointer;
}
.section-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.anggota-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.anggota-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.anggota-info .anggota-name { font-size: 14px; font-weight: 700; }
.anggota-info .anggota-role { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.anggota-info .anggota-age  { font-size: 12px; color: var(--green); font-weight: 600; }
.relasi-card {
  background: var(--green-light); border-radius: var(--radius-md);
  padding: 14px; border: 1px solid rgba(45,122,58,.2);
}
.relasi-card .relasi-label { font-size: 12px; color: var(--text-secondary); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.relasi-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(45,122,58,.12);
}
.relasi-item:last-child { border-bottom: none; }
.pecah-kk-item {
  background: var(--yellow-light); border-radius: var(--radius-md);
  padding: 14px; border: 1px solid rgba(245,166,35,.25); margin-top: 4px;
}
.hadir-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.hadir-cell { text-align: center; background: white; border-radius: var(--radius-sm);
  padding: 10px 4px; border: 1px solid var(--border-light); }
.hadir-cell .sesi-label { font-size: 10px; color: var(--text-secondary); font-weight: 600; }
.hadir-cell .sesi-status {
  font-size: 14px; font-weight: 800; margin-top: 4px;
  display: inline-block; width: 32px; height: 24px; line-height: 24px;
  border-radius: var(--radius-sm);
}
.sesi-H { background: var(--green-light); color: var(--green-dark); }
.sesi-I { background: var(--yellow-light); color: #8a6800; }
.sesi-A { background: var(--red-light); color: var(--red); }

/* ─── REKAP ──────────────────────────────────────────────────── */
.rekap-content { padding: 0 12px; }
.bulan-selector {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px;
  scrollbar-width: none;
}
.bulan-selector::-webkit-scrollbar { display: none; }
.bulan-pill {
  flex-shrink: 0; padding: 6px 14px; border-radius: 99px; font-size: 12px;
  font-weight: 600; border: 1.5px solid var(--border); background: white;
  color: var(--text-secondary); cursor: pointer;
}
.bulan-pill.active { background: var(--green); border-color: var(--green); color: white; }
.rekap-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  padding: 12px 12px 0; }
.rekap-stat { text-align: center; background: white; border-radius: var(--radius-md);
  padding: 12px 8px; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.rekap-stat .val { font-size: 20px; font-weight: 800; }
.rekap-stat .lbl { font-size: 10px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }
.rekap-table-wrap { overflow-x: auto; padding: 12px; }
.rekap-table { width: 100%; border-collapse: collapse; background: white;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.rekap-table th {
  background: var(--green-dark); color: white; padding: 10px 8px;
  font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap;
}
.rekap-table th:first-child { text-align: left; padding-left: 14px; }
.rekap-table td { padding: 9px 8px; font-size: 12px; border-bottom: 1px solid var(--border-light);
  text-align: center; }
.rekap-table td:first-child { text-align: left; padding-left: 14px; font-weight: 600; }
.rekap-table tr:last-child td { border-bottom: none; }
.rekap-table tr:nth-child(even) td { background: var(--bg); }
.pct-badge { font-weight: 700; font-size: 12px; }
.pct-green { color: var(--green); }
.pct-yellow{ color: var(--yellow); }
.pct-red   { color: var(--red); }
.export-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 12px 24px;
}
.btn-export {
  padding: 14px; border-radius: var(--radius-md); font-size: 14px;
  font-weight: 700; text-align: center; cursor: pointer;
}
.btn-pdf   { background: var(--red); color: white; }
.btn-excel { background: var(--green); color: white; }

/* ─── STATISTIK ──────────────────────────────────────────────── */
.stats-content { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.stats-top { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.stats-top-4 { grid-template-columns: repeat(4,1fr); }
.stat-mini {
  background: white; border-radius: var(--radius-md); padding: 12px 8px;
  text-align: center; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.stat-mini .val { font-size: 22px; font-weight: 800; color: var(--green-dark); }
.stat-mini .lbl { font-size: 10px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }
.chart-card { background: white; border-radius: var(--radius-md);
  padding: 14px; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.chart-title { font-size: 13px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; }
.chart-title a { font-size: 12px; color: var(--green); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar {
  width: 100%; background: var(--green); border-radius: 4px 4px 0 0;
  transition: height .5s ease; min-height: 4px;
}
.bar-label { font-size: 9px; color: var(--text-secondary); font-weight: 600;
  text-align: center; white-space: nowrap; }
.bar-val { font-size: 11px; font-weight: 700; color: var(--green-dark); }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { width: 90px; height: 90px; flex-shrink: 0; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; color: var(--text-secondary); font-weight: 600; }
.legend-val { font-weight: 700; }

/* ─── LOGIN ──────────────────────────────────────────────────── */
#login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
}
.login-top { flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 24px 24px; color: white; }
.login-logo { width: 80px; height: 80px; background: rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin-bottom: 16px; }
.login-title { font-size: 22px; font-weight: 800; }
.login-sub { font-size: 14px; opacity: .75; margin-top: 4px; }
.login-form-wrap {
  background: white; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 28px 24px 40px;
}
.form-group { margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--text-secondary);
  display: block; margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 15px; color: var(--text-primary);
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--green); }
.btn-login {
  width: 100%; padding: 15px; background: var(--green); color: white;
  border-radius: var(--radius-md); font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; margin-top: 8px; transition: opacity .2s;
}
.btn-login:active { opacity: .85; }
.login-error { background: var(--red-light); color: var(--red); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px;
  display: none; }
.login-error.show { display: block; }

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text-primary); color: white; padding: 10px 20px;
  border-radius: 99px; font-size: 13px; font-weight: 600; z-index: 999;
  pointer-events: none; transition: all .3s; white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: white; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 430px; padding: 20px 20px 40px;
  animation: sheetUp .3s ease;
}
@keyframes sheetUp { from{transform:translateY(60px);opacity:0} to{transform:none;opacity:1} }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.modal-btn {
  width: 100%; padding: 14px; border-radius: var(--radius-md); font-size: 15px;
  font-weight: 700; margin-bottom: 10px; cursor: pointer; border: none;
}
.modal-btn-green { background: var(--green); color: white; }
.modal-btn-red   { background: var(--red); color: white; }
.modal-btn-gray  { background: var(--bg); color: var(--text-secondary); }

/* ─── UTILITIES ──────────────────────────────────────────────── */
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-green { color: var(--green); }
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-secondary); }
.fw-700 { font-weight: 700; }
.hidden { display: none !important; }
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%; border-radius: var(--radius-sm);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }

/* ─── FORM INPUT UNIVERSAL ───────────────────────────────────── */
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: 15px; font-family: var(--font); color: var(--text-primary);
  background: white; transition: border-color .2s;
}
.form-input:focus { border-color: var(--green); outline: none; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A7A5A' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--text-secondary); display: block; margin-bottom: 6px; }

/* ─── GOOGLE FONTS FALLBACK ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');
