/* ═══════════════════════════════════════════════════════════════
   TCC V2 - Unified Popup / Modal System
   All popups: Buy Report, Download, Track Order, Notes, Export,
   Subscribe, Success/Error, Unified Tools
   ═══════════════════════════════════════════════════════════════ */

:root {
    --v2p-bg: #ffffff;
    --v2p-bg-soft: #f8fafc;
    --v2p-bg-accent: #f1f5f9;
    --v2p-border: #e2e8f0;
    --v2p-border-focus: #cbd5e1;
    --v2p-text: #0f172a;
    --v2p-text-secondary: #475569;
    --v2p-text-muted: #94a3b8;
    --v2p-primary: #0f172a;
    --v2p-primary-hover: #1e293b;
    --v2p-accent: #1D5080;
    --v2p-green: #16a34a;
    --v2p-red: #dc2626;
    --v2p-orange: #f97316;
    --v2p-radius: 12px;
    --v2p-radius-sm: 8px;
    --v2p-radius-xs: 6px;
    --v2p-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --v2p-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --v2p-transition: all 0.2s ease;
}

/* ────────────────────────────────────────────────
   1. OVERLAY (shared across all popup types)
   ──────────────────────────────────────────────── */
.popup-overlay,
.tcc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10500;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .popup-overlay.show,
    .tcc-modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Director popup + other JS-created modals that don't use .show class */
    #tccOvDirModal,
    .tcc-modal-overlay[id] {
        opacity: 1;
        visibility: visible;
    }

/* Buy report popup INSIDE #dv_buyReportPopUp - parent container handles overlay */
#dv_buyReportPopUp .buy-report-popup,
#dv_buyReportPopUp .popup-overlay {
    position: static;
    inset: auto;
    background: none;
    backdrop-filter: none;
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Standalone buy-report-popup (not inside #dv_buyReportPopUp) */
.buy-report-popup:not(#dv_buyReportPopUp .buy-report-popup) {
    position: fixed;
    inset: 0;
    z-index: 10500;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.buy-report-popup.show:not(#dv_buyReportPopUp .buy-report-popup) {
    opacity: 1;
    visibility: visible;
}

/* ────────────────────────────────────────────────
   2. BASE POPUP CONTAINER
   ──────────────────────────────────────────────── */
.popup,
.getdata-modal,
.tcc-modal {
    background: #ffffff;
    border-radius: var(--tcc-popup-border-radius, 10px);
    box-shadow: 0 0 0 1px rgba(15,23,42,.04),0 8px 40px rgba(15,23,42,.18),0 24px 64px rgba(15,23,42,.10);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: v2pSlideUp 0.3s ease;
    position: relative;
    margin: auto;
}

@keyframes v2pSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ────────────────────────────────────────────────
   3. POPUP HEADER
   ──────────────────────────────────────────────── */
.custom-popup-head,
.tcc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    flex-shrink: 0;
}

    .custom-popup-head h2,
    .tcc-modal-header span {
        font-size: 18px;
        font-weight: 500;
        color: #1e2a4a;
        margin: 0;
        letter-spacing: -0.01em;
    }

.popup-close-btn,
.tcc-modal-close,
.close_popup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 4px 8px;
    font-size: 20px;
    line-height: 1;
}

    .popup-close-btn:hover,
    .tcc-modal-close:hover,
    .close_popup:hover {
        background: #f5f5f5;
        border-color: transparent;
        color: #1e2a4a;
    }

/* ────────────────────────────────────────────────
   4. SUBSCRIBE / BUY REPORT POPUP BODY
   ──────────────────────────────────────────────── */
.subscribe-modal-box {
    padding: 0;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.subscribe-body {
    padding: 16px 20px;
    border-bottom: 1px solid var(--v2p-border);
    transition: var(--v2p-transition);
    cursor: pointer;
}

    .subscribe-body:last-child {
        border-bottom: none;
    }

    .subscribe-body:hover {
        background: var(--v2p-bg-soft);
    }

.pay-radio-flex {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

    .pay-radio-flex input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid var(--v2p-border-focus);
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
        transition: var(--v2p-transition);
    }

        .pay-radio-flex input[type="radio"]:checked {
            border-color: var(--v2p-primary);
        }

            .pay-radio-flex input[type="radio"]:checked::after {
                content: '';
                position: absolute;
                top: 3px;
                left: 3px;
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: var(--v2p-primary);
            }

    .pay-radio-flex span {
        font-size: 14px;
        font-weight: 600;
        color: var(--v2p-text);
    }

.subscribe-body p {
    font-size: 13px;
    color: var(--v2p-text-secondary);
    margin: 4px 0 0;
    line-height: 1.5;
    padding-left: 28px;
}

.pay-list-item {
    list-style: none;
    padding: 8px 0 0 28px;
    margin: 0;
}

    .pay-list-item li {
        font-size: 12px;
        color: var(--v2p-text-secondary);
        padding: 3px 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .pay-list-item li::before {
            content: '';
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--v2p-text-muted);
            flex-shrink: 0;
        }

/* Subscribe / Proceed buttons (TCC V2) */
.subscribe-modal-box > button,
.subscribe-modal-box .button-subscription,
.subscribe-modal-box .tcc-popup-proceed-btn,
.subscribe-modal-box .proceed-btn,
#btnScreen,
#unlockSection_btn {
    display: block;
    width: calc(100% - 32px);
    margin: 16px 16px;
    padding: 8px 12px;
    background: #293348;
    color: #fff !important;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: none;
}
    .inner-popup-wrapper{
        display:flex;
        width:100%;
        height:100%;
        flex-direction:column;
        justify-content:center;
    }

    .subscribe-modal-box > button:hover,
    .subscribe-modal-box .button-subscription:hover,
    #btnScreen:hover,
    #unlockSection_btn:hover {
        background: #174068;
    }

/* Button subscription class (Proceed) */
.button-subscription {
    display: block !important;
}

/* Credit stepper controls */
.tcc-credit-stepper {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    transition: background 0.15s;
}

    .tcc-credit-stepper:hover {
        background: #e2e8f0;
    }

.tcc-credit-input {
    width: 56px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

    .tcc-credit-input:focus {
        outline: none;
        border-color: #1D5080;
        box-shadow: 0 0 0 2px rgba(29,80,128,0.1);
    }

/* Recommended tag */
.recommended-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--v2p-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
}

/* ────────────────────────────────────────────────
   4b. GET COMPANY DATA POPUP - Reference-spec rebuild
   Three-column plan picker: Single Report / Credit Pack / Subscription
   Scoped under .gcd-overlay so it doesn't leak into other popups.
   Design tokens match the reference spec:
     primary navy #1d5080, Inter font, 16px rounded cards,
     floating "MOST POPULAR" badge, stepper-with-total inside
     the featured card, footer with secure-checkout + pay icons.
   ──────────────────────────────────────────────── */

/* Local palette - mirrors reference exactly so it looks identical
   regardless of the rest of the app's token drift */
