:root {
  --bg: #f7f0f2;
  --panel: #fffafa;
  --pink: #d99aae;
  --pink-strong: #c67691;
  --gray: #7e7479;
  --line: #e6d8de;
  --heart: #bb6f8a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Vazirmatn, system-ui, sans-serif;
  color: #453d41;
  background:
    radial-gradient(circle at 12% 12%, #eccbd7 0 70px, transparent 71px),
    radial-gradient(circle at 88% 82%, #ecd7de 0 90px, transparent 91px),
    linear-gradient(180deg, #fdf7f8 0%, var(--bg) 100%);
  padding: 18px;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--gray);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background: #fff;
}

.tag span {
  color: var(--heart);
}

h1 {
  margin: 10px 0 6px;
  color: #5f5158;
}

.subtitle {
  margin: 0;
  color: var(--gray);
}

.top-cards,
.calendar-wrap,
.bottom-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.card::before {
  content: "✿";
  position: absolute;
  top: 10px;
  left: 12px;
  color: #d9a8b9;
  font-size: 0.9rem;
}

.card::after {
  content: "♥";
  position: absolute;
  top: 10px;
  right: 12px;
  color: #d194aa;
  font-size: 0.78rem;
}

h2,
h3 {
  margin: 0 0 10px;
  color: #5f5158;
}

.time-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pink-strong);
}

.persian-date,
.english-date {
  margin: 6px 0 0;
  color: var(--gray);
  font-family: Vazirmatn, Inter, sans-serif;
}

.decor {
  margin-top: 8px;
  color: #c88ca1;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-header button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e8d0d9;
  background: #fff;
  color: #8c6a77;
  cursor: pointer;
}

.calendar-header button:hover {
  background: #f8edf1;
}

.weekdays,
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekdays {
  margin: 10px 0 8px;
}

.weekdays span {
  text-align: center;
  color: #8f7d84;
  font-size: 0.8rem;
  font-weight: 600;
}

.persian-weekdays {
  font-family: Vazirmatn, Inter, sans-serif;
}

.day {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid #efe4e8;
  background: #fff;
  display: grid;
  place-items: center;
  color: #5e5056;
  font-size: 0.9rem;
}

.day.empty {
  border-style: dashed;
  background: #fffdfd;
  color: transparent;
}

.day.today {
  background: #eed4dd;
  border-color: #ddb4c2;
  color: #5d404b;
  font-weight: 700;
}

.goal-title {
  margin: 0;
  font-weight: 700;
  color: #5f5158;
}

.goal-subtitle {
  margin: 6px 0 12px;
  color: var(--gray);
}

.goal-countdown {
  margin: 0 0 12px;
  padding: 9px 10px;
  border: 1px solid #ecdde2;
  border-radius: 10px;
  background: #fff;
  color: #6f5c64;
  font-weight: 600;
}

.goal-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f5158;
  cursor: pointer;
}

.goal-check input {
  accent-color: #c8839c;
  width: 16px;
  height: 16px;
}

.goal-card.done .goal-title,
.goal-card.done .goal-subtitle,
.goal-card.done .goal-countdown,
.goal-card.done .goal-check span {
  text-decoration: line-through;
  opacity: 0.65;
}

.quote-text {
  margin: 0;
  line-height: 1.7;
  color: #5a4d53;
}

@media (max-width: 640px) {
  .time-value {
    font-size: 1.7rem;
  }
}
