﻿@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --chip-bg: rgba(255, 255, 255, 0.04);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(148, 163, 184, 0.10);

  --radius-xl: 28px;
  --radius-lg: 20px;

  --pad-card: 28px;
  --pad-card-mobile: 20px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.12);

  --fs-hero-title: clamp(1.5rem, 2.2vw, 2rem);
  --fs-countdown: clamp(2.4rem, 4vw, 3.4rem);

  /* Gold palette */
  --gold: #D4A017;
  --gold-dark: #8B6B15;
  --gold-rgb: 212, 160, 23;
  --white: #F5F5F5;

  /* Warna Tema Dinamik (Gelang Countdown) */
  --ring-rgb: 212, 160, 23;
  --ring-rgb-dark: 139, 107, 21;
}

/* Tema Gelang: Imsak & Subuh (Ungu / Indigo) */
body[data-next-prayer="Imsak"],
body[data-next-prayer="Fajr"] {
  --ring-rgb: 99, 102, 241;
  --ring-rgb-dark: 67, 56, 202;
}

/* Tema Gelang: Syuruk (Jingga / Amber) */
body[data-next-prayer="Syuruk"] {
  --ring-rgb: 245, 158, 11;
  --ring-rgb-dark: 180, 83, 9;
}

/* Tema Gelang: Zawal (Merah / Amaran) */
body[data-next-prayer="Zawal"] {
  --ring-rgb: 239, 68, 68;
  --ring-rgb-dark: 185, 28, 28;
}

/* Tema Gelang: Maghrib (Merah Keorenan / Senja) */
body[data-next-prayer="Maghrib"] {
  --ring-rgb: 244, 81, 30;
  --ring-rgb-dark: 191, 54, 12;
}

/* Tema Gelang: Zohor Jumaat (Hijau Emerald) */
body[data-next-prayer="Dhuhr-Jumaat"] {
  --ring-rgb: 16, 185, 129;
  --ring-rgb-dark: 4, 120, 87;
}

/* =====================
   Tema Malam (Dark Mode) - Menunggu Isyak hingga Subuh
===================== */
body[data-next-prayer="Isha"],
body[data-next-prayer="Imsak"],
body[data-next-prayer="Fajr"] {
  background: radial-gradient(circle at top left, rgba(30, 58, 138, 0.05), transparent 28%),
    linear-gradient(180deg, #010206 0%, #030712 100%);
}

body[data-next-prayer="Isha"]::before,
body[data-next-prayer="Imsak"]::before,
body[data-next-prayer="Fajr"]::before,
body[data-next-prayer="Isha"]::after,
body[data-next-prayer="Imsak"]::after,
body[data-next-prayer="Fajr"]::after {
  filter: brightness(0.2);
}

body[data-next-prayer="Isha"] .hero-floating-ambient,
body[data-next-prayer="Imsak"] .hero-floating-ambient,
body[data-next-prayer="Fajr"] .hero-floating-ambient {
  filter: blur(14px) brightness(0.15);
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* Kunci skrin padat sepenuhnya tanpa scroll */
  position: relative;

  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #020617 0%, #0b1220 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 1.5s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.14), transparent 22%),
    radial-gradient(circle at 80% 12%, rgba(14, 165, 233, 0.10), transparent 18%);
  pointer-events: none;
  z-index: -1;
  animation: ambientGlow 14s ease-in-out infinite;
  will-change: transform, opacity;
  transition: filter 1.5s ease;
}

.hero-floating-ambient{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 20%, rgba(212,160,23,0.20), transparent 38%),
    radial-gradient(circle at 16% 70%, rgba(59,130,246,0.12), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(56,189,248,0.10), transparent 35%);
  filter: blur(14px);
  opacity:0.65;
  transition: filter 1.5s ease;
}

body::after {

  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.04), transparent 12%),
    radial-gradient(circle at 86% 84%, rgba(99, 102, 241, 0.03), transparent 14%),
    radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.025), transparent 18%),
    linear-gradient(90deg, transparent 32%, rgba(255, 255, 255, 0.02) 32%, rgba(255, 255, 255, 0.02) 68%, transparent 68%);
  pointer-events: none;
  opacity: 0.85;
  z-index: -1;
  animation: drift 32s linear infinite;
  will-change: transform;
  transition: filter 1.5s ease;
}

.page-shell {
  width: 100%;
  height: 100vh;
  padding: 3vh 4vw; /* Ruang padat berskala vh/vw elak limpahan */
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* =====================
   Top Bar (Header & Clock Wrapper)
===================== */
.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 30px);
  width: 100%;
  padding-bottom: 2vh;
  position: relative;
  z-index: 100;
}

