:root {
  --green: #006b57;
  --green2: #008f76;
  --mint: #eaf5f1;
  --ink: #14201d;
  --muted: #66716e;
  --line: #e0e7e4;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7f5;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

h1,
h2,
h3,
.brand-name {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.page-width {
  max-width: 1540px;
  margin: auto;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  background: linear-gradient(110deg, #fff, #fbfcfb 65%, #edf6f2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px #003b2610;
}

.top-inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.72fr;
  align-items: center;
  gap: 28px;
  padding: 18px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 46px;
}

.brand-name {
  font-size: 38px;
  font-weight: 800;
  color: #075645;
}

.brand-sub {
  font-size: 17px;
  color: #4f5a57;
}

.ayah {
  text-align: center;
  font-size: 15px;
  line-height: 1.65;
}

.ayah strong {
  display: block;
  color: var(--green);
  margin-top: 5px;
}

.clock-box {
  text-align: right;
}

.clock-box #clock {
  font-size: 38px;
  font-weight: 800;
  color: #075645;
}

.clock-box #date {
  font-size: 16px;
  margin-top: 8px;
}

.hijri {
  font-size: 14px;
  margin-top: 6px;
  color: #56615e;
}

/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 9px 4px 13px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green);
}

.welcome h1 {
  font-size: 24px;
  margin: 2px 0;
}

.welcome p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.location {
  font-weight: 700;
  color: var(--green);
}

/* =========================================================
   PANEL
   ========================================================= */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(15, 55, 43, 0.055);
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid #e9eeec;
  padding-bottom: 12px;
  margin-bottom: 9px;
}

.panel h2 {
  font-size: 19px;
  margin: 4px 0 0;
  font-weight: 800;
  color: #123e34;
}

.panel h2 i {
  font-size: 20px;
  margin-right: 8px;
}

.today-pill {
  background: #eaf5f1;
  color: var(--green);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
}

.panel-icon {
  font-size: 23px;
  color: var(--green);
}

/* =========================================================
   PRAYER LIST
   ========================================================= */

.prayer-list {
  display: grid;
  gap: 5px;
}

.prayer-row {
  display: grid;
  grid-template-columns: 42px 1fr 88px 80px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e7ecea;
  border-radius: 13px;
}

.prayer-row.active {
  background: #006b57;
  color: white;
  border-color: #006b57;
  box-shadow: 0 6px 18px #006b5730;
}

.prayer-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eef7f3;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.active .prayer-icon {
  background: #ffffff20;
  color: #ffd06b;
}

.prayer-name {
  font-weight: 700;
}

.prayer-time {
  font-size: 23px;
  font-weight: 800;
  text-align: right;
}

.prayer-status {
  text-align: right;
  font-size: 12px;
  color: #69736f;
}

.active .prayer-status {
  color: #d8eee7;
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #68736f;
  margin-top: 10px;
}

.panel-foot i {
  color: var(--green);
}

/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown-panel {
  text-align: center;
  height: 100%;
}

.countdown-panel .panel-head {
  text-align: left;
}

.next-label {
  font-size: 14px;
  margin-top: 15px;
}

.next-prayer {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
}

.ring {
  width: 190px;
  height: 190px;
  margin: 7px auto 12px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 70%, #dce4e1 70%);
  padding: 12px;
  display: grid;
  place-items: center;
}

.ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-content: center;
}

.count-num {
  font-size: 38px;
  font-weight: 800;
}

.count-label {
  font-size: 13px;
  color: var(--muted);
}

.estimate {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 9px;
  background: #f0f4f2;
  font-size: 12px;
}

.note {
  margin-top: 12px;
  background: #edf7f3;
  border-radius: 10px;
  padding: 9px;
  font-size: 11px;
  color: #47625a;
  text-align: left;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-card {
  min-height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: radial-gradient(
    circle at 75% 35%,
    #5b7d62,
    #263b31 35%,
    #101d1a 78%
  );
  box-shadow: 0 8px 30px rgba(15, 55, 43, 0.08);
}

.hero-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 17, 15, 0.9),
    rgba(7, 17, 15, 0.4),
    rgba(7, 17, 15, 0.08)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 27px;
}

.quote {
  font-size: 45px;
}

.hero-content h2 {
  font-size: 23px;
  line-height: 1.25;
}

.hero-content p {
  font-size: 13px;
  opacity: 0.9;
}

/* =========================================================
   KHATIB JUMAT
   ========================================================= */

