:root {
  --bg: #fbf7f1; /* creamy parchment */
  --card: rgba(17, 13, 7, 0.04);
  --accent: #6b3f00; /* deep antique brown */
  --gold: #c99b3a;
  --text: #2b2b2b;
  --muted: #6b5b4a;
  --glass: rgba(255, 255, 255, 0.6);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: radial-gradient(circle at 10% 10%, #fffaf3 0%, var(--bg) 30%),
    linear-gradient(180deg, #efe7d6 0, #fff 60%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
/* .......container...... */
.wrap {
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.85)
  );
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(15, 10, 5, 0.12);
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.left {
  padding: 28px;
  background-image: linear-gradient(
      180deg,
      rgba(255, 250, 243, 0.6),
      rgba(255, 250, 243, 0.4)
    ),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><defs><linearGradient id="g" x1="0" x2="1"><stop offset="0" stop-color="%23fff9ef"/><stop offset="1" stop-color="%23efe1cc"/></linearGradient></defs><rect width="100%" height="100%" fill="%23f8efe0" opacity="0.06"/></svg>');
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #ffd88d);
  box-shadow: 0 6px 18px rgba(171, 123, 45, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.5);
}
.logo-circle i {
  color: #fff;
  font-size: 26px;
}
h1.title {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 0;
  font-size: 20px;
  color: var(--accent);
}
p.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.search {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.search input,
.search select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(20, 12, 8, 0.06);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  color: var(--text);
  width: 100%;
}
.search button {
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
}
.search small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 12px;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.35)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.meta .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meta .muted {
  color: var(--muted);
  font-size: 13px;
}
.meta .strong {
  font-weight: 600;
  color: var(--accent);
}

.right {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
}
.date-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.date-left {
  display: flex;
  flex-direction: column;
}
.greg {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.hijri {
  font-size: 13px;
  color: var(--muted);
}

.pray-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.pray-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.35)
  );
  padding: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.pray-card .icon {
  width: 54px;
  height: 54;
  border-radius: 10px;
  background: rgba(107, 63, 0, 0.06);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 22px;
}
.pray-name {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}
.pray-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.sunrise {
  font-size: 12px;
  color: var(--muted);
}

.next-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.progress {
  flex: 1;
  height: 12px;
  background: linear-gradient(
    90deg,
    rgba(200, 155, 58, 0.12),
    rgba(200, 155, 58, 0.06)
  );
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffd88d);
  width: 20%;
}
.next-text {
  min-width: 180px;
  font-size: 13px;
  color: var(--muted);
}

.notes {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
    margin: 12px;
    border-radius: 12px;
  }
  .left {
    order: 2;
  }
  .right {
    order: 1;
  }
  .pray-grid {
    grid-template-columns: 1fr;
  }
  .logo-circle {
    width: 56px;
    height: 56px;
  }
}
.logo-circle {
  animation: glow 4s ease-in-out infinite;
}
@keyframes glow {
  0% {
    box-shadow: 0 6px 18px rgba(171, 123, 45, 0.12);
  }
  50% {
    box-shadow: 0 12px 30px rgba(171, 123, 45, 0.22);
  }
  100% {
    box-shadow: 0 6px 18px rgba(171, 123, 45, 0.12);
  }
}

.error {
  background: rgba(255, 200, 200, 0.9);
  color: #6b0b0b;
  padding: 10px;
  border-radius: 8px;
  display: none;
}