/* =====================
   Flip Clock (Top Left)
===================== */
.top-left-clock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Share Tech Mono', monospace;
}

.flip-group {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(var(--ring-rgb), 0.35);
  border-radius: 10px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.85), 
    0 10px 20px rgba(0, 0, 0, 0.6), 
    inset 0 1px 0 rgba(255, 255, 255, 0.15), 
    0 0 25px rgba(var(--ring-rgb), 0.25);
  backdrop-filter: blur(12px);
  padding: clamp(8px, 1.5vh, 16px) clamp(10px, 2vw, 20px);
  overflow: hidden;
  transition: border-color 1.5s ease, box-shadow 1.5s ease;
  perspective: 1000px; /* Tambah persektif 3D untuk efek lipatan */
}

/* Garisan belahan (Split fold line) */
.flip-group::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 2;
  transform: translateY(-50%);
}

.flip-card {
  font-size: clamp(2.4rem, 5.5vh, 4.2rem);
  font-weight: 400;
  color: rgba(var(--ring-rgb), 0.95);
  line-height: 1;
  text-align: center;
  min-width: 1.8ch;
  text-shadow: 0 0 15px rgba(var(--ring-rgb), 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  transition: color 1.5s ease, text-shadow 1.5s ease;
  display: inline-block;
}

.flip-animate {
  animation: flipFold 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes flipFold {
  0% {
    transform: rotateX(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

.flip-colon {
  font-size: clamp(2.4rem, 5.5vh, 4.2rem);
  color: rgba(var(--ring-rgb), 0.6);
  margin: 0 4px;
  animation: flipBlink 1s ease-in-out infinite;
  transition: color 1.5s ease;
}

.flip-ampm {
  font-size: clamp(1.1rem, 2.5vh, 1.6rem);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  color: rgba(var(--ring-rgb), 0.85);
  margin-left: 4px;
  padding: 4px 8px;
  background: rgba(var(--ring-rgb), 0.12);
  border-radius: 6px;
  letter-spacing: 0.05em;
  transition: color 1.5s ease, background 1.5s ease;
}

@keyframes flipBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* =====================
   Top Date Section
===================== */
.top-date {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.top-date__glow {
  position: absolute;
  inset: -16px -24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 160, 23, 0.18), transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(139, 107, 21, 0.12), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
}

.top-date__text {
  position: relative;
  padding: 18px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 160, 23, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 60px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(16px);
}

.top-date__value {
  font-size: clamp(1.2rem, 3vh, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 0 22px rgba(212, 160, 23, 0.18);
}

.top-date__subtitle {
  margin-top: 6px;
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.78);
}

/* =====================
   Top Logo (Right)
===================== */
.top-right-logo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-right-logo img {
  max-height: clamp(50px, 7vh, 80px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 18px rgba(var(--ring-rgb), 0.65));
  transition: filter 1.5s ease;
}

/* =====================
   Dashboard layout
===================== */
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(440px, 1.2fr);
  gap: 2.5vw;
  flex: 1;
  min-height: 0; /* Penting untuk mengelakkan Grid melimpah */
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--pad-card);
  backdrop-filter: blur(18px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  border-color: rgba(96, 165, 250, 0.18);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 3vh, 28px);
  animation: softPulse 10s ease-in-out infinite;
  border: 1px solid rgba(var(--ring-rgb), 0.10);
  position: relative;
  overflow: hidden;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(6px, 1vh, 18px);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7dd3fc;
  opacity: 0.9;
  margin-bottom: 6px;
}

.hero-body {
  display: grid;
  gap: clamp(6px, 1vh, 16px);
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* =====================
   Current Prayer Focus + Countdown
===================== */
.current-prayer-focus {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 2px 0;
}

.current-prayer-focus__name {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(2.5rem, 6vh, 5.5rem);
  font-weight: 950;
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 0 26px rgba(var(--ring-rgb), 0.18), 0 2px 0 rgba(0, 0, 0, 0.25);
}

.current-prayer-focus__time {
  font-size: clamp(1.5rem, 3.5vh, 2.8rem);
  font-weight: 850;
  color: rgba(245, 245, 245, 0.95);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--ring-rgb), 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.countdown-ring-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 30px);
  align-items: center;
  max-width: clamp(300px, 48vh, 580px); /* Had saiz dibesarkan untuk gelang yang lebih menonjol */
  margin: 0 auto; /* Pusatkan (center) gelang */
  width: 100%;
}

.ring-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--ring-rgb), 0.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
}

