/* ============================================================
   CBQ Hero Card — v4.7.9 COMPACT
   Priorities:
     1. ~50% less vertical space than v4.7.5
     2. Rich animations that earn attention without shouting
     3. Mobile-first: <640px gets a condensed layout
     4. Desktop: dense 2-column with all info visible at a glance
   ============================================================ */

/* Animated gradient border — always pulsing */
.cbq-hero-card {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 18px;
    border-radius: 16px;
    padding: 0;
    background: #fff;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 2px 12px -4px rgba(15, 23, 42, .08);
}
.cbq-hero-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    z-index: -2;
    border-radius: 18px;
    animation: cbq-hero-border-shift 8s ease-in-out infinite;
}
@keyframes cbq-hero-border-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.cbq-hero-gradient-border { display: none; }

.cbq-hero-main {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
}
.cbq-hero-main:not(:has(.cbq-hero-right)) {
    grid-template-columns: 1fr;
}

/* =======================================================
   LEFT COLUMN — compact
   ======================================================= */
.cbq-hero-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.cbq-hero-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cbq-hero-date-chip {
    flex-shrink: 0;
    width: 52px;
    height: 58px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease;
}
.cbq-hero-date-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
    animation: cbq-hero-date-shimmer 4s linear infinite;
}
@keyframes cbq-hero-date-shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}
.cbq-hero-card:hover .cbq-hero-date-chip { transform: scale(1.04); }
.cbq-hero-date-day {
    font-size: 22px;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1;
    letter-spacing: -.02em;
}
.cbq-hero-date-month {
    font-size: 9px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 1px;
}

.cbq-hero-title-block {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cbq-hero-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cbq-hero-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 99px;
    font-size: 10.5px;
    font-weight: 600;
    color: #7c3aed;
    letter-spacing: .2px;
}
.cbq-hero-cat-pill svg { width: 11px; height: 11px; flex-shrink: 0; }

.cbq-hero-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -.015em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.cbq-hero-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cbq-hero-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-self: flex-start;
}
.cbq-hero-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    padding: 0;
}
.cbq-hero-icon-btn:hover {
    border-color: #a855f7;
    background: #faf5ff;
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 4px 10px -2px rgba(168, 85, 247, .3);
}
.cbq-hero-icon-btn svg { width: 15px; height: 15px; }

/* Stats row */
.cbq-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.cbq-hero-stats-cols-1 { grid-template-columns: 1fr; }
.cbq-hero-stats-cols-2 { grid-template-columns: 1fr 1fr; }
.cbq-hero-stats-cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.cbq-hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    min-width: 0;
}
.cbq-hero-stat:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px -2px rgba(15, 23, 42, .06);
}
.cbq-hero-stat-streak {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
    position: relative;
    overflow: hidden;
}
.cbq-hero-stat-streak::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(251, 146, 60, .15), transparent 60%);
    pointer-events: none;
}
.cbq-hero-stat-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cbq-hero-stat-streak .cbq-hero-stat-icon {
    animation: cbq-hero-flame-flicker 1.8s ease-in-out infinite;
}
@keyframes cbq-hero-flame-flicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    25%      { transform: scale(1.08) rotate(3deg); }
    50%      { transform: scale(.96) rotate(-3deg); }
    75%      { transform: scale(1.04) rotate(2deg); }
}
.cbq-hero-icon-calendar { color: #7c3aed; }
.cbq-hero-icon-check { color: #059669; }
.cbq-hero-icon-calendar svg,
.cbq-hero-icon-check svg { width: 16px; height: 16px; }

.cbq-hero-stat-body { flex: 1 1 auto; min-width: 0; }
.cbq-hero-stat-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .4px;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 0;
    line-height: 1.2;
}
.cbq-hero-stat-streak .cbq-hero-stat-label { color: #c2410c; }
.cbq-hero-stat-arrow {
    font-size: 11px;
    opacity: .6;
    transition: transform .2s ease;
}
.cbq-hero-stat-streak:hover .cbq-hero-stat-arrow { transform: translateX(2px); }
.cbq-hero-stat-value {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 4px;
    letter-spacing: -.01em;
}
.cbq-hero-stat-streak .cbq-hero-stat-value { color: #7c2d12; }
.cbq-hero-crown {
    font-size: 13px;
    animation: cbq-hero-crown-bob 2s ease-in-out infinite;
}
@keyframes cbq-hero-crown-bob {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-2px) rotate(-5deg); }
}
.cbq-hero-trend-up {
    font-size: 12px;
    color: #059669;
    font-weight: 900;
    animation: cbq-hero-pulse-subtle 2s ease-in-out infinite;
}
@keyframes cbq-hero-pulse-subtle {
    0%, 100% { opacity: .7; }
    50%      { opacity: 1; }
}

/* Big CTA */
.cbq-hero-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    background-size: 200% 100%;
    color: #fff !important;
    border-radius: 12px;
    text-decoration: none !important;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 3px 12px -2px rgba(99, 102, 241, .4);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    animation: cbq-hero-cta-breathe 6s ease-in-out infinite;
}
@keyframes cbq-hero-cta-breathe {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.cbq-hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: -1;
}
.cbq-hero-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .25) 50%, transparent 100%);
    animation: cbq-hero-cta-sheen 4s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes cbq-hero-cta-sheen {
    0%, 40% { left: -100%; }
    60%     { left: 100%; }
    100%    { left: 100%; }
}
.cbq-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -4px rgba(99, 102, 241, .55);
}
.cbq-hero-cta:hover::before { opacity: 1; }

.cbq-hero-cta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
/* v4.7.45 — Rocket launch with flame trail on hover */
.cbq-hero-cta-rocket-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.cbq-hero-cta-rocket {
    font-size: 24px;
    display: inline-block;
    animation: cbq-hero-rocket-bob 2.2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
    position: relative;
    z-index: 2;
    transition: filter .2s ease;
}
@keyframes cbq-hero-rocket-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-3px) rotate(3deg); }
}

/* Flame trail — 3 stacked layers for a rich glow */
.cbq-hero-cta-flame {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 14px;
    height: 0;
    transform: translateX(-50%) translateY(-8px);
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}
.cbq-hero-cta-flame-layer {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}
.cbq-hero-cta-flame-1 {
    width: 10px;
    height: 18px;
    background: radial-gradient(ellipse at 50% 20%, #fbbf24 0%, #f97316 40%, #dc2626 85%, transparent 100%);
    filter: blur(0.5px);
}
.cbq-hero-cta-flame-2 {
    width: 6px;
    height: 22px;
    background: radial-gradient(ellipse at 50% 15%, #fef3c7 0%, #fbbf24 50%, #f59e0b 100%);
    filter: blur(0.3px);
}
.cbq-hero-cta-flame-3 {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.6) 0%, rgba(249, 115, 22, 0.3) 50%, transparent 80%);
    filter: blur(4px);
}

