:root {
  --bg: #eef0f8;
  --card: #ffffff;
  --text: #111a3a;
  --muted: #6b7280;
  --border: #e2e6f6;
  --accent: #5b2dff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "DM Sans", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.page-wrap {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 12px 24px;
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #374151;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
}
.calendar-card,
.feature-list,
.faq-card,
.hero-strip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(38, 44, 86, 0.14);
}
.top-ad-wrap,
.bottom-ad-wrap {
  margin: 8px 0 12px;
}
.ad-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.month-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: Georgia, "Times New Roman", serif;
  position: relative;
}
.month-title::before,
.month-title::after {
  content: "";
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, rgba(91,45,255,0), rgba(91,45,255,.55));
  position: absolute;
  top: 50%;
}
.month-title::before {
  right: 100%;
  margin-right: 20px;
}
.month-title::after {
  left: 100%;
  margin-left: 20px;
  transform: scaleX(-1);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 0;
  gap: 2px;
  padding: 0 12px 12px;
}
.weekday,
.day-cell {
  border: 1px solid #e6e9f8;
  padding: 8px 4px;
  font-size: 0.8rem;
}
.weekday {
  min-height: 38px;
  font-weight: 700;
  color: #202b4f;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border-color: #ebedfa;
}
.weekday.sun,
.weekday.sat { color: #5b2dff; }
.day-cell {
  position: relative;
  background: #fdfdff;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.day-cell.muted { color: #838ca8; background: #f8f9ff; }
.day-cell.active {
  background: transparent;
  border-color: transparent;
}
.day-number {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  margin-top: 2px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.day-cell.active .day-number {
  color: #fff;
  background: radial-gradient(circle at 30% 20%, #8d4aff 0%, #5b2dff 55%, #3f1cdf 100%);
  border: 2px solid #f0f2ff;
  box-shadow: 0 8px 20px rgba(91, 45, 255, 0.42);
}
.event-chip {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #5b2dff;
  color: transparent;
  padding: 0;
  font-size: 0;
}
.event-chip.alt { background: #7c3aed; }
.day-sub {
  margin-top: 3px;
  font-size: 0.68rem;
  color: #8e95ac;
}
.calendar-premium {
  position: relative;
  padding-bottom: 10px;
}
.calendar-fab {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  background: radial-gradient(circle at 30% 20%, #8d4aff 0%, #5b2dff 60%, #3f1cdf 100%);
  box-shadow: 0 14px 28px rgba(91, 45, 255, 0.45);
}
.month-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border-color: #e8ebf8;
  box-shadow: 0 8px 18px rgba(18, 26, 67, 0.09);
  color: #2d3353;
  font-size: 1.2rem;
}
.calendar-bottom-pill {
  margin: 4px auto 2px;
  width: calc(100% - 28px);
  background: #fff;
  border: 1px solid #e8ebf8;
  border-radius: 999px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  box-shadow: 0 8px 18px rgba(18, 26, 67, 0.08);
}
.pill-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #232a4d;
  font-size: 0.88rem;
}
.pill-date i { color: #5b2dff; }
.pill-today-btn {
  border: 0;
  background: transparent;
  color: #5b2dff;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}
.pill-today-btn i { margin-right: 4px; }
.cta-wrap {
  text-align: center;
  margin: 14px 0 10px;
}
.btn-primary {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
}
.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 16px 0 10px;
}
.feature-list {
  padding: 10px;
}
.feature-item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  align-items: flex-start;
  color: inherit;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
a{
  text-decoration: none;
}
.feature-item i {
  color: #2563eb;
  font-size: 1.1rem;
  margin-top: 3px;
}
.feature-item h4 {
  margin: 0 0 4px;
  font-size: 0.93rem;
}
.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.hero-strip {
  margin-top: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-strip i { color: #2563eb; font-size: 1.3rem; }
.hero-strip h3 { margin: 0 0 4px; font-size: 1.1rem; }
.hero-strip p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.faq-card {
  margin-top: 14px;
  padding: 10px;
}
.faq-item {
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  margin: 0;
  text-align: left;
  font-weight: 600;
  padding: 10px 12px 4px;
  font-size: 1rem;
}
.faq-a {
  display: block !important;
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.events-panel {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  height: calc(100vh - 130px);
  padding: 10px;
}
.events-panel h3 { margin: 2px 0 8px; font-size: 0.95rem; }
.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.events-list li {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 6px;
}
.event-meta { color: var(--muted); font-size: 0.78rem; }
.event-actions {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}
.mini-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 12px;
}
.modal.open { display: flex; }
.modal-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}
.form-row { margin-bottom: 10px; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 4px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  font: inherit;
}
.footer {
  text-align: center;
  margin-top: 18px;
}
.footer a {
  color: #4b5563;
  text-decoration: none;
  margin: 0 8px;
  font-size: 0.8rem;
}
.footer-copy {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 0.72rem;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  height: calc(100vh - 130px);
  padding: 14px;
}
.info-card h1 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.info-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 8px;
}
