/* ============================================================
   CBQ Unified Test Modal — Glassmorphic SaaS UI (v3.9.0)
   - Smaller, attractive
   - Submit = #10b981 (actual engine submit green)
   - Resume = #fcc500 (gold)
   - Stay    = #09e227 (vivid green)
   - All buttons glassy/shiny, single row
   - Dissolve animation on button click
   ============================================================ */

.cbq-tmodal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cbq-fade-in .2s ease-out;
}
.cbq-tmodal-backdrop.active { display: flex; }
.cbq-tmodal-backdrop.dissolving { animation: cbq-fade-out .35s ease-in forwards; }

.cbq-tmodal {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    box-shadow:
        0 20px 50px -10px rgba(15,23,42,.35),
        0 6px 16px -4px rgba(15,23,42,.15),
        inset 0 1px 0 rgba(255,255,255,.8);
    overflow: hidden;
    font-family: 'Inter', 'Baloo Tamma 2', system-ui, -apple-system, sans-serif;
    animation: cbq-slide-up .3s cubic-bezier(.34, 1.56, .64, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.cbq-tmodal-backdrop.dissolving .cbq-tmodal {
    animation: cbq-dissolve-out .35s cubic-bezier(.4,0,.2,1) forwards;
}

html[data-mcqp-theme="dark"] .cbq-tmodal {
    background: rgba(18, 26, 50, 0.96);
    border-color: rgba(99, 102, 241, 0.2);
    color: #e5e7eb;
}

.cbq-tmodal-header {
    padding: 22px 22px 0;
    text-align: center;
}
.cbq-tmodal-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff4e0, #fad89a);
    color: #f89602;
    box-shadow: 0 4px 14px -2px rgba(248, 150, 2, 0.35);
}
.cbq-tmodal-icon svg { width: 26px; height: 26px; }
.cbq-tmodal-icon.danger   { background: linear-gradient(135deg,#fee2e2,#fecaca); color:#b91c1c; box-shadow: 0 4px 14px -2px rgba(220,38,38,.35); }
.cbq-tmodal-icon.success  { background: linear-gradient(135deg,#dcfce7,#bbf7d0); color:#15803d; box-shadow: 0 4px 14px -2px rgba(22,163,74,.35); }
.cbq-tmodal-icon.primary  { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color:#1d4ed8; box-shadow: 0 4px 14px -2px rgba(37,99,235,.35); }

.cbq-tmodal h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
html[data-mcqp-theme="dark"] .cbq-tmodal h3 { color: #f1f5f9; }

.cbq-tmodal p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
html[data-mcqp-theme="dark"] .cbq-tmodal p { color: #94a3b8; }

.cbq-tmodal-body {
    padding: 14px 22px 0;
    text-align: center;
}

.cbq-tmodal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 0;
    padding: 12px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
html[data-mcqp-theme="dark"] .cbq-tmodal-stats {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(51, 65, 85, 0.6);
}

.cbq-tmodal-stat { text-align: center; }
.cbq-tmodal-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
html[data-mcqp-theme="dark"] .cbq-tmodal-stat-val { color: #f1f5f9; }

.cbq-tmodal-stat-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 3px;
}

/* ---------- Footer: 3 buttons in one row ---------- */
.cbq-tmodal-footer {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: row;          /* all 3 buttons inline */
    gap: 8px;
}

/* ---------- Glass button base: tinted-pastel premium style ---------- */
.cbq-tmodal-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 8px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    letter-spacing: .1px;
    text-align: center;
    line-height: 1.25;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1),
                box-shadow .2s ease,
                background .2s ease,
                color .15s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Top glass shine (subtle) */
.cbq-tmodal-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.55) 0%,
        rgba(255,255,255,0) 100%);
    pointer-events: none;
    border-radius: 12px 12px 0 0;
    opacity: .7;
}

/* Sheen sweep on hover */
.cbq-tmodal-btn::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -70%;
    width: 45%;
    background: linear-gradient(110deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left .65s cubic-bezier(.4,0,.2,1);
}
.cbq-tmodal-btn:hover::after { left: 130%; }

.cbq-tmodal-btn:hover {
    transform: translateY(-2px);
}
.cbq-tmodal-btn:active {
    transform: translateY(0) scale(.97);
}

/* ---------- Submit Now — light red / coral-red #fc4b05 ---------- */
.cbq-tmodal-btn-primary {
    background: linear-gradient(180deg, #ffe8e0 0%, #ffd6c9 100%);   /* very light red tint */
    color: #fc4b05;                                                   /* hot coral-red text */
    border-color: rgba(252, 75, 5, 0.22);
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    box-shadow:
        0 2px 6px -1px rgba(252, 75, 5, 0.18),
        0 4px 14px -4px rgba(252, 75, 5, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.85),
        inset 0 -2px 0 rgba(252, 75, 5, 0.08);
}
.cbq-tmodal-btn-primary:hover {
    background: linear-gradient(180deg, #ffdbce 0%, #ffc4b2 100%);
    border-color: rgba(252, 75, 5, 0.35);
    box-shadow:
        0 6px 14px -2px rgba(252, 75, 5, 0.3),
        0 10px 24px -6px rgba(252, 75, 5, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -2px 0 rgba(252, 75, 5, 0.12);
}

/* ---------- Resume Later — gold #fcc500, light tint ---------- */
.cbq-tmodal-btn-resume {
    background: linear-gradient(180deg, #fff6d1 0%, #ffedad 100%);   /* light gold tint */
    color: #9a6b00;
    border-color: rgba(252, 197, 0, 0.35);
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    box-shadow:
        0 2px 6px -1px rgba(252, 197, 0, 0.2),
        0 4px 14px -4px rgba(252, 197, 0, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.85),
        inset 0 -2px 0 rgba(252, 197, 0, 0.1);
}
.cbq-tmodal-btn-resume:hover {
    background: linear-gradient(180deg, #ffefa8 0%, #ffe27e 100%);
    border-color: rgba(252, 197, 0, 0.5);
    box-shadow:
        0 6px 14px -2px rgba(252, 197, 0, 0.35),
        0 10px 24px -6px rgba(252, 197, 0, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -2px 0 rgba(252, 197, 0, 0.15);
}

/* ---------- Stay — vivid green #09e227, light tint ---------- */
.cbq-tmodal-btn-ghost {
    background: linear-gradient(180deg, #dafff1 0%, #b6f8c8 100%);   /* light green tint */
    color: #04a218;
    border-color: rgba(9, 226, 39, 0.3);
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    box-shadow:
        0 2px 6px -1px rgba(9, 226, 39, 0.18),
        0 4px 14px -4px rgba(9, 226, 39, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.85),
        inset 0 -2px 0 rgba(9, 226, 39, 0.08);
}
.cbq-tmodal-btn-ghost:hover {
    background: linear-gradient(180deg, #b3fbd4 0%, #86f2a3 100%);
    border-color: rgba(9, 226, 39, 0.45);
    box-shadow:
        0 6px 14px -2px rgba(9, 226, 39, 0.3),
        0 10px 24px -6px rgba(9, 226, 39, 0.38),
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -2px 0 rgba(9, 226, 39, 0.12);
}

/* Legacy danger button */
.cbq-tmodal-btn-danger {
    background: linear-gradient(180deg, #ffe4e4 0%, #fecaca 100%);
    color: #dc2626;
    border-color: rgba(220,38,38,0.3);
    box-shadow: 0 2px 6px -1px rgba(220,38,38,.18), inset 0 1px 0 rgba(255,255,255,.85);
}

/* Pressed dissolve feedback */
.cbq-tmodal-btn.dissolving {
    animation: cbq-btn-press .35s ease-out forwards;
}

/* Dark theme — deeper tints */
html[data-mcqp-theme="dark"] .cbq-tmodal-btn-primary {
    background: linear-gradient(180deg, rgba(252,75,5,0.22) 0%, rgba(252,75,5,0.14) 100%);
    color: #ff8c5a;
    border-color: rgba(252,75,5,0.4);
    text-shadow: none;
}
html[data-mcqp-theme="dark"] .cbq-tmodal-btn-resume {
    background: linear-gradient(180deg, rgba(252,197,0,0.22) 0%, rgba(252,197,0,0.14) 100%);
    color: #ffd966;
    border-color: rgba(252,197,0,0.4);
    text-shadow: none;
}
html[data-mcqp-theme="dark"] .cbq-tmodal-btn-ghost {
    background: linear-gradient(180deg, rgba(9,226,39,0.22) 0%, rgba(9,226,39,0.14) 100%);
    color: #6efa80;
    border-color: rgba(9,226,39,0.4);
    text-shadow: none;
}

/* ---------- Animations ---------- */
@keyframes cbq-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cbq-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes cbq-slide-up {
    from { opacity: 0; transform: translateY(16px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cbq-dissolve-out {
    0%   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
    100% { opacity: 0; transform: scale(.92) translateY(6px); filter: blur(3px); }
}
@keyframes cbq-btn-press {
    0%   { transform: scale(1);    filter: brightness(1.3); }
    50%  { transform: scale(.92);  filter: brightness(1.5); }
    100% { transform: scale(.96);  filter: brightness(1.1); }
}

/* Tiny viewport — stack 3 buttons into 2 rows of readable size */
@media (max-width: 380px) {
    .cbq-tmodal { max-width: 340px; border-radius: 14px; }
    .cbq-tmodal-header { padding: 20px 18px 0; }
    .cbq-tmodal-body   { padding: 12px 18px 0; }
    .cbq-tmodal-footer { padding: 16px 14px 18px; gap: 6px; }
    .cbq-tmodal-btn { font-size: 11px; padding: 9px 4px; }
}


/* ============================================================
   Resume Cards — shown in Dashboard + Archive pages
   ============================================================ */
/* ============================================================
   v4.4.4 — Modern SaaS-style Resume In-Progress Cards
   ============================================================ */
.cbq-resume-section {
    margin: 0 0 28px;
    padding: 22px 24px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
    border: 1px solid #fef3c7;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 2px 8px -4px rgba(245,158,11,.08);
    position: relative;
    /* v4.12.54 — CRITICAL FIX: overflow:hidden on parent breaks touch
       momentum scrolling on nested scroll containers (iOS). Using
       overflow-x:clip keeps the top gradient strip contained without
       interfering with the inner scrollable .cbq-resume-grid's touch
       events. overflow-y:visible so scroll hint dots/arrows can extend. */
    overflow-x: clip;
    overflow-y: visible;
    /* Ensure the decorative top strip doesn't bleed outside the border
       radius — it's positioned absolute within this relative parent. */
    isolation: isolate;
}
.cbq-resume-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    border-radius: 18px 18px 0 0;
    z-index: 1;
}
.cbq-resume-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}
/* v4.12.57 — Mobile: section needs tight padding to let cards breathe. */
@media (max-width: 720px) {
    .cbq-resume-section {
        padding: 14px 14px 14px;
        border-radius: 14px;
        margin: 0 0 18px;
    }
    .cbq-resume-section-head {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .cbq-resume-section-head h3 {
        font-size: 14px;
    }
    .cbq-resume-section-head .badge {
        font-size: 9.5px;
        padding: 3px 7px;
    }
}
.cbq-resume-section-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1;
    letter-spacing: -.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cbq-resume-section-head .badge {
    background: #fef3c7;
    color: #b45309;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: .3px;
    border: 1px solid #fde68a;
    text-transform: uppercase;
}

/* v4.12.54 — Scroll indicators: fade gradients + arrow buttons + dot row */
.cbq-resume-scroll-wrap {
    position: relative;
}

/* Edge fade hints on wide screens — hint there's more to the right */
.cbq-resume-fade {
    position: absolute;
    top: 0; bottom: 14px;
    width: 28px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
}
.cbq-resume-fade-left {
    left: 0;
    background: linear-gradient(to right, #fefce8 60%, transparent 100%);
}
.cbq-resume-fade-right {
    right: 0;
    background: linear-gradient(to left, #fefce8 60%, transparent 100%);
}

/* Arrow nav buttons — desktop only */
.cbq-resume-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #475569;
    display: grid; place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px -4px rgba(15,23,42,.12);
    transition: transform .15s, background .15s, color .15s;
}
.cbq-resume-nav:hover:not(:disabled) {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    transform: translateY(-50%) scale(1.08);
}
.cbq-resume-nav:disabled {
    opacity: 0;
    pointer-events: none;
}
.cbq-resume-nav-prev { left: -6px; }
.cbq-resume-nav-next { right: -6px; }

/* Dot indicators below strip */
.cbq-resume-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.cbq-resume-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #d4d4d8;
    transition: all .2s ease;
}
.cbq-resume-dot.is-active {
    background: #f59e0b;
    width: 18px; border-radius: 3px;
}

/* Mobile: hide arrows (touch is primary), shrink dots */
@media (max-width: 720px) {
    .cbq-resume-nav { display: none; }
    .cbq-resume-fade { display: none; }
    .cbq-resume-dots { margin-top: 4px; }
    .cbq-resume-dot { width: 5px; height: 5px; }
    .cbq-resume-dot.is-active { width: 14px; }
}

/* Dark theme */
.mcqp-fe[data-theme="dark"] .cbq-resume-fade-left,
[data-theme="dark"] .cbq-resume-fade-left {
    background: linear-gradient(to right, rgba(15,23,42,.95) 60%, transparent 100%);
}
.mcqp-fe[data-theme="dark"] .cbq-resume-fade-right,
[data-theme="dark"] .cbq-resume-fade-right {
    background: linear-gradient(to left, rgba(15,23,42,.95) 60%, transparent 100%);
}
.mcqp-fe[data-theme="dark"] .cbq-resume-nav,
[data-theme="dark"] .cbq-resume-nav {
    background: rgba(15,23,42,.8);
    border-color: rgba(148,163,184,.2);
    color: #cbd5e1;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-dot,
[data-theme="dark"] .cbq-resume-dot {
    background: rgba(148,163,184,.3);
}
.mcqp-fe[data-theme="dark"] .cbq-resume-dot.is-active,
[data-theme="dark"] .cbq-resume-dot.is-active {
    background: #fbbf24;
}

/* v4.12.56 — Allow vertical scroll to pass THROUGH the strip.
   Previous pan-x-only blocked page scroll when finger started on strip.
   
   Correct behavior (like Instagram/X horizontal cards):
     - pan-x pan-y — browser decides based on finger direction. Primarily
       horizontal motion scrolls the strip; primarily vertical scrolls the
       page. User can't get stuck.
     - overscroll-behavior: contain — prevents pull-to-refresh.
     - No !important needed for touch-action now (pan-x pan-y is the
       default behavior for scroll containers). */
.mcqp-fe .cbq-resume-grid,
.cbq-resume-grid {
    touch-action: pan-x pan-y pinch-zoom !important;
    -ms-touch-action: pan-x pan-y pinch-zoom !important;
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: auto !important;
}

.cbq-resume-grid {
    /* v4.12.56 — FREE-FORM horizontal scroll that lets vertical scroll
       pass through. Key fixes:
         - touch-action: pan-x pan-y pinch-zoom — finger direction decides
           whether strip or page scrolls. User is never stuck.
         - overscroll-behavior-x: contain — horizontal doesn't chain to page
         - overscroll-behavior-y: auto — vertical scrolls body normally
         - No scroll-snap — finger-driven
         - -webkit-overflow-scrolling: touch — iOS momentum physics
         - will-change + translateZ — GPU compositing for smooth scroll */
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    padding: 4px 4px 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    position: relative;
    /* Hardware-accelerated layer — smoother scroll */
    will-change: scroll-position;
    transform: translateZ(0);
}
.cbq-resume-grid::-webkit-scrollbar { height: 6px; }
.cbq-resume-grid::-webkit-scrollbar-track { background: transparent; }
.cbq-resume-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1; border-radius: 4px;
}
.cbq-resume-grid::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.cbq-resume-grid > .cbq-resume-card {
    flex: 0 0 320px;
}
@media (max-width: 720px) {
    .cbq-resume-grid {
        scrollbar-width: none;
        padding: 2px 0 10px;
    }
    .cbq-resume-grid::-webkit-scrollbar { display: none; }
    .cbq-resume-grid > .cbq-resume-card {
        /* Section padding 14px on each side = 28px consumed by parent.
           Card width = viewport - section-pad-both - 48px next-peek.
           Max 280px so large phones don't get monster cards. */
        flex: 0 0 calc(100vw - 76px);
        max-width: 280px;
    }
}

.cbq-resume-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    overflow: hidden;
    /* v4.12.56 — Mobile hold/drag fixes.
       - tap-highlight-color transparent: no blue flash on tap
       - -webkit-user-drag none: finger-hold doesn't drag link
       - -webkit-touch-callout none: no iOS link preview popup
       - user-select none: no text selection on long-hold
       - touch-action inherit: let the grid's rule propagate */
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    touch-action: inherit;
}
/* v4.12.57 — Mobile: compact card. Tight padding + gap + single-line
   title (ellipsis). Layout: [type] [time] → title → progress → [count] [btn]. */
@media (max-width: 720px) {
    .cbq-resume-card {
        padding: 12px 14px;
        gap: 8px;
        border-radius: 12px;
    }
    .cbq-resume-card-head {
        gap: 6px;
    }
    .cbq-resume-card-type {
        font-size: 9.5px;
        padding: 3px 7px;
    }
    .cbq-resume-card-time {
        font-size: 10.5px;
    }
    .cbq-resume-card-title {
        font-size: 13.5px;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        min-height: 36px;    /* reserve space for exactly 2 lines so all
                                cards align regardless of title length */
    }
    .cbq-resume-progress-wrap {
        height: 5px;
    }
    .cbq-resume-card-meta {
        font-size: 11.5px;
        margin-top: 0;
    }
    .cbq-resume-btn {
        padding: 5px 11px;
        font-size: 11px;
    }
}
.cbq-resume-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 0 0 0 transparent;
    transition: box-shadow .22s ease;
}
.cbq-resume-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(15,23,42,.15), 0 4px 10px -2px rgba(15,23,42,.06);
    border-color: #cbd5e1;
}
.cbq-resume-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.15);
}

.cbq-resume-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cbq-resume-card-type {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
    line-height: 1;
    border: 1px solid transparent;
}
.cbq-resume-card-type.mcq { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.cbq-resume-card-type.gk  { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.cbq-resume-card-type.ca  { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.cbq-resume-card-type.pyq { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }

.cbq-resume-card-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cbq-resume-card-time::before {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.cbq-resume-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -.005em;
}

.cbq-resume-progress-wrap {
    position: relative;
    height: 6px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}
.cbq-resume-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 99px;
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 8px rgba(245,158,11,.4);
}

.cbq-resume-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}
.cbq-resume-card-meta > span:first-child {
    font-weight: 600;
    color: #475569;
}
.cbq-resume-card-meta > span:first-child strong {
    color: #0f172a;
    font-weight: 700;
}
.cbq-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #0f172a;
    color: #ffffff !important;
    border-radius: 99px;
    font-weight: 600;
    font-size: 11.5px;
    text-decoration: none !important;
    transition: all .2s ease;
    letter-spacing: .1px;
}
.cbq-resume-card:hover .cbq-resume-btn {
    background: #2563eb;
    transform: translateX(2px);
}

/* Dark mode */
.mcqp-fe[data-theme="dark"] .cbq-resume-section,
[data-theme="dark"] .cbq-resume-section {
    background: linear-gradient(135deg, rgba(30,41,59,0.5) 0%, rgba(30,41,59,0.3) 100%);
    border-color: rgba(245,158,11,0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.mcqp-fe[data-theme="dark"] .cbq-resume-section-head,
[data-theme="dark"] .cbq-resume-section-head {
    border-bottom-color: rgba(148,163,184,0.15);
}
.mcqp-fe[data-theme="dark"] .cbq-resume-section-head h3,
[data-theme="dark"] .cbq-resume-section-head h3 {
    color: #f1f5f9;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-section-head .badge,
[data-theme="dark"] .cbq-resume-section-head .badge {
    background: rgba(245,158,11,0.15);
    color: #fbbf24;
    border-color: rgba(245,158,11,0.3);
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card,
[data-theme="dark"] .cbq-resume-card {
    background: #1e293b;
    border-color: rgba(148,163,184,0.12);
    color: #e2e8f0 !important;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card:hover,
[data-theme="dark"] .cbq-resume-card:hover {
    background: #233247;
    border-color: rgba(37,99,235,0.4);
    box-shadow: 0 12px 28px -10px rgba(0,0,0,.5), 0 0 0 1px rgba(37,99,235,0.15);
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card-title,
[data-theme="dark"] .cbq-resume-card-title {
    color: #f8fafc;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card-time,
[data-theme="dark"] .cbq-resume-card-time {
    color: #94a3b8;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card-time::before,
[data-theme="dark"] .cbq-resume-card-time::before {
    background: #64748b;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card-meta,
[data-theme="dark"] .cbq-resume-card-meta {
    color: #94a3b8;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card-meta > span:first-child,
[data-theme="dark"] .cbq-resume-card-meta > span:first-child {
    color: #cbd5e1;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card-meta > span:first-child strong,
[data-theme="dark"] .cbq-resume-card-meta > span:first-child strong {
    color: #ffffff;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-progress-wrap,
[data-theme="dark"] .cbq-resume-progress-wrap {
    background: rgba(148,163,184,0.15);
}
.mcqp-fe[data-theme="dark"] .cbq-resume-btn,
[data-theme="dark"] .cbq-resume-btn {
    background: #334155;
    color: #ffffff !important;
}
.mcqp-fe[data-theme="dark"] .cbq-resume-card:hover .cbq-resume-btn,
[data-theme="dark"] .cbq-resume-card:hover .cbq-resume-btn {
    background: #2563eb;
}
/* Dark mode type badges */
.mcqp-fe[data-theme="dark"] .cbq-resume-card-type.mcq,
[data-theme="dark"] .cbq-resume-card-type.mcq { background: rgba(37,99,235,0.15); color: #93c5fd; border-color: rgba(37,99,235,0.3); }
.mcqp-fe[data-theme="dark"] .cbq-resume-card-type.gk,
[data-theme="dark"] .cbq-resume-card-type.gk  { background: rgba(99,102,241,0.15); color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.mcqp-fe[data-theme="dark"] .cbq-resume-card-type.ca,
[data-theme="dark"] .cbq-resume-card-type.ca  { background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.mcqp-fe[data-theme="dark"] .cbq-resume-card-type.pyq,
[data-theme="dark"] .cbq-resume-card-type.pyq { background: rgba(236,72,153,0.15); color: #f9a8d4; border-color: rgba(236,72,153,0.3); }

/* PYQ placeholder — Coming Soon */
.cbq-pyq-section {
    margin: 16px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border: 1px solid #f9a8d4;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none !important;
    color: inherit !important;
}
.cbq-pyq-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(190,24,93,.25);
}
.cbq-pyq-section-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(190,24,93,.15);
    color: #be185d;
    flex-shrink: 0;
}
.cbq-pyq-section-icon svg {
    width: 24px; height: 24px;
}
.cbq-pyq-section h4 {
    font-size: 15px;
    font-weight: 800;
    color: #831843;
    margin: 0 0 3px;
    line-height: 1.3;
}
.cbq-pyq-section p {
    font-size: 12px;
    color: #9d174d;
    margin: 0;
    line-height: 1.4;
}
.cbq-pyq-section .badge {
    margin-left: auto;
    background: #be185d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: .3px;
    flex-shrink: 0;
}

/* v4.12.59 — Dark mode for PYQ card. Previously text was set as dark
   pink on a light pink gradient background, which became invisible when
   the card stayed light-pink while other surfaces went dark. Now both
   background and text flip for readable contrast. */
.mcqp-fe[data-theme="dark"] .cbq-pyq-section,
[data-theme="dark"] .cbq-pyq-section {
    background: linear-gradient(135deg, rgba(190,24,93,.18) 0%, rgba(236,72,153,.08) 100%);
    border-color: rgba(236,72,153,.35);
}
.mcqp-fe[data-theme="dark"] .cbq-pyq-section-icon,
[data-theme="dark"] .cbq-pyq-section-icon {
    background: rgba(0,0,0,.25);
    color: #f9a8d4;
}
.mcqp-fe[data-theme="dark"] .cbq-pyq-section h4,
[data-theme="dark"] .cbq-pyq-section h4 {
    color: #fbcfe8;
}
.mcqp-fe[data-theme="dark"] .cbq-pyq-section p,
[data-theme="dark"] .cbq-pyq-section p {
    color: #f9a8d4;
}
.mcqp-fe[data-theme="dark"] .cbq-pyq-section .badge,
[data-theme="dark"] .cbq-pyq-section .badge {
    background: #ec4899;
    color: #fff;
}

/* v4.12.59 — Mobile: PYQ card compact */
@media (max-width: 720px) {
    .cbq-pyq-section {
        padding: 14px 14px;
        gap: 12px;
        border-radius: 14px;
        margin: 12px 0;
    }
    .cbq-pyq-section-icon {
        width: 40px; height: 40px;
        border-radius: 11px;
    }
    .cbq-pyq-section-icon svg { width: 20px; height: 20px; }
    .cbq-pyq-section h4 { font-size: 13.5px; }
    .cbq-pyq-section p { font-size: 11.5px; }
    .cbq-pyq-section .badge {
        font-size: 9.5px;
        padding: 3px 8px;
    }
}

@media (max-width: 640px) {
    .cbq-tmodal { border-radius: 14px; }
    .cbq-tmodal-header { padding: 24px 20px 0; }
    .cbq-tmodal-body { padding: 16px 20px 0; }
    .cbq-tmodal-footer { padding: 20px; }
}