/* On hover — fire ignites, rocket flies diagonally up and to the right */
.cbq-hero-cta:hover .cbq-hero-cta-rocket {
    animation: cbq-hero-rocket-launch 0.9s cubic-bezier(.34, .05, .45, 1) forwards;
    filter: drop-shadow(0 4px 10px rgba(251, 191, 36, 0.6));
}
.cbq-hero-cta:hover .cbq-hero-cta-flame {
    opacity: 1;
    animation: cbq-hero-flame-ignite 0.9s cubic-bezier(.34, .05, .45, 1) forwards;
}
.cbq-hero-cta:hover .cbq-hero-cta-flame-1 { animation: cbq-hero-flame-flicker 0.15s ease-in-out infinite alternate; }
.cbq-hero-cta:hover .cbq-hero-cta-flame-2 { animation: cbq-hero-flame-flicker 0.12s 0.03s ease-in-out infinite alternate; }
.cbq-hero-cta:hover .cbq-hero-cta-flame-3 { animation: cbq-hero-flame-flicker 0.2s ease-in-out infinite alternate; }

@keyframes cbq-hero-rocket-launch {
    0%   { transform: translate(0, 0) rotate(-2deg) scale(1); opacity: 1; }
    15%  { transform: translate(0, 2px) rotate(-8deg) scale(0.95); opacity: 1; }
    35%  { transform: translate(6px, -10px) rotate(30deg) scale(1.1); opacity: 1; }
    65%  { transform: translate(18px, -22px) rotate(40deg) scale(1.15); opacity: 0.85; }
    100% { transform: translate(40px, -44px) rotate(45deg) scale(0.4); opacity: 0; }
}
@keyframes cbq-hero-flame-ignite {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.3); }
    20%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    70%  { opacity: 1; transform: translateX(-50%) translateY(4px) scale(1.1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.4); }
}
@keyframes cbq-hero-flame-flicker {
    0%   { transform: translateX(-50%) scaleY(1)    scaleX(1); }
    100% { transform: translateX(-50%) scaleY(1.2) scaleX(0.85); }
}

/* Stacked hero (CA) — same treatment */
.cbq-hs-cta-rocket-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.cbq-hs-cta-rocket {
    position: relative;
    z-index: 2;
    transition: filter .2s ease;
}
.cbq-hs-cta-flame {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 14px;
    height: 0;
    transform: translateX(-50%) translateY(-8px);
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}
.cbq-hs-cta-flame-layer {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}
.cbq-hs-cta-flame-1 {
    width: 10px;
    height: 18px;
    background: radial-gradient(ellipse at 50% 20%, #fbbf24 0%, #f97316 40%, #dc2626 85%, transparent 100%);
    filter: blur(0.5px);
}
.cbq-hs-cta-flame-2 {
    width: 6px;
    height: 22px;
    background: radial-gradient(ellipse at 50% 15%, #fef3c7 0%, #fbbf24 50%, #f59e0b 100%);
    filter: blur(0.3px);
}
.cbq-hs-cta-flame-3 {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.6) 0%, rgba(249, 115, 22, 0.3) 50%, transparent 80%);
    filter: blur(4px);
}
.cbq-hs-cta:hover .cbq-hs-cta-rocket {
    animation: cbq-hero-rocket-launch 0.9s cubic-bezier(.34, .05, .45, 1) forwards;
    filter: drop-shadow(0 4px 10px rgba(251, 191, 36, 0.6));
}
.cbq-hs-cta:hover .cbq-hs-cta-flame {
    opacity: 1;
    animation: cbq-hero-flame-ignite 0.9s cubic-bezier(.34, .05, .45, 1) forwards;
}
.cbq-hs-cta:hover .cbq-hs-cta-flame-1 { animation: cbq-hero-flame-flicker 0.15s ease-in-out infinite alternate; }
.cbq-hs-cta:hover .cbq-hs-cta-flame-2 { animation: cbq-hero-flame-flicker 0.12s 0.03s ease-in-out infinite alternate; }
.cbq-hs-cta:hover .cbq-hs-cta-flame-3 { animation: cbq-hero-flame-flicker 0.2s ease-in-out infinite alternate; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .cbq-hero-cta-rocket { animation: none !important; }
    .cbq-hero-cta:hover .cbq-hero-cta-rocket,
    .cbq-hs-cta:hover .cbq-hs-cta-rocket {
        animation: none !important;
        transform: translate(4px, -2px) rotate(15deg);
    }
    .cbq-hero-cta:hover .cbq-hero-cta-flame,
    .cbq-hs-cta:hover .cbq-hs-cta-flame { display: none; }
}
.cbq-hero-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}
.cbq-hero-cta-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
}
.cbq-hero-cta-sub {
    font-size: 11px;
    opacity: .85;
    font-weight: 500;
    line-height: 1.2;
}
.cbq-hero-cta-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .25s ease, background .25s ease;
}
.cbq-hero-cta-arrow svg { width: 15px; height: 15px; }
.cbq-hero-cta:hover .cbq-hero-cta-arrow {
    transform: translateX(3px) scale(1.08);
    background: rgba(255, 255, 255, .32);
}