.gcd-overlay {
    --gcd-p: #1d5080;           /* primary navy */
    --gcd-ph: #153d66;          /* primary hover - darker */
    --gcd-pl: #eaf2fb;          /* primary light tint */
    --gcd-pl2: #f4f8fd;         /* primary lighter tint */
    --gcd-t: #0f1f33;           /* text main */
    --gcd-t2: #4a5e78;          /* text secondary */
    --gcd-t3: #8597ae;          /* text muted */
    --gcd-bd: #e3e8ef;          /* card border */
    --gcd-bg: #f6f9fc;          /* stepper fill / subtle bg */
    --gcd-w: #fff;
    --gcd-g: #047857;            /* success green (check marks, lock) */
    --gcd-o: #b45309;            /* warning orange (min-note) */

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Overlay / centering strategy ────────────────────────────────────
   Two placement modes:
   • Standalone (no #dv_buyReportPopUp parent): .gcd-overlay IS the
     full-screen backdrop and flex-centers the card.
   • Injected inside #dv_buyReportPopUp: the outer container already
     provides fixed positioning, backdrop, and flex-centering - so the
     .gcd-overlay collapses to `display:contents` and the .gcd-modal
     becomes the flex item that gets centered by the outer container.
     This avoids double backdrops and prevents off-center rendering.
   ──────────────────────────────────────────────────────────────────── */

/* Standalone mode - gcd-overlay paints the backdrop itself */
.gcd-overlay.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 51, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100001;
    opacity: 1;
    visibility: visible;
}

/* Inside #dv_buyReportPopUp - parent already handles overlay, so the
   gcd-overlay disappears visually and passes centering to its child */
#dv_buyReportPopUp .gcd-overlay.popup-overlay,
.tcc-global-content #dv_buyReportPopUp .gcd-overlay.popup-overlay {
    position: static !important;
    inset: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto;
}

/* Inner wrapper - strip the legacy height:100% and let the flex parent
   do the centering naturally */
.gcd-overlay .inner-popup-wrapper,
#dv_buyReportPopUp .gcd-overlay .inner-popup-wrapper {
    width: 100% !important;
    max-width: 920px !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* Modal shell - matches reference radius/shadow/max-height */
.gcd-overlay .popup.gcd-modal,
#dv_buyReportPopUp .gcd-overlay .popup.gcd-modal {
    width: 100%;
    max-width: 920px;
    background: var(--gcd-w);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(15, 31, 51, 0.4);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    padding: 0;
    margin: 0 auto;
    color: var(--gcd-t);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    animation: v2pSlideUp 0.3s ease;
    position: relative;
}

/* Header */
.gcd-head {
    padding: 22px 28px;
    border-bottom: 1px solid var(--gcd-bd);
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, #fbfcfd 0%, #fff 100%);
}

.gcd-head .gcd-ic {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--gcd-pl);
    color: var(--gcd-p);
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.gcd-head .gcd-head-text {
    flex: 1;
    min-width: 0;
}

.gcd-head h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 2px;
    color: var(--gcd-t);
    line-height: 1.3;
}

.gcd-head p {
    font-size: 13px;
    color: var(--gcd-t2);
    margin: 0;
    line-height: 1.4;
}

.gcd-head p b {
    color: var(--gcd-t);
    font-weight: 600;
}

.gcd-overlay .gcd-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    border: none;
    color: var(--gcd-t2);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 13px;
    transition: 0.15s;
    flex-shrink: 0;
    padding: 0;
    position: static;     /* neutralises legacy absolute-positioned close button */
    margin: 0;
}

.gcd-overlay .gcd-close:hover {
    background: #e4ebf2;
    color: var(--gcd-t);
}

.gcd-overlay .gcd-close svg {
    width: 14px;
    height: 14px;
}

/* Body */
.gcd-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    background: var(--gcd-w);
}

.gcd-opts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Card */
.gcd-opt {
    position: relative;
    border: 1.5px solid var(--gcd-bd);
    border-radius: 16px;
    padding: 20px 18px 18px;
    background: var(--gcd-w);
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    margin: 0;                    /* neutralises global <label> margins */
}

.gcd-opt:hover {
    border-color: #b8cde2;
    box-shadow: 0 4px 16px rgba(15, 31, 51, 0.06);
}

.gcd-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    width: 0;
    height: 0;
}

.gcd-opt.on {
    border-color: var(--gcd-p);
    box-shadow: 0 0 0 4px rgba(29, 80, 128, 0.08);
}

.gcd-opt.featured {
    border-color: var(--gcd-p);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

/* Floating "MOST POPULAR" badge - sits on the top border */
.gcd-opt-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--gcd-p);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
    box-shadow: 0 2px 6px rgba(29, 80, 128, 0.3);
    line-height: 1.2;
}

/* Card head: title row with inline radio bubble */
.gcd-opt-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.gcd-opt-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gcd-t);
    line-height: 1.3;
}

.gcd-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: 0.15s;
    margin-top: 2px;
    background: #fff;
}

.gcd-opt.on .gcd-radio {
    border-color: var(--gcd-p);
    background: var(--gcd-p);
}

.gcd-radio::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: 0.15s;
}

.gcd-opt.on .gcd-radio::after {
    opacity: 1;
}

/* Price row */
.gcd-opt-price {
    margin: 6px 0 8px;
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.gcd-opt-price .gcd-cu {
    font-size: 14px;
    color: var(--gcd-t2);
    font-weight: 700;
}

.gcd-opt-price .gcd-pv {
    font-size: 26px;
    line-height: 1;
    color: var(--gcd-t);
    font-weight: 800;
}

.gcd-opt-price .gcd-per {
    font-size: 11px;
    color: var(--gcd-t3);
    font-weight: 500;
    margin-left: 3px;
}

.gcd-opt-tag {
    font-size: 12.5px;
    color: var(--gcd-t2);
    line-height: 1.5;
    margin: 0 0 14px;
    min-height: 36px;
}

.gcd-opt-tag b {
    font-weight: 700;
}

/* Feature check list */
.gcd-opt-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    margin: 0 0 14px;
    padding: 0;
}

.gcd-opt-list li {
    display: flex;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--gcd-t);
}

.gcd-opt-list li svg,
.gcd-opt-list li i.fa-check {
    color: var(--gcd-g);
    font-size: 10px;
    margin-top: 4px;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
}

.gcd-opt.featured .gcd-opt-list li svg,
.gcd-opt.featured .gcd-opt-list li i.fa-check {
    color: var(--gcd-p);
}

/* Credit stepper - pill container with − / value / + */
.gcd-stepper {
    display: flex;
    align-items: center;
    background: var(--gcd-bg);
    border: 1px solid var(--gcd-bd);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 10px;
}

.gcd-stepper button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--gcd-w);
    border-radius: 7px;
    color: var(--gcd-t);
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: 0.15s;
    display: grid;
    place-items: center;
    padding: 0;
}

.gcd-stepper button:hover {
    background: var(--gcd-pl);
    color: var(--gcd-p);
}

.gcd-stepper button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gcd-stepper .gcd-val {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--gcd-t);
    line-height: 1.2;
}

.gcd-stepper .gcd-val small {
    display: block;
    font-size: 10px;
    color: var(--gcd-t3);
    font-weight: 500;
    margin-top: 1px;
}

.gcd-min-note {
    font-size: 11px;
    color: var(--gcd-t3);
    text-align: center;
    margin-bottom: 10px;
}

.gcd-min-note b {
    color: var(--gcd-o);
    font-weight: 700;
}

/* Card CTA */
.gcd-opt-cta {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: 0.15s;
    line-height: 1.3;
}

.gcd-cta-outline {
    background: #fff;
    color: var(--gcd-p);
    border: 1.5px solid var(--gcd-p);
}
.gcd-cta-outline:hover {
    background: var(--gcd-pl);
    color: var(--gcd-p);
}