.ring-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(var(--ring-rgb), 0.85), rgba(var(--ring-rgb-dark), 0.12));
  opacity: 0.12;
  pointer-events: none;
}

.ring-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--ring-rgb), 0.55);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ring {
  width: 100%;
  height: 100%;
}

.ring__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.ring__fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}

.ring-card[data-ring="jam"] .ring__fg {
  stroke: rgba(var(--ring-rgb), 0.95);
}

.ring-card[data-ring="minit"] .ring__fg {
  stroke: rgba(var(--ring-rgb), 0.80);
}

.ring-card[data-ring="saat"] .ring__fg {
  stroke: rgba(var(--ring-rgb-dark), 0.95);
}

.ring-card__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 10px;
  text-align: center;
}

.ring-card__value {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(1.2rem, 3vh, 3rem);
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 0 26px rgba(var(--ring-rgb), 0.18);
  margin-top: 4px;
}

.ring-card__label {
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.72);
}

.fade-in {
  animation: fadeInUp 0.65s ease both;
}

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

.active-prayer-pulse {
  animation: activePulse 1.2s ease-in-out infinite;
}


@keyframes activePulse {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.10),
      0 18px 60px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 28px 90px rgba(var(--ring-rgb), 0.16);
  }
}

.last-updated {
  color: #94a3b8;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* =====================
   Jadual Solat premium smart-display
===================== */
.schedule-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.92), rgba(7, 18, 38, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.10);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(212, 160, 23, 0.08);
  border-radius: 30px;
  padding: clamp(16px, 3vh, 28px);
  backdrop-filter: blur(18px);
}


.schedule-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(800px 240px at 18% 0%, rgba(212, 160, 23, 0.10), transparent 60%),
    radial-gradient(600px 280px at 90% 20%, rgba(59, 130, 246, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(212, 160, 23, 0.05), rgba(0, 0, 0, 0));
  opacity: 0.9;
  pointer-events: none;
}

.schedule-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 40%),
    radial-gradient(800px 220px at 40% -10%, rgba(255, 255, 255, 0.09), transparent 60%);
  opacity: 0.10;
  filter: blur(1px);
  pointer-events: none;
}

.schedule-top {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(6px, 1vh, 12px);
  margin-bottom: clamp(10px, 2vh, 18px);
}

.schedule-title {
  font-weight: 950;
  font-size: clamp(24px, 3.5vh, 42px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--white);
  text-shadow: 0 0 26px rgba(245, 245, 245, 0.20), 0 0 46px rgba(212, 160, 23, 0.18);
}

.schedule-date {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 0.72);
  text-transform: uppercase;
}

.schedule-location {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.28);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 34px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(212, 160, 23, 0.08);
  color: rgba(245, 245, 245, 0.78);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.schedule-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: clamp(12px, 2vh, 20px);
  flex: 1;
}

.schedule-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;

  padding: clamp(10px, 1.5vh, 20px);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.12);

  transition:
    transform 180ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.schedule-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.35) 28%, rgba(255, 255, 255, 0.08) 31%, transparent 36%) 200% 0 / 200% 100% no-repeat,
    radial-gradient(400px 140px at 50% 0%, rgba(212, 160, 23, 0.10), transparent 55%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 45%);
  opacity: 0;
  transition: opacity 1000ms ease;
  pointer-events: none;
}

.schedule-box__name,
.schedule-box span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(1.2rem, 2.5vh, 1.6rem);
  font-weight: 650;
  color: rgba(245, 245, 245, 0.86);
  letter-spacing: 0.02em;
}

.schedule-box__time,
.schedule-box span:last-child {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(1.4rem, 3vh, 2.4rem);
  font-weight: 400;
  color: rgba(245, 245, 245, 0.98);
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(212, 160, 23, 0.10);
}

.schedule-box:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 160, 23, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 45px rgba(0, 0, 0, 0.22);
}

.schedule-box:hover::before {
  opacity: 1;
}

.schedule-box.active {
  border-color: rgba(212, 160, 23, 0.72);
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.22), rgba(212, 160, 23, 0.06));
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.35),
    0 22px 70px rgba(212, 160, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  animation: activeBoxPulse 1.6s ease-in-out infinite;
}

.schedule-box.active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(212, 160, 23, 0.95), rgba(139, 107, 21, 0.0) 70%),
    radial-gradient(240px 120px at 50% 50%, rgba(212, 160, 23, 0.35), transparent 60%);
  opacity: 0.22;
  pointer-events: none;
}

