
/* ── archivecard ── */
.archivecard-wrap {
  position: relative;
  padding-bottom: 9px;
}
.archivecard-wrap .arch-layer2 {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 100%;
  border-radius: 18px;
  background: #fef9c3;
  border: 1px solid #fef08a;
  z-index: 0;
}
.archivecard-wrap .arch-layer3 {
  position: absolute;
  bottom: 4px;
  left: 5px;
  right: 5px;
  height: 100%;
  border-radius: 18px;
  background: #fef08a;
  border: 1px solid #fcd34d;
  z-index: 1;
}

.archivecard {
  position: relative;
  z-index: 2;
  background: #fffbeb;
  border-radius: 18px;
  border: 1px solid #fcd34d;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .archivecard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(249,209,31,.2); }
}
.archivecard:active { transform: scale(.98); }

.archivecard .arc-month {
  font-size: 26px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}
.archivecard .arc-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.archivecard .arc-icon { font-size: 0; flex-shrink: 0; }
.archivecard .arc-icon img { width: 30px; height: 30px; object-fit: contain; }
.archivecard .arc-icon .arc-emoji { font-size: 26px; }

.archivecard .arc-info { flex: 1; min-width: 0; }
.archivecard .arc-badgey {
  font-size: 8px;
  font-weight: 800;
  color: #92400e;
  letter-spacing: .5px;
  background: #fde68a;
  border-radius: 5px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 4px;
}
.archivecard h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.archivecard p {
  font-size: 10.5px;
  color: #78716c;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── arenacard ── */
.arenacard {
  background: #0f172a;
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #1e293b;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .arenacard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(37,99,235,.35); }
}
.arenacard:active { transform: scale(.98); }

.arenacard .arena-dots {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
}
.arenacard .arena-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.arenacard .arena-dots .ad1 { background: #ef4444; }
.arenacard .arena-dots .ad2 { background: #f59e0b; }
.arenacard .arena-dots .ad3 { background: #22c55e; }

.arenacard .arena-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  margin-bottom: 12px;
}
.arenacard .arena-icon img { width: 30px; height: 30px; object-fit: contain; }
.arenacard .arena-icon .arena-emoji { font-size: 26px; }

.arenacard .arena-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #93c5fd;
  background: rgba(59,130,246,.2);
  border-radius: 5px;
  padding: 2px 8px;
  margin-bottom: 7px;
}
.arenacard h3 { font-size: 13px; font-weight: 700; color: #ffffff; margin: 0 0 4px; }
.arenacard p {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arenacard .arena-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 12px;
}

/* ── bulletincard ── */
.bulletincard {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #fecaca;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bulletincard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(220,38,38,.15); }
}
.bulletincard:active { transform: scale(.98); }

.bulletincard .bul-bar {
  background: #dc2626;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bulletincard .bul-bar-txt {
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.bulletincard .bul-stamp {
  font-size: 8px;
  font-weight: 800;
  color: #dc2626;
  background: #ffffff;
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: .3px;
}
.bulletincard .bul-stripes {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    #dc2626 0px, #dc2626 8px,
    #fca5a5 8px, #fca5a5 16px
  );
}
.bulletincard .bul-body {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bulletincard .bul-icon { font-size: 0; flex-shrink: 0; }
.bulletincard .bul-icon img { width: 30px; height: 30px; object-fit: contain; }
.bulletincard .bul-icon .bul-emoji { font-size: 26px; }
.bulletincard .bul-info { flex: 1; min-width: 0; }
.bulletincard h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.bulletincard p { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bulletincard .bul-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.bulletincard .bul-tag { font-size: 8px; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: .3px; }
.bulletincard .bul-tag.bt-red  { background: #fee2e2; color: #dc2626; }
.bulletincard .bul-tag.bt-hot  { background: #dc2626; color: #ffffff; }

/* ── corporatecard ── */
.corporatecard {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #ede9fe;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .corporatecard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(139,92,246,.15); }
}
.corporatecard:active { transform: scale(.98); }

.corporatecard .corp-triangle {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 76px 76px 0;
  border-color: transparent #8b5cf6 transparent transparent;
  z-index: 1;
}
.corporatecard .corp-corner-emoji {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 17px;
  z-index: 2;
}
.corporatecard .corp-body { padding: 16px 14px; position: relative; z-index: 0; }
.corporatecard .corp-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f5f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  margin-bottom: 10px;
}
.corporatecard .corp-icon-wrap img { width: 28px; height: 28px; object-fit: contain; }
.corporatecard .corp-icon-wrap .corp-emoji { font-size: 22px; }
.corporatecard .corp-badge { font-size: 8px; font-weight: 800; color: #7c3aed; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.corporatecard h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.corporatecard p { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.corporatecard .corp-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #7c3aed;
  background: #f5f3ff;
  border-radius: 8px;
  padding: 6px 10px;
}

/* ── editioncard ── */
.editioncard {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #ffe5c8;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .editioncard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(255,190,132,.2); }
}
.editioncard:active { transform: scale(.98); }

.editioncard .ed-header {
  background: #ffbe84;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.editioncard .ed-week {
  font-size: 9px;
  font-weight: 800;
  color: #7c3311;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.editioncard .ed-badge {
  font-size: 7px;
  font-weight: 800;
  color: #7c3311;
  background: rgba(255,255,255,.45);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: .4px;
}

.editioncard .ed-body {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.editioncard .ed-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: #fff4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  flex-shrink: 0;
}
.editioncard .ed-icon img { width: 28px; height: 28px; object-fit: contain; }
.editioncard .ed-icon .ed-emoji { font-size: 22px; }

.editioncard .ed-info { flex: 1; min-width: 0; }
.editioncard h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.editioncard p {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editioncard .ed-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.editioncard .ed-arrow svg { width: 14px; height: 14px; color: #d97706; }

/* ── livecard ── */
@keyframes ao-live-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(.8); }
}

.livecard {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e9e5f5;
  border-left: 6px solid #bd80ff;
  padding: 14px 14px 14px 12px;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .livecard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(189,128,255,.18); }
}
.livecard:active { transform: scale(.98); }

.livecard .live-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: .3px;
}
.livecard .live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: ao-live-blink 1.4s ease-in-out infinite;
}

.livecard .lc-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  background: #f3e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
}
.livecard .lc-icon img { width: 28px; height: 28px; object-fit: contain; }
.livecard .lc-icon .lc-emoji { font-size: 26px; }

.livecard .lc-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.livecard .lc-badge {
  font-size: 8px;
  font-weight: 800;
  color: #9333ea;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.livecard h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}
.livecard p {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.livecard .lc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 700;
  color: #9333ea;
}

/* ── passcard ── */
.passcard {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #ddd6fe;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .passcard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(139,92,246,.15); }
}
.passcard:active { transform: scale(.98); }

.passcard .pass-top {
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.passcard .pass-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #ede9fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  flex-shrink: 0;
}
.passcard .pass-icon img { width: 26px; height: 26px; object-fit: contain; }
.passcard .pass-icon .pass-emoji { font-size: 22px; }
.passcard .pass-info { flex: 1; min-width: 0; }
.passcard .pass-badge { font-size: 8px; font-weight: 800; color: #6d28d9; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px; }
.passcard h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.passcard p { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Perforated tear line */
.passcard .pass-tear {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.passcard .pass-tear .pt-hole {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: var(--bg, #f8fafc);
  border: 1px solid #ddd6fe;
  flex-shrink: 0;
  margin: 0 -9px;
  z-index: 1;
}
.passcard .pass-tear .pt-dash {
  flex: 1;
  border-top: 2px dashed #c4b5fd;
  margin: 0 2px;
}

.passcard .pass-bottom {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.passcard .pass-labels {
  font-size: 8px;
  color: #6d28d9;
  font-weight: 700;
  letter-spacing: .5px;
}
.passcard .pass-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ede9fe;
  display: flex;
  align-items: center;
  justify-content: center;
}
.passcard .pass-arrow svg { width: 14px; height: 14px; color: #7c3aed; }

/* ── trophycard ── */
.trophycard {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #fed7aa;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .trophycard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(249,115,22,.18); }
}
.trophycard:active { transform: scale(.98); }

.trophycard .tp-confetti {
  display: flex;
  height: 5px;
}
.trophycard .tp-confetti span { flex: 1; }
.trophycard .tp-confetti .c1 { background: #f97316; }
.trophycard .tp-confetti .c2 { background: #fbbf24; }
.trophycard .tp-confetti .c3 { background: #22c55e; }
.trophycard .tp-confetti .c4 { background: #3b82f6; }
.trophycard .tp-confetti .c5 { background: #a855f7; }
.trophycard .tp-confetti .c6 { background: #f97316; }

.trophycard .tp-body { padding: 14px 14px 10px; display: flex; gap: 13px; align-items: center; }
.trophycard .tp-icon-col { text-align: center; flex-shrink: 0; }
.trophycard .tp-emoji { font-size: 30px; display: block; margin-bottom: 2px; }
.trophycard .tp-stars { font-size: 9px; color: #f97316; letter-spacing: 1px; }

.trophycard .tp-info { flex: 1; min-width: 0; }
.trophycard .tp-badge { font-size: 8px; font-weight: 800; color: #c2410c; letter-spacing: .5px; background: #ffedd5; border-radius: 5px; padding: 2px 8px; display: inline-block; margin-bottom: 4px; }
.trophycard h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.trophycard p { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.trophycard .tp-footer {
  margin: 0 14px;
  border-top: 1px dashed #fed7aa;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trophycard .tp-checks { font-size: 9px; color: #ea580c; font-weight: 600; }
.trophycard .tp-go { font-size: 13px; color: #ea580c; }

/* ── classic ── */
/* Classic card styles are inherited from base CSS. */

/* ── digest ── */
/* spa/card-digest.css — Digest card: date column, chip, free/premium pills. */

/* ══════════════════════════════════════════════════════════════
   DIGEST CARD — exact match to card desgin.html
   Scoped inside .digest-card to avoid conflicts with classic
   .free-pill / .premium-pill elsewhere in spa.css
   ══════════════════════════════════════════════════════════════ */

/* Grid wrapper — same as design file .cards-wrap */
.cards-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  padding: 10px;
}

/* Outer card */
.digest-card {
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-decoration: none;
  color: #0d1117;
  min-height: 72px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  border: 1px solid #f2f5f9;
}

/* ── Date calendar widget (content cards) ─────────────────── */
.digest-card .date-col {
  width: 44px;
  background: #ffffff;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 10px 12px 12px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #f0f3f6;
}

.digest-card .date-month {
  background: linear-gradient(90deg, #2563eb, #20b2aa);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  padding: 2.5px 0;
}

.digest-card .date-day {
  font-size: 22px;
  font-weight: 900;
  color: #0d1117;
  line-height: 1;
  letter-spacing: -0.5px;
  margin-top: 5px;
}

.digest-card .date-wd {
  font-size: 8.5px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 1px;
  margin-bottom: 5px;
}

/* ── Icon column (category cards — no date) ──────────────── */
.digest-card .cat-icon-col {
  width: 44px;
  background: #f1f5fd;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 10px 12px 12px;
  flex-shrink: 0;
  min-height: 56px;
  font-size: 24px;
  line-height: 1;
}

/* ── Middle content area ─────────────────────────────────── */
.digest-card .card-content {
  flex: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.digest-card .card-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.digest-card .card-chip {
  display: inline-flex;
  align-items: center;
  background: #e8f0fe;
  color: #2563eb;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 5px;
  width: fit-content;
}

.digest-card .card-title {
  font-size: 12px;
  font-weight: 700;
  color: #0d1117;
  line-height: 1.2;
}
@media (min-width: 576px) {
  .digest-card .card-title { font-size: 13px; }
}

.digest-card .card-topics {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.digest-card .card-topics svg {
  width: 11px;
  height: 11px;
  color: #8a96a3;
  flex-shrink: 0;
  margin-top: 1px;
}
.digest-card .card-topics span {
  font-size: 10.5px;
  font-weight: 400;
  color: #5a6779;
  line-height: 1.35;
}

/* ── Free / Premium pills (scoped to digest-card) ─────────── */
/* Use !important to override any inherited .free-pill / .premium-pill
   styles from classic card rules elsewhere in spa.css              */
.digest-card .free-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: #e5f6ed !important;
  color: #16a34a !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  padding: 2px 5px !important;
  width: fit-content !important;
  min-width: unset !important;
  max-width: unset !important;
  border: none !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  /* Neutralise base.css .free-pill bloat */
  height: auto !important;
  margin-top: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: static !important;
  white-space: normal !important;
}
/* Kill the glassmorphism ::after overlay from base.css */
.digest-card .free-pill::after {
  display: none !important;
  content: none !important;
}
.digest-card .free-pill svg {
  width: 8.5px !important;
  height: 8.5px !important;
  min-width: 8.5px !important;
  flex-shrink: 0;
  stroke-width: 3;
}

.digest-card .premium-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: #fffbeb !important;
  color: #d97706 !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  padding: 2px 5px !important;
  width: fit-content !important;
  min-width: unset !important;
  max-width: unset !important;
  border: none !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}
.digest-card .premium-pill svg {
  width: 8.5px !important;
  height: 8.5px !important;
  min-width: 8.5px !important;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

/* ── Right arrow ─────────────────────────────────────────── */
.digest-card .card-arrow-wrap {
  display: flex;
  align-items: center;
  padding: 0 8px 0 2px;
  flex-shrink: 0;
}
.digest-card .arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
}
.digest-card .arrow-btn svg { width: 13px; height: 13px; color: #2563eb; }

/* ── gridcard ── */
/* spa/card-grid.css — Grid card: compact tile, gradient icon presets. */

/* ═══════════════════════════════════════════════════════════════
   GRID CARD — compact centered icon+title+subtitle (gridcard)
   ══════════════════════════════════════════════════════════════ */

/* Full-width group wrapper inside .cards */
.cards > .gridcard-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  animation: cardIn 0.25s ease both;
}
@media (min-width: 576px) {
  .cards > .gridcard-group { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (min-width: 992px) {
  .cards > .gridcard-group { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}

/* Individual gridcard */
.gridcard {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border: 1px solid #F6F8FA;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.gridcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
@media (min-width: 992px) {
  .gridcard { padding: 20px 10px 16px; }
}

/* Icon box */
.gridcard .gc-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  flex-shrink: 0;
  overflow: hidden;
}
@media (min-width: 992px) {
  .gridcard .gc-icon { width: 36px; height: 36px; border-radius: 10px; }
}

/* Gradient presets — mapped from tool_config icon_color names */
.gridcard .gc-blue   { background: linear-gradient(180deg, #44A6FF, #007AF5); box-shadow: 0 14px 24px -6px rgba(0,122,245,0.45); }
.gridcard .gc-green  { background: linear-gradient(180deg, #2ED768, #00B147); box-shadow: 0 14px 24px -6px rgba(0,177,71,0.45); }
.gridcard .gc-purple { background: linear-gradient(180deg, #C56BFF, #9214FF); box-shadow: 0 14px 24px -6px rgba(146,20,255,0.45); }
.gridcard .gc-orange { background: linear-gradient(180deg, #FFAB3D, #FF6600); box-shadow: 0 14px 24px -6px rgba(255,102,0,0.45); }
.gridcard .gc-red    { background: linear-gradient(180deg, #FF689A, #F00E52); box-shadow: 0 14px 24px -6px rgba(240,14,82,0.45); }
.gridcard .gc-teal   { background: linear-gradient(180deg, #32E2CE, #00A896); box-shadow: 0 14px 24px -6px rgba(0,168,150,0.45); }

/* Title */
.gridcard h3 {
  font-size: 12px;
  font-weight: 700;
  color: #101828;
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: -0.1px;
  padding: 0 4px;
}
@media (min-width: 576px) {
  .gridcard h3 { font-size: 13px; }
}

/* Subtitle */
.gridcard p {
  font-size: 10.5px;
  font-weight: 400;
  color: #98A2B3;
  line-height: 1.35;
  margin: 0;
  padding: 0 4px;
}

/* ── listcard ── */
/* spa/card-list.css — List card: full-width row, listcard-group container. */

/* ══════════════════════════════════════════════════════════════
   LIST CARD
   Full-width row: circle icon · title + desc · badge + chevron
   Design from card design.html — "listcard" style key
   ══════════════════════════════════════════════════════════════ */

/* ── LISTCARD GROUP CONTAINER ─────────────────────────────────
   Wraps consecutive listcard items — matches mcq-list-container
   from card design.html: one unified white box with dividers.
   ─────────────────────────────────────────────────────────── */
.cards > .listcard-group {
  grid-column: 1 / -1;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  overflow: hidden;
  animation: cardIn 0.25s ease both;
}

/* Span the full grid width for standalone listcards (outside a group) */
.cards > .listcard {
  grid-column: 1 / -1;
  animation: cardIn 0.25s ease both;
}
.cards > .listcard:nth-child(1) { animation-delay: 0.02s; }
.cards > .listcard:nth-child(2) { animation-delay: 0.06s; }
.cards > .listcard:nth-child(3) { animation-delay: 0.10s; }
.cards > .listcard:nth-child(4) { animation-delay: 0.14s; }
.cards > .listcard:nth-child(5) { animation-delay: 0.18s; }
.cards > .listcard:nth-child(6) { animation-delay: 0.22s; }

.listcard {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #eeeeee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  text-decoration: none;
  cursor: pointer;
  gap: 16px;
  min-width: 0;
  transition: background 0.15s ease, box-shadow 0.18s ease;
}

.listcard:hover {
  background: #f9fafd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

/* ── Listcard inside group: remove individual card chrome ──── */
.listcard-group .listcard {
  border-radius: 0;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid #eeeeee;
  animation: none; /* group container animates, not each row */
}

.listcard-group .listcard:last-child {
  border-bottom: none;
}

.listcard-group .listcard:hover {
  background: #f9fafd;
  box-shadow: none;
}

/* Circle icon */
.listcard .lc-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  overflow: hidden;
  /* default neutral */
  background: #eaf1fa;
  color: #2374e1;
}

.listcard .lc-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Title + description */
.listcard .lc-content {
  flex: 1;
  min-width: 0;
}

.listcard .lc-title {
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: normal;
}
@media (min-width: 576px) {
  .listcard .lc-title { font-size: 13px; }
}

.listcard .lc-desc {
  font-size: 10.5px;
  color: #717171;
  font-weight: 400;
  line-height: 1.4;
}

/* Right side: badge + chevron */
.listcard .lc-action {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.listcard .lc-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  /* default */
  background: #eaf1fa;
  color: #2374e1;
}

.listcard .lc-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #4b5563;
}

/* ── Named colour presets ─────────────────────────────────── */
.listcard .lc-blue   { background: #eaf1fa; color: #2374e1; }
.listcard .lc-orange { background: #fff2e8; color: #fd5601; }
.listcard .lc-green  { background: #e9f7eb; color: #29a347; }
.listcard .lc-purple { background: #f0ebff; color: #7c3aed; }
.listcard .lc-red    { background: #feecec; color: #dc2626; }

/* ── mcq ── */
/* spa/card-mcq.css — MCQ Practice card: icon circle, colour presets, responsive. */

/* ══════════════════════════════════════════════════════════════
   MCQ PRACTICE CARD
   Horizontal card with icon circle, title, coloured rule & link
   Adapted from card desgin.html for SPA rendering
   ══════════════════════════════════════════════════════════════ */
.cards > .mcq-card {
  animation: cardIn 0.25s ease both;
}
.cards > .mcq-card:nth-child(1) { animation-delay: 0.02s; }
.cards > .mcq-card:nth-child(2) { animation-delay: 0.06s; }
.cards > .mcq-card:nth-child(3) { animation-delay: 0.10s; }
.cards > .mcq-card:nth-child(4) { animation-delay: 0.14s; }
.cards > .mcq-card:nth-child(5) { animation-delay: 0.18s; }
.cards > .mcq-card:nth-child(6) { animation-delay: 0.22s; }

.mcq-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
}

.mcq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.mcq-card .mcq-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  overflow: hidden;
}

.mcq-card .mcq-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.mcq-card .mcq-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mcq-card .mcq-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  white-space: normal;
}
@media (min-width: 576px) {
  .mcq-card .mcq-info h3 { font-size: 13px; }
}
@media (min-width: 992px) {
  .mcq-card .mcq-icon { font-size: 16px; }
}

.mcq-card .mcq-line {
  height: 3px;
  width: 26px;
  margin-bottom: 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.mcq-card .mcq-link {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.mcq-card .mcq-link svg {
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .mcq-card .mcq-icon { font-size: 18px; }
  .mcq-card .mcq-link { font-size: 8.5px; }
}
@media (min-width: 992px) {
  .mcq-card .mcq-link { font-size: 8px; }
}

/* Named colour presets — bg, circle, text, rule, link */
.mcq-card.blue-mcq   { background: #F1F6FF; }
.mcq-card.blue-mcq   .mcq-icon { background: #4898F6; color: #fff; }
.mcq-card.blue-mcq   .mcq-info h3 { color: #0D4A90; }
.mcq-card.blue-mcq   .mcq-line { background: #4898F6; }
.mcq-card.blue-mcq   .mcq-link { color: #1C68E6; }

.mcq-card.green-mcq  { background: #F1FBF2; }
.mcq-card.green-mcq  .mcq-icon { background: #54D189; color: #fff; }
.mcq-card.green-mcq  .mcq-info h3 { color: #0A6A40; }
.mcq-card.green-mcq  .mcq-line { background: #54D189; }
.mcq-card.green-mcq  .mcq-link { color: #2CA160; }

.mcq-card.orange-mcq { background: #FFF6EF; }
.mcq-card.orange-mcq .mcq-icon { background: #FFA553; color: #fff; }
.mcq-card.orange-mcq .mcq-info h3 { color: #B14C1D; }
.mcq-card.orange-mcq .mcq-line { background: #FFA553; }
.mcq-card.orange-mcq .mcq-link { color: #FA7324; }

.mcq-card.purple-mcq { background: #F5F3FF; }
.mcq-card.purple-mcq .mcq-icon { background: #7c3aed; color: #fff; }
.mcq-card.purple-mcq .mcq-info h3 { color: #4c1d95; }
.mcq-card.purple-mcq .mcq-line { background: #7c3aed; }
.mcq-card.purple-mcq .mcq-link { color: #6d28d9; }

.mcq-card.red-mcq    { background: #FEF2F2; }
.mcq-card.red-mcq    .mcq-icon { background: #dc2626; color: #fff; }
.mcq-card.red-mcq    .mcq-info h3 { color: #7f1d1d; }
.mcq-card.red-mcq    .mcq-line { background: #dc2626; }
.mcq-card.red-mcq    .mcq-link { color: #b91c1c; }

/* ── MCQ CARD — MOBILE RESPONSIVE (2-column grid) ─────────────
   Jab mobile pe 2-col grid set ho tab card chhota lagega
   ──────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .mcq-card {
    padding: 11px 12px;
    gap: 10px;
    border-radius: 12px;
  }
  .mcq-card .mcq-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .mcq-card .mcq-icon img {
    width: 22px;
    height: 22px;
  }
  .mcq-card .mcq-info h3 {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 5px;
  }
  .mcq-card .mcq-line {
    height: 2px;
    width: 20px;
    margin-bottom: 5px;
  }
  .mcq-card .mcq-link {
    font-size: 8.5px;
    gap: 2px;
  }
  .mcq-card .mcq-link svg {
    width: 10px;
    height: 10px;
  }
}

/* Extra small phones (iPhone SE etc.) */
@media (max-width: 375px) {
  .mcq-card {
    padding: 9px 10px;
    gap: 8px;
  }
  .mcq-card .mcq-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .mcq-card .mcq-icon img {
    width: 20px;
    height: 20px;
  }
  .mcq-card .mcq-info h3 {
    font-size: 9.5px;
    margin-bottom: 4px;
  }
  .mcq-card .mcq-line {
    height: 2px;
    width: 18px;
    margin-bottom: 4px;
  }
  .mcq-card .mcq-link {
    font-size: 8px;
  }
}

/* ── quickcard ── */
/* spa/card-quick.css — Quick card: pastel icon+label grid, colour variants. */

/* ══════════════════════════════════════════════════════════════
   QUICK CARD — pastel icon+label grid (quickcard)
   Design from card desgin.html
   ══════════════════════════════════════════════════════════════ */

/* Full-width group wrapper inside .cards */
.cards > .quickcard-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  animation: cardIn 0.25s ease both;
}
@media (min-width: 480px) {
  .cards > .quickcard-group { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (min-width: 768px) {
  .cards > .quickcard-group { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
}

/* Individual quickcard */
.quickcard {
  border-radius: 12px;
  padding: 16px 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.quickcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

/* Icon wrapper */
.qc-icon-wrap {
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1;
}
.qc-icon-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Label */
.qc-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #101828;
}
@media (min-width: 576px) {
  .qc-label { font-size: 13px; }
}

/* ── Color variants ─────────────────────────────────────────── */
.quickcard.qc-orange { background: #fff6ee; border-color: #ffe0c9; }
.quickcard.qc-blue   { background: #f3f8ff; border-color: #d8e6ff; }
.quickcard.qc-green  { background: #f2fcf3; border-color: #d8f2db; }
.quickcard.qc-purple { background: #f9f5ff; border-color: #eadfff; }
.quickcard.qc-cyan   { background: #f1fdfd; border-color: #c9f5f7; }
.quickcard.qc-yellow { background: #fffbf2; border-color: #ffeec2; }
.quickcard.qc-pink   { background: #fff4f8; border-color: #ffdbe9; }
.quickcard.qc-indigo { background: #f5f8ff; border-color: #dbe4ff; }
.quickcard.qc-red    { background: #fff4f4; border-color: #ffdcdc; }
.quickcard.qc-teal   { background: #f0fdfc; border-color: #ccfbf1; }

/* Icon color per variant (works for emoji font-color & SVG currentColor) */
.quickcard.qc-orange .qc-icon-wrap { color: #fd5601; }
.quickcard.qc-blue   .qc-icon-wrap { color: #2374e1; }
.quickcard.qc-green  .qc-icon-wrap { color: #29a347; }
.quickcard.qc-purple .qc-icon-wrap { color: #8235ce; }
.quickcard.qc-cyan   .qc-icon-wrap { color: #009fa7; }
.quickcard.qc-yellow .qc-icon-wrap { color: #e49410; }
.quickcard.qc-pink   .qc-icon-wrap { color: #e75480; }
.quickcard.qc-indigo .qc-icon-wrap { color: #6b7fd4; }
.quickcard.qc-red    .qc-icon-wrap { color: #ef4444; }
.quickcard.qc-teal   .qc-icon-wrap { color: #0d9488; }

/* ── tool ── */
/* spa/card-tool.css — Tool card: icon, info block, colour themes. */

/* ══════════════════════════════════════════════════════════════
   TOOL CARD — exact match to card desgin (5).html
   ══════════════════════════════════════════════════════════════ */

.tool-card {
  display: flex;
  align-items: center;
  padding: 12px;
  min-height: 72px;
  background: #ffffff;
  border: 1px solid #f2f5f9;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  text-decoration: none;
  color: #0d1117;
  cursor: pointer;
  transition: box-shadow 0.18s, border-color 0.18s;
  animation: cardPopIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.tool-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: #e2e8f0;
}

/* Staggered entry — same pattern as .cards .card:nth-child */
.cards .tool-card:nth-child(1)  { animation-delay: 0.02s; }
.cards .tool-card:nth-child(2)  { animation-delay: 0.06s; }
.cards .tool-card:nth-child(3)  { animation-delay: 0.10s; }
.cards .tool-card:nth-child(4)  { animation-delay: 0.14s; }
.cards .tool-card:nth-child(5)  { animation-delay: 0.18s; }
.cards .tool-card:nth-child(6)  { animation-delay: 0.22s; }

.tool-card .tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;        /* design: 18px */
  margin-right: 10px;
  flex-shrink: 0;
  line-height: 1;
}

.tool-card .tool-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tool-card .tool-info h3 {
  font-size: 12px;
  font-weight: 700;
  color: #0d1117;
  line-height: 1.2;
  margin: 0;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (min-width: 576px) {
  .tool-card .tool-info h3 { font-size: 13px; }
}

.tool-card .tool-info p {
  font-size: 10.5px;
  color: #5a6779;
  line-height: 1.35;
  font-weight: 400;
  margin: 0;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tool-card .use-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;      /* design: 6px 12px */
  border-radius: 4px;
  border: none;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.tool-card .use-tool-btn svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* Colour themes */
.tool-card .blue-theme   { background: #EFF6FF; color: #2563EB; }
.tool-card .blue-btn     { background: #EFF6FF; color: #2563EB; }
.tool-card .green-theme  { background: #ECFDF5; color: #059669; }
.tool-card .green-btn    { background: #ECFDF5; color: #059669; }
.tool-card .orange-theme { background: #FFF7ED; color: #EA580C; }
.tool-card .orange-btn   { background: #FFF7ED; color: #EA580C; }
.tool-card .purple-theme { background: #F5F3FF; color: #7c3aed; }
.tool-card .purple-btn   { background: #F5F3FF; color: #7c3aed; }
.tool-card .red-theme    { background: #FEF2F2; color: #dc2626; }
.tool-card .red-btn      { background: #FEF2F2; color: #dc2626; }
