/* ==========================================
   YKR SUBANG — STYLESHEET (Pixel-accurate)
   Color scheme: Blue #1565C0, BG: #EDF0F5
   ========================================== */

:root {
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --blue-mid: #1976D2;
  --blue-light: #E3F2FD;
  --blue-soft: #BBDEFB;
  --gold: #F9A825;
  --gold-light: #FFF8E1;
  --page-bg: #EDF0F5;
  --card-bg: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #ECEFF1;
  --gray-200: #CFD8DC;
  --gray-400: #90A4AE;
  --gray-600: #546E7A;
  --gray-800: #263238;
  --white: #FFFFFF;
  --radius-card: 16px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 520px;
  /* mobile-app centered width */
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--gray-800);
  line-height: 1.5;
  padding-bottom: 70px;
  /* room for bottom nav */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

/* ===== PAGE LAYOUT: centered column like original ===== */
.page-bg {
  background: var(--page-bg);
  min-height: 100vh;
}

.header-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  width: 100%;
}

.app-wrap {
  width: 100%;
  max-width: var(--max-w);
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 auto;
}

/* ===== HEADER / TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
}

.topbar__logo {
  margin-right: 15px;
}

.topbar__logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue-soft);
}

/* Logo fallback if image fails */
.topbar__logo-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid var(--blue-soft);
  flex-shrink: 0;
}

.topbar__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-200);
}

.topbar__search input {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--gray-800);
  outline: none;
  width: 100%;
  font-family: var(--font);
}

.topbar__search input::placeholder {
  color: var(--gray-400);
}

/* ===== SLIDER ===== */
.slider-wrap {
  background: var(--white);
  padding: 12px 12px 0;
  position: relative;
  margin-bottom: 0;
}

.slider {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16/7;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
}

.slide__img {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
}

/* Slide backgrounds */
.slide__img--1 {
  background: linear-gradient(160deg, #1a237e 0%, #283593 30%, #5c6bc0 70%, #7986cb 100%);
}

.slide__img--2 {
  background: linear-gradient(160deg, #0d1b2a 0%, #1b3a6b 35%, #1976D2 70%, #42a5f5 100%);
}

.slide__img--3 {
  background: linear-gradient(160deg, #004d40 0%, #00695c 50%, #26a69a 100%);
}

/* Masjid/bangunan silhouette dekoratif di tiap slide */
.slide__img--1::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background:
    /* kiri - pohon */
    radial-gradient(ellipse 12px 30px at 8% 100%, #263238 50%, transparent 51%),
    /* bangunan utama */
    linear-gradient(to top, #1a237e 0%, #1a237e 40%, transparent 41%) 30% 100% / 40% 50% no-repeat,
    /* kubah -->  */
    radial-gradient(ellipse 20px 25px at 50% 100%, #283593 50%, transparent 51%);
  opacity: 0.5;
}

.slide__img--2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 200'%3E%3Crect x='0' y='100' width='560' height='100' fill='%230d1b2a' opacity='0.4'/%3E%3Crect x='80' y='60' width='80' height='140' fill='%230d1b2a' opacity='0.5'/%3E%3Crect x='200' y='40' width='160' height='160' fill='%230d1b2a' opacity='0.5'/%3E%3Cellipse cx='280' cy='40' rx='30' ry='35' fill='%230d1b2a' opacity='0.5'/%3E%3Crect x='400' y='70' width='80' height='130' fill='%230d1b2a' opacity='0.5'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 60%);
}

.slide__content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.slide__tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 2px;
}

.slide__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide__title--gold {
  color: var(--gold);
}

.slide__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin: 4px 0;
}

.slide__price span {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.slide__tagline {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.slide__subtagline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.slide__desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 240px;
  line-height: 1.5;
  margin-top: 6px;
}

.slide__logos {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 6px 8px;
}

.slide__logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dots */
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 14px;
  background: var(--white);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-soft);
  transition: all 0.25s ease;
}

.dot.active {
  background: var(--blue);
  width: 22px;
  border-radius: 4px;
}

/* ===== QUICK MENU ===== */
.quick-menu {
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 8px 20px;
  border-top: 1px solid var(--gray-100);
  margin-top: 2px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  cursor: pointer;
  transition: opacity 0.18s;
}

.quick-item:hover {
  opacity: 0.8;
}

.quick-item__icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

/* ===== FEATURED BANNER ===== */
.featured-banner {
  padding: 8px 0;
  background: var(--page-bg);
}

.featured-banner__inner {
  position: relative;
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 40%, #42A5F5 80%, #1E88E5 100%);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: stretch;
  margin: 0 0;
}

.featured-banner__bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 160'%3E%3Ccircle cx='430' cy='20' r='80' fill='white' opacity='0.05'/%3E%3Ccircle cx='480' cy='130' r='60' fill='white' opacity='0.05'/%3E%3C/svg%3E") center/cover no-repeat;
}

