.hidayamcn-app {
  --c-green: #0f5132;
  --c-green-dark: #0a3d26;
  --c-green-tint: #e8f3ed;
  --c-gold: #d4af37;
  --c-gold-dark: #a8842a;
  --c-cream: #f8f9fa;
  --c-white: #ffffff;
  --c-ink: #1b2b22;
  --c-muted: #5b6b62;
  --c-border: #e4e7e2;
  --c-correct: #1e8449;
  --c-incorrect: #c0392b;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--c-ink);
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 0 32px;
}
.hidayamcn-app * { box-sizing: border-box; }
.hidayamcn-app h3 { font-family: "Poppins", sans-serif; color: var(--c-green-dark); margin: 0 0 6px; }
.hidayamcn-app .muted { color: var(--c-muted); }
.hidayamcn-app .hidden { display: none !important; }
.hidayamcn-text-center { text-align: center; }

.hidayamcn-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15,81,50,0.06), 0 8px 24px -12px rgba(15,81,50,0.18);
  padding: 26px;
  margin-bottom: 20px;
}

/* Points chip */
.hidayamcn-points-chip {
  display: inline-flex;
  gap: 6px;
  background: var(--c-white);
  border: 1px solid #f0dfa0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Buttons */
.hidayamcn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.hidayamcn-btn-primary { background: var(--c-gold); color: var(--c-green-dark); }
.hidayamcn-btn-primary:hover { background: #dfbb4d; }
.hidayamcn-btn-secondary { background: transparent; color: var(--c-green-dark); border: 1.5px solid var(--c-border); margin-top: 10px; }
.hidayamcn-btn-secondary:hover { border-color: var(--c-green); }
.hidayamcn-btn-block { width: 100%; }
.hidayamcn-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Ad-blocker notice */
.hidayamcn-adblock-notice {
  background: #fdf6e3;
  border: 1.5px solid #f0dfa0;
  color: var(--c-green-dark);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Batch list of today's quizzes */
.hidayamcn-batch-list { display: grid; gap: 10px; }
.hidayamcn-batch-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--c-border); background: #fff;
}
.hidayamcn-batch-row-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 0.9rem;
  background: var(--c-green-tint); color: var(--c-green);
}
.hidayamcn-batch-row.locked .hidayamcn-batch-row-num { background: var(--c-border); color: var(--c-muted); }
.hidayamcn-batch-row.completed .hidayamcn-batch-row-num { background: var(--c-correct); color: #fff; }
.hidayamcn-batch-row-body { flex: 1; min-width: 0; }
.hidayamcn-batch-row-title { font-weight: 600; }
.hidayamcn-batch-row-sub { font-size: 0.78rem; color: var(--c-muted); }
.hidayamcn-batch-row-sub.warn { color: var(--c-gold-dark); }
.hidayamcn-batch-row-action .hidayamcn-btn { padding: 9px 16px; font-size: 0.85rem; white-space: nowrap; }
.hidayamcn-batch-row.locked { opacity: 0.65; }
.hidayamcn-batch-row.locked .hidayamcn-batch-row-action { color: var(--c-muted); font-size: 0.8rem; }

/* Quiz batch position label above the runner topbar */
.hidayamcn-quiz-batch-label {
  font-size: 0.75rem; font-weight: 700; color: var(--c-gold-dark);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}

/* Gate form */
.hidayamcn-field { margin-bottom: 14px; }
.hidayamcn-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--c-green-dark); margin-bottom: 5px; }
.hidayamcn-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--c-border);
  font-size: 0.95rem;
  background: var(--c-cream);
}
.hidayamcn-field input:focus { border-color: var(--c-green); outline: none; background: #fff; }
.hidayamcn-field-error { color: var(--c-incorrect); font-size: 0.78rem; margin-top: 4px; display: none; }
.hidayamcn-field.invalid input { border-color: var(--c-incorrect); }
.hidayamcn-field.invalid .hidayamcn-field-error { display: block; }
.hidayamcn-error-line { color: var(--c-incorrect); font-size: 0.85rem; margin-top: 10px; }

/* Quiz runner */
.hidayamcn-quiz-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hidayamcn-category {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--c-green); background: var(--c-green-tint); padding: 4px 10px; border-radius: 999px;
}
.hidayamcn-progress-label { font-size: 0.8rem; color: var(--c-muted); font-weight: 600; }
.hidayamcn-progress-dots { display: flex; gap: 5px; margin-bottom: 20px; }
.hidayamcn-progress-dots span {
  width: 16px; height: 16px; border-radius: 50%; background: var(--c-border); transition: background 0.2s ease;
}
.hidayamcn-progress-dots span.filled { background: var(--c-gold); }
.hidayamcn-progress-dots span.current { background: var(--c-green); }

