  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: sans-serif;
    padding: 20px;
  }

  #download-btn {
    margin-bottom: 20px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #c9a227, #e8c84a);
    color: #1a0a00;
    border: none;
    border-radius: 8px;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(201,162,39,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  #download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(201,162,39,0.55);
  }

  /* ─── CARD ─────────────────────────────────────── */
  #card {
    width: 1080px;
    height: 1080px;
    position: relative;
    overflow: hidden;
    background: #0b1a2f;
    font-family: 'Cormorant Garamond', serif;
  }

  /* Radial background glow */
  #card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 55% at 50% 30%, rgba(16,60,90,0.95) 0%, transparent 70%),
      radial-gradient(ellipse 90% 70% at 80% 80%, rgba(8,35,60,0.7) 0%, transparent 70%),
      linear-gradient(175deg, #0b1a2f 0%, #060e1c 100%);
    z-index: 0;
  }

  /* ─── SVG GEOMETRIC PATTERNS ─── */
  .geo-pattern {
    position: absolute;
    z-index: 1;
    opacity: 0.18;
  }
  .geo-pattern.top { top: 0; left: 0; right: 0; }
  .geo-pattern.bottom { bottom: 0; left: 0; right: 0; }

  /* Corner ornaments */
  .corner {
    position: absolute;
    z-index: 2;
    width: 110px;
    height: 110px;
    opacity: 0.65;
  }
  .corner.tl { top: 10px; left: 10px; }
  .corner.tr { top: 10px; right: 10px; transform: scaleX(-1); }
  .corner.bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
  .corner.br { bottom: 10px; right: 10px; transform: scale(-1,-1); }

  /* Side stars */
  .side-star {
    position: absolute;
    z-index: 1;
    opacity: 0.12;
  }

  /* ─── CONTENT LAYER ─── */
  .content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 60px 30px;
  }

  /* ─── HEADER ─── */
  .header-badge {
    background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(201,162,39,0.06));
    border: 1px solid rgba(201,162,39,0.35);
    border-radius: 40px;
    padding: 6px 28px;
    font-family: 'Cinzel', serif;
    font-size: 1px;
    letter-spacing: 3px;
    color: #c9a227;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  .title {
    font-family: 'Cinzel', serif;
    font-size: 56px;
    font-weight: 900;
    text-align: center;
    line-height: 1.08;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 60px rgba(201,162,39,0.3), 0 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 4px;
  }
  .title span {
    color: #c9a227;
    display: block;
  }

  .subtitle-arabic {
    font-family: 'Amiri', serif;
    font-size: 30px;
    color: rgba(201,162,39,0.75);
    letter-spacing: 2px;
    margin-bottom: 22px;
  }

  /* Divider */
  .divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
  }
  .divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.5), transparent);
  }
  .divider-diamond {
    width: 8px;
    height: 8px;
    background: #c9a227;
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  /* ─── DATES SECTION ─── */
  .dates-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 18px;
    position: relative;
  }

  /* Timeline connector */
  .timeline-line {
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.4), rgba(201,162,39,0.8), rgba(201,162,39,0.8), rgba(201,162,39,0.4), transparent);
    transform: translateY(-50%);
    z-index: 0;
  }

  .date-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .date-card.white-day .date-bubble {
    background: linear-gradient(135deg, rgba(201,162,39,0.22), rgba(201,162,39,0.08));
    border: 2px solid rgba(201,162,39,0.7);
    box-shadow: 0 0 20px rgba(201,162,39,0.2), inset 0 0 20px rgba(201,162,39,0.05);
  }
  .date-card.white-day .date-num {
    color: #f0d060;
  }

  .date-bubble {
    width: 120px;
    height: 130px;
    border-radius: 19px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 10px 6px;
  }

  .date-day {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .date-num {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    font-weight: 900;
    color: rgba(255,255,255,0.45);
    line-height: 1;
    margin-bottom: 1px;
  }

  .date-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
  }

  .date-hijri {
    font-family: 'Amiri', serif;
    font-size: 19px;
    color: rgba(201,162,39,0.65);
    text-align: center;
    letter-spacing: 0.5px;
  }

  /* Moon badge on 14th (full moon) */
  .moon-badge {
    position: absolute;
    top: -14px;
    right: -8px;
    font-size: 30px;
    filter: drop-shadow(0 0 8px rgba(255,255,200,0.6));
  }

  /* ─── HADITH SECTION ─── */
  .hadith-block {
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(201,162,39,0.2);
    border-left: 3px solid rgba(201,162,39,0.7);
    border-radius: 12px;
    padding: 18px 26px;
    margin-bottom: 14px;
    position: relative;
  }

  .hadith-label {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    letter-spacing: 3px;
    color: #c9a227;
    text-transform: uppercase;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .hadith-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(201,162,39,0.25);
  }

  .hadith-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-style: italic;
    color: rgba(255,255,255,0.88);
    line-height: 1.55;
    text-align: center;
  }
  .hadith-text em {
    color: #e8c84a;
    font-style: normal;
    font-weight: 600;
  }

  .hadith-source {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    color: rgba(201,162,39,0.6);
    letter-spacing: 2px;
    text-align: right;
    margin-top: 8px;
  }

  /* ─── SUNNAH ROW ─── */
  .sunnah-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19px;
    margin-bottom: 14px;
  }

  .sunnah-pill {
    background: linear-gradient(135deg, rgba(201,162,39,0.18), rgba(201,162,39,0.06));
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: 40px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sunnah-pill-label {
    font-family: 'Cinzel', serif;
    font-size: 29px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
  }

  .sunnah-day {
    font-family: 'Cinzel', serif;
    font-size: 25px;
    font-weight: 700;
    color: #e8c84a;
    letter-spacing: 1px;
  }

  .sunnah-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(201,162,39,0.5);
  }

  /* ─── SECOND HADITH ─── */
  .hadith-block-sm {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 24px;
    margin-bottom: 18px;
    text-align: center;
  }

  .hadith-text-sm {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-style: italic;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
  }
  .hadith-text-sm em {
    color: #e8c84a;
    font-style: normal;
  }
  .hadith-source-sm {
    font-family: 'Cinzel', serif;
    font-size: 19px;
    color: rgba(201,162,39,0.5);
    letter-spacing: 2px;
    margin-top: 6px;
    text-align: right;
  }

  /* ─── LOGO FOOTER ─── */
  .footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
  }

  .logo-img {
    height: 52px;
    object-fit: contain;
    filter: brightness(1.1);
  }
