/* ============================================================
   cms_gamification - Panel component CSS (auto-extracted)
   Generated from cms_gamification/templates/cms_gamification/*.html <style> blocks
   Do not edit directly; edit the source templates or re-run extract.
   ============================================================ */

.cmsg-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; overflow: hidden;
}
.cmsg-head {
  padding: 14px 20px; background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: #1e3a8a; font-size: 0.95rem;
}
.cmsg-head a.more {
  font-size: 0.78rem; font-weight: 400; color: #2563eb;
  text-decoration: none;
}
.cmsg-sample-note {
  background: #fef9e6; border-left: 3px solid #f59e0b;
  padding: 6px 14px; font-size: 0.72rem; color: #78350f;
}
.cmsg-tier-bronze { background: #fed7aa; color: #9a3412; }
.cmsg-tier-silver { background: #e5e7eb; color: #374151; }
.cmsg-tier-gold { background: #fef3c7; color: #92400e; }
.cmsg-tier-platinum { background: linear-gradient(135deg, #e0e7ff, #ddd6fe); color: #4338ca; }

.cmsg-ach-grid { padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cmsg-ach-item { display: flex; gap: 10px; align-items: center; background: #f8fafc; border-radius: 6px; padding: 10px; position: relative; }
.cmsg-ach-item:hover { background: #eff4fd; }
.cmsg-ach-done { background: linear-gradient(135deg, #d1fae5, #fff); }
.cmsg-ach-hidden { opacity: 0.55; }
.cmsg-ach-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.cmsg-ach-info { flex: 1; min-width: 0; }
.cmsg-ach-name { font-weight: 700; font-size: 0.88rem; color: #1f2937; margin-bottom: 2px; }
.cmsg-ach-progress { display: flex; align-items: center; gap: 6px; }
.cmsg-ach-bar { flex: 1; height: 4px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.cmsg-ach-bar-fill { height: 100%; background: linear-gradient(90deg, #1e3a8a, #d97706); border-radius: 999px; }
.cmsg-ach-count { font-size: 0.7rem; color: #6b7280; font-family: monospace; }
.cmsg-ach-check { color: #059669; font-size: 1.2rem; }

.cmsg-mission-reset { font-size: 0.72rem; font-weight: 400; color: #6b7280; }
.cmsg-mission-list { list-style: none; padding: 0; margin: 0; }
.cmsg-mission-item { display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #f3f4f6; }
.cmsg-mission-item:last-child { border-bottom: none; }
.cmsg-mission-item:hover { background: #f8fafc; }
.cmsg-mission-done { background: linear-gradient(90deg, #d1fae5, transparent); }
.cmsg-mission-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: #eff4fd; color: #1e3a8a;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.cmsg-mission-done .cmsg-mission-icon { background: #d1fae5; color: #059669; }
.cmsg-mission-body { flex: 1; min-width: 0; }
.cmsg-mission-name { font-weight: 700; font-size: 0.92rem; color: #1f2937; }
.cmsg-mission-desc { font-size: 0.78rem; color: #6b7280; margin-bottom: 4px; }
.cmsg-mission-bar-wrap { display: flex; align-items: center; gap: 8px; }
.cmsg-mission-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.cmsg-mission-bar-fill { height: 100%; background: linear-gradient(90deg, #1e3a8a, #d97706); border-radius: 999px; }
.cmsg-mission-count { font-size: 0.72rem; color: #6b7280; font-family: monospace; font-weight: 700; }
.cmsg-mission-reward { flex-shrink: 0; text-align: right; font-size: 0.78rem; display: flex; flex-direction: column; gap: 2px; }
.cmsg-mission-claim {
  margin-top: 4px; padding: 4px 10px; border: none;
  background: #059669; color: #fff; border-radius: 3px;
  font-weight: 700; cursor: pointer; font-size: 0.74rem;
}
.cmsg-mission-claim:hover { background: #047857; }
.cmsg-mission-claimed { color: #059669; font-size: 1rem; }

.cmsg-event-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--banner) 12%, #fff), #fff);
  border: 2px solid var(--banner);
  border-radius: 10px; padding: 22px 28px;
  position: relative; overflow: hidden;
}
.cmsg-event-card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--banner) 25%, transparent), transparent 70%);
}
.cmsg-event-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--banner); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  position: relative; z-index: 1;
}
.cmsg-event-featured {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 3px 10px; border-radius: 999px;
  background: #fff3c7; color: #92400e;
  font-size: 0.7rem; font-weight: 700;
}
.cmsg-event-body { position: relative; z-index: 1; margin-top: 10px; }
.cmsg-event-body h3 {
  font-size: 1.3rem; color: #1f2937; margin-bottom: 8px; font-weight: 800;
}
.cmsg-event-body p { color: #4b5563; font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; }
.cmsg-event-meta { display: flex; gap: 14px; font-size: 0.78rem; color: #6b7280; margin-bottom: 14px; flex-wrap: wrap; }
.cmsg-event-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 999px;
  background: var(--banner); color: #fff !important;
  font-weight: 700; text-decoration: none;
}
.cmsg-event-btn:hover { filter: brightness(1.08); }

.cmsg-evlist-grid { padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cmsg-evlist-item {
  background: linear-gradient(135deg, color-mix(in srgb, var(--banner) 8%, #fff), #fff);
  border-left: 4px solid var(--banner);
  border-radius: 6px; padding: 12px 14px;
  cursor: pointer; position: relative;
}
.cmsg-evlist-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.cmsg-evlist-tag {
  display: inline-block; padding: 2px 8px;
  background: #6b7280; color: #fff;
  border-radius: 3px; font-size: 0.64rem;
  font-weight: 700; letter-spacing: 0.08em;
}
.cmsg-evlist-tag-live { background: var(--banner); }
.cmsg-evlist-item h4 { font-size: 0.95rem; color: #1f2937; margin: 8px 0 4px; font-weight: 800; }
.cmsg-evlist-item p { font-size: 0.78rem; color: #6b7280; margin: 0 0 8px; line-height: 1.55; }
.cmsg-evlist-date { font-size: 0.74rem; color: #6b7280; }

.cmsg-hh-banner {
  display: flex; gap: 18px; align-items: center;
  padding: 20px 24px; border-radius: 10px;
  background: linear-gradient(135deg, #fff3c7, #fef2f2);
  border: 2px solid #d97706;
  position: relative; overflow: hidden;
}
.cmsg-hh-banner::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,0.25), transparent 70%);
}
.cmsg-hh-active { background: linear-gradient(135deg, #fef3c7, #ffedd5); border-color: #d97706; }
.cmsg-hh-upcoming { background: linear-gradient(135deg, #eff4fd, #fff); border-color: #1e3a8a; }
.cmsg-hh-icon {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  background: #d97706; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 4px rgba(217,119,6,0.2);
  animation: hh-pulse 2s ease-in-out infinite;
  position: relative; z-index: 1;
}
.cmsg-hh-upcoming .cmsg-hh-icon { background: #1e3a8a; box-shadow: 0 0 0 4px rgba(30,58,138,0.2); animation: none; }
@keyframes hh-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(217,119,6,0.2); }
  50% { box-shadow: 0 0 0 10px rgba(217,119,6,0.08); }
}
.cmsg-hh-content { flex: 1; position: relative; z-index: 1; }
.cmsg-hh-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #d97706; color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.cmsg-hh-upcoming .cmsg-hh-tag { background: #1e3a8a; }
.cmsg-hh-content h3 { font-size: 1.25rem; color: #1f2937; margin: 4px 0; font-weight: 800; }
.cmsg-hh-content p { color: #4b5563; font-size: 0.88rem; margin: 0 0 8px; line-height: 1.6; }
.cmsg-hh-content p strong { color: #d97706; font-size: 1.1em; }
.cmsg-hh-meta { font-size: 0.82rem; color: #6b7280; font-weight: 600; }

.cmsg-lb-list { list-style: none; margin: 0; padding: 0; }
.cmsg-lb-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; border-bottom: 1px solid #f3f4f6;
}
.cmsg-lb-list li:last-child { border-bottom: none; }
.cmsg-lb-list li:hover { background: #f8fafc; }
.cmsg-lb-gold { background: linear-gradient(90deg, #fef3c7, transparent); }
.cmsg-lb-silver { background: linear-gradient(90deg, #e5e7eb, transparent); }
.cmsg-lb-bronze { background: linear-gradient(90deg, #fed7aa, transparent); }
.cmsg-lb-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-weight: 800; font-size: 0.88rem;
  background: #f3f4f6; color: #6b7280; flex-shrink: 0;
}
.cmsg-lb-gold .cmsg-lb-rank { background: #fbbf24; color: #fff; }
.cmsg-lb-silver .cmsg-lb-rank { background: #9ca3af; color: #fff; }
.cmsg-lb-bronze .cmsg-lb-rank { background: #d97706; color: #fff; }
.cmsg-lb-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #d97706);
  color: #fff; font-weight: 700; font-size: 0.72rem; flex-shrink: 0;
}
.cmsg-lb-name { flex: 1; font-weight: 600; font-size: 0.92rem; color: #1f2937; }
.cmsg-lb-score {
  font-family: 'SF Mono', Monaco, monospace;
  font-weight: 800; color: #d97706; font-size: 1rem;
}
.cmsg-lb-score small { font-size: 0.68rem; color: #6b7280; margin-left: 2px; font-weight: 400; }

.cmsg-streak-body { padding: 18px 22px; }
.cmsg-streak-main {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; padding: 14px 18px;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border-radius: 6px; flex-wrap: wrap; gap: 12px;
}
.cmsg-streak-big { display: flex; align-items: baseline; gap: 4px; }
.cmsg-streak-num {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 2.8rem; font-weight: 800; color: #d97706;
  line-height: 1;
}
.cmsg-streak-unit { font-size: 0.9rem; color: #6b7280; font-weight: 700; }
.cmsg-streak-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: #6b7280; }
.cmsg-streak-meta strong { color: #1f2937; font-family: monospace; }

.cmsg-streak-cal-label {
  font-size: 0.72rem; color: #6b7280; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.cmsg-streak-cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.cmsg-streak-day {
  padding: 8px 4px; border-radius: 4px; text-align: center;
  background: #f3f4f6; position: relative; color: #6b7280;
}
.cmsg-streak-day-done { background: #d1fae5; color: #047857; }
.cmsg-streak-day-today { outline: 2px solid #d97706; outline-offset: -2px; }
.cmsg-streak-day-wk { font-size: 0.68rem; font-weight: 700; }
.cmsg-streak-day-num { font-size: 0.88rem; font-weight: 700; }
.cmsg-streak-check { font-size: 0.7rem; color: #059669; margin-top: 2px; }

.cmsg-streak-bonus {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px; background: #fef9e6;
  border-left: 3px solid #f59e0b; border-radius: 3px;
  font-size: 0.86rem;
}
.cmsg-streak-bonus strong { color: #78350f; display: block; }
.cmsg-streak-bonus-desc { font-size: 0.8rem; color: #6b7280; margin-top: 2px; }