.gcd-cta-solid {
    background: var(--gcd-p);
    color: #fff;
    border: 1.5px solid var(--gcd-p);
}
.gcd-cta-solid:hover {
    background: var(--gcd-ph);
    border-color: var(--gcd-ph);
    color: #fff;
}

.gcd-cta-ghost {
    background: transparent;
    color: var(--gcd-p);
    border: 1.5px solid var(--gcd-bd);
    font-weight: 600;
}
.gcd-cta-ghost:hover {
    background: var(--gcd-pl2);
    border-color: var(--gcd-p);
    color: var(--gcd-p);
}
.gcd-cta-ghost svg,
.gcd-cta-ghost i {
    margin-left: 4px;
    transition: 0.15s;
}
.gcd-cta-ghost:hover svg,
.gcd-cta-ghost:hover i {
    transform: translateX(2px);
}

/* Footer */
.gcd-foot {
    padding: 16px 28px;
    border-top: 1px solid var(--gcd-bd);
    background: #fafcfe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--gcd-t2);
}

.gcd-foot .gcd-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gcd-foot .gcd-secure svg,
.gcd-foot .gcd-secure i {
    color: var(--gcd-g);
    width: 12px;
    height: 12px;
}

.gcd-foot .gcd-pay-ic {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--gcd-t3);
    font-size: 18px;
}

.gcd-foot .gcd-pay-ic svg {
    width: 22px;
    height: 16px;
    opacity: 0.7;
}

/* Responsive - stack to 1 column under 780px */
@media (max-width: 780px) {
    .gcd-opts {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .gcd-opt {
        min-height: auto;
    }
    .gcd-head {
        padding: 18px 20px;
    }
    .gcd-body {
        padding: 18px;
    }
    .gcd-foot {
        padding: 12px 20px;
    }
    .gcd-overlay .popup.gcd-modal {
        max-height: 100vh;
        border-radius: 16px;
    }
}

/* ────────────────────────────────────────────────
   4c. GET COMPANY DATA - MINI variant
   Single-choice popup skin (Unlock / Request Screening /
   Refresh Data / Buy Report-or-Membership / Premium upgrade).
   Inherits the gcd design tokens + header for visual consistency
   with the full three-up popup. Narrower modal; no grid.
   ──────────────────────────────────────────────── */
.gcd-overlay--mini .popup.gcd-mini,
#dv_buyReportPopUp .gcd-overlay--mini .popup.gcd-mini {
    max-width: 480px;
    width: 100%;
    background: var(--gcd-w);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(15, 31, 51, 0.35);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    padding: 0;
    margin: 0 auto;
    color: var(--gcd-t);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    animation: v2pSlideUp 0.3s ease;
    position: relative;
}

.gcd-overlay--mini .inner-popup-wrapper,
#dv_buyReportPopUp .gcd-overlay--mini .inner-popup-wrapper {
    max-width: 480px !important;
}

/* Body wrapper inside mini popups - subscribes/byreport-specific overrides */
.gcd-mini .subscribe-modal-box,
.gcd-mini .body,
.gcd-mini-body {
    padding: 18px 20px 20px;
    background: var(--gcd-w);
    max-height: calc(92vh - 90px);
    overflow-y: auto;
}

.gcd-mini-note {
    font-size: 14px;
    color: var(--gcd-t2);
    margin: 0;
    line-height: 1.55;
    text-align: center;
    padding: 6px 4px;
}

/* Each selectable option in mini popups (reuses .subscribe-body markup) */
.gcd-mini .subscribe-body {
    background: var(--gcd-w);
    border: 1.5px solid var(--gcd-bd);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 0 10px;
    transition: 0.15s;
    cursor: pointer;
}

    .gcd-mini .subscribe-body:last-child {
        margin-bottom: 0;
    }

    .gcd-mini .subscribe-body:hover {
        border-color: #b8cde2;
        background: var(--gcd-pl2);
    }

    .gcd-mini .subscribe-body.is-selected,
    .gcd-mini .subscribe-body:has(input[type="radio"]:checked) {
        border-color: var(--gcd-p);
        background: var(--gcd-pl2);
        box-shadow: 0 0 0 4px rgba(29, 80, 128, 0.08);
    }

/* Radio row inside mini */
.gcd-mini .pay-radio-flex {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
}

    .gcd-mini .pay-radio-flex input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #c4d1df;
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
        transition: 0.15s;
        margin: 0;
        background: #fff;
    }

        .gcd-mini .pay-radio-flex input[type="radio"]:checked {
            border-color: var(--gcd-p);
        }

            .gcd-mini .pay-radio-flex input[type="radio"]:checked::after {
                content: '';
                position: absolute;
                top: 3px;
                left: 3px;
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: var(--gcd-p);
            }

    .gcd-mini .pay-radio-flex span {
        font-size: 14px;
        font-weight: 600;
        color: var(--gcd-t);
        letter-spacing: -0.005em;
    }

.gcd-mini .subscribe-body p {
    font-size: 13px;
    color: var(--gcd-t2);
    margin: 4px 0 0;
    line-height: 1.5;
    padding-left: 28px;
}

.gcd-mini .pay-list-item {
    list-style: none;
    padding: 6px 0 0 28px;
    margin: 0;
}

    .gcd-mini .pay-list-item li {
        font-size: 12.5px;
        color: var(--gcd-t2);
        padding: 2px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .gcd-mini .pay-list-item li::before {
            content: '';
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--gcd-t3);
            flex-shrink: 0;
        }

/* Primary CTA button inside mini popups - navy solid */
.gcd-mini .subscribe-modal-box > button,
.gcd-mini .subscribe-modal-box .button-subscription,
.gcd-mini #btnScreen,
.gcd-mini #unlockSection_btn,
.gcd-mini #btn_buyReport,
.gcd-mini #buyreportCredit,
.gcd-mini .button-subscription,
.gcd-mini .view-plan-btn,
.gcd-mini .proceed-btn,
.gcd-mini .tcc-premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 14px 0 0;
    padding: 12px 18px;
    background: var(--gcd-p);
    color: #fff !important;
    border: 1px solid var(--gcd-p);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.15s;
    box-shadow: 0 2px 6px rgba(29, 80, 128, 0.18);
    letter-spacing: -0.005em;
    font-family: inherit;
}

    .gcd-mini .subscribe-modal-box > button:hover,
    .gcd-mini .subscribe-modal-box .button-subscription:hover,
    .gcd-mini #btnScreen:hover,
    .gcd-mini #unlockSection_btn:hover,
    .gcd-mini #btn_buyReport:hover,
    .gcd-mini .view-plan-btn:hover,
    .gcd-mini .proceed-btn:hover,
    .gcd-mini .tcc-premium-btn:hover {
        background: var(--gcd-ph);
        border-color: var(--gcd-ph);
        box-shadow: 0 4px 12px rgba(29, 80, 128, 0.26);
    }

/* Premium upgrade card variant - remap to gcd tokens */
.gcd-mini .tcc-premium-upgrade-card {
    padding: 18px 20px 20px;
    background: var(--gcd-w);
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.gcd-mini .tcc-premium-lock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    color: var(--gcd-o);
    border: 1px solid #fcd9a6;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.gcd-mini .tcc-lock-icon {
    display: inline-flex;
    align-items: center;
}

.gcd-mini .tcc-premium-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gcd-t);
    margin: 0 0 4px;
    letter-spacing: -0.015em;
}

