/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f2f6f9;
}

/* ================= PAGE WRAP ================= */
.page {
  min-height: 100vh;
  padding: 10px;
  background: #f2f6f9;
}

/* ================= APP CONTENT ================= */
.app {
  width: 100%;
  min-height: 100vh;
  background: #f2f6f9;
}

/* ================= LAPTOP / TABLET ================= */
@media (min-width: 769px) {
  body {
    background: #e5e7eb;
  }

  .page {
    max-width: 768px;
    margin: 24px auto;
  }

  .app {
    margin-bottom: 75px;
    min-height: calc(100vh - 48px);
    border-radius: 28px;
    background: #f2f6f9;
    padding: 10px;
    box-shadow:
    0 20px 50px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.6);
  }
}

/* ================= MENU GRID ================= */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.menu-item {
  background: linear-gradient(135deg, #00b3b8, #00969b);
  border-radius: 16px;
  padding: 14px 6px;
  text-align: center;
  color: #fff;
}

.menu-item img {
  width: 28px;
  margin: 0 auto 6px;
}

.menu-item span {
  font-size: 11px;
  font-weight: 600;
}

/* ================= STAT CARD ================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.stat-card b {
  font-size: 18px;
}

.stat-card span {
  font-size: 11px;
  color: #666;
}

.nav-item {
  font-size: 10px;
  color: rgba(255,255,255,.75);
  text-align: center;
}

.nav-item.active {
  color: #fff;
  font-weight: 700;
}


/* ================= AUTO SCALE ================= */
@media (max-height: 820px) {
  .container {
    transform: scale(.9);
  }
}

@media (max-height: 720px) {
  .container {
    transform: scale(.8);
  }
}

/* ================= MOBILE ASLI ================= */
@media (max-width: 768px) {

  /* Background luar ikut app */
  .hero {
    background: #f2f6f9;
    padding: 0;
    align-items: stretch;
  }

  /* Hilangkan semua frame */
  .container {
    width: 100%;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    background: #f2f6f9;
  }

  /* Hilangkan notch */
  .container::before {
    display: none;
  }

  /* Konten full */
  .app {
    padding: 0;
    margin: 0;
    height: 100%;
  }
}


/* ================= BOTTOM NAV ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #02c6da, #0b6c96);
  padding: 12px 0;
  display: flex;
  justify-content: space-around;
  z-index: 999;
}

/* BATASI SAAT DESKTOP */
@media (min-width: 769px) {
  .bottom-nav {
    max-width: 768px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 22px 22px 0 0;
  }
}


/* ITEM */
.nav-item {
  text-decoration: none;
  color: rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  transition: all .25s ease;
}

/* ICON */
.nav-item img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* ACTIVE */
.nav-item.active {
  color: #ffffff;
}

.nav-item.active img {
  transform: scale(1.15);
}

/* HOVER / TAP */
.nav-item:hover {
  color: #ffffff;
}

.nav-item:active {
  transform: scale(.92);
}


/* ================= BANNER SLIDER ================= */
.banner-slider {
  margin-bottom: 18px;
}

.slider {
  position: relative;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

/* SLIDE */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: flex-end;
}

/* ACTIVE */
.slide.active {
  opacity: 1;
}

/* TEXT */
.slide span {
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.65),
    rgba(0,0,0,.05)
  );
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= MENU GRID ================= */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
/* ITEM */
.menu-item {
  background: linear-gradient(359deg, #03bbd2, #67e6ff);
  border-radius: 16px;
  padding: 14px 6px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  transition: all .25s ease;
}


/* ICON */
.menu-item img {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  display: block;
}

/* TEXT */
.menu-item span {
  font-size: 11px;
  font-weight: 600;
}

/* HOVER / TAP */
.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* ACTIVE */
.menu-item:active {
  transform: scale(.96);
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ================= DASHBOARD STAT ================= */
.dashboard-stat {
  margin-bottom: 18px;
}

/* HEADER */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dash-header h3 {
  font-size: 14px;
  font-weight: 700;
}

.dash-header span {
  font-size: 11px;
  color: #888;
}

/* GRID */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* CARD */
.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* INFO */
.stat-info b {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.stat-info span {
  font-size: 11px;
  color: #666;
}

/* SPARKLINE */
.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
}

.sparkline i {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, #00b3b8, #00969b);
  border-radius: 4px;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ================= HEADER ================= */
.header {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  margin-bottom: 16px;
}

/* LOGO */
.header-logo {
  text-align: center;
  margin-bottom: 10px;
}

.header-logo img {
  height: 40px;
}

/* INFO WRAP */
.header-info {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}

/* LEFT */
.info-left {
  font-size: 11px;
  color: #444;
}

.info-left .hijri {
  font-weight: 600;
  margin-bottom: 4px;
}

.clock {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
}

.pray-time {
  font-size: 11px;
  margin-bottom: 2px;
}

.location {
  font-size: 10px;
  color: #777;
}

/* RIGHT */
.info-right {
  background: #f6f9fb;
  border-radius: 14px;
  padding: 8px;
}

.count-title {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.countdown div {
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  padding: 6px 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.countdown b {
  display: block;
  font-size: 14px;
}

.countdown span {
  font-size: 9px;
  color: #666;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .header-info {
    grid-template-columns: 1.5fr 1fr;
  }

  .clock {
    font-size: 26px;
  }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f2f6f9;
  color: #222;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===============================
   LAYOUT WRAPPER
================================ */


/* ===============================
   HEADER
================================ */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo {
  width: 48px;
  height: 48px;
}

.top-right {
  flex: 1;
}

.clock {
  font-size: 22px;
  font-weight: 700;
}

.date {
  font-size: 12px;
  color: #555;
}

.loc {
  font-size: 11px;
  color: #888;
}

/* ===============================
   COUNTDOWN
================================ */
.pray {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pray-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.pray-item b {
  display: block;
  font-size: 18px;
}

.pray-item span {
  font-size: 11px;
  color: #666;
}

/* ===============================
   USER CARD
================================ */
.user {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #02c6da, #0b6c96);
  color: #fff;
  padding: 14px;
  border-radius: 18px;
  margin-bottom: 16px;
}

.user img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.user h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.user p {
  font-size: 12px;
  opacity: .9;
  margin-bottom: 8px;
}

.user button {
  background: #fff;
  color: #00969b;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ===============================
   STAT
================================ */
.stat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stat div {
  background: #ffffff;
  border-radius: 14px;
  text-align: center;
  padding: 10px 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.stat b {
  display: block;
  font-size: 14px;
}

.stat span {
  font-size: 11px;
  color: #666;
}

/* ===============================
   MENU
================================ */
.menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.menu-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

/* ===============================
   BANNER
================================ */
.banner {
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #fff;
  padding: 16px;
  border-radius: 18px;
  text-align: center;
}

.banner h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.banner p {
  font-size: 12px;
  opacity: .95;
}

/* ===============================
   BOTTOM NAV
================================ */
.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  box-shadow: 0 -6px 18px rgba(0,0,0,.08);
  font-size: 12px;
}

.bottom div {
  color: #888;
}

.bottom .active {
  color: #00969b;
  font-weight: 700;
}

/* ===============================
   RESPONSIVE TABLET & DESKTOP
================================ */
@media (min-width: 768px) {
  .container {
    max-width: 520px;
  }

  .pray-item b {
    font-size: 20px;
  }

  .menu-box {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    justify-content: center;
  }

  .hero {
    width: 726px;
  }
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}