
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #f5b81e;
  --bg: #eef1f5;
  --sidebar-bg: #14181f;
  --sidebar-card: #1d232c;
  --sidebar-border: #262d38;
  --white: #fff;
  --border: #e6e9ee;
  --text: #161a20;
  --text-muted: #6b7280;
  --text-subtle: #9aa3b2;
  --green: #16a34a;
  --blue: #2563eb;
  --red: #dc2626;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  display: flex;
  height: 100vh;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfd4dc; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Sidebar ── */
.sidebar {
  width: 264px; flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  padding: 22px 16px; gap: 18px;
  overflow-y: auto;
}
.sidebar-logo { display: flex; align-items: center; gap: 11px; padding: 4px 6px; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #14181f; font-size: 20px; flex-shrink: 0;
}
.logo-main { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }
.logo-sub { font-size: 11px; font-weight: 600; color: #8a93a2; letter-spacing: 4px; margin-top: 4px; }

.sidebar-clock {
  background: var(--sidebar-card); border: 1px solid var(--sidebar-border);
  border-radius: 16px; padding: 15px 16px;
}
.clock-hijri { font-size: 12px; color: var(--accent); font-weight: 600; direction: rtl; text-align: right; min-height: 15px; }
.clock-date { font-size: 13px; color: #aeb6c2; font-weight: 600; margin-top: 8px; }
.clock-time { font-size: 29px; font-weight: 800; color: #fff; letter-spacing: 1px; margin-top: 4px; font-variant-numeric: tabular-nums; }

.sidebar-nav { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; border-radius: 12px; border: none;
  background: transparent; color: #9aa3b2;
  font-size: 14.5px; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.nav-item:hover { color: #c8d0db; background: rgba(255,255,255,.04); }
.nav-item.active {
  color: #14181f; background: var(--accent);
  font-weight: 700; box-shadow: 0 8px 20px rgba(245,184,30,.28);
}
.nav-item svg { flex-shrink: 0; }

.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sidebar-card {
  padding: 13px 14px; border-radius: 14px;
  background: var(--sidebar-card); border: 1px solid var(--sidebar-border);
}
.sidebar-card-label { font-size: 11px; color: #8a93a2; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.sidebar-card-value { font-size: 13.5px; font-weight: 700; color: #fff; margin-top: 3px; }
.sidebar-card-desc { font-size: 12px; color: #aeb6c2; line-height: 1.5; margin-top: 6px; }
.sidebar-card-email { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--accent); font-weight: 700; font-size: 12px; }

/* ── Main wrapper ── */
.main-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ── Header ── */
.app-header {
  height: 72px; flex-shrink: 0; background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.header-title { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.notif-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center; color: #3b4250;
}
.notif-dot {
  position: absolute; top: 9px; right: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #dc2626; border: 2px solid #fff;
}
.user-chip {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 7px 8px 7px 16px;
}
.user-greeting { font-size: 11px; color: #8a93a2; }
.user-name { font-size: 13.5px; font-weight: 700; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 11px;
  background: #14181f; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}

/* ── Main content ── */
.main-content { flex: 1; overflow-y: auto; padding: 30px 34px 60px; }

/* ── Page label ── */
.page-label { font-size: 12.5px; font-weight: 700; letter-spacing: 3px; color: var(--accent); }
.page-subtitle { font-size: 15px; color: var(--text-muted); margin-top: 6px; }

/* ── Cards ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px;
}
.card-lg { border-radius: 22px; padding: 24px; }

/* ── Section heading with dot ── */
.section-heading { display: flex; align-items: center; gap: 10px; }
.section-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.15);
}
.section-dot.amber { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
.section-title { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.section-desc { font-size: 13.5px; color: var(--text-muted); margin-top: 5px; }

/* ── Status badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-green { background: #ecfdf3; color: var(--green); }
.badge-green .badge-dot { background: var(--green); }
.badge-blue { background: #eff6ff; color: var(--blue); }
.badge-blue .badge-dot { background: var(--blue); }
.badge-red { background: #fef2f2; color: var(--red); }
.badge-red .badge-dot { background: var(--red); }
.badge-gray { background: #f3f5f8; color: #9aa3b2; }
.badge-gray .badge-dot { background: #9aa3b2; }
.badge-open { background: #ecfdf3; color: var(--green); font-size: 11px; }
.badge-open .badge-dot { background: var(--green); width: 7px; height: 7px; }
.badge-closed { background: #fef2f2; color: var(--red); font-size: 11px; }
.badge-closed .badge-dot { background: var(--red); width: 7px; height: 7px; }

/* ── Buttons ── */
.btn-accent {
  padding: 11px 20px; border: none; border-radius: 12px;
  background: var(--accent); color: #14181f;
  font-weight: 700; font-size: 14px;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--white); color: #3b4250; font-weight: 700; font-size: 13.5px;
}
.btn-icon {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center; color: #3b4250;
}

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 0 16px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  color: var(--text-subtle); text-transform: uppercase;
  border-bottom: 1px solid #eceff3;
}
.data-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid #f4f6f8; }
.data-table td.name { font-weight: 700; }
.data-table td.muted { color: #5b6470; }
.data-table td.nowrap { white-space: nowrap; }
.reason-text { font-size: 11.5px; color: var(--text-subtle); margin-top: 5px; }

/* ── Banner / Hero carousel ── */
.banner-wrapper {
  position: relative; border-radius: 20px; overflow: hidden;
  background: #14181f; box-shadow: 0 12px 30px rgba(20,24,31,.15);
}
.banner-slide {
  display: none; position: absolute; inset: 0;
  flex-direction: column; justify-content: center;
  padding: 30px 34px; background-size: cover; background-position: center;
}
.banner-slide.active { display: flex; }
.banner-label { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 2px; }
.banner-title { font-size: 28px; font-weight: 800; color: #fff; margin-top: 8px; max-width: 70%; line-height: 1.18; letter-spacing: -.5px; }
.banner-desc { font-size: 13.5px; color: #c7cdd6; margin-top: 9px; max-width: 62%; line-height: 1.5; }
.banner-nav { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 9px; }
.banner-nav-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.banner-dots { position: absolute; bottom: 16px; left: 34px; display: flex; gap: 8px; }
.banner-dot {
  height: 8px; border-radius: 999px; border: none; padding: 0;
  width: 8px; background: rgba(255,255,255,.4); transition: all .25s;
}
.banner-dot.active { width: 24px; background: var(--accent); }

/* ── Prayer card ── */
.prayer-card {
  position: relative; overflow: hidden; border-radius: 20px;
  background: linear-gradient(150deg,#14181f,#1f2833);
  box-shadow: 0 12px 30px rgba(20,24,31,.15);
  padding: 22px; display: flex; flex-direction: column;
}
.prayer-glow {
  position: absolute; top: -60px; right: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle,rgba(245,184,30,.18),transparent 70%);
  pointer-events: none;
}
.prayer-status-row { display: flex; align-items: center; gap: 9px; position: relative; }
.prayer-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.prayer-location { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #9aa3b2; text-transform: uppercase; }
.prayer-next-row { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; position: relative; }
.prayer-next-name { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.prayer-next-time { font-size: 19px; font-weight: 700; color: var(--accent); margin-left: auto; font-variant-numeric: tabular-nums; }
.prayer-countdown { font-size: 12px; color: #aeb6c2; margin-top: 3px; position: relative; }
.prayer-countdown span { color: #fff; font-weight: 700; }
.prayer-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; position: relative; }
.prayer-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 13px; border-radius: 11px;
}
.prayer-row.next { background: var(--accent); }
.prayer-row.other { background: rgba(255,255,255,.05); }
.prayer-name { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.prayer-row.next .prayer-name, .prayer-row.next .prayer-time { color: #14181f; }
.prayer-row.other .prayer-name { color: #9aa3b2; font-weight: 600; }
.prayer-time { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.prayer-row.other .prayer-time { color: #e8ebf0; }

/* ── Home grid ── */
.home-hero { display: flex; gap: 22px; margin-bottom: 22px; align-items: stretch; flex-wrap: wrap; }
.home-banner { position: relative; flex: 1 1 520px; min-height: 248px; }
.home-prayer { flex: 1 1 270px; max-width: 332px; }
.home-grid { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 22px; align-items: stretch; }
.home-left { display: flex; flex-direction: column; gap: 18px; }
.home-right { display: flex; flex-direction: column; gap: 22px; }

/* ── Pengumuman card ── */
.pengumuman-inner {
  padding: 14px; border-radius: 12px;
  background: #fffaf0; border: 1px solid #f3e6c0; margin-top: 14px;
}
.pengumuman-title { font-size: 13.5px; font-weight: 700; color: #a87f00; }
.pengumuman-body { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ── Featured carousel (Permohonan Dibuka) ── */
.featured-carousel { display: flex; align-items: stretch; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.feat-img {
  position: relative; flex: 1 1 240px; min-height: 220px;
  border-radius: 16px; overflow: hidden; background: #14181f;
}
.feat-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.feat-img-badge { position: absolute; left: 14px; bottom: 14px; }
.feat-content { flex: 1 1 280px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.feat-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #b08900; text-transform: uppercase; }
.feat-title { font-size: 23px; font-weight: 800; margin-top: 8px; line-height: 1.2; letter-spacing: -.4px; }
.feat-desc { font-size: 14px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }
.feat-actions { display: flex; align-items: center; gap: 11px; margin-top: 22px; flex-wrap: wrap; }
.feat-nav { display: flex; gap: 8px; }
.feat-nav-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; color: #3b4250; }
.feat-dots { display: flex; gap: 7px; margin-top: 18px; }
.feat-dot { height: 8px; border-radius: 999px; border: none; padding: 0; width: 8px; background: #dfe3ea; transition: all .25s; }
.feat-dot.active { width: 22px; background: var(--accent); }

/* ── Senarai (Table section) ── */
.senarai-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.senarai-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.senarai-papar { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.senarai-papar span { border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; font-weight: 700; color: var(--text); }
.senarai-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; color: #9aa3b2; font-size: 13px; }

/* ── Permohonan page ── */
.prog-hero {
  position: relative; height: 300px; border-radius: 22px; overflow: hidden;
  background: #14181f; box-shadow: 0 16px 40px rgba(20,24,31,.18);
}
.prog-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: none;
}
.prog-slide.active { display: block; }
.prog-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(8,10,14,.92) 28%,rgba(8,10,14,.28) 80%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 40px;
}
.prog-label { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 2px; }
.prog-title { font-size: 32px; font-weight: 800; color: #fff; margin-top: 8px; max-width: 68%; line-height: 1.15; letter-spacing: -.6px; }
.prog-desc { font-size: 14px; color: #c7cdd6; margin-top: 10px; max-width: 58%; line-height: 1.6; }
.prog-hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.prog-count { font-size: 13px; font-weight: 700; color: #aeb6c2; }
.prog-nav { position: absolute; right: 20px; bottom: 18px; display: flex; gap: 9px; }
.prog-nav-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.prog-dots { position: absolute; bottom: 20px; left: 40px; display: flex; gap: 8px; }
.prog-dot { height: 8px; border-radius: 999px; border: none; padding: 0; width: 8px; background: rgba(255,255,255,.35); transition: all .25s; }
.prog-dot.active { width: 22px; background: #fff; }

/* My applications strip */
.my-apps { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; margin-top: 14px; }
.my-app-card { flex-shrink: 0; width: 200px; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.my-app-date { font-size: 11.5px; color: var(--text-subtle); font-weight: 600; }
.my-app-type { font-size: 13.5px; font-weight: 700; line-height: 1.3; }

/* Category filter */
.cat-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cat-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--white); color: #5b6470; font-size: 14px; font-weight: 700;
  transition: all .15s;
}
.cat-btn.active { color: #14181f; background: var(--accent); border-color: var(--accent); }
.cat-count { background: rgba(0,0,0,.08); padding: 1px 9px; border-radius: 999px; font-size: 12px; }
.cat-btn.active .cat-count { background: rgba(0,0,0,.12); }

/* Program section card */
.prog-section { background: var(--white); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; }
.prog-section.wakalah { border-color: #efe3bd; }
.prog-feat-header { position: relative; height: 190px; overflow: hidden; }
.prog-feat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.prog-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(8,10,14,.85) 0%,rgba(8,10,14,.18) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 28px;
}
.prog-feat-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--accent); }
.prog-feat-title { font-size: 26px; font-weight: 800; color: #fff; margin-top: 4px; letter-spacing: -.5px; }
.prog-feat-desc { font-size: 13.5px; color: #c7cdd6; margin-top: 4px; }
.bantuan-grid { padding: 20px 22px; display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 14px; }

/* Bantuan cards */
.bantuan-card {
  border: 1px solid #eff1f5; border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: #fafbfc; transition: border-color .15s, box-shadow .15s;
}
.bantuan-card:hover { border-color: #dfe3ea; box-shadow: 0 4px 16px rgba(20,24,31,.07); }
.bantuan-card.wakalah { border-color: #efe3bd; background: linear-gradient(150deg,#fffdf4,#fffff8); }
.bantuan-card.wakalah:hover { box-shadow: 0 6px 20px rgba(245,184,30,.18); }
.bantuan-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bantuan-mono {
  width: 40px; height: 40px; border-radius: 11px;
  background: #fff4d6; color: #a87f00;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.bantuan-mono.gold { background: var(--accent); color: #14181f; }
.bantuan-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--text); }
.bantuan-link { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #9aa3b2; margin-top: auto; }
.bantuan-btn { margin-top: auto; width: 100%; padding: 10px; border: none; border-radius: 10px; background: var(--accent); color: #14181f; font-weight: 700; font-size: 13px; }

/* ── Sejarah pages ── */
.sejarah-card { overflow-x: auto; }
.payment-amount { font-weight: 700; }

/* ── Maklumat Peribadi ── */
.maklumat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.maklumat-field {}
.maklumat-label { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--text-subtle); text-transform: uppercase; }
.maklumat-value { font-size: 15px; font-weight: 600; margin-top: 5px; }

/* ── Manual Pengguna ── */
.manual-step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  display: flex; align-items: flex-start; gap: 16px;
}
.manual-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff4d6; color: #a87f00;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.manual-step-title { font-size: 15.5px; font-weight: 700; }
.manual-step-body { font-size: 13.5px; color: var(--text-muted); margin-top: 5px; line-height: 1.6; }
