.schedule-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2px, 0.5vh, 10px);
  min-height: 0;
}

.sidebar-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-top-ornament {
  flex-shrink: 0;
  align-self: center;
  max-width: none;
  width: calc(100% + (var(--panel-pad-x) * 2));
  height: clamp(120px, 15vh, 165px);
  margin: calc(var(--panel-pad-y) * -1) 0 0;
  opacity: 1;
  border-top: 2px solid rgba(240, 201, 106, 0.72);
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.sidebar-endcap-wrap {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(4px, 0.6vh, 8px);
  flex-shrink: 0;
}

.left-panel {
  --panel-pad-y: clamp(14px, 1.8vh, 22px);
  --panel-pad-x: clamp(16px, 1.3vw, 24px);
  position: relative;
  z-index: 2;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: var(--panel-pad-y) var(--panel-pad-x) 0;
  background: linear-gradient(180deg, rgba(15, 90, 68, 0.96) 0%, rgba(10, 61, 46, 0.98) 100%);
  border-right: none;
  box-shadow: 4px 0 16px -2px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.left-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='rgba(226,196,109,0.32)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M45 0v24l-16 16 16 16v24M135 0v24l16 16-16 16v24M0 45h24l16-16 16 16h24M180 45h-24l-16-16-16 16h-24M45 90v24l-16 16 16 16v24M135 90v24l16 16-16 16v24M0 135h24l16-16 16 16h24M180 135h-24l-16-16-16 16h-24'/%3E%3Cpath d='M90 0v24l-18 18 18 18v30l-18 18 18 18v24M0 90h24l18-18 18 18h30l18-18 18 18h24'/%3E%3Cpath d='M90 26l10 10-10 10-10-10zM90 116l10 10-10 10-10-10zM26 90c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18-18-8.059-18-18zM118 90c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18-18-8.059-18-18z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}

.left-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
          linear-gradient(180deg, rgba(8, 35, 26, 0.08), rgba(8, 35, 26, 0.18)),
          radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 68%);
  pointer-events: none;
}

.left-panel .panel-corner {
  position: absolute;
  width: clamp(68px, 5.2vw, 96px);
  height: clamp(68px, 5.2vw, 96px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.82;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23E7C46C' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M3 39V3h36'/%3E%3Cpath d='M15 3v27h27'/%3E%3Cpath d='M3 15h27v27'/%3E%3Cpath d='M42 15H27v27'/%3E%3C/g%3E%3C/svg%3E");
}

.left-panel .panel-corner--bottom-left {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.left-panel .panel-corner--bottom-right {
  right: 0;
  bottom: 0;
  transform: scale(-1);
}

.clock-card {
  position: relative;
  z-index: 1;
  margin-top: clamp(4px, 0.8vh, 12px);
  margin-bottom: clamp(4px, 0.6vh, 10px);
}

.clock-display {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 0.6vw, 10px);
  line-height: 0.95;
}

.clock-main,
.clock-seconds,
.date-display {
  margin: 0;
}

.clock-main {
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: clamp(4.6rem, 5.8vw + 1.6vh, 10.0rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ivory-soft);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.clock-seconds {
  position: relative;
  top: clamp(0.7rem, 1.2vh, 1.6rem);
  padding-left: 0;
  font-family: "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 2.3vw + 0.9vh, 3.8rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--teal-soft);
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.date-display {
  margin-top: clamp(4px, 0.7vh, 10px);
  text-align: center;
  font-size: clamp(1.45rem, 1.45vw + 0.85vh, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--mint-soft);
}

.date-hijri {
  margin: clamp(3px, 0.5vh, 8px) 0 0;
  text-align: center;
  font-size: clamp(1.25rem, 1.2vw + 0.75vh, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.date-ornament {
  width: 100%;
  height: clamp(20px, 2.5vh, 36px);
  margin-top: clamp(4px, 0.6vh, 8px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 120'%3E%3Cg fill='none' stroke='%23E7C46C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M84 62h166'/%3E%3Cpath d='M390 62h166'/%3E%3Cpath d='M236 62l16-16 16 16'/%3E%3Cpath d='M404 62l-16-16-16 16'/%3E%3Cpath d='M292 78c8-16 17-28 28-38 11 10 20 22 28 38'/%3E%3Cpath d='M304 60l16-16 16 16-16 16Z'/%3E%3Cpath d='M320 78l10 18-10 18-10-18Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  opacity: 0.88;
}

.schedule-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.schedule-card::before,
.schedule-card::after {
  content: none;
}

.schedule-row {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(6px, 1.2vh, 22px) clamp(10px, 1vw, 16px);
  border-bottom: 2px solid rgba(185, 231, 209, 0.16);
  color: var(--white);
  border-radius: 18px;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

.schedule-row.active {
  background: linear-gradient(180deg, rgba(224, 183, 53, 0.18) 0%, rgba(224, 183, 53, 0.1) 100%);
  border: 2px solid rgba(224, 183, 53, 0.88);
  box-shadow:
          inset 0 0 0 1px rgba(255, 236, 176, 0.25),
          0 0 24px rgba(224, 183, 53, 0.15);
  color: var(--gold-highlight);
}

.schedule-row.active .prayer-name,
.schedule-row.active .prayer-time {
  color: var(--gold-highlight);
}

.prayer-name {
  font-size: clamp(1.85rem, 1.6vw + 1.2vh, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ivory-soft);
}

.prayer-time {
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.3rem, 1.9vw + 1.5vh, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--ivory-soft);
}

.schedule-endcap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0 2px;
}

.schedule-endcap-line {
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(79, 214, 194, 0.42) 48%, transparent 100%);
}

.schedule-endcap-mark {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(240, 201, 106, 0.72);
  transform: rotate(45deg);
  border-radius: 2px;
}

.schedule-endcap-mark::before,
.schedule-endcap-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: rgba(240, 201, 106, 0.68);
  transform: translate(-50%, -50%);
}

.schedule-endcap-mark::before {
  width: 1px;
  height: 10px;
}

.schedule-endcap-mark::after {
  width: 10px;
  height: 1px;
}

.sidebar-signature {
  margin: 4px 0 0;
  text-align: center;
  font-size: clamp(0.62rem, 0.72vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: rgba(232, 242, 236, 0.34);
}

@media (max-height: 800px) {
  .clock-main {
    font-size: 4.8rem;
  }
  .clock-seconds {
    top: 0.4rem;
    font-size: 1.8rem;
  }
}

@media (max-height: 720px) {
  .left-panel {
    --panel-pad-y: 12px;
    --panel-pad-x: 12px;
    padding-bottom: 0;
  }

  .sidebar-top-ornament {
    height: 100px;
    margin: calc(var(--panel-pad-y) * -1) 0 0;
  }

  .clock-card {
    margin-top: 10px;
    margin-bottom: 6px;
  }

  .clock-main {
    font-size: 4.5rem;
  }

  .clock-seconds {
    top: 0.3rem;
    font-size: 1.6rem;
  }

  .date-display {
    margin-top: 3px;
    font-size: 1.50rem;
  }

  .date-hijri {
    margin-top: 2px;
    font-size: 1.5rem;
  }

  .date-ornament {
    height: 20px;
    margin-top: 3px;
  }

  .schedule-row {
    padding: 9px 8px;
  }

  .prayer-name {
    font-size: 1.65rem;
  }

  .prayer-time {
    font-size: 1.78rem;
  }

  .schedule-endcap {
    padding-top: 8px;
  }

  .sidebar-endcap-wrap {
    margin-bottom: 0;
    padding-bottom: 4px;
  }

  .sidebar-signature {
    margin-top: 2px;
  }
}