.khatib-date {
  font-size: 13px;
  color: #4d5754;
  margin: 4px 0 14px;
}

.khatib-profile {
  display: flex;
  gap: 15px;
  align-items: center;
}

/*
    AVATAR KHATIB
*/

.avatar {
  width: 108px;
  height: 108px;

  min-width: 108px;
  min-height: 108px;

  border-radius: 50%;

  background: linear-gradient(145deg, #1a6e5c, #163a33);

  display: grid;
  place-items: center;

  overflow: hidden;

  flex: 0 0 auto;
}

/*
    FOTO KHATIB
*/

.avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  /*
       Mengatur posisi wajah.
       20% = posisi wajah sedikit ke atas.
    */
  object-position: center 20%;

  border-radius: 50%;

  margin: 0;
  padding: 0;
}

/*
    INISIAL JIKA FOTO TIDAK ADA
*/

.avatar span {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  font-size: 28px;
  font-weight: 800;

  color: #fff;
}

.khatib-profile h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.theme-label {
  font-size: 12px;
  color: #69736f;
}

.theme {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 3px 0 9px;
}

.time-chip {
  display: inline-block;
  background: #f0f3f2;
  border: 1px solid #dfe5e2;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
}

/* =========================================================
   ACTIVITY
   ========================================================= */

.activity-list {
  display: grid;
}

.activity {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf1ef;
}

.activity:last-child {
  border-bottom: 0;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #edf7f3;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.activity-main {
  min-width: 0;
}

.activity-main strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-main small {
  display: block;
  color: #6a7471;
  font-size: 10px;
  margin-top: 3px;
}

.activity-time {
  font-size: 10px;
  white-space: nowrap;
  color: #3e4945;
}

/* =========================================================
   DONATION
   ========================================================= */

.donation-body {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
}

.qr-placeholder {
  height: 110px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #edf5f1);
  border: 1px dashed #a9bbb5;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--green);
}

.qr-placeholder i {
  font-size: 62px;
}

.qr-placeholder img {
  max-width: 100%;
  max-height: 110px;
  border-radius: 10px;
}

.donation p {
  font-size: 11px;
  margin: 0 0 7px;
}

/* =========================================================
   ANNOUNCEMENT
   ========================================================= */

.announce-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef6f2;
  border-radius: 11px;
  padding: 10px;
  font-size: 11px;
}

.tag {
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  padding: 6px 8px;
  font-weight: 700;
}

.announce-date {
  font-weight: 700;
  color: #5e6965;
}

.announce-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: #004d40;
  color: #fff;
  border-radius: 16px 16px 0 0;
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 12px;
}

/* =========================================================
   TABLET / LAPTOP
   ========================================================= */

@media (max-width: 1200px) {
  .top-inner {
    grid-template-columns: 1fr 1fr;
  }

  .clock-box {
    display: none;
  }

  .ayah {
    display: none;
  }

  .brand-name {
    font-size: 30px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .top-inner {
    min-height: 82px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    font-size: 27px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .welcome {
    align-items: start;
  }

  .welcome h1 {
    font-size: 19px;
  }

  .location {
    font-size: 11px;
  }

  .prayer-row {
    grid-template-columns: 36px 1fr 75px;
  }

  .prayer-status {
    display: none;
  }

  .prayer-time {
    font-size: 20px;
  }

  .panel {
    padding: 14px;
  }

  .khatib-profile {
    align-items: flex-start;
  }

  /*
       Avatar mobile
    */

  .avatar {
    width: 82px;
    height: 82px;

    min-width: 82px;
    min-height: 82px;
  }

  .avatar span {
    font-size: 23px;
  }

  .theme {
    font-size: 13px;
  }

  .footer {
    border-radius: 0;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    text-align: center;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .avatar {
    width: 75px;
    height: 75px;

    min-width: 75px;
    min-height: 75px;
  }

  .avatar span {
    font-size: 21px;
  }

  .khatib-profile {
    gap: 10px;
  }

  .khatib-profile h3 {
    font-size: 15px;
  }

  .theme {
    font-size: 12px;
  }
}

/* =========================================================
   SMART TV / LARGE SCREEN
   ========================================================= */

@media (min-width: 1600px) {
  .avatar {
    width: 115px;
    height: 115px;

    min-width: 115px;
    min-height: 115px;
  }

  .avatar span {
    font-size: 30px;
  }
}