.gcd-mini .tcc-premium-subtitle {
    font-size: 13.5px;
    color: var(--gcd-t2);
    margin: 0 0 14px;
    line-height: 1.55;
}

.gcd-mini .tcc-premium-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}

.gcd-mini .tcc-highlight-pill {
    background: var(--gcd-pl);
    color: var(--gcd-p);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.gcd-mini .tcc-premium-plan-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--gcd-pl2);
    border: 1px solid var(--gcd-bd);
    border-radius: 12px;
}

.gcd-mini .tcc-plan-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gcd-t);
    margin-bottom: 2px;
}

.gcd-mini .tcc-plan-desc {
    font-size: 12.5px;
    color: var(--gcd-t2);
    line-height: 1.5;
}

.gcd-mini .tcc-plan-note {
    font-size: 11.5px;
    color: var(--gcd-t3);
    margin-top: 6px;
    text-align: center;
}

/* Byreport header/legacy wrappers - hide duplicates when gcd-head is present */
.gcd-mini .byreport-head:not(.gcd-head),
.gcd-mini .custom-popup-head:not(.gcd-head),
.gcd-mini .sign-in-head:not(.gcd-head) {
    display: none !important;
}

/* Byreport legacy body (_buyReportSubscription single-report card) - reskin */
.gcd-mini .byreport-popup .body,
.gcd-mini .byreport-popup #packages {
    padding: 0 !important;
    background: var(--gcd-w) !important;
}

.gcd-mini .package.buy-report01i {
    background: var(--gcd-w);
    border: 1.5px solid var(--gcd-bd);
    border-radius: 14px;
    padding: 16px;
    margin: 0 20px 12px;
    box-shadow: none;
}

.gcd-mini .package.buy-report01i h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gcd-t);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.gcd-mini .package.buy-report01i p {
    font-size: 13px;
    color: var(--gcd-t2);
    margin: 0 0 8px;
    line-height: 1.5;
}

.gcd-mini .package.buy-report01i .sbscribe-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--gcd-p);
    margin: 6px 0;
    letter-spacing: -0.02em;
}

.gcd-mini .package.buy-report01i .sbscribe-amount span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gcd-t3);
    margin-left: 4px;
}

.gcd-mini .membership-list {
    list-style: none;
    padding: 4px 0 0;
    margin: 0;
}

.gcd-mini .membership-list li {
    font-size: 12.5px;
    color: var(--gcd-t2);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcd-mini .membership-list li i.fa-check,
.gcd-mini .membership-list li i {
    color: var(--gcd-g);
    font-size: 11px;
}

.gcd-mini .company-rep-img {
    display: none;           /* the decorative image doesn't fit the compact skin */
}

.gcd-mini .membership-box h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gcd-t);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.gcd-mini .membership-box span {
    display: block;
    font-size: 12.5px;
    color: var(--gcd-t2);
    line-height: 1.5;
    margin-bottom: 6px;
}

/* Spinner overlay inside mini popups */
.gcd-mini + .spiner,
.gcd-overlay--mini .spiner {
    position: absolute;
    inset: 0;
    display: none;
}

/* Responsive - mini popup on mobile */
@media (max-width: 540px) {
    .gcd-overlay--mini .popup.gcd-mini {
        max-width: calc(100vw - 32px);
        border-radius: 14px;
    }
    .gcd-mini .gcd-head {
        padding: 16px;
        gap: 10px;
    }
    .gcd-mini .gcd-head h2 {
        font-size: 16px;
    }
    .gcd-mini .subscribe-modal-box,
    .gcd-mini .gcd-mini-body {
        padding: 14px 16px 16px;
    }
}

/* Promo banner */
.promo-banner {
    margin: 0 20px 16px;
    padding: 14px 16px;
    background: var(--v2p-bg-accent);
    border: 1px solid var(--v2p-border);
    border-radius: var(--v2p-radius-sm);
    text-align: center;
}

    .promo-banner p {
        font-size: 13px;
        color: var(--v2p-text-secondary);
        margin: 0 0 8px;
        padding: 0;
    }

    .promo-banner a {
        font-size: 13px;
        font-weight: 600;
        color: var(--v2p-accent);
        text-decoration: none;
    }

        .promo-banner a:hover {
            text-decoration: underline;
        }

/* ────────────────────────────────────────────────
   5. DOWNLOAD MODALS (#tccDlModal + #myModalReport)
   ──────────────────────────────────────────────── */

/* tccDlModal overlay */
.tcc-hdr-dl-overlay {
    display: none;
}

    .tcc-hdr-dl-overlay[style*="flex"] {
        opacity: 1;
        visibility: visible;
    }

.tcc-hdr-dl-modal {
    max-width: 440px;
}

.tcc-modal-body,
.custom-popup-body {
    padding: 16px;
    overflow-y: auto;
    border-top: 1px solid #e5e5e5;
}

/* Download options groups */
.tcc-hdr-dl-options,
.section-export {
    margin-bottom: 20px;
}

    .tcc-hdr-dl-group-label,
    .section-export h4 {
        font-size: 12px;
        font-weight: 600;
        color: var(--v2p-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
    }

.tcc-hdr-dl-group {
    margin-bottom: 16px;
}

/* Radio options (Format) */
.tcc-hdr-dl-radios,
.option-group-exp {
    display: flex;
    gap: 8px;
}

.tcc-hdr-dl-radio,
.option-exp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--v2p-border);
    border-radius: var(--v2p-radius-sm);
    background: var(--v2p-bg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--v2p-text);
    transition: var(--v2p-transition);
    flex: 1;
}

    .tcc-hdr-dl-radio:has(input:checked),
    .option-exp:has(input:checked) {
        border-color: var(--v2p-primary);
        background: var(--v2p-bg-soft);
    }

    .tcc-hdr-dl-radio input,
    .option-exp input {
        accent-color: var(--v2p-primary);
    }

/* Select dropdown */
.tcc-hdr-dl-select,
.select-box-exp select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--v2p-border);
    border-radius: var(--v2p-radius-xs);
    font-size: 13px;
    color: var(--v2p-text);
    background: var(--v2p-bg);
    cursor: pointer;
    transition: var(--v2p-transition);
    appearance: auto;
}

    .tcc-hdr-dl-select:focus,
    .select-box-exp select:focus {
        border-color: var(--v2p-accent);
        outline: none;
        box-shadow: 0 0 0 3px rgba(29, 80, 128, 0.1);
    }

/* Credits section */
.tcc-hdr-dl-credits,
.credits-usages-box {
    border: 1px solid var(--v2p-border);
    border-radius: var(--v2p-radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
}

.tcc-hdr-dl-credit-item,
.credit-usages-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--v2p-text-secondary);
    border-bottom: 1px solid var(--v2p-border);
}

    .tcc-hdr-dl-credit-item:last-child,
    .credit-usages-inner:last-child {
        border-bottom: none;
    }

    .credit-usages-inner .label {
        font-weight: 500;
        margin: 0;
        font-size: 13px;
        color: var(--v2p-text-secondary);
    }

    .credit-usages-inner .value {
        font-weight: 600;
    }

.tcc-hdr-dl-credit-note {
    font-size: 11px;
    font-style: italic;
    color: var(--v2p-text-muted);
    padding: 4px 0;
}

/* Alert messages */
.tcc-hdr-dl-alert,
#alertmsgdiv {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--v2p-radius-xs);
    font-size: 12px;
    color: var(--v2p-red);
    margin-bottom: 12px;
}