/* Recent attempts — compact */
.cbq-hero-recent {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cbq-hero-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cbq-hero-recent-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.cbq-hero-recent-title svg { color: #7c3aed; width: 12px; height: 12px; }
.cbq-hero-recent-count { font-size: 10px; color: #94a3b8; font-weight: 500; }
.cbq-hero-recent-list { display: flex; flex-direction: column; gap: 3px; }
.cbq-hero-recent-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: border-color .2s ease;
}
.cbq-hero-recent-row:hover { border-color: #e2e8f0; }
.cbq-hero-recent-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
    font-variant-numeric: tabular-nums;
}
.cbq-hero-recent-score-high { background: #dcfce7; color: #15803d; }
.cbq-hero-recent-score-mid  { background: #fef3c7; color: #a16207; }
.cbq-hero-recent-score-low  { background: #fee2e2; color: #b91c1c; }
.cbq-hero-recent-pct {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.cbq-hero-recent-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    padding: 1.5px 6px;
    border-radius: 99px;
    font-variant-numeric: tabular-nums;
}
.cbq-hero-recent-trend-up   { background: #dcfce7; color: #16a34a; }
.cbq-hero-recent-trend-down { background: #fee2e2; color: #dc2626; }
.cbq-hero-recent-trend-flat { background: #f1f5f9; color: #64748b; }
.cbq-hero-recent-trend svg { width: 9px; height: 9px; }
.cbq-hero-recent-time {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

/* Features */
.cbq-hero-features {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.cbq-hero-feature {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.cbq-hero-feature-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5f3ff;
    color: #7c3aed;
    flex-shrink: 0;
    transition: transform .25s ease, background .25s ease;
}
.cbq-hero-feature-icon svg { width: 15px; height: 15px; }
.cbq-hero-feature:hover .cbq-hero-feature-icon {
    transform: scale(1.1);
    background: #ede9fe;
}
.cbq-hero-feature-body { min-width: 0; }
.cbq-hero-feature-value {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cbq-hero-feature-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cbq-hero-feature-divider {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
}

/* =======================================================
   RIGHT COLUMN
   ======================================================= */
.cbq-hero-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.cbq-hero-leader {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cbq-hero-leader-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cbq-hero-leader-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -.01em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cbq-hero-leader-title::before { content: '🏆'; font-size: 14px; }
.cbq-hero-leader-more {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background .2s ease;
    line-height: 1;
}
.cbq-hero-leader-more:hover { background: #f1f5f9; color: #475569; }
.cbq-hero-leader-empty {
    padding: 14px 10px;
    text-align: center;
    font-size: 11.5px;
    color: #94a3b8;
    background: #f8fafc;
    border-radius: 8px;
    line-height: 1.4;
}
.cbq-hero-leader-list { display: flex; flex-direction: column; gap: 6px; }
.cbq-hero-leader-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.cbq-hero-leader-rank {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
    min-width: 26px;
    text-align: center;
}
.cbq-hero-leader-rank-1 { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.cbq-hero-leader-rank-2 { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.cbq-hero-leader-rank-3 { background: #fed7aa; color: #9a3412; border: 1px solid #fdba74; }
.cbq-hero-leader-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.cbq-hero-leader-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.cbq-hero-leader-info { min-width: 0; }
.cbq-hero-leader-name {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.cbq-hero-leader-score { flex-shrink: 0; display: inline-flex; align-items: center; }
.cbq-hero-leader-coins {
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}
.cbq-hero-leader-viewall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #2563eb;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .2s ease;
}
.cbq-hero-leader-viewall:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.cbq-hero-leader-viewall svg { width: 12px; height: 12px; }

/* Balance */
.cbq-hero-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.cbq-hero-balance::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, .18), transparent 60%);
    pointer-events: none;
}
.cbq-hero-balance-coin {
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 3px rgba(251, 191, 36, .4));
    animation: cbq-hero-coin-rotate 6s ease-in-out infinite;
}
@keyframes cbq-hero-coin-rotate {
    0%, 100% { transform: rotateY(0); }
    50%      { transform: rotateY(360deg); }
}
.cbq-hero-balance-body { position: relative; z-index: 1; min-width: 0; }
.cbq-hero-balance-label {
    font-size: 9px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}
.cbq-hero-balance-value {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
    transition: all .3s ease;
}
.cbq-hero-balance-flash {
    color: #fbbf24 !important;
    transform: scale(1.08);
    text-shadow: 0 0 14px rgba(251, 191, 36, .7);
}

/* Toast */
.cbq-hero-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(16px);
    background: #0f172a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, .3);
    opacity: 0;
    transition: all .28s cubic-bezier(.4, 0, .2, 1);
    z-index: 99999;
    pointer-events: none;
    white-space: nowrap;
}
.cbq-hero-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cbq-hero-toast-success { background: linear-gradient(135deg, #16a34a, #15803d); }
.cbq-hero-toast-error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.cbq-hero-toast-coin    { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Reward cards */
.cbq-hero-rewards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cbq-hero-reward {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 9px;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.cbq-hero-reward::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .4), transparent);
    transition: left .6s ease;
}
.cbq-hero-reward:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -2px rgba(251, 191, 36, .3);
}
.cbq-hero-reward:hover::before { left: 200%; }
.cbq-hero-reward-share {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border-color: #ddd6fe;
}
.cbq-hero-reward-share:hover { box-shadow: 0 4px 10px -2px rgba(168, 85, 247, .3); }
.cbq-hero-reward-coin {
    font-size: 22px;
    flex-shrink: 0;
    transition: transform .3s ease;
}
.cbq-hero-reward:hover .cbq-hero-reward-coin {
    transform: rotate(-12deg) scale(1.15);
}
.cbq-hero-reward-body { min-width: 0; flex: 1 1 auto; }
.cbq-hero-reward-title {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.cbq-hero-reward-label {
    font-size: 10px;
    color: #92400e;
    font-weight: 600;
    margin-top: 1px;
    line-height: 1.2;
}
.cbq-hero-reward-share .cbq-hero-reward-label { color: #6b21a8; }

/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 900px) {
    .cbq-hero-main {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .cbq-hero-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .cbq-hero-rewards { flex-direction: row; }
    .cbq-hero-reward { flex: 1; }
}

@media (max-width: 640px) {
    .cbq-hero-card { margin-bottom: 14px; border-radius: 14px; }
    .cbq-hero-main { padding: 10px; gap: 10px; border-radius: 12px; }
    .cbq-hero-left { gap: 8px; }

    .cbq-hero-header { gap: 10px; }
    .cbq-hero-date-chip { width: 42px; height: 48px; border-radius: 8px; }
    .cbq-hero-date-day { font-size: 16px; }
    .cbq-hero-date-month { font-size: 8px; letter-spacing: .8px; }
    .cbq-hero-title { font-size: 14px; line-height: 1.25; }
    .cbq-hero-subtitle { font-size: 11px; }
    .cbq-hero-cat-pill { font-size: 9.5px; padding: 2px 7px; }
    .cbq-hero-cat-pill svg { width: 10px; height: 10px; }
    .cbq-hero-icon-btn { width: 30px; height: 30px; }
    .cbq-hero-icon-btn svg { width: 13px; height: 13px; }

    .cbq-hero-stats { gap: 6px; }
    .cbq-hero-stat { padding: 6px 7px; gap: 5px; border-radius: 8px; }
    .cbq-hero-stat-icon { width: 20px; height: 20px; font-size: 15px; }
    .cbq-hero-stat-icon svg { width: 13px; height: 13px; }
    .cbq-hero-stat-label { font-size: 8.5px; letter-spacing: .3px; gap: 2px; }
    .cbq-hero-stat-value { font-size: 12.5px; gap: 3px; }
    .cbq-hero-crown { font-size: 11px; }

    .cbq-hero-cta { padding: 10px 14px; border-radius: 10px; }
    .cbq-hero-cta-left { gap: 8px; }
    .cbq-hero-cta-rocket { font-size: 20px; }
    .cbq-hero-cta-title { font-size: 13.5px; }
    .cbq-hero-cta-sub { font-size: 10.5px; }
    .cbq-hero-cta-arrow { width: 26px; height: 26px; }
    .cbq-hero-cta-arrow svg { width: 12px; height: 12px; }

    .cbq-hero-features { padding: 6px 8px; gap: 6px; }
    .cbq-hero-feature { gap: 5px; }
    .cbq-hero-feature-icon { width: 24px; height: 24px; }
    .cbq-hero-feature-icon svg { width: 12px; height: 12px; }
    .cbq-hero-feature-value { font-size: 10.5px; }
    .cbq-hero-feature-label { font-size: 8.5px; }
    .cbq-hero-feature-divider { height: 18px; }

    .cbq-hero-right { grid-template-columns: 1fr; gap: 8px; }
    .cbq-hero-rewards { flex-direction: row; gap: 6px; }
    .cbq-hero-reward { padding: 6px 8px; flex: 1; min-width: 0; }
    .cbq-hero-reward-coin { font-size: 18px; }
    .cbq-hero-reward-title { font-size: 11px; }
    .cbq-hero-reward-label { font-size: 9.5px; }

    .cbq-hero-leader { padding: 8px 10px; gap: 6px; }
    .cbq-hero-leader-title { font-size: 12px; }
    .cbq-hero-leader-row { padding: 2px 0; gap: 6px; }
    .cbq-hero-leader-avatar { width: 22px; height: 22px; }
    .cbq-hero-leader-name { font-size: 11px; }
    .cbq-hero-leader-coins { font-size: 10px; }
    .cbq-hero-leader-rank { font-size: 9px; padding: 1.5px 5px; min-width: 22px; }
    .cbq-hero-leader-viewall { padding: 4px; font-size: 10.5px; }

    .cbq-hero-balance { padding: 7px 10px; gap: 8px; }
    .cbq-hero-balance-coin { font-size: 18px; }
    .cbq-hero-balance-value { font-size: 13px; }
    .cbq-hero-balance-label { font-size: 8.5px; }

    .cbq-hero-recent { padding: 6px 10px; }
    .cbq-hero-recent-title { font-size: 9.5px; }
    .cbq-hero-recent-row { grid-template-columns: auto auto 1fr; padding: 3px 6px; gap: 6px; }
    .cbq-hero-recent-time { display: none; }
    .cbq-hero-recent-score { font-size: 10px; min-width: 34px; padding: 1.5px 5px; }
    .cbq-hero-recent-pct { font-size: 11px; }
}

@media (max-width: 380px) {
    .cbq-hero-features { grid-template-columns: 1fr 1fr; }
    .cbq-hero-features .cbq-hero-feature:last-child { grid-column: span 2; }
    .cbq-hero-features .cbq-hero-feature-divider { display: none; }
    .cbq-hero-title { font-size: 13px; }
    .cbq-hero-stat-label { font-size: 8px; }
}

/* =======================================================
   DARK MODE
   ======================================================= */
html[data-mcqp-theme="dark"] .cbq-hero-card { background: #0f172a; }
html[data-mcqp-theme="dark"] .cbq-hero-main { background: #1e293b; }
html[data-mcqp-theme="dark"] .cbq-hero-title { color: #f8fafc; }
html[data-mcqp-theme="dark"] .cbq-hero-subtitle { color: #94a3b8; }
html[data-mcqp-theme="dark"] .cbq-hero-cat-pill {
    background: rgba(139, 92, 246, .15);
    border-color: rgba(139, 92, 246, .35);
    color: #c4b5fd;
}
html[data-mcqp-theme="dark"] .cbq-hero-date-chip {
    background: linear-gradient(135deg, rgba(37, 99, 235, .18) 0%, rgba(29, 78, 216, .28) 100%);
    border-color: rgba(59, 130, 246, .4);
}
html[data-mcqp-theme="dark"] .cbq-hero-date-day { color: #93c5fd; }
html[data-mcqp-theme="dark"] .cbq-hero-date-month { color: #60a5fa; }
html[data-mcqp-theme="dark"] .cbq-hero-icon-btn {
    background: #182240;
    border-color: #334155;
    color: #c4b5fd;
}
html[data-mcqp-theme="dark"] .cbq-hero-icon-btn:hover {
    background: rgba(139, 92, 246, .12);
    border-color: #a855f7;
}
html[data-mcqp-theme="dark"] .cbq-hero-stat {
    background: #182240;
    border-color: #233056;
}
html[data-mcqp-theme="dark"] .cbq-hero-stat-streak {
    background: linear-gradient(135deg, rgba(234, 88, 12, .14) 0%, rgba(194, 65, 12, .22) 100%);
    border-color: rgba(251, 146, 60, .35);
}
html[data-mcqp-theme="dark"] .cbq-hero-stat-value { color: #f1f5f9; }
html[data-mcqp-theme="dark"] .cbq-hero-stat-streak .cbq-hero-stat-value { color: #fed7aa; }
html[data-mcqp-theme="dark"] .cbq-hero-features {
    background: #182240;
    border-color: #233056;
}
html[data-mcqp-theme="dark"] .cbq-hero-feature-icon {
    background: rgba(139, 92, 246, .15);
    color: #c4b5fd;
}
html[data-mcqp-theme="dark"] .cbq-hero-feature-value { color: #f1f5f9; }
html[data-mcqp-theme="dark"] .cbq-hero-feature-divider { background: #334155; }
html[data-mcqp-theme="dark"] .cbq-hero-leader {
    background: #182240;
    border-color: #233056;
}
html[data-mcqp-theme="dark"] .cbq-hero-leader-title { color: #f1f5f9; }
html[data-mcqp-theme="dark"] .cbq-hero-leader-name { color: #f1f5f9; }
html[data-mcqp-theme="dark"] .cbq-hero-leader-empty { background: #0f172a; color: #64748b; }
html[data-mcqp-theme="dark"] .cbq-hero-leader-viewall {
    background: #0f172a;
    border-color: #334155;
    color: #60a5fa;
}
html[data-mcqp-theme="dark"] .cbq-hero-recent {
    background: #182240;
    border-color: #233056;
}
html[data-mcqp-theme="dark"] .cbq-hero-recent-title { color: #94a3b8; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-title svg { color: #c4b5fd; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-row { background: #1e293b; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-row:hover { border-color: #334155; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-pct { color: #f1f5f9; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-score-high { background: rgba(22, 163, 74, .18); color: #4ade80; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-score-mid  { background: rgba(161, 98, 7, .18);  color: #fbbf24; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-score-low  { background: rgba(185, 28, 28, .18); color: #f87171; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-trend-up   { background: rgba(22, 163, 74, .18); color: #4ade80; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-trend-down { background: rgba(220, 38, 38, .18); color: #f87171; }
html[data-mcqp-theme="dark"] .cbq-hero-recent-trend-flat { background: rgba(148, 163, 184, .15); color: #94a3b8; }
html[data-mcqp-theme="dark"] .cbq-hero-reward {
    background: linear-gradient(135deg, rgba(234, 179, 8, .12) 0%, rgba(202, 138, 4, .2) 100%);
    border-color: rgba(251, 191, 36, .3);
}
html[data-mcqp-theme="dark"] .cbq-hero-reward-share {
    background: linear-gradient(135deg, rgba(139, 92, 246, .12) 0%, rgba(124, 58, 237, .2) 100%);
    border-color: rgba(167, 139, 250, .3);
}
html[data-mcqp-theme="dark"] .cbq-hero-reward-title { color: #f1f5f9; }
html[data-mcqp-theme="dark"] .cbq-hero-reward-label { color: #fbbf24; }
html[data-mcqp-theme="dark"] .cbq-hero-reward-share .cbq-hero-reward-label { color: #c4b5fd; }

@media (prefers-reduced-motion: reduce) {
    .cbq-hero-card::before,
    .cbq-hero-cta,
    .cbq-hero-cta::after,
    .cbq-hero-cta-rocket,
    .cbq-hero-stat-streak .cbq-hero-stat-icon,
    .cbq-hero-crown,
    .cbq-hero-balance-coin,
    .cbq-hero-trend-up,
    .cbq-hero-date-chip::after {
        animation: none !important;
    }
}

/* ============================================================
   v4.7.37 — SPLIT LAYOUT
   Two visually separate cards side-by-side with a gap instead of
   one outer container wrapping both.
   ============================================================ */

/* Neutralize the outer card's own background/border/shadow — it becomes a transparent grid wrapper */
.cbq-hero-card--split {
    background: transparent;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
}
.cbq-hero-card--split::before { display: none; }

/* Inner grid gets more breathing room */
.cbq-hero-card--split .cbq-hero-main {
    background: transparent;
    padding: 0;
    border-radius: 0;
    gap: 20px;
}

/* Each column becomes its own card */
.cbq-hero-card--split .cbq-hero-left,
.cbq-hero-card--split .cbq-hero-right {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px -3px rgba(15, 23, 42, 0.06);
    position: relative;
}

.cbq-hero-card--split .cbq-hero-right {
    padding: 16px;
}

/* Gradient border accent (left card only — matches the old outer card's visual identity) */
.cbq-hero-card--split .cbq-hero-left::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    animation: cbq-hero-border-shift 8s ease-in-out infinite;
    opacity: 0.7;
}

/* Responsive: stack on mobile */
@media (max-width: 860px) {
    .cbq-hero-card--split .cbq-hero-main {
        gap: 14px;
    }
    .cbq-hero-card--split .cbq-hero-left,
    .cbq-hero-card--split .cbq-hero-right {
        padding: 14px;
    }
}

/* Dark mode */
html[data-mcqp-theme="dark"] .cbq-hero-card--split .cbq-hero-left,
html[data-mcqp-theme="dark"] .cbq-hero-card--split .cbq-hero-right,
.mcqp-fe[data-theme="dark"] .cbq-hero-card--split .cbq-hero-left,
.mcqp-fe[data-theme="dark"] .cbq-hero-card--split .cbq-hero-right {
    background: #1e293b;
    border-color: #334155;
}

/* ============================================================
   v4.7.38 — SPLIT LAYOUT REFINEMENTS
   - 65% / 35% width ratio (test : sidebar)
   - Light gradient on test card, dark premium gradient on sidebar card
   ============================================================ */

/* 65 / 35 width ratio */
.cbq-hero-card--split .cbq-hero-main {
    grid-template-columns: 65% 1fr;  /* 1fr = remaining ~35% after gap */
}

/* Single column on mobile overrides this */
@media (max-width: 860px) {
    .cbq-hero-card--split .cbq-hero-main {
        grid-template-columns: 1fr;
    }
}

/* ---------- LEFT: Test card with soft light gradient ---------- */
.cbq-hero-card--split .cbq-hero-left {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 50%, #faf5ff 100%);
    border-color: #e0e7ff;
}

/* Gradient border accent already applied from v4.7.37 — keep it */

/* ---------- RIGHT: Sidebar card with dark premium gradient ---------- */
.cbq-hero-card--split .cbq-hero-right {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1a1b3a 100%);
    border-color: #334155;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative glow in top-right corner (like the weather card clouds) */
.cbq-hero-card--split .cbq-hero-right::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.cbq-hero-card--split .cbq-hero-right > * {
    position: relative;
    z-index: 1;
}

/* Leaderboard sub-card inside the dark sidebar: transparent with subtle separator */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Leaderboard title: invert to light */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-title {
    color: #f1f5f9;
}

/* Leaderboard "more" icon on dark bg */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-more {
    color: #94a3b8;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-more:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

/* Empty state */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-empty {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
}

/* Rank badges — keep colorful but add subtle border glow for contrast on dark */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-rank-1 {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.5);
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-rank-2 {
    background: rgba(196, 181, 253, 0.15);
    color: #ddd6fe;
    border-color: rgba(196, 181, 253, 0.4);
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-rank-3 {
    background: rgba(251, 146, 60, 0.18);
    color: #fed7aa;
    border-color: rgba(251, 146, 60, 0.45);
}

/* Leaderboard user name + avatar border */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-name {
    color: #f1f5f9;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-img {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Points/score */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-coins {
    color: #fbbf24;
}

/* "Top 50" view-all link */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-viewall {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-viewall:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}

/* Balance card inside dark sidebar */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-balance {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-balance-label {
    color: #fcd34d;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-balance-value {
    color: #fff;
}

/* Reward cards (Earn X coins, Share & Earn) */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-reward {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-reward-title {
    color: #f1f5f9;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-reward-label {
    color: #94a3b8;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-reward-share {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(168, 85, 247, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-reward-share:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(139, 92, 246, 0.22) 100%);
    transform: translateY(-1px);
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-reward-share .cbq-hero-reward-title {
    color: #e9d5ff;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-reward-share .cbq-hero-reward-label {
    color: #c4b5fd;
}

/* ============================================================
   v4.7.40 — Horizontal coin-row at bottom of test card
   Balance + Earn + Share as 3 equal columns (or 2/1 if rewards off)
   ============================================================ */
.cbq-hero-coin-row {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}
.cbq-hero-coin-row-1 { grid-template-columns: 1fr; }
.cbq-hero-coin-row-2 { grid-template-columns: 1fr 1fr; }
.cbq-hero-coin-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.cbq-hero-coin-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    min-width: 0;
}
.cbq-hero-coin-card--balance {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    color: #fff;
}
.cbq-hero-coin-card--balance::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.cbq-hero-coin-card--earn {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
}
.cbq-hero-coin-card--share {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #e9d5ff;
    cursor: pointer;
}
.cbq-hero-coin-card--share:hover,
.cbq-hero-coin-card--share:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -6px rgba(139, 92, 246, 0.35);
    outline: none;
}
.cbq-hero-coin-card > * { position: relative; z-index: 1; }

.cbq-hero-coin-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.cbq-hero-coin-card--balance .cbq-hero-coin-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 10px -3px rgba(251, 191, 36, 0.5);
}
.cbq-hero-coin-card--earn .cbq-hero-coin-icon {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.cbq-hero-coin-card--share .cbq-hero-coin-icon {
    background: linear-gradient(135deg, #e9d5ff, #c4b5fd);
}
.cbq-hero-coin-emoji { font-size: 20px; line-height: 1; }

.cbq-hero-coin-body { min-width: 0; flex: 1; }
.cbq-hero-coin-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cbq-hero-coin-value {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cbq-hero-coin-card--balance .cbq-hero-coin-label { color: #fcd34d; }
.cbq-hero-coin-card--balance .cbq-hero-coin-value { color: #fff; font-size: 16px; }
.cbq-hero-coin-card--earn .cbq-hero-coin-label { color: #92400e; }
.cbq-hero-coin-card--earn .cbq-hero-coin-value { color: #78350f; font-size: 12.5px; font-weight: 700; }
.cbq-hero-coin-card--share .cbq-hero-coin-label { color: #7c3aed; }
.cbq-hero-coin-card--share .cbq-hero-coin-value { color: #6d28d9; font-size: 12.5px; font-weight: 700; }

/* Mobile: stack to single column */
@media (max-width: 640px) {
    .cbq-hero-coin-row-2,
    .cbq-hero-coin-row-3 {
        grid-template-columns: 1fr;
    }
}

/* Dark mode */
html[data-mcqp-theme="dark"] .cbq-hero-coin-card--earn,
.mcqp-fe[data-theme="dark"] .cbq-hero-coin-card--earn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.06) 100%);
    border-color: rgba(251, 191, 36, 0.25);
}
html[data-mcqp-theme="dark"] .cbq-hero-coin-card--earn .cbq-hero-coin-label,
.mcqp-fe[data-theme="dark"] .cbq-hero-coin-card--earn .cbq-hero-coin-label { color: #fcd34d; }
html[data-mcqp-theme="dark"] .cbq-hero-coin-card--earn .cbq-hero-coin-value,
.mcqp-fe[data-theme="dark"] .cbq-hero-coin-card--earn .cbq-hero-coin-value { color: #fde68a; }

html[data-mcqp-theme="dark"] .cbq-hero-coin-card--share,
.mcqp-fe[data-theme="dark"] .cbq-hero-coin-card--share {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(168, 85, 247, 0.3);
}
html[data-mcqp-theme="dark"] .cbq-hero-coin-card--share .cbq-hero-coin-label,
.mcqp-fe[data-theme="dark"] .cbq-hero-coin-card--share .cbq-hero-coin-label { color: #c4b5fd; }
html[data-mcqp-theme="dark"] .cbq-hero-coin-card--share .cbq-hero-coin-value,
.mcqp-fe[data-theme="dark"] .cbq-hero-coin-card--share .cbq-hero-coin-value { color: #e9d5ff; }

/* ============================================================
   v4.7.41 — WARM YELLOW GRADIENT THEME
   Both test card and leaderboard card share the warm palette.
   Inspired by playful mobile-app aesthetic (reference image).
   ============================================================ */

/* ---------- LEFT (TEST) CARD — warm yellow gradient ---------- */
.cbq-hero-card--split .cbq-hero-left {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.45) 0%, transparent 40%),
        radial-gradient(circle at 15% 85%, rgba(217, 119, 6, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #fef3c7 0%, #fde68a 40%, #fcd34d 100%);
    border-color: #f59e0b;
}

/* Remove the old animated purple gradient border — doesn't fit warm palette */
.cbq-hero-card--split .cbq-hero-left::before {
    display: none;
}

/* Decorative floating shapes (replaces the illustrated mascot — pure CSS/SVG) */
.cbq-hero-card--split .cbq-hero-left::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(217, 119, 6, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 50% 20%, rgba(180, 83, 9, 0.1) 0%, transparent 20%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.9;
}

/* Ensure content sits above decorative shapes */
.cbq-hero-card--split .cbq-hero-left > * {
    position: relative;
    z-index: 1;
}

/* ---------- Dark text & chips against yellow background ---------- */
.cbq-hero-card--split .cbq-hero-left .cbq-hero-title {
    color: #78350f; /* deep amber for strong contrast on yellow */
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-subtitle {
    color: #92400e;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-date-day,
.cbq-hero-card--split .cbq-hero-left .cbq-hero-date-month {
    color: #78350f;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-date-chip {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(217, 119, 6, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Topic Test pill */
.cbq-hero-card--split .cbq-hero-left .cbq-hero-cat-pill {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(217, 119, 6, 0.35);
    color: #92400e;
}

/* Bookmark/share icon buttons */
.cbq-hero-card--split .cbq-hero-left .cbq-hero-icon-btn {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(217, 119, 6, 0.3);
    color: #92400e;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-icon-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #78350f;
}

/* Stats row cards — glass effect on yellow */
.cbq-hero-card--split .cbq-hero-left .cbq-hero-stat {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(217, 119, 6, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-stat-streak {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(255, 247, 237, 0.7));
    border-color: rgba(251, 146, 60, 0.5);
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-stat-label {
    color: #92400e;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-stat-value {
    color: #78350f;
}

/* CTA Button — keep the purple gradient for action contrast, but add warm glow */
.cbq-hero-card--split .cbq-hero-left .cbq-hero-cta {
    box-shadow: 0 10px 28px -8px rgba(139, 92, 246, 0.5), 0 4px 12px -3px rgba(217, 119, 6, 0.2);
}

/* Features row — glass effect */
.cbq-hero-card--split .cbq-hero-left .cbq-hero-features {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(217, 119, 6, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-feature-icon {
    background: rgba(255, 255, 255, 0.85);
    color: #b45309;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-feature-value {
    color: #78350f;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-feature-label {
    color: #b45309;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-feature-divider {
    background: rgba(217, 119, 6, 0.25);
}

/* Recent attempts strip — warm glass */
.cbq-hero-card--split .cbq-hero-left .cbq-hero-recent {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(217, 119, 6, 0.25);
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-recent-title {
    color: #78350f;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-recent-count {
    color: #b45309;
}

/* Bottom coin row: keep distinctive colors but tweak for yellow backdrop */
.cbq-hero-card--split .cbq-hero-left .cbq-hero-coin-card--balance {
    /* Dark navy looks great against yellow — keep as is */
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-coin-card--earn {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
}
.cbq-hero-card--split .cbq-hero-left .cbq-hero-coin-card--share {
    /* Keep purple for contrast against the warm palette */
}

/* ---------- RIGHT (LEADERBOARD) CARD — matching warm yellow ---------- */
.cbq-hero-card--split .cbq-hero-right {
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.45) 0%, transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(217, 119, 6, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    border-color: #f59e0b;
    color: #78350f;
}

/* Remove the old decorative indigo glow */
.cbq-hero-card--split .cbq-hero-right::before {
    background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, transparent 60%);
}

/* Leaderboard inner card — glass effect on yellow */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(217, 119, 6, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-title {
    color: #78350f;
}

.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-more {
    color: #b45309;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-more:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #78350f;
}

.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-empty {
    color: #92400e;
    background: rgba(255, 255, 255, 0.4);
}

/* Rank badges — saturated warm tones pop against yellow */
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-rank-1 {
    background: linear-gradient(135deg, #fde047, #facc15);
    color: #713f12;
    border-color: #eab308;
    box-shadow: 0 2px 6px -2px rgba(234, 179, 8, 0.5);
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-rank-2 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1f2937;
    border-color: #9ca3af;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-rank-3 {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #7c2d12;
    border-color: #f97316;
}

.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-name {
    color: #78350f;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-img {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-coins {
    color: #b45309;
}

.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-viewall {
    color: #78350f;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(217, 119, 6, 0.4);
    font-weight: 700;
}
.cbq-hero-card--split .cbq-hero-right .cbq-hero-leader-viewall:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #431407;
}

/* ============================================================
   v4.7.42 — Tighter spacing + coin row moved to full-width below
   - Ratio: 65/35 → 70/30
   - Gap between cards: 20px → 12px
   - Padding inside cards: 18-20px → 14-16px
   - Coin row is now full-width below both cards
   ============================================================ */

/* Tighter grid */
.cbq-hero-card--split .cbq-hero-main {
    grid-template-columns: 70% 1fr;  /* ~70 / ~30 */
    gap: 12px;
}

/* Tighter internal padding */
.cbq-hero-card--split .cbq-hero-left {
    padding: 14px 16px;
}
.cbq-hero-card--split .cbq-hero-right {
    padding: 12px;
}

/* Stacked on mobile */
@media (max-width: 860px) {
    .cbq-hero-card--split .cbq-hero-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ---------- Coin row: full-width below both cards ---------- */
.cbq-hero-coin-row--below {
    margin-top: 12px;
    margin-bottom: 0;
    width: 100%;
}

/* Each card has breathing room now (full width ÷ 3, not 70% ÷ 3) */
.cbq-hero-coin-row--below .cbq-hero-coin-card {
    padding: 14px 18px;
}
.cbq-hero-coin-row--below .cbq-hero-coin-label {
    font-size: 11px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.cbq-hero-coin-row--below .cbq-hero-coin-value {
    font-size: 15px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.cbq-hero-coin-row--below .cbq-hero-coin-card--balance .cbq-hero-coin-value {
    font-size: 17px;
}
.cbq-hero-coin-row--below .cbq-hero-coin-card--earn .cbq-hero-coin-value,
.cbq-hero-coin-row--below .cbq-hero-coin-card--share .cbq-hero-coin-value {
    font-size: 13.5px;
}
.cbq-hero-coin-row--below .cbq-hero-coin-icon {
    width: 42px;
    height: 42px;
}
.cbq-hero-coin-row--below .cbq-hero-coin-emoji {
    font-size: 22px;
}

/* ============================================================
   v4.7.43 — Unified coin card (single container, 3 cells inside)
   Replaces the 3-separate-cards layout from v4.7.42
   ============================================================ */
.cbq-hero-coin-unified {
    margin-top: 12px;
    display: grid;
    gap: 0;                              /* no gap — cells share dividers */
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 85% 50%, rgba(217, 119, 6, 0.15) 0%, transparent 45%),
        linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    border: 1px solid #f59e0b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px -6px rgba(217, 119, 6, 0.25);
}
.cbq-hero-coin-unified-1 { grid-template-columns: 1fr; }
.cbq-hero-coin-unified-2 { grid-template-columns: 1fr 1fr; }
.cbq-hero-coin-unified-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Each cell inside the unified card */
.cbq-hero-coin-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    position: relative;
    min-width: 0;
    transition: background .2s ease;
}

/* Vertical dividers between cells (not on the first) */
.cbq-hero-coin-cell + .cbq-hero-coin-cell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: rgba(217, 119, 6, 0.3);
}

/* Interactive cells (share) get a hover state */
.cbq-hero-coin-cell--share {
    cursor: pointer;
}
.cbq-hero-coin-cell--share:hover {
    background: rgba(255, 255, 255, 0.3);
}
.cbq-hero-coin-cell--share:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.35);
}

/* Icon block (44×44, different color per role) */
.cbq-hero-coin-cell .cbq-hero-coin-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.cbq-hero-coin-cell--balance .cbq-hero-coin-icon {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.4);
}
.cbq-hero-coin-cell--earn .cbq-hero-coin-icon {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 4px 12px -4px rgba(217, 119, 6, 0.5);
}
.cbq-hero-coin-cell--share .cbq-hero-coin-icon {
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
    box-shadow: 0 4px 12px -4px rgba(139, 92, 246, 0.5);
}
.cbq-hero-coin-cell .cbq-hero-coin-emoji {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Text body */
.cbq-hero-coin-cell .cbq-hero-coin-body {
    min-width: 0;
    flex: 1;
}
.cbq-hero-coin-cell .cbq-hero-coin-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #92400e;
    margin-bottom: 2px;
    line-height: 1.3;
    white-space: normal;
}
.cbq-hero-coin-cell .cbq-hero-coin-value {
    font-size: 16px;
    font-weight: 800;
    color: #78350f;
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: normal;
}
.cbq-hero-coin-cell--balance .cbq-hero-coin-value { font-size: 18px; }
.cbq-hero-coin-cell--earn .cbq-hero-coin-value,
.cbq-hero-coin-cell--share .cbq-hero-coin-value { font-size: 14px; }

/* Mobile: stack cells vertically, dividers become horizontal lines */
@media (max-width: 640px) {
    .cbq-hero-coin-unified-2,
    .cbq-hero-coin-unified-3 {
        grid-template-columns: 1fr;
    }
    .cbq-hero-coin-cell + .cbq-hero-coin-cell::before {
        left: 18px;
        right: 18px;
        top: 0;
        bottom: auto;
        width: auto;
        height: 1px;
    }
    .cbq-hero-coin-cell {
        padding: 14px 18px;
    }
}

/* ============================================================
   v4.7.44 — Fill available width (kill the 1200px max-width cap)
   The hero now stretches to match its parent container (main
   content area), eliminating the empty gap on wide screens.
   ============================================================ */
.cbq-hero-card--split {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

/* The unified coin card below also needs to fill */
.cbq-hero-coin-unified {
    max-width: 100%;
    width: 100%;
}

/* ============================================================
   v4.7.46 — Leaderboard visual upgrades
   - Crown 👑 for #1, medals 🥈🥉 for #2/#3, numbered pills for #4/#5
   - Relative score bars under each row
   - Tighter typography hierarchy
   ============================================================ */

/* Rows become CSS grid for precise column alignment */
.cbq-hero-leader-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cbq-hero-leader-row {
    display: grid;
    grid-template-columns: 30px 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: background .15s ease;
}
.cbq-hero-leader-row:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Score bar — underlay that fills from left showing relative score */
.cbq-hero-leader-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: 10px;
}
.cbq-hero-leader-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 10px;
    opacity: 0.14;
}
.cbq-hero-leader-bar-fill-1 {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.8) 0%, rgba(245, 158, 11, 0.3) 100%);
    opacity: 0.35;
}
.cbq-hero-leader-bar-fill-2 {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.7) 0%, rgba(203, 213, 225, 0.2) 100%);
    opacity: 0.3;
}
.cbq-hero-leader-bar-fill-3 {
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.7) 0%, rgba(253, 186, 116, 0.2) 100%);
    opacity: 0.28;
}
.cbq-hero-leader-bar-fill-4,
.cbq-hero-leader-bar-fill-5 {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.45) 0%, rgba(196, 181, 253, 0.15) 100%);
    opacity: 0.18;
}

/* All content sits above the bar */
.cbq-hero-leader-row > *:not(.cbq-hero-leader-bar) {
    position: relative;
    z-index: 1;
}

/* MEDAL (top 3) — circular badge with gradient and emoji */
.cbq-hero-leader-medal {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
.cbq-hero-leader-medal-gold {
    background: radial-gradient(circle at 30% 30%, #fef3c7 0%, #fcd34d 40%, #d97706 100%);
    box-shadow: 0 2px 8px -2px rgba(217, 119, 6, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.cbq-hero-leader-medal-silver {
    background: radial-gradient(circle at 30% 30%, #f8fafc 0%, #e5e7eb 40%, #94a3b8 100%);
    box-shadow: 0 2px 6px -2px rgba(100, 116, 139, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}
.cbq-hero-leader-medal-bronze {
    background: radial-gradient(circle at 30% 30%, #fed7aa 0%, #fb923c 40%, #9a3412 100%);
    box-shadow: 0 2px 6px -2px rgba(154, 52, 18, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}
.cbq-hero-leader-medal-icon {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* NUMBERED PILL (ranks 4+) — smaller, muted */
.cbq-hero-leader-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.55);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.3);
    min-width: auto;
    padding: 0;
}

/* Avatar — circular with ring, medal winners get tier-colored ring */
.cbq-hero-leader-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.cbq-hero-leader-row-1 .cbq-hero-leader-avatar { border-color: #fcd34d; }
.cbq-hero-leader-row-2 .cbq-hero-leader-avatar { border-color: #cbd5e1; }
.cbq-hero-leader-row-3 .cbq-hero-leader-avatar { border-color: #fb923c; }
.cbq-hero-leader-img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: block;
}

/* Name — tighter, consistent weight */
.cbq-hero-leader-info {
    min-width: 0;
}
.cbq-hero-leader-name {
    font-size: 13px;
    font-weight: 700;
    color: #78350f;
    letter-spacing: -0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.cbq-hero-leader-row-1 .cbq-hero-leader-name { font-weight: 800; color: #713f12; }

/* Score — right-aligned, tabular numerals */
.cbq-hero-leader-score {
    flex-shrink: 0;
}
.cbq-hero-leader-coins {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 800;
    color: #b45309;
    font-variant-numeric: tabular-nums;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.cbq-hero-leader-row-1 .cbq-hero-leader-coins {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    color: #78350f;
    border-color: #f59e0b;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25);
}

/* Ranks 4-5: slightly reduced visual weight */
.cbq-hero-leader-row-4,
.cbq-hero-leader-row-5 {
    opacity: 0.92;
}
.cbq-hero-leader-row-4 .cbq-hero-leader-name,
.cbq-hero-leader-row-5 .cbq-hero-leader-name {
    font-weight: 600;
    color: #92400e;
}