.schedule-box.active::before {
  opacity: 1;
  background:
    linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.12) 25%, rgba(255, 255, 255, 0.45) 28%, rgba(255, 255, 255, 0.12) 31%, transparent 36%) 200% 0 / 200% 100% no-repeat,
    radial-gradient(400px 160px at 50% 0%, rgba(212, 160, 23, 0.20), transparent 55%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%);
  animation: glassShimmer 4s infinite linear;
}

@keyframes activeBoxPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(212, 160, 23, 0.20),
      0 18px 55px rgba(212, 160, 23, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(212, 160, 23, 0.36),
      0 28px 85px rgba(212, 160, 23, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

/* Animasi Kilauan Cermin */
@keyframes glassShimmer {
  0% {
    background-position: 200% 0, 0 0, 0 0;
  }
  20% {
    background-position: -200% 0, 0 0, 0 0;
  }
  100% {
    background-position: -200% 0, 0 0, 0 0;
  }
}

/* =====================
   Gaya Khusus: Imsak (Ungu/Indigo)
===================== */
.schedule-box--imsak {
  border-color: rgba(99, 102, 241, 0.15);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.04), rgba(99, 102, 241, 0.01));
}

.schedule-box--imsak:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 45px rgba(99, 102, 241, 0.12);
}

.schedule-box--imsak .schedule-box__name,
.schedule-box--imsak span:first-child {
  color: rgba(129, 140, 248, 0.95);
}

/* =====================
   Gaya Khusus: Syuruk (Sunrise)
===================== */
.schedule-box--syuruk {
  border-color: rgba(245, 158, 11, 0.15);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04), rgba(245, 158, 11, 0.01));
}

.schedule-box--syuruk:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 45px rgba(245, 158, 11, 0.12);
}

.schedule-box--syuruk .schedule-box__name,
.schedule-box--syuruk span:first-child {
  color: rgba(245, 158, 11, 0.95);
}


/* =====================
   Gaya Khusus: Aktif Jumaat (Hijau Emerald Pulse)
===================== */
.schedule-box--jumaat.active {
  border-color: rgba(16, 185, 129, 0.72);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.06));
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.35),
    0 22px 70px rgba(16, 185, 129, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: activeJumaatPulse 2s ease-in-out infinite;
}

.schedule-box--jumaat.active::after {
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(4, 120, 87, 0.0) 70%),
    radial-gradient(240px 120px at 50% 50%, rgba(16, 185, 129, 0.35), transparent 60%);
}

.schedule-box--jumaat.active::before {
  background:
    linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.12) 25%, rgba(255, 255, 255, 0.45) 28%, rgba(255, 255, 255, 0.12) 31%, transparent 36%) 200% 0 / 200% 100% no-repeat,
    radial-gradient(400px 160px at 50% 0%, rgba(16, 185, 129, 0.20), transparent 55%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%);
}

@keyframes activeJumaatPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.20), 0 18px 55px rgba(16, 185, 129, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.36), 0 28px 85px rgba(16, 185, 129, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}


.current-prayer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prayer-pill {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.prayer-pill.active {
  background: rgba(212, 160, 23, 0.18);
  color: #f8fafc;
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.18);
  animation: highlightPulse 1.1s ease;
}

/* =====================
   Poster / Slideshow (Iklan)
===================== */
.poster-slideshow {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.98);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.poster-slideshow.hidden {
  opacity: 0;
  visibility: hidden;
}

.poster-slideshow img,
.poster-slideshow video {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.poster-slideshow__overlay {
  display: none;
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* =====================
   Butang Muat Naik (Upload UI)
===================== */
.upload-iklan-btn {
  position: absolute;
  bottom: clamp(16px, 3vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.upload-iklan-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* =====================
   Responsive
===================== */
@media (max-width: 1100px) {
  .top-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 24px));
  }

  .schedule-card {
    padding: 22px;
  }

  .card {
    padding: 20px;
  }


  .hero-card {
    min-height: auto;
  }

  .hero-body {
    gap: 12px;
  }

  .countdown-ring-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .current-prayer-focus__name {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
}

@keyframes ambientGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.01);
    opacity: 1;
  }
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-16px, 10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  }

  50% {
    box-shadow: 0 22px 72px rgba(56, 189, 248, 0.16);
  }
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 rgba(56, 189, 248, 0);
  }

  50% {
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
  }

  100% {
    box-shadow: 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* =====================
   Accessibility (a11y) & Performance
===================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