/* Action buttons row (TCC V2) */
.demo-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    margin-top: 16px;
}

.modal-cancel-btn {
    padding: 8px 12px;
    background: transparent;
    color: #666666;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .modal-cancel-btn:hover {
        background: #f5f5f5;
        color: #1e2a4a;
    }

.price-demo-btn {
    padding: 8px 12px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border:1px solid #eee;
    transition: all 0.15s ease;
}

.price-demo-btn:hover {
    border:1px solid #1D5080;
}

/* Submit button inside tccDlModal */
.tcc-hdr-dl-submit {
    width: 100%;
    padding: 11px 20px;
    background: var(--v2p-primary);
    color: #fff;
    border: none;
    border-radius: var(--v2p-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    transition: var(--v2p-transition);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

    .tcc-hdr-dl-submit:hover {
        background: var(--v2p-primary-hover);
    }

    .tcc-hdr-dl-submit svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

/* Loader */
.tcc-hdr-dl-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px;
}

.tcc-hdr-dl-loader-text {
    font-size: 13px;
    color: var(--v2p-text-muted);
}

/* ────────────────────────────────────────────────
   6. PDF FULL-PAGE LOADER
   ──────────────────────────────────────────────── */
.tcc-hdr-pdf-loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10600;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.tcc-hdr-pdf-loader-inner {
    position: absolute;   
    top:0;
    left:0;
    width:100%;
    height:100%;
   display:flex;
   flex-direction:column;
   justify-content:center;  
    display: flex;

    align-items: center;
    gap: 14px;
}

    .tcc-hdr-pdf-loader-inner::after {
        content: 'Preparing your report...';
        font-size: 13px;
        color: #fff;
    }

/* Spinner */
.tcc-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--v2p-border);
    border-top-color: var(--v2p-primary);
    border-radius: 50%;
    animation: v2pSpin 0.7s linear infinite;
}

@keyframes v2pSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ────────────────────────────────────────────────
   7. TRACK ORDER POPUP
   ──────────────────────────────────────────────── */
.track-order-popup {
    position: fixed;
    inset: 0;
    z-index: 10500;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .track-order-popup.show {
        opacity: 1;
        visibility: visible;
    }

/* ────────────────────────────────────────────────
   8. SUCCESS / ERROR POPUPS
   ──────────────────────────────────────────────── */
/* ── Success / Error popups (TCC V2 centered) ── */
.success-popup,
.error-popup {
    position: fixed;
    inset: 0;
    z-index: 10600;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
}

    .success-popup.show,
    .error-popup.show {
        display: flex;
    }

    .success-popup .custom-popup,
    .error-popup .custom-popup {
        background: #ffffff;
        border-radius: 0;
        box-shadow: 0 0 0 1px rgba(15,23,42,.04),0 8px 40px rgba(15,23,42,.18),0 24px 64px rgba(15,23,42,.10);
        max-width: 460px;
        width: 100%;
        overflow: hidden;
        animation: v2pSlideUp 0.3s ease;
        margin: auto;
    }

.center-msg-popup {
    padding: 16px;
    text-align: center;
}

    .center-msg-popup p {
        font-size: 14px;
        line-height: 1.65;
        color: #666666;
        margin: 0 0 24px;
    }

    .center-msg-popup #popupSuccess,
    .center-msg-popup #popupError {
        font-size: 14px;
        line-height: 1.65;
        color: #1e2a4a;
        margin: 0 0 24px;
        padding: 0;
    }

    .center-msg-popup button,
    #btn_popupSuccess_ok,
    #btn_popupError_ok {
        display: inline-block;
        padding: 8px 12px;
        background: #1D5080;
        color: #fff;
        border: 1px solid transparent;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.15s ease;
        box-shadow: none;
    }

        .center-msg-popup button:hover,
        #btn_popupSuccess_ok:hover,
        #btn_popupError_ok:hover {
            background: #174068;
        }

/* ── TCC Success Modal (Redesigned V2) ── */
.tcc-success-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 90%;
    padding: 32px 28px 28px;
    text-align: center;
    animation: tccSuccessSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes tccSuccessSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tcc-success-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.tcc-success-modal__icon svg {
    width: 100%;
    height: 100%;
}

.tcc-success-modal__circle {
    stroke: #22c55e;
    stroke-width: 2.5;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: tccCircleAnim 0.6s ease-in-out forwards;
}

.tcc-success-modal__check {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: tccCheckAnim 0.3s ease-in-out 0.4s forwards;
}

@keyframes tccCircleAnim {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes tccCheckAnim {
    to {
        stroke-dashoffset: 0;
    }
}

.tcc-success-modal__content {
    margin-bottom: 24px;
}

.tcc-success-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.3;
}

.tcc-success-modal__message {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    padding: 0;
}

.tcc-success-modal__actions {
    display: flex;
    justify-content: center;
}

.tcc-success-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 24px;
    background: #1D5080;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(29, 80, 128, 0.2);
}

.tcc-success-modal__btn:hover {
    background: #174068;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 80, 128, 0.3);
}

.tcc-success-modal__btn:active {
    transform: translateY(0);
}

/* Ensure centered positioning for success popup */
.success-popup.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.success-popup .tcc-success-modal {
    margin: 0 !important;
    position: relative !important;
}

/* ────────────────────────────────────────────────
   9. NOTES PANEL (slide-in)
   ──────────────────────────────────────────────── */
.tcc-hdr-notes-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    z-index: 10500;
    transition: right 0.3s ease;
    background: var(--v2p-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

    .tcc-hdr-notes-panel.show,
    .tcc-hdr-notes-panel.open {
        right: 0;
    }

.tcc-hdr-notes-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tcc-hdr-notes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--v2p-border);
    flex-shrink: 0;
}

    .tcc-hdr-notes-head span {
        font-size: 15px;
        font-weight: 600;
        color: var(--v2p-text);
    }

.tcc-hdr-notes-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

    .tcc-hdr-notes-body textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--v2p-border);
        border-radius: var(--v2p-radius-xs);
        font-size: 13px;
        color: var(--v2p-text);
        resize: vertical;
        min-height: 80px;
        transition: var(--v2p-transition);
    }

        .tcc-hdr-notes-body textarea:focus {
            border-color: var(--v2p-accent);
            outline: none;
            box-shadow: 0 0 0 3px rgba(29, 80, 128, 0.1);
        }

.tcc-hdr-notes-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ────────────────────────────────────────────────
   10. BOOTSTRAP MODAL OVERRIDES (TCC V2)
   (#myModalReport, #unifiedModal)
   ──────────────────────────────────────────────── */
#myModalReport .modal-dialog,
#unifiedModal .modal-dialog {
    max-width: 560px;
    margin: auto;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

#myModalReport .modal-content,
#unifiedModal .modal-content,
.custom-popup-box {
    border: none;
    border-radius: var(--tcc-popup-border-radius, 10px);
    box-shadow: 0 0 0 1px rgba(15,23,42,.04),0 8px 40px rgba(15,23,42,.18),0 24px 64px rgba(15,23,42,.10);
    overflow: hidden;
}

/* Bootstrap backdrop override */
#myModalReport ~ .modal-backdrop,
#unifiedModal ~ .modal-backdrop,
.modal-backdrop {
    background: rgba(15,23,42,.5) !important;
    backdrop-filter: blur(4px);
    opacity: 1 !important;
}

/* Bootstrap modal header override */
#myModalReport .modal-header,
#unifiedModal .modal-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}
#myModalReport .modal-title,
#unifiedModal .modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #1e2a4a;
}
#myModalReport .btn-close,
#unifiedModal .btn-close {
    opacity: 0.5;
    transition: opacity .15s;
}
#myModalReport .btn-close:hover,
#unifiedModal .btn-close:hover {
    opacity: 1;
}