.hidayamcn-question { font-size: 1.15rem; font-weight: 600; color: var(--c-green-dark); margin-bottom: 18px; }
.hidayamcn-options { display: grid; gap: 10px; margin-bottom: 18px; }
.hidayamcn-option-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--c-border);
  background: #fff; font-size: 0.96rem; cursor: pointer;
}
.hidayamcn-option-btn:hover:not([disabled]) { border-color: var(--c-gold); background: #fffdf5; }
.hidayamcn-option-btn .opt-letter {
  width: 24px; height: 24px; border-radius: 50%; background: var(--c-green-tint); color: var(--c-green);
  font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hidayamcn-option-btn.correct { border-color: var(--c-correct); background: #eafaf0; }
.hidayamcn-option-btn.correct .opt-letter { background: var(--c-correct); color: #fff; }
.hidayamcn-option-btn.incorrect { border-color: var(--c-incorrect); background: #fdecea; }
.hidayamcn-option-btn.incorrect .opt-letter { background: var(--c-incorrect); color: #fff; }
.hidayamcn-option-btn[disabled] { cursor: default; }

.hidayamcn-feedback { padding: 11px 15px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; }
.hidayamcn-feedback.correct { background: #eafaf0; color: var(--c-correct); }
.hidayamcn-feedback.incorrect { background: #fdecea; color: var(--c-incorrect); }

/* Result */
.hidayamcn-result { text-align: center; }
.hidayamcn-score { font-family: "Poppins", sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--c-green-dark); margin: 10px 0 4px; }
.hidayamcn-score .of-ten { font-size: 1.1rem; color: var(--c-muted); font-weight: 500; }

/* Leaderboard */
.hidayamcn-lb-row { display: grid; grid-template-columns: 36px 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 4px; }
.hidayamcn-lb-row + .hidayamcn-lb-row { border-top: 1px solid var(--c-border); }
.hidayamcn-lb-rank { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--c-muted); text-align: center; }
.hidayamcn-lb-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c-green-tint); color: var(--c-green);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: "Poppins", sans-serif;
}
.hidayamcn-lb-name { font-weight: 600; }
.hidayamcn-lb-name small { display: block; font-weight: 400; color: var(--c-muted); font-size: 0.75rem; }
.hidayamcn-lb-points { font-weight: 700; color: var(--c-green-dark); text-align: right; }

/* ------------------------------------------------------------
   Ad slots — fixed heights reserve space so nothing shifts layout
   ------------------------------------------------------------ */
.hidayamcn-ad-slot { margin: 20px auto; overflow: hidden; }
.hidayamcn-ad-banner { max-width: 728px; min-height: 90px; }
@media (max-width: 640px) { .hidayamcn-ad-banner { max-width: 300px; min-height: 250px; } }
.hidayamcn-ad-in-article, .hidayamcn-ad-post-result { max-width: 468px; min-height: 100px; }

.hidayamcn-ad-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: #fff; border-top: 1px solid var(--c-border);
  padding: 6px 34px 6px 10px; min-height: 60px;
}
.hidayamcn-ad-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.12); border: none; width: 22px; height: 22px; border-radius: 50%;
  font-size: 14px; cursor: pointer; line-height: 1;
}
@media (min-width: 861px) { .hidayamcn-ad-sticky { display: none; } }
