
    html, body {
            height: 100%;
            margin: 0;
        }

        .wrapper {
            min-height: 100vh;
        }

        .main-content {
            flex: 1;
            width: 100%;
        }
        
   :root {
      --gold: #C9A84C;
      --gold-light: #F0D080;
      --gold-dark: #8B6914;
      --emerald: #0D3B2E;
      --emerald-mid: #134E3A;
      --emerald-soft: #1A6647;
      --cream: #FAF6ED;
      --text-light: #F5EDD5;
      --text-muted: #A8C5B5;
      --card-bg: rgba(13, 59, 46, 0.85);
      --border-gold: 1px solid rgba(201, 168, 76, 0.4);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Lato', sans-serif;
      background-color: var(--emerald);
      color: var(--text-light);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ─── Background Pattern ─────────────────── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        radial-gradient(ellipse 80% 60% at 10% 10%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 90%, rgba(26, 102, 71, 0.3) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M30 0l3.5 10.5H44L35.3 17l3.5 10.5L30 21l-8.8 6.5L24.7 17 16 10.5h10.5L30 0zM0 30l3.5 10.5H14L5.3 47l3.5 10.5L0 51l-8.8 6.5L-5.3 47-14 40.5h10.5L0 30zM60 30l3.5 10.5H74L65.3 47l3.5 10.5L60 51l-8.8 6.5L54.7 47 46 40.5h10.5L60 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 0;
    }

    .wrapper {
      position: relative;
      z-index: 1;
    }

    /* ─── Sidebar ─────────────────────────────── */
    .sidebar {
      width: 260px;
      min-height: 100vh;
      background: linear-gradient(180deg, #0A2E22 0%, #0D3B2E 100%);
      border-right: var(--border-gold);
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      display: flex;
      flex-direction: column;
      z-index: 100;
      transition: transform 0.3s ease;
    }

    .sidebar-logo {
      padding: 28px 24px 20px;
      border-bottom: var(--border-gold);
      text-align: center;
    }

    .crescent-icon {
      font-size: 2.8rem;
      color: var(--gold);
      display: block;
      line-height: 1;
      filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.5));
      animation: glow 3s ease-in-out infinite alternate;
    }

    @keyframes glow {
      from {
        filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.4));
      }

      to {
        filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.8));
      }
    }

    .sidebar-logo h1 {
      font-family: 'Cinzel', serif;
      font-size: 1rem;
      font-weight: 700;
      color: var(--gold);
      letter-spacing: 2px;
      margin-top: 10px;
    }

    .sidebar-logo span {
      font-family: 'Amiri', serif;
      font-size: 1.05rem;
      color: var(--text-muted);
      display: block;
      margin-top: 2px;
    }

    .sidebar-logo small {
      font-size: 0.72rem;
      color: var(--text-muted);
      letter-spacing: 1px;
    }

    .sidebar-nav {
      flex: 1;
      padding: 20px 0;
    }

    .nav-label {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--gold-dark);
      padding: 16px 24px 6px;
      font-weight: 700;
    }

    .nav-item-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 24px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 400;
      transition: all 0.25s;
      border-left: 3px solid transparent;
    }

    .nav-item-link i {
      font-size: 1.1rem;
      width: 20px;
    }

    .nav-item-link:hover,
    .nav-item-link.active {
      color: var(--gold-light);
      background: rgba(201, 168, 76, 0.08);
      border-left-color: var(--gold);
    }

    .sidebar-footer {
      padding: 16px 24px;
      border-top: var(--border-gold);
      font-size: 0.75rem;
      color: var(--text-muted);
      text-align: center;
    }

    /* ─── Main Content ────────────────────────── */
    .main-content {
      margin-left: 260px;
      min-height: 100vh;
      padding: 0;
    }

    /* ─── Topbar ──────────────────────────────── */
    .topbar {
      background: rgba(10, 46, 34, 0.95);
      border-bottom: var(--border-gold);
      backdrop-filter: blur(10px);
      padding: 16px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 90;
    }

    .topbar-title {
      font-family: 'Cinzel', serif;
      font-size: 1.15rem;
      color: var(--gold);
      letter-spacing: 1.5px;
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .date-badge {
      background: rgba(201, 168, 76, 0.15);
      border: var(--border-gold);
      border-radius: 20px;
      padding: 6px 16px;
      font-size: 0.8rem;
      color: var(--gold-light);
    }

    .countdown-mini {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    .countdown-mini .unit {
      text-align: center;
      background: rgba(201, 168, 76, 0.12);
      border: var(--border-gold);
      border-radius: 8px;
      padding: 4px 8px;
      min-width: 44px;
    }

    .countdown-mini .unit .num {
      font-family: 'Cinzel', serif;
      font-size: 1rem;
      color: var(--gold);
      font-weight: 700;
      line-height: 1;
    }

    .countdown-mini .unit .lbl {
      font-size: 0.58rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* ─── Page Body ───────────────────────────── */
    .page-body {
      padding: 28px 32px;
    }

    /* ─── Hero Banner ─────────────────────────── */
    .hero-banner {
      background: linear-gradient(135deg, rgba(13, 59, 46, 0.9) 0%, rgba(10, 40, 30, 0.95) 100%);
      border: var(--border-gold);
      border-radius: 16px;
      padding: 30px 36px;
      margin-bottom: 28px;
      position: relative;
      overflow: hidden;
    }

    .hero-banner::before {
      content: '☽';
      position: absolute;
      right: 30px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 9rem;
      color: rgba(201, 168, 76, 0.06);
      line-height: 1;
    }

    .hero-banner::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

    .hero-subtitle {
      font-family: 'Amiri', serif;
      font-size: 1.2rem;
      color: var(--gold-light);
      display: block;
      margin-bottom: 4px;
    }

    .hero-title {
      font-family: 'Cinzel', serif;
      font-size: 2rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: 2px;
      margin-bottom: 6px;
    }

    .hero-title span {
      color: var(--gold);
    }

    .hero-period {
      font-size: 0.85rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .hero-period i {
      color: var(--gold);
    }

    .progress-ramadhan {
      margin-top: 18px;
    }

    .progress-label {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .progress-label span:last-child {
      color: var(--gold);
      font-weight: 700;
    }

    .custom-progress {
      height: 8px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 10px;
      overflow: hidden;
    }

    .custom-progress-bar {
      height: 100%;
      border-radius: 10px;
      background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
      transition: width 1s ease;
      position: relative;
    }

    .custom-progress-bar::after {
      content: '';
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      width: 8px;
      background: white;
      border-radius: 50%;
      box-shadow: 0 0 8px var(--gold-light);
    }

    /* ─── Stat Cards ──────────────────────────── */
    .stat-card {
      background: var(--card-bg);
      border: var(--border-gold);
      border-radius: 14px;
      padding: 24px;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s, box-shadow 0.3s;
      backdrop-filter: blur(10px);
    }

    .stat-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 168, 76, 0.3);
    }

    .stat-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

    .stat-card.zakat::before {
      background: linear-gradient(90deg, transparent, #C9A84C, transparent);
    }

    .stat-card.infak::before {
      background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    }

    .stat-card.muzakki::before {
      background: linear-gradient(90deg, transparent, #64B5F6, transparent);
    }

    .stat-card.munfiq::before {
      background: linear-gradient(90deg, transparent, #FF8A65, transparent);
    }

    .stat-icon-wrap {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      margin-bottom: 16px;
    }

    .stat-icon-wrap.gold {
      background: rgba(201, 168, 76, 0.15);
      color: var(--gold);
    }

    .stat-icon-wrap.green {
      background: rgba(76, 175, 80, 0.15);
      color: #81C784;
    }

    .stat-icon-wrap.blue {
      background: rgba(100, 181, 246, 0.15);
      color: #64B5F6;
    }

    .stat-icon-wrap.orange {
      background: rgba(255, 138, 101, 0.15);
      color: #FF8A65;
    }

    .stat-label {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-muted);
      font-weight: 700;
      margin-bottom: 4px;
    }

    .stat-value {
      font-family: 'Cinzel', serif;
      font-size: 1.55rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
      margin-bottom: 6px;
    }

    .stat-value small {
      font-size: 0.85rem;
      font-family: 'Lato', sans-serif;
      color: var(--text-muted);
      font-weight: 300;
    }

    .stat-trend {
      font-size: 0.78rem;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .stat-trend.up {
      color: #81C784;
    }

    .stat-trend.down {
      color: #EF9A9A;
    }

    /* ─── Section Titles ──────────────────────── */
    .section-title {
      font-family: 'Cinzel', serif;
      font-size: 1rem;
      color: var(--gold-light);
      letter-spacing: 1.5px;
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
    }

    .section-title::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, rgba(201, 168, 76, 0.4), transparent);
    }

    /* ─── Chart Cards ─────────────────────────── */
    .chart-card {
      background: var(--card-bg);
      border: var(--border-gold);
      border-radius: 14px;
      padding: 24px;
      backdrop-filter: blur(10px);
      height: 100%;
    }

    .chart-card-title{
      font-family: 'Cinzel', serif;
  font-size: 1.2rem;      /* lebih besar */
  color: var(--gold);
  font-weight: 700;
  text-align: center;     /* posisi tengah */
  display: flex;
  justify-content: center; /* center horizontal */
  align-items: center;
  gap: 8px;               /* jarak icon & teks */
}

    .chart-card-sub {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-bottom: 18px;
    }

/* ─── Table ───────────────────────────────── */
    .custom-table-wrap {
      background: var(--card-bg);
      border: var(--border-gold);
      border-radius: 14px;
      overflow: hidden;
      backdrop-filter: blur(10px);
    }

    .custom-table-wrap table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
    }

    .custom-table-wrap thead th {
      background: rgba(201,168,76,0.1);
      color: var(--gold-light);
      padding: 14px 18px;
      font-family: 'Cinzel', serif;
      font-size: 0.75rem;
      letter-spacing: 1px;
      text-transform: uppercase;
      border-bottom: var(--border-gold);
      font-weight: 600;
    }

    .custom-table-wrap tbody td {
      padding: 13px 18px;
      color: var(--text-light);
      border-bottom: 1px solid rgba(201,168,76,0.08);
      vertical-align: middle;
    }

    .custom-table-wrap tbody tr:last-child td { border-bottom: none; }

    .custom-table-wrap tbody tr:hover td {
      background: rgba(201,168,76,0.05);
    }

    .badge-zakat {
      background: rgba(201, 168, 76, 0.2);
      color: var(--gold-light);
      border: 1px solid rgba(201, 168, 76, 0.3);
      border-radius: 20px;
      padding: 3px 10px;
      font-size: 0.72rem;
      font-weight: 700;
    }

    .badge-infak {
      background: rgba(76, 175, 80, 0.2);
      color: #A5D6A7;
      border: 1px solid rgba(76, 175, 80, 0.3);
      border-radius: 20px;
      padding: 3px 10px;
      font-size: 0.72rem;
      font-weight: 700;
    }

    .avatar-circle {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
      background: rgba(201, 168, 76, 0.2);
      color: var(--gold-light);
      border: 1px solid rgba(201, 168, 76, 0.3);
      margin-right: 8px;
    }

    /* ─── Mini Calendar ───────────────────────── */
    .ramadhan-calendar {
      background: var(--card-bg);
      border: var(--border-gold);
      border-radius: 14px;
      padding: 20px;
      backdrop-filter: blur(10px);
    }

    .cal-header {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
      margin-bottom: 6px;
    }

    .cal-day-name {
      text-align: center;
      font-size: 0.65rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 4px 0;
    }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
    }

    .cal-day {
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      font-size: 0.78rem;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
    }

    .cal-day.ramadhan {
      color: var(--text-light);
      background: rgba(201, 168, 76, 0.06);
    }

    .cal-day.has-data::after {
      content: '';
      position: absolute;
      bottom: 3px;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--gold);
    }

    .cal-day.today {
      background: var(--gold);
      color: var(--emerald);
      font-weight: 700;
    }

    .cal-day.past {
      opacity: 0.5;
    }

    .cal-day:hover:not(.empty) {
      background: rgba(201, 168, 76, 0.2);
      color: var(--gold-light);
    }

    .cal-day.empty {
      pointer-events: none;
    }

    /* ─── Hijri Day Numbers ───────────────────── */
    .cal-hijri {
      font-size: 0.55rem;
      color: var(--gold-dark);
      position: absolute;
      top: 3px;
      right: 4px;
    }

    /* ─── Info Cards Horizontal ───────────────── */
    .info-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 28px;
    }

    .info-mini {
      background: rgba(13, 59, 46, 0.7);
      border: var(--border-gold);
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .info-mini i {
      font-size: 1.4rem;
      color: var(--gold);
    }

    .info-mini .txt small {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      display: block;
    }

    .info-mini .txt strong {
      font-size: 0.95rem;
      color: var(--text-light);
    }


.fade-row {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ─── Single Info Card Full Width ───────────────── */

.info-row2 {
  width: 100%;
  margin-bottom: 28px;
    display: flex;
  justify-content: center;   /* center horizontal */
}

.info-mini2 {
  width: 100%;
  background: rgba(13, 59, 46, 0.7);
  border: var(--border-gold);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.info-mini2 i {
  font-size: 1.5rem;
  color: var(--gold);
}

.info-mini2 .txt small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.info-mini2 .txt strong {
  font-size: 1rem;
  color: var(--text-light);
}





    /* ─── Scrollbar ───────────────────────────── */
    ::-webkit-scrollbar {
      width: 6px;
    }

    ::-webkit-scrollbar-track {
      background: var(--emerald);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--gold-dark);
      border-radius: 3px;
    }

    /* ─── Animations ──────────────────────────── */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .fade-up {
      animation: fadeUp 0.6s ease both;
    }

    .fade-up:nth-child(1) {
      animation-delay: 0.05s;
    }

    .fade-up:nth-child(2) {
      animation-delay: 0.15s;
    }

    .fade-up:nth-child(3) {
      animation-delay: 0.25s;
    }

    .fade-up:nth-child(4) {
      animation-delay: 0.35s;
    }

    /* ─── Floating ornament ───────────────────── */
    .ornament {
      position: fixed;
      font-size: 16rem;
      color: rgba(201, 168, 76, 0.025);
      pointer-events: none;
      z-index: 0;
      user-select: none;
      line-height: 1;
    }

    .ornament-1 {
      top: -40px;
      right: 300px;
    }

    .ornament-2 {
      bottom: -60px;
      left: 230px;
      transform: rotate(180deg);
    }

    /* ─── Responsive ──────────────────────────── */
    @media (max-width: 992px) {
      .sidebar {
        transform: translateX(-100%);
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .main-content {
        margin-left: 0;
      }
    }