/* Bootstrap modal body override */
#myModalReport .modal-body,
#unifiedModal .modal-body {
    padding: 16px;
    border-top: none;
}

/* Download Options (#myModalReport) - width, credits strip, available balance tone */
#myModalReport .modal-content.custom-popup-box {
    min-width: 0;
    max-width: 480px;
    width: calc(100% - 24px);
    margin-inline: auto;
}

#myModalReport .custom-popup-body {
    padding: 18px 20px 10px;
}

#myModalReport .credits-usages-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--v2p-border);
    border-radius: var(--v2p-radius-sm);
    overflow: hidden;
    background: var(--v2p-bg);
    margin-top: 4px;
}

#myModalReport .credit-usages-inner {
    flex: initial;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--v2p-border);
    background: var(--v2p-bg-soft);
    padding: 12px 14px;
    margin: 0;
}

#myModalReport .credit-usages-inner:last-child {
    border-right: none;
}

#myModalReport .option-group-exp {
    gap: 12px;
}

#myModalReport .option-exp {
    flex: 1;
    min-height: 52px;
}

.custom-popup-footer,
#unifiedModal .custom-popup-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.modal-proceed-btn {
    padding: 8px 12px;
    background: #1D5080;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .modal-proceed-btn:hover {
        background: #174068;
    }

/* ────────────────────────────────────────────────
   11. RICH TEXT EDITOR (Notes / Unified)
   ──────────────────────────────────────────────── */
.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #f5f5f5;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.toolbar-group {
    display: flex;
    gap: 2px;
}

.toolbar-separator {
    width: 1px;
    background: #e5e5e5;
    margin: 0 6px;
}

.rich-editor-content {
    min-height: 120px;
    padding: 12px;
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-size: 14px;
    color: #1e2a4a;
    outline: none;
}

    .rich-editor-content:focus {
        border-color: #1D5080;
        box-shadow: 0 0 0 2px rgba(29, 80, 128, 0.1);
    }

.editor-footer {
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: #f5f5f5;
}

    .editor-footer span {
        font-size: 12px;
    }

/* ────────────────────────────────────────────────
   12. PREMIUM UPGRADE CARD (inside Buy Report)
   ──────────────────────────────────────────────── */
.tcc-premium-upgrade-card {
    background: var(--v2p-bg-accent);
    margin: 16px 20px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--v2p-border);
    border-radius: var(--v2p-radius);
    box-shadow: var(--v2p-shadow-sm);
}

.tcc-premium-lock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--v2p-radius-sm);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--v2p-border);
    font-size: 12px;
    color: var(--v2p-text-secondary);
    margin-bottom: 10px;
}

.tcc-lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--v2p-radius-xs);
    background: #eff6ff;
    color: var(--v2p-accent);
}

    .tcc-lock-icon svg {
        width: 12px;
        height: 12px;
    }

.tcc-lock-label {
    font-weight: 600;
    font-size: 12px;
}

.tcc-premium-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--v2p-text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.tcc-premium-subtitle {
    font-size: 13px;
    color: var(--v2p-text-secondary);
    margin: 0 0 14px;
    line-height: 1.6;
}

.tcc-premium-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tcc-highlight-pill {
    font-size: 11px;
    padding: 5px 10px;
    color: var(--v2p-accent);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--v2p-border);
    border-radius: var(--v2p-radius-sm);
}

.tcc-premium-plan-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--v2p-radius-sm);
    border: 1px solid var(--v2p-border);
}

.tcc-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--v2p-text);
    margin-bottom: 4px;
}

.tcc-plan-desc {
    font-size: 13px;
    color: var(--v2p-text-secondary);
    line-height: 1.5;
}

.tcc-plan-note {
    font-size: 11px;
    color: var(--v2p-text-muted);
    line-height: 1.4;
}

.tcc-plan-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcc-premium-btn {
    display: inline-block;
    padding: 9px 18px;
    background: var(--v2p-primary);
    color: #fff;
    border: none;
    border-radius: var(--v2p-radius-xs);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--v2p-transition);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

    .tcc-premium-btn:hover {
        background: var(--v2p-primary-hover);
        color: #fff;
    }

/* ────────────────────────────────────────────────
   13. LOADING ELEMENT (#loadingElement)
   ──────────────────────────────────────────────── */
#loadingElement {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10700;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
}

    #loadingElement::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        border: 3px solid var(--v2p-border);
        border-top-color: var(--v2p-primary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: smoothSpin 0.8s linear infinite;
    }

@keyframes smoothSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ────────────────────────────────────────────────
   14. RESPONSIVE
   ──────────────────────────────────────────────── */
@media (max-width: 540px) {
    .popup,
    .getdata-modal,
    .tcc-modal {
        max-width: calc(100vw - 24px);
        margin: 12px;
        max-height: calc(100vh - 24px);
    }

    .tcc-hdr-notes-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .tcc-hdr-dl-radios,
    .option-group-exp {
        flex-direction: column;
    }
}
/* MODAL (Book Demo - TCC V2) */
.demo-modal-backdrop {
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1005;
}

#freeTrialPhoneInput {
    border: 0;
}

/* Toast after pricing Contact / Book demo submit */
.demo-success-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 1010;
    max-width: min(420px, calc(100vw - 32px));
    box-shadow: 0 10px 40px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .1);
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
}

.demo-success-popup-inner {
    padding: 18px 22px;
    text-align: center;
}

.demo-success-popup-inner h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    text-align: center;
}

.demo-success-popup-inner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #111111;
    text-align: center;
}

.demo-modal-backdrop.active {
    /* Anchor to all four viewport edges, then center the dialog with equal breathing room */
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: max(20px, env(safe-area-inset-top, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    -webkit-overflow-scrolling: touch;
}

.demo-modal {
    background: #ffffff;
    border: none;
    border-radius: var(--tcc-popup-border-radius, 10px);
    box-shadow: 0 0 0 1px rgba(15,23,42,.04),0 8px 40px rgba(15,23,42,.18),0 24px 64px rgba(15,23,42,.10);
    flex-shrink: 0;
    margin: auto;
    max-width: 700px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
}

.demo-modal-header {
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    padding: 16px 16px 12px;
}

    .demo-modal-header h2 {
        font-size: 18px;
        font-weight: 500;
        color: #1e2a4a;
        margin: 0 0 3px;
    }

    .demo-modal-header p {
        color: #666;
        font-size: var(--tcc-section-subheading-fs, 0.875rem);
        margin: 0;
    }

.demo-modal-close {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
}

.demo-form-inner {
    padding: 20px;
}

.demo-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

    .demo-form .demo-form-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

.demo-phone-input {
    background: #f9fafb;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    display: flex;
    height: 35px;
    font-size: .725rem;
    overflow: hidden;
    outline: none;
}

    .demo-phone-input .countrycode-input {
        border: 0;
        border-radius: 0;
        width: 65px;
        outline: none;
        padding: .375rem .75rem;
    }

    .demo-phone-input #phoneInput {
        border: 0;
        border-left: 1px solid #d8dde3;
        border-radius: 0;
        padding: .375rem .75rem;
        outline: none;
        width: calc(100% - 65px);
    }

.demo-form label {
    color: #0f172a;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
}

    .demo-form label span {
        color: #ef4444;
    }

.demo-form input,
.demo-form select,
.demo-form textarea {
    background: #f9fafb;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    font-size: .725rem;
    outline: none;
    min-height: 35px;
    padding: 7px 11px;
}

    .demo-form input:focus,
    .demo-phone-input:focus,
    .demo-form select:focus,
    .demo-form textarea:focus {
        background: #ffffff;
        border-color: #1D5080 !important;
        box-shadow: 0 0 0 1px rgba(79, 70, 229, .15);
    }

.demo-form select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
    padding: 7px 25px 7px 12px;
    transition: all .2s ease;
}