.featured-banner__content {
  position: relative;
  z-index: 2;
  padding: 20px 18px;
  flex: 1;
  max-width: 65%;
}

.featured-banner__logos {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.fb-logo-circle {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-logo-text {
  line-height: 1.2;
}

.featured-banner__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.25;
  margin-bottom: 8px;
}

.featured-banner__desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.featured-banner__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 38%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px 0;
}

.fb-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.fb-book__cover {
  background: linear-gradient(160deg, #8B4513 0%, #A0522D 100%);
  color: #F9A825;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 8px 6px;
  border-radius: 4px 8px 8px 4px;
  width: 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.fb-book__cover--2 {
  background: linear-gradient(160deg, #1a237e 0%, #283593 100%);
  color: white;
  width: 44px;
  height: 64px;
}

.fb-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #E53935;
  color: white;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 2px solid white;
}

.fb-badge strong {
  font-size: 9px;
  display: block;
}

/* ===== PROGRAM SECTION ===== */
.section-prog {
  background: var(--white);
  padding: 20px 16px;
}

.section-prog__header {
  margin-bottom: 16px;
}

.section-prog__header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.section-prog__header p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Program cards (horizontal scroll) */
.prog-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.prog-cards::-webkit-scrollbar {
  display: none;
}

.prog-card {
  min-width: 200px;
  max-width: 200px;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform 0.18s;
  display: flex;
  flex-direction: column;
}

.prog-card:active {
  transform: scale(0.98);
}

.prog-card__img {
  height: 110px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.prog-card__img--blue {
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #42A5F5 100%);
}

.prog-card__img--darkblue {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 60%, #1976D2 100%);
}

.prog-card__img--gold {
  background: linear-gradient(135deg, #E65100 0%, #F57C00 50%, #FFA726 100%);
}

.prog-card__img-content {
  position: relative;
  z-index: 2;
}

.prog-card__body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prog-card__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prog-card__progress-bar {
  background: var(--gray-200);
  border-radius: 100px;
  height: 4px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 100px;
}

.prog-card__raised {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.prog-card__amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.prog-card__label {
  font-size: 10px;
  color: var(--gray-400);
}

.prog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.prog-avatars {
  display: flex;
  align-items: center;
  gap: 0;
}

.av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  margin-left: -5px;
}

.av:first-child {
  margin-left: 0;
}

.av.sm {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.av-more {
  font-size: 10px;
  color: var(--gray-600);
  margin-left: 4px;
}

.prog-card__unlimited {
  font-size: 16px;
  color: var(--blue);
  font-weight: 700;
}

.prog-card__deadline {
  font-size: 10px;
  color: #E65100;
  font-weight: 600;
}

/* ===== SUB BANNER (Sedekah Shubuh) ===== */
.sub-banner {
  background: var(--page-bg);
  padding: 0 0 8px;
}

.sub-banner__inner {
  position: relative;
  background: linear-gradient(120deg, #1a237e 0%, #1565C0 40%, #1976D2 70%, #42a5f5 100%);
  min-height: 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sub-banner__overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 120'%3E%3Crect x='0' y='60' width='560' height='60' fill='%230D47A1' opacity='0.4'/%3E%3Crect x='100' y='30' width='80' height='90' fill='%230D47A1' opacity='0.35'/%3E%3Crect x='220' y='20' width='120' height='100' fill='%230D47A1' opacity='0.35'/%3E%3Cellipse cx='280' cy='20' rx='24' ry='28' fill='%230D47A1' opacity='0.35'/%3E%3Crect x='380' y='40' width='70' height='80' fill='%230D47A1' opacity='0.35'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

.sub-banner__content {
  position: relative;
  z-index: 2;
  padding: 20px 20px;
}

.sub-banner__title {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sub-banner__desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

/* ===== FILTER ROW ===== */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

.filter-pills {
  display: flex;
  gap: 6px;
}

.pill {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  transition: all 0.18s;
}

.pill.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ===== PROGRAM LIST ===== */
.prog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prog-list-item {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  transition: transform 0.18s;
}

.prog-list-item:active {
  transform: scale(0.99);
}

.prog-list-link {
  display: flex;
  gap: 0;
  min-height: 100px;
}

.pli-img {
  width: 110px;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 32px;
  position: relative;
  overflow: hidden;
}

.pli-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
}

.pli-img--blue {
  background: linear-gradient(135deg, #1565C0, #42A5F5);
}

.pli-img--teal {
  background: linear-gradient(135deg, #00695C, #26A69A);
}

.pli-img--orange {
  background: linear-gradient(135deg, #E65100, #FFA726);
}

.pli-img--gold {
  background: linear-gradient(135deg, #F57F17, #FDD835);
}

.pli-img--navy {
  background: linear-gradient(135deg, #1A237E, #3949AB);
}

.pli-img--purple {
  background: linear-gradient(135deg, #4A148C, #7B1FA2);
}

.pli-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pli-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pli-progress {
  height: 4px;
  background: var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
}

.pli-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 100px;
}

.pli-fill--done {
  background: var(--gray-400);
}

.pli-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pli-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.pli-donors {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.pli-donors small {
  font-size: 11px;
  color: var(--gray-600);
  margin-left: 2px;
}

/* Badges */
.badge-open {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.badge-deadline {
  background: #FFF8E1;
  color: #E65100;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

.badge-ended {
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

/* Load more */
.load-more {
  text-align: center;
  padding: 20px 0 8px;
}

.btn-load-more {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 100px;
  padding: 9px 32px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s;
}

.btn-load-more:hover {
  background: var(--blue-light);
}

/* ===== ARTICLES ===== */
.section-articles {
  background: var(--white);
  padding: 20px 16px;
  margin-top: 8px;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
  transition: opacity 0.18s;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  opacity: 0.8;
}

.article-item__img {
  width: 80px;
  min-width: 80px;
  height: 70px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.article-img--ramadhan {
  background: linear-gradient(135deg, #1a237e, #5c6bc0);
}

.article-img--edu {
  background: linear-gradient(135deg, #1565C0, #42A5F5);
}

.article-img--kegiatan {
  background: linear-gradient(135deg, #004D40, #26A69A);
}

.article-img--hikmah {
  background: linear-gradient(135deg, #E65100, #FFA726);
}

.article-img--zakat {
  background: linear-gradient(135deg, #4A148C, #7B1FA2);
}

.article-item__body {
  flex: 1;
}

.article-item__body h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: 5px;
}

.article-item__meta {
  font-size: 11px;
  color: var(--gray-400);
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.article-item__read {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}

.articles-cta {
  text-align: center;
  padding: 20px 0 8px;
}

.btn-more {
  display: inline-block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border: 1.5px solid var(--blue);
  border-radius: 100px;
  transition: all 0.18s;
}

.btn-more:hover {
  background: var(--blue-light);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 24px 16px 28px;
  margin-top: 8px;
  text-align: center;
}

.footer__social {
  margin-bottom: 16px;
}

.footer__social>span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.footer__social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer__social-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.18s;
}

.footer__social-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer__links a:hover {
  color: white;
}

.footer__links span {
  opacity: 0.4;
}

.footer__copy {
  font-size: 11px;
  opacity: 0.5;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 62px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  padding: 6px 12px;
  border-radius: 10px;
  transition: color 0.18s;
  min-width: 52px;
}

.bnav-item.active {
  color: var(--blue);
}

.bnav-item:hover {
  color: var(--blue);
}

/* ===== QRIS MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 20px 24px 48px;
  width: 100%;
  max-width: var(--max-w);
  position: relative;
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 100px;
  margin: 0 auto 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 20px;
}

.qris-box {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.qris-img-placeholder {
  width: 200px;
  height: 200px;
  border: 3px solid var(--gray-800);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 5px, var(--gray-100) 5px, var(--gray-100) 6px),
    repeating-linear-gradient(90deg, transparent, transparent 5px, var(--gray-100) 5px, var(--gray-100) 6px);
}

.qris-corners {
  position: absolute;
  inset: 10px;
}

.qc {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 4px solid var(--gray-800);
  border-radius: 4px;
  background: white;
}

.qc.tl {
  top: 0;
  left: 0;
}

.qc.tr {
  top: 0;
  right: 0;
}

.qc.bl {
  bottom: 0;
  left: 0;
}

.qris-center-text {
  position: relative;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  z-index: 2;
}

.qris-center-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
}

.qris-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.qs-item {
  background: var(--gray-50);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-qris-download {
  display: block;
  background: var(--blue);
  color: white;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 14px;
  transition: background 0.18s;
}

.btn-qris-download:hover {
  background: var(--blue-dark);
}

/* ===== DESKTOP — wider than 600px: keep centered column ===== */
@media (min-width: 600px) {
  .app-wrap {
    max-width: var(--max-w);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  }

  /* Bottom nav stays centered */
  .bottom-nav {
    max-width: var(--max-w);
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    border-radius: 0;
  }

  .slider {
    aspect-ratio: 16/6;
  }
}

/* ===== VERY LARGE DESKTOP (>1024px): wider layout ===== */
@media (min-width: 1024px) {
  :root {
    --max-w: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}