.demo-form textarea {
    min-height: 70px;
    resize: vertical;
}

.demo-form-full {
    grid-column: 1 / -1;
}

.demo-actions {
    display: flex;
    gap: 10px;
    justify-content: right;
    margin-top: 15px;
    align-items: center;
}

.demo-legal-note {
    color: #666;
    flex: 0 0 100%;
    font-size: 12px;
    margin-top: 8px;
}

/* Pricing / demo modal: country list opens below “Your Country is…” (not viewport-top-left) */
.demo-modal .demo-country-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

.demo-modal .demo-country-picker .dropdown-country {
    font-size: 12px;
    margin-top: 0;
}

.demo-modal .demo-country-picker .dropdowncountry-menu {
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    margin-top: 4px;
    z-index: 120;
    width: min(280px, 100%);
    max-height: min(280px, 50vh);
    overflow: hidden;
}

.demo-modal .demo-country-picker .country-dropdown-scroll {
    max-height: 200px;
}

.report-data-head {
    padding: 20px 25px 0px;
}

#reportIncorrectForm .modal-body {
    padding: 20px 25px;
}

.report-data-head strong {
    font-weight: 500;
    font-size: 13px;
    color: #474747;
}

.report-data-head .companyname span {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.report-data-head p {
    color: #666;
    font-size: 13px;
    margin: 6px 0px 0px;
}

.modal-body label, .custom-modal-body label {
    font-weight: 500;
    font-size: 13px;
    color: #000;
}

/* ═══════════════════════════════════════════════════════════════
   EXPORT & SUBSCRIPTION GATE STYLES
   (Moved from tcc-v2-lock.css - not lock-related)
   ═══════════════════════════════════════════════════════════════ */

/* ── PRO badge (used in subscription gate & export modals) ── */
.tcc-pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 4px;
    text-transform: uppercase;
    line-height: 1.4;
}

.tcc-upgrade-banner { display: none; }

/* ── Export credits badge ── */
.tcc-export-credits {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    line-height: 1.6;
}

/* ── .tcc-modal-overlay is defined in tcc-v2.css & tcc-v2-popups.css.
   Removed duplicate from here to prevent cascade override conflicts. ── */

/* ── Subscription gate (TCC V2 centered modal for non-subscribers) ── */
.tcc-sub-gate {
    position: relative;
    background: #ffffff;
    border-radius: var(--tcc-popup-border-radius, 10px);
    max-width: 560px;
    width: 90%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(15,23,42,0.04),
        0 8px 40px rgba(15,23,42,0.18),
        0 24px 64px rgba(15,23,42,0.10);
    animation: tccPopupSlideIn 0.2s ease-out;
}
/* Left panel (gray sidebar reference design) */
.tcc-sub-gate__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f5f5f5;
    padding: 16px;
    width: 250px;
    flex-shrink: 0;
    border-top-left-radius: var(--tcc-popup-border-radius, 10px);
    border-bottom-left-radius: var(--tcc-popup-border-radius, 10px);
}
.tcc-sub-gate__icon {
    margin-bottom: 8px;
}
.tcc-sub-gate__icon svg {
    width: 80px;
    height: 80px;
}
.tcc-sub-gate__sample-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e2a4a;
    text-decoration: none;
    margin-bottom: 16px;
}
.tcc-sub-gate__sample-link i {
    font-size: 14px;
}
.tcc-sub-gate__sample-link:hover {
    text-decoration: underline;
}
/* Right panel (content area) */
.tcc-sub-gate__right {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tcc-sub-gate__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
}
.tcc-sub-gate__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #1e2a4a;
    letter-spacing: -0.01em;
}
.tcc-sub-gate__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: all 0.15s ease;
}
.tcc-sub-gate__close:hover {
    color: #1e2a4a;
    background: #f5f5f5;
}
.tcc-sub-gate__body {
    flex: 1;
    padding: 16px;
    border-top: 1px solid #e5e5e5;
}
.tcc-sub-gate__body p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}
.tcc-sub-gate__info-box {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}
.tcc-sub-gate__info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 12px;
    color: #666666;
    border-bottom: 1px solid #e5e5e5;
}
.tcc-sub-gate__info-row:last-child {
    border-bottom: none;
}
.tcc-sub-gate__info-row .label {
    font-weight: 500;
}
.tcc-sub-gate__info-row .value {
    font-weight: 600;
}

.tcc-sub-gate__pro-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    background: #1D5080;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-right: 6px;
}
.tcc-sub-gate__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #e5e5e5;
}
.tcc-sub-gate__cancel {
    display: inline-block;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.tcc-sub-gate__cancel:hover {
    color: #1e2a4a;
    background: #f5f5f5;
}
.tcc-sub-gate__primary-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #051c38;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tcc-sub-gate__primary-btn:hover {
    background: #174068;
    color: #fff;
}
.tcc-sub-gate__primary-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}
@media (max-width: 640px) {
    .tcc-sub-gate {
        flex-direction: column;
        max-width: 96vw;
        max-height: 95vh;
        overflow-y: auto;
    }
    .tcc-sub-gate__left {
        width: 100%;
        border-radius: 0;
        padding: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EXPORT CONFIRMATION MODAL (TCC V2 two-panel layout)
   ALL styles scoped under .tcc-export-popup to prevent conflicts.
   ═══════════════════════════════════════════════════════════════ */

/* ── Popup box - two-column flex container ── */
.tcc-export-popup.custom-popup-box {
    max-width: 720px;
    min-width: 480px;
    background: #ffffff;
    border-radius: var(--tcc-popup-border-radius, 10px);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(15,23,42,0.04),
        0 8px 40px rgba(15,23,42,0.18),
        0 24px 64px rgba(15,23,42,0.10);
    margin: auto;
    animation: tccPopupSlideIn 0.2s ease-out;
}
@keyframes tccPopupSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Left panel (gray sidebar - black-haze gray) ── */
.tcc-export-popup .tcc-export-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f5f5f5;
    padding: 16px;
    width: 250px;
    flex-shrink: 0;
    border-top-left-radius: var(--tcc-popup-border-radius, 10px);
    border-bottom-left-radius: var(--tcc-popup-border-radius, 10px);
}
.tcc-export-popup .tcc-export-left__icon {
    padding-bottom: 8px;
}
.tcc-export-popup .tcc-export-left__icon svg {
    width: 141px;
    height: 140px;
}
.tcc-export-popup .tcc-export-left__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e2a4a;
    text-decoration: none;
}
.tcc-export-popup .tcc-export-left__link:hover { text-decoration: underline; }

/* ── Right panel (content) ── */
.tcc-export-popup .tcc-export-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ── Header ── */
.tcc-export-popup .custom-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: none;
    background: #fff;
}
.tcc-export-popup .custom-popup-head h2 {
    overflow: hidden;
    max-width: 90%;
    font-size: 18px;
    text-overflow: ellipsis;
    margin: 0;
    white-space: nowrap;
    font-weight: 500;
    color: #1e2a4a;
    letter-spacing: -0.01em;
}
.tcc-export-popup .custom-popup-head .popup-close-btn {
    margin-left: auto;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.tcc-export-popup .custom-popup-head .popup-close-btn:hover {
    color: #1e2a4a;
    
}

/* ── Body ── */
.tcc-export-popup .custom-popup-body {
    flex: 1;
    padding: 16px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    overflow-y: auto;
}

/* ── Export sections (flat, no card wrappers) ── */
.tcc-export-popup .export-section {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
    transition: none;
}
.tcc-export-popup .export-section:hover {
    border-color: transparent;
}
.tcc-export-popup .export-section:last-child {
    margin-bottom: 0;
}
.tcc-export-popup .export-section h3 {
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 500;
    color: #1e2a4a;
    letter-spacing: 0;
    display: block;
    padding-right: 8px;
    padding-bottom: 4px;
}
.tcc-export-popup .export-step-num {
    display: none; /* Remove step numbers - not used in V2 design */
}
.tcc-export-popup .export-section p.helper-text {
    font-size: 12px;
    color: #666666;
    margin: 0 0 8px;
    line-height: 1.5;
}

/* ── Radio group (TCC V2 inline radios) ── */
.tcc-export-popup .list-itemx-radio {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
}
.tcc-export-popup .list-itemx-radio label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1e2a4a;
    cursor: pointer;
    margin: 0;
    margin-right: 16px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    transition: none;
}
.tcc-export-popup .list-itemx-radio label:hover {
    background: transparent;
    border-color: transparent;
}
.tcc-export-popup .list-itemx-radio input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #1e2a4a;
    flex-shrink: 0;
    cursor: pointer;
}
.tcc-export-popup .list-itemx-radio label > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: unset;
}
.tcc-export-popup .list-itemx-radio label > span > span:first-child {
    font-weight: 400;
    font-size: 14px;
}
.tcc-export-popup .list-itemx-radio .count-pill {
    background: none;
    color: #777777;
    padding: 0;
    font-weight: 400;
    font-size: 14px;
    font-style: italic;
    border-radius: 0;
    letter-spacing: 0;
    white-space: nowrap;
}

/* ── Credits display (TCC V2 bordered box) ── */
.tcc-export-popup .credits-usages-box {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}
.tcc-export-popup .credit-usages-inner {
    flex: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
    font-size: 12px;
    color: #666666;
}
.tcc-export-popup .credit-usages-inner:last-child {
    border-bottom: none;
}
.tcc-export-popup .credit-usages-inner .label {
    font-size: 12px;
    color: #666666;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0;
    padding-right: 8px;
}
.tcc-export-popup .credit-usages-inner .value {
    font-size: 12px;
    font-weight: 600;
    color: #1e2a4a;
    letter-spacing: 0;
}



/* ── Credit warning message (TCC V2) ── */
.tcc-export-popup .credits-usages-box + .helper-text,
.tcc-export-popup .credits-warning-row {
    font-size: 12px;
    color: #666666;
    padding: 8px 14px;
}
.tcc-export-popup .credits-warning-row i {
    color: #ff9800;
    margin-right: 4px;
}
.tcc-export-popup .credits-warning-row .font-medium {
    font-weight: 500;
}

/* ── Filename input (TCC V2) ── */
.tcc-export-popup .export-filename-group { margin-top: 0; }
.tcc-export-popup .export-filename-group h3 {
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 500;
    color: #1e2a4a;
}
.tcc-export-popup .filename-input-wrapper {
    display: flex;
    align-items: center;
    padding-top: 4px;
}
.tcc-export-popup .filename-input-wrapper input {
    flex: 1;
    max-width: 300px;
    height: 36px;
    padding: 8px 12px;
    background: #f8f8ff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #1e2a4a;
    outline: none;
    margin-right: 4px;
    transition: border-color 0.15s ease;
}
.tcc-export-popup .filename-input-wrapper input:focus {
    border-color: #1D5080 !important;
    box-shadow: 0 0 0 2px rgba(29,80,128,0.1);
}
.tcc-export-popup .filename-input-wrapper input::placeholder {
    color: #94a3b8;
}
.tcc-export-popup .filename-input-wrapper .file-extension {
    font-size: 14px;
    color: #666666;
    padding: 0;
    font-weight: 400;
    background: transparent;
    height: auto;
    display: inline;
    border-left: none;
}

/* ── Compliance checkbox (TCC V2) ── */
.tcc-export-popup .exportcheckbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.tcc-export-popup .exportcheckbox label {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}
.tcc-export-popup .exportcheckbox input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 0;
    background: unset;
    border: unset;
    border-radius: unset;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.tcc-export-popup .exportcheckbox input[type="checkbox"]:checked::after {
    display: none;
}

/* ── Alert / message box ── */
.tcc-export-popup .message-box {
    margin-top: 8px;
    padding: 8px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tcc-export-popup .message-box::before {
    content: '\f071'; /* fa-exclamation-triangle */
    font-family: 'Font Awesome 6 Free', 'FontAwesome';
    font-weight: 900;
    color: #ff9800;
    flex-shrink: 0;
    width: auto;
    min-height: auto;
    border-radius: 0;
    background: none;
}
.tcc-export-popup .message-box span { font-size: 12px; }
.tcc-export-popup .message-box.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.tcc-export-popup .message-box.info::before {
    color: #3b82f6;
    background: none;
}

/* ── Footer (TCC V2: border-top, flex-end, cancel + primary) ── */
.tcc-export-popup .custom-popup-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    gap: 8px;
}
.tcc-export-popup .modal-cancel-btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    color: #666666;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    transition: all 0.15s ease;
    min-width: auto;
}
.tcc-export-popup .modal-cancel-btn:hover {
    color: #1e2a4a;
    background: #f5f5f5;
    border-color: transparent;
}
.tcc-export-popup .custom-popup-footer .modal-proceed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    min-width: auto;
    text-align: center;
    background: #051c38;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: none;
    transition: all 0.15s ease;
}
    .tcc-export-popup .custom-popup-footer .modal-proceed-btn:hover {
        background: #051c38;
        box-shadow: none;
        transform: none;
    }
.tcc-export-popup .custom-popup-footer .modal-proceed-btn:active {
    transform: none;
    box-shadow: none;
}
.tcc-export-popup .custom-popup-footer .modal-proceed-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}
.tcc-export-popup .custom-popup-footer .modal-proceed-btn svg { margin-right: 2px; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .tcc-export-popup.custom-popup-box {
        flex-direction: column;
        min-width: 92vw;
        max-width: 96vw;
        max-height: 95vh;
        overflow-y: auto;
    }
    .tcc-export-popup .tcc-export-left {
        width: 100%;
        border-radius: 0;
        padding: 12px;
    }
    .tcc-export-popup .custom-popup-head { padding: 16px 16px 12px; }
    .tcc-export-popup .custom-popup-head h2 { font-size: 16px; }
    .tcc-export-popup .custom-popup-body { padding: 16px; }
    .tcc-export-popup .credits-usages-box { flex-direction: column; }
    .tcc-export-popup .custom-popup-footer { padding: 16px; }
}
