/* --------------------------------------------------------------
   ZIPQUANTUM DEEP LINK WIDGET – CLEAN + FIXED + ELEMENTOR-COMPATIBLE
-------------------------------------------------------------- */

/* --------------------------------------------------------------
   ROOT VARIABLES (Applied on widget container)
-------------------------------------------------------------- */
.zq-dl-widget {
    --zq-bg: var(--zq-bg-custom, var(--e-global-color-secondary, #10261f));
    --zq-card: var(--zq-card-custom, var(--e-global-color-secondary, #10261f));
    --zq-text: var(--zq-text-custom, var(--e-global-color-text, #f9fdfb));
    --zq-muted: var(--zq-muted-custom, #326e62);
    --zq-accent: var(--zq-accent-custom, var(--e-global-color-accent, #16f273));
    --zq-primary: var(--zq-primary-custom, var(--e-global-color-primary, #a8ff00));
    --zq-primary-2: var(--zq-primary2-custom, #00ff99);
    --zq-secondary: var(--zq-secondary-custom, #2A4741);

    --zq-radius: var(--zq-radius-custom, 20px);
    --zq-padding-top: var(--zq-pad-top, 32px);
    --zq-padding-right: var(--zq-pad-right, 32px);
    --zq-padding-bottom: var(--zq-pad-bottom, 28px);
    --zq-padding-left: var(--zq-pad-left, 32px);

    --zq-input-border-width: var(--zq-input-border-width-custom, 1px);
    --zq-input-border: var(--zq-input-border-custom, rgba(255,255,255,0.08));
    --zq-input-bg: var(--zq-input-bg-custom, rgba(0,0,0,0.15));
    --zq-input-text: var(--zq-input-text-custom, #f5fff9);
    --zq-input-radius: var(--zq-input-radius-custom, 999px);

    --zq-sub-suffix-bg: var(--zq-sub-suffix-bg-custom, rgba(255,255,255,0.10));
    --zq-sub-suffix-text: var(--zq-sub-suffix-text-custom, #ffffff);
    --zq-sub-suffix-border: var(--zq-sub-suffix-border-custom, rgba(255,255,255,0.12));
    --zq-sub-suffix-padding: var(--zq-sub-suffix-padding-custom, 10px 18px);
    --zq-sub-suffix-radius: var(--zq-sub-suffix-radius-custom, 999px);
    --zq-sub-suffix-font-size: var(--zq-sub-suffix-font-size-custom, 15px);
    --zq-sub-suffix-font-weight: var(--zq-sub-suffix-font-weight-custom, 700);

    --zq-font: var(--zq-font-custom, var(--e-global-typography-text-font-family, system-ui));

    position: relative;
    background: var(--zq-bg);
    border-radius: var(--zq-radius);
    padding: var(--zq-padding-top) var(--zq-padding-right) var(--zq-padding-bottom) var(--zq-padding-left);
    color: var(--zq-text);
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    font-family: var(--zq-font);
}

.zq-dl-overlay-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
    z-index: 2;
}

.zq-dl-overlay-close:hover {
    background: rgba(255,255,255,0.18);
}

.zq-dl-widget.zq-dl-overlay .zq-dl-overlay-close {
    display: inline-flex;
}

/* Ensure modals inherit the same theme variables even though they live outside `.zq-dl-widget` */
.zq-modal {
    --zq-primary: var(--zq-primary-custom, var(--e-global-color-primary, #a8ff00));
    --zq-primary-2: var(--zq-primary2-custom, #00ff99);
}

/* Overlay mode (Step 2+) */
body.zq-dl-overlay-active {
    overflow: hidden;
}

body.zq-dl-overlay-active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99980;
}

.zq-dl-widget.zq-dl-overlay {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99990;
    width: calc(100% - 32px);
    max-width: 640px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    margin: 0;
    padding: 0 5px 0 0;
    background-color: var(--zq-overlay-bg, var(--zq-bg, transparent));
    box-sizing: border-box;
}

body.zq-dl-overlay-active .elementor-widget-container .zq-dl-widget.zq-dl-overlay {
    padding: 0 5px 0 0 !important;
    background-color: var(--zq-overlay-bg, var(--zq-bg, transparent)) !important;
    box-sizing: border-box;
}

.zq-dl-overlay-scroll {
    width: 100%;
}

.zq-dl-widget.zq-dl-overlay .zq-dl-overlay-scroll {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    --zq-overlay-scroll-pad: 20px;
    --zq-overlay-sticky-gap: 12px;
    padding: var(--zq-overlay-scroll-pad) var(--zq-overlay-scroll-pad) 0;
    background: var(--zq-overlay-bg, var(--zq-bg, transparent));
    box-sizing: border-box;
    width: 100%;
}

.zq-dl-sticky-top {
    position: relative;
}

.zq-dl-widget.zq-dl-overlay .zq-dl-sticky-top {
    position: sticky;
    top: calc(-1 * (var(--zq-overlay-scroll-pad, 20px) - 1px));
    z-index: 1;
    background: var(--zq-overlay-bg, var(--zq-bg, transparent));
    box-shadow: 0 -2px 0 var(--zq-overlay-bg, var(--zq-bg, transparent));
    margin: calc(-1 * var(--zq-overlay-scroll-pad, 20px)) calc(-1 * var(--zq-overlay-scroll-pad, 20px)) var(--zq-overlay-sticky-gap, 12px);
    padding: var(--zq-overlay-scroll-pad, 20px) var(--zq-overlay-scroll-pad, 20px) var(--zq-overlay-sticky-gap, 12px);
}

.zq-dl-widget.zq-dl-overlay .zq-dl-footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: var(--zq-overlay-bg, var(--zq-bg, transparent));
    box-shadow: 0 2px 0 var(--zq-overlay-bg, var(--zq-bg, transparent));
    margin: var(--zq-overlay-sticky-gap, 12px) calc(-1 * var(--zq-overlay-scroll-pad, 20px)) 0;
    padding: var(--zq-overlay-sticky-gap, 12px) var(--zq-overlay-scroll-pad, 20px) var(--zq-overlay-scroll-pad, 20px);
}

/* Scrollbar styling (overlay + modals) */
.zq-dl-widget.zq-dl-overlay .zq-dl-overlay-scroll,
.zq-modal-box {
    scrollbar-width: thin;
    scrollbar-color: var(--zq-secondary, #1f3c33) transparent;
}

.zq-dl-widget.zq-dl-overlay .zq-dl-overlay-scroll::-webkit-scrollbar,
.zq-modal-box::-webkit-scrollbar {
    width: 10px;
}

.zq-dl-widget.zq-dl-overlay .zq-dl-overlay-scroll::-webkit-scrollbar-track,
.zq-modal-box::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
    border-radius: 999px;
}

.zq-dl-widget.zq-dl-overlay .zq-dl-overlay-scroll::-webkit-scrollbar-button,
.zq-modal-box::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.zq-dl-widget.zq-dl-overlay .zq-dl-overlay-scroll::-webkit-scrollbar-thumb,
.zq-modal-box::-webkit-scrollbar-thumb {
    background-color: var(--zq-secondary, #1f3c33);
    border-radius: 999px;
    border: 2px solid rgba(18, 32, 28, 0.6);
}

.zq-dl-widget.zq-dl-overlay .zq-dl-overlay-scroll::-webkit-scrollbar-thumb:hover,
.zq-modal-box::-webkit-scrollbar-thumb:hover {
    background-color: var(--zq-secondary, #275043);
}

/* --------------------------------------------------------------
   HEADER
-------------------------------------------------------------- */
.zq-dl-header { margin-bottom: 24px; }

.zq-dl-title {
    font-size: var(--zq-title-size, 26px);
    margin: 0 0 8px;
    line-height: 1.2;
    font-family: var(--e-global-typography-primary-font-family, var(--zq-font));
    color: var(--zq-title-color, var(--zq-text));
}

.zq-dl-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--zq-subtitle-color, var(--zq-muted));
}

/* --------------------------------------------------------------
   STEPS INDICATOR
-------------------------------------------------------------- */
.zq-dl-steps-indicator {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zq-dl-widget.zq-dl-overlay .zq-dl-sticky-top .zq-dl-steps-indicator {
    margin-bottom: 0px;
}

.zq-dl-step-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--zq-step-bg, rgba(255,255,255,0.03));
    color: var(--zq-step-color, #9fb5ac);
}

.zq-dl-step-dot span {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    font-size: 11px;
}

.zq-dl-step-dot--active {
    background: var(--zq-accent);
    color: #042014;
}

.zq-dl-step-dot--done {
    background: rgba(22, 242, 115, 0.24);
    color: #d8ffe8;
}

/* --------------------------------------------------------------
   STEP CONTENT
-------------------------------------------------------------- */
.zq-dl-step { display: none; }
.zq-dl-step--active { display: block; }

/* --------------------------------------------------------------
   INPUT FIELDS
-------------------------------------------------------------- */
.zq-dl-label {
    display: block;
    font-size: 13px;
    margin-bottom: 14px;
    color: var(--zq-label-color, var(--zq-text));
}

.zq-dl-widget .zq-dl-input,
.zq-dl-widget .zq-dl-textarea {
    width: 100%;
    padding: 9px 13px;
    font-size: 13px;
    outline: none;
    border-width: var(--zq-input-border-width);
    border-style: solid;
    border-color: var(--zq-input-border);
    border-radius: var(--zq-input-radius);
    background: var(--zq-input-bg);
    color: var(--zq-input-text);
}

.zq-dl-widget .zq-dl-input:focus,
.zq-dl-widget .zq-dl-textarea:focus {
    border-color: var(--zq-accent);
    box-shadow: 0 0 0 1px rgba(22,242,115,0.3);
}

/* --------------------------------------------------------------
   BUTTONS
-------------------------------------------------------------- */
.zq-dl-footer {
    display: flex;
    align-items: center;
    margin-top: 12px;
    gap: 10px;
    flex-wrap: wrap;
}

.zq-dl-btn {
    border: none;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--zq-btn-radius, 999px);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.zq-dl-btn--ghost {
    background: transparent;
    color: var(--zq-ghost-text, #9fb5ac);
    border: 1px solid var(--zq-ghost-border, rgba(255,255,255,0.12));
}

.zq-dl-next,
.zq-dl-submit {
    color: #02140a;
    box-shadow: 0 6px 14px rgba(0,255,153,0.22);
}

.zq-dl-btn:hover:not(:disabled) {
    box-shadow: 0 10px 22px rgba(0,255,153,0.28);
}
/* ============================================================
   SUBDOMAIN INPUT GROUP – ELEMENTOR COMPATIBLE FINAL VERSION
============================================================ */

/* Wrapper (background + border come from Elementor variables) */
.zq-dl-subdomain-wrap {
    position: relative;
    height: var(--zq-input-height, 52px);

    /* padding-left: var(--zq-input-pad-left, 20px); */

    /* FIX #1: add more breathing room for suffix + badges */
    /* padding-right: var(--zq-input-pad-right, 120px); */

    border-radius: var(--zq-input-radius, 40px);
    background: var(--zq-input-bg);
    border: var(--zq-input-border-width, 1px) solid var(--zq-input-border);
   
}

/* Invisible text-measure element */
.zq-dl-subdomain-measure {
    position: absolute;
    top: 0;
    left: 20px;
    height: 52px;
    line-height: 52px;
    white-space: pre;
    visibility: hidden;
    font-size: var(--zq-subdomain-font-size, inherit);
    font-family: inherit !important;
    letter-spacing: inherit !important;
    padding: 0 var(--zq-input-inner-padding, 16px);
    /* min-width: 140px; */
}

/* Editable text input */
.zq-dl-subdomain-input {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0 var(--zq-input-inner-padding, 0px);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--zq-input-text);
    font-size: var(--zq-subdomain-font-size, inherit);
    font-family: inherit;
    letter-spacing: inherit;
    width: 100%;              /* let wrapper width drive the pill */
    max-width: 100%;    
    min-width: 100px;
    transition: width 0.15s ease-out;
}

.zq-dl-subdomain-input:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--zq-input-text);
}

/* Ensure the invisible measure and the editable input use exactly the same
   typography and inner spacing so measurements and rendering match. */
.zq-dl-subdomain-measure,
.zq-dl-subdomain-input {
    font-family: var(--zq-subdomain-font-family, inherit) !important;
    font-size: var(--zq-subdomain-font-size, inherit);
    font-weight: var(--zq-subdomain-font-weight, inherit);
    letter-spacing: var(--zq-subdomain-letter-spacing, inherit) !important;
    line-height: var(--zq-subdomain-line-height, 52px);
    padding: 0 var(--zq-input-inner-padding, 16px);
}
/* FIX #2: Suffix is now offset by badge-zone variable */
.zq-dl-subdomain-suffix {
    position: absolute;
    top: 0;

    /* Instead of 40px hard value → dynamic space for badges */
    right: calc(var(--zq-badge-zone, 0px));

    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: var(--zq-sub-suffix-padding, 0 20px);
    white-space: nowrap;
    background: var(--zq-sub-suffix-bg);
    color: var(--zq-sub-suffix-text);
    border-left: 1px solid var(--zq-sub-suffix-border);
    border-radius: 0 var(--zq-sub-suffix-radius) var(--zq-sub-suffix-radius) 0;
    font-size: var(--zq-sub-suffix-font-size, inherit);
    font-weight: var(--zq-sub-suffix-font-weight, inherit);
    min-width: var(--zq-suffix-min-width, 78px);
    z-index: 20;
}

/* ============================================================
   BADGES (Available / Unavailable)
============================================================ */

/* FIX #3: Badge zone width is now adjustable */
/* ============================================
   BADGE WRAPPER – aligned relative to suffix
============================================ */
.zq-dl-subdomain-status {
    position: absolute;

    /* Vertically centered */
    top: 50%;
    transform: translateY(-50%);

    /* Horizontal alignment INSIDE the suffix */
    right: var(--zq-badge-offset, -11px);

    width: var(--zq-icon-size, 26px);
    height: var(--zq-icon-size, 26px);

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
    z-index: 40; /* above suffix bubble */
}

/* --------------------------------------------
   INDIVIDUAL BADGE ICONS (check / cross)
--------------------------------------------- */
.zq-dl-subdomain-status span {
    position: absolute;

    width: var(--zq-icon-size, 26px);
    height: var(--zq-icon-size, 26px);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: var(--zq-icon-font-size, 14px);
    color: #fff;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.18s ease, transform 0.18s ease;
}


.zq-dl-preview-available,
.zq-dl-preview-unavailable {
    width: var(--zq-icon-size, 26px);
    height: var(--zq-icon-size, 26px);
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: var(--zq-icon-font-size, 14px);
    font-weight: 700;
    opacity: 0;
    color: #fff;
    transform: translateY(-50%) scale(0.9);
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.zq-dl-preview-available {
    background: var(--zq-available-bg, #27ae60);
}

.zq-dl-preview-unavailable {
    background: var(--zq-unavailable-bg, #e74c3c);
}

.zq-show {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1) !important;
}

/* ============================================================
   PREVIEW + COPY BUTTON
============================================================ */

.zq-dl-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.zq-dl-preview-url {
    font-size: var(--zq-preview-font-size, inherit);
    font-weight: var(--zq-preview-font-weight, inherit);
    color: var(--zq-preview-color, var(--e-global-color-primary));
    letter-spacing: -0.2px;
    line-height: 1.2;
    font-family: inherit;
}

.zq-dl-copy-btn {
    width: var(--zq-icon-size, 32px);
    height: var(--zq-icon-size, 32px);
    min-width: var(--zq-icon-size, 32px);
    min-height: var(--zq-icon-size, 32px);
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--zq-copy-bg, #000);
    color: var(--zq-copy-icon, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, transform 0.12s ease;
}

.zq-dl-copy-btn i {
    line-height: 1;
    display: block;
}

.zq-dl-copy-btn:hover {
    background: var(--zq-copy-hover, #222);
    transform: scale(1.08);
}

.zq-dl-copy-btn.copied {
    background: var(--zq-accent);
    color: #02140a;
}

.zq-dl-store-redirect {
    margin-top: 0;
    /* padding: 14px 14px 10px; */
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    width: 100%;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100%;
}

.zq-dl-divider {
    width: 100%;
    height: 1px;
    background: #56b10c99;
    margin: 14px 0;
}

.zq-dl-divider--store {
    margin-top: 14px;
    margin-bottom: 14px;
}

.zq-dl-store-redirect-group {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease-in-out, opacity 0.25s ease-in-out;
    will-change: max-height, opacity;
    pointer-events: none;
}

.zq-dl-store-redirect-group.zq-is-open {
    opacity: 1;
    pointer-events: auto;
}

.zq-dl-store-redirect-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
    color: var(--zq-text);
}

.zq-dl-store-redirect-title h4 {
    margin: 0;
    font: inherit;
    color: inherit;
}

.zq-dl-store-redirect-title span {
    font-weight: 600;
    color: var(--zq-muted);
}

.zq-dl-store-redirect-subtitle {
    margin-bottom: 10px;
}

.zq-dl-store-redirect-subtitle h5 {
margin: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.15px;
    color: rgb(65 135 8);
}

.zq-dl-store-redirect-footnote {
    font-size: 12px;
    color: var(--zq-text);
    margin-top: 6px;
}

.zq-dl-store-redirect-footnote h6 {
    margin: 0;
    font: inherit;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.12px;
}

.zq-dl-input-icon-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: var(--zq-input-height, 52px);
    --zq-store-icon-width: 52px;
    box-sizing: border-box;

    border-radius: var(--zq-input-radius);
    background: var(--zq-input-bg);
    border: none;
    box-shadow: inset 0 0 0 var(--zq-input-border-width, 1px) var(--zq-input-border);
    overflow: hidden;
}

.zq-dl-input-icon-wrap .zq-dl-input {
    position: relative;
    z-index: 1;

    height: 100%;
    width: 100% !important;
    box-sizing: border-box;

    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    padding: 9px 14px;
    padding-left: calc(var(--zq-store-icon-width, 72px) + 10px) !important;
    font-size: 12px !important;
    line-height: normal;
    color: var(--zq-input-text);
}

.zq-dl-input-icon-wrap .zq-dl-input::placeholder {
    font-size: 13px;
    opacity: 0.95;
}

.zq-dl-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--zq-store-icon-width, 64px);
    box-sizing: border-box;
    padding-left: 7px;

    /* Match the suffix capsule style (and divider) */
    background-color: var(--zq-sub-suffix-bg);
    border-right: 1px solid var(--zq-sub-suffix-border);

    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zq-sub-suffix-text);
    pointer-events: none;
    font-size: 24px;
    line-height: 0;

    /* Keep the left side pill-like */
    border-radius: var(--zq-input-radius) 0 0 var(--zq-input-radius);
}

.zq-dl-input-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.zq-dl-input-icon i:before {
    display: block;
    line-height: 1;
}

.zq-dl-input-icon-wrap:focus-within {
    box-shadow:
        inset 0 0 0 var(--zq-input-border-width, 1px) var(--zq-accent),
        0 0 0 1px rgba(22,242,115,0.3);
}

.zq-dl-store-example {
    margin-top: 6px;
    font-size: 12px;
    color: var(--zq-muted);
}

.zq-disabled {
    opacity: 0.45 !important;
    pointer-events: none !important;
}

/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes zqHappyPop {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes zqSorryShake {
    0%   { transform: translateX(0) scale(0.8); opacity: 0; }
    20%  { transform: translateX(-3px) scale(1); opacity: 1; }
    40%  { transform: translateX(3px); }
    60%  { transform: translateX(-2px); }
    80%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.zq-dl-preview-available.zq-show {
    animation: zqHappyPop 0.35s cubic-bezier(.16,.84,.44,1) forwards;
}

.zq-dl-preview-unavailable.zq-show {
    animation: zqSorryShake 0.45s ease-out forwards;
}


/* ============================================================
   ZIPQUANTUM MODALS – Global
============================================================ */
.zq-modal {
    position: fixed;
    inset: 0;
    display: none; /* JS toggles */
    z-index: 999999;
    font-family: 'Inter', sans-serif;

    /* Center modal content when displayed (JS sets display:flex) */
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}

/* BACKDROP -------------------------------------------------- */
.zq-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(6px);

    animation: zqFadeIn 0.25s ease forwards;
}

/* MODAL BOX -------------------------------------------------- */
.zq-modal-box {
    position: relative;
    max-width: 420px;
    width: 92%;
    margin: 0;
    z-index: 1;
    max-height: calc(100vh - 48px);
    overflow: auto;

    background: rgba(18, 32, 28, 0.95);
    border-radius: 20px;
    padding: 32px 28px;
    color: #e7fff4;

    box-shadow: 0 18px 35px rgba(0,0,0,0.45),
                0 0 0 1px rgba(0,255,153,0.15);

    animation: zqModalPop 0.32s cubic-bezier(.16,.84,.44,1) forwards;
    transform-origin: center;
}

/* Close button ---------------------------------------------- */
.zq-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 999px;
    box-sizing: border-box;

    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.zq-modal-close i {
    line-height: 1;
    display: block;
}
.zq-modal-close:hover {
    background: rgba(255,255,255,0.18);
}

/* HEADER ------------------------------------------------------ */
.zq-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--zq-primary);
}

.zq-modal-header p {
    margin: 6px 0 18px;
    font-size: 14px;
    color: #b8d3c8;
}

/* BODY -------------------------------------------------------- */
.zq-modal-body {
    margin-top: 10px;
}

/* ============================================
   GOOGLE SIGN-IN BUTTON
============================================ */
.zq-btn-google {
    width: 100%;
    background: #ffffff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
    font-size: 15px;
    font-weight: 600;

    border-radius: 12px;
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    border: none;
    cursor: pointer;

    box-sizing: border-box;
    line-height: 1.2;
    transition: 0.2s ease;
}

.zq-btn-google img {
    width: 20px;
    height: 20px;
}

.zq-btn-google:hover {
    background: #f2f2f2;
}

.zq-btn-note {
    display: inline-block;
    font-size: 12px;
    opacity: 0.75;
    margin-top: 6px;
}

/* Separator --------------------------------------------------- */
.zq-or-separator {
    text-align: center;
    margin: 8px 0;
    position: relative;
}
.zq-or-separator span {
    background: rgba(18,32,28,0.95);
    padding: 0 10px;
    font-size: 13px;
    color: #6f8a80;
}
.zq-or-separator:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* ============================================
   FORM FIELDS
============================================ */
.zq-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.zq-field label {
    font-size: 13px;
    color: #c4e3d8;
    margin-bottom: 6px;
}

.zq-field input {
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    appearance: none;

    background: rgba(255,255,255,0.08);
    background-color: rgba(255,255,255,0.08);
    color: #e7fff4;

    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.zq-modal .zq-field input {
    height: 44px;
    min-height: 44px;
    border-radius: 10px;
    line-height: 1.3;
    outline: none !important;
    background: rgba(255,255,255,0.08);
}
.zq-field input:hover {
    border-color: rgba(255,255,255,0.18);
}
.zq-field input:focus {
    border-color: var(--zq-primary, #16f273);
    background: rgba(22,242,115,0.06);
    box-shadow: none;
}
.zq-field input:-webkit-autofill,
.zq-field input:-webkit-autofill:hover,
.zq-field input:-webkit-autofill:focus {
    transition: background-color 9999s ease-in-out 0s;
    -webkit-text-fill-color: #e7fff4;
    box-shadow: 0 0 0 1000px transparent inset;
}

.zq-field--svg {
    margin-bottom: 12px;
}

.zq-field--svg .zq-input-svg {
    position: relative;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
}

.zq-field--svg input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 16px 14px 8px;
    border: none;
    background: transparent;
    color: #e7fff4;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    z-index: 2;
}

.zq-field--svg input:hover,
.zq-field--svg input:focus {
    background: transparent;
    box-shadow: none;
}
.zq-modal .zq-field--svg input {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none;
}

.zq-field--svg label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 13px;
    color: rgba(231,255,244,0.65);
    pointer-events: none;
    transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease, top 0.18s ease;
    z-index: 3;
}

.zq-field--svg .zq-input-svg__border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.zq-field--svg .zq-input-svg__rect {
    fill: none;
    stroke: rgba(255,255,255,0.18);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
    shape-rendering: geometricPrecision;
    transition: stroke 0.18s ease;
}

.zq-field--svg .zq-input-svg.focused .zq-input-svg__rect {
    stroke: var(--zq-primary, #16f273);
}

.zq-field--svg .zq-input-svg.focused label {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--zq-primary, #16f273);
}

.zq-field--svg input:-webkit-autofill,
.zq-field--svg input:-webkit-autofill:hover,
.zq-field--svg input:-webkit-autofill:focus {
    transition: background-color 9999s ease-in-out 0s;
    -webkit-text-fill-color: #e7fff4;
    box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset;
}

/* Checkbox -------------------------------------------------------- */
.zq-checkbox {
    margin: 10px 0 16px;
}

.zq-checkbox label {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: #cee6da;
}

/* SUBMIT BUTTON ------------------------------------------------------- */
.zq-btn-submit {
    width: 100%;
    padding: 12px;
    border: none;

    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    background: linear-gradient(120deg, var(--zq-primary), var(--zq-primary-2));
    color: #042014;

    box-shadow: 0 8px 22px rgba(0,255,153,0.25);
    transition: 0.2s ease;
}

.zq-btn-submit:hover {
    box-shadow: 0 12px 30px rgba(0,255,153,0.33);
}

/* ============================================================
   SUCCESS MODAL
 ============================================================ */

.zq-status-block {
    margin: 4px 0 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.zq-status-case-title {
    font-size: 12px;
    font-weight: 700;
    color: #dbe9e2;
    margin: 0 0 4px;
}

.zq-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px;
}

.zq-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 12px;
    color: #c4d8ce;
}

#zq-success-modal .zq-status-row {
    font-size: 11px;
}

#zq-auth-modal .zq-status-row {
    font-size: 11px;
}

.zq-status-row--warn {
    color: #e2cd81;
}

.zq-status-icon {
    width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--zq-primary, #16f273);
}
.zq-status-row--warn .zq-status-icon { color: #e2cd81; }

.zq-status-text {
    flex: 1;
    line-height: 1.25;
}

.zq-success-helper {
    margin: 0 0 10px;
    font-size: 13px;
    color: #b8d3c8;
}

.zq-success-micro {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zq-primary-2);
    text-decoration: underline;
}

.zq-success-micro:hover {
    opacity: 0.92;
}

.zq-success-actions {
    display: flex;
    flex-direction: column;
}

#zq-success-trust {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #86a79d;
}

.zq-smartlink-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255,255,255,0.05);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;

    border: 1px solid rgba(255,255,255,0.1);
}

#zq-final-smartlink {
    color: var(--zq-primary);
    font-size: 15px;
    font-weight: 600;
}

.zq-copy-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: 0;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    background: var(--zq-primary-2);
    color: #042014;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.zq-copy-btn i {
    line-height: 1;
    display: block;
}
.zq-copy-btn:hover {
    background: #15e68a;
}

.zq-btn-dashboard {
    width: 100%;
    padding: 12px 16px;
    border-radius: 100px;

    border: none;
    cursor: pointer;

    font-size: 15px;
    font-weight: 600;
    color: #042014;

    background: linear-gradient(120deg, var(--zq-primary), var(--zq-primary-2));
    box-shadow: 0 8px 22px rgba(0,255,153,0.25);

    transition: 0.2s ease;
}

.zq-btn-dashboard:hover {
    box-shadow: 0 12px 30px rgba(0,255,153,0.33);
}

.zq-btn-dashboard--secondary {
    margin-top: 10px;
    background: transparent;
    color: var(--zq-primary-2);
    border: 1px solid rgba(0, 255, 153, 0.35);
    box-shadow: none;
}

.zq-btn-dashboard--secondary:hover {
    box-shadow: none;
    border-color: rgba(0, 255, 153, 0.55);
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes zqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zqModalPop {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
.zq-dl-preview-error {
    display: block;
    margin-top: 4px;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 500;
}

/* Bounce+Scale animation */
@keyframes zq-bounce-scale {
    0%   { transform: scale(0.92); }
    50%  { transform: scale(1.07); }
    100% { transform: scale(1.00); }
}

/* The class applied when availability becomes true */
.zq-animate-available {
    animation: zq-bounce-scale 0.35s ease-out;
}
.zq-image-dropzone {
    position: relative;
    width: 100%;
    min-height: 220px;

    /* SMOOTH EXPANSION */
    max-height: 220px;                    /* default collapsed height */
    transition: max-height 0.35s ease;    /* smooth animation */

    background: #f4f4f4;
    border: 2px dashed #bbb;
    border-radius: 12px;
    overflow: hidden;                     /* important for animation */
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}



.zq-image-dropzone:hover {
    border-color: #888;
    background: #f9f9f9;
}

.zq-image-dropzone.dragover {
    border-color: #00cc66;
    background: #e8ffe8;
}

.zq-image-input {
    display: none;
}

.zq-image-preview {
    position: relative;
    width: 100%;
    height: auto;           /* keeps aspect ratio */
    display: none;

    object-fit: contain;    /* show full image */
    background: #fff;
}



.zq-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    color: white;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .25s ease;
    pointer-events: none;
}

.zq-image-dropzone:hover .zq-image-overlay {
    opacity: 1;
}
.zq-image-dropzone.zq-expanded {
    max-height: 550px; /* smoothly expands up to this height */
}
.zq-dl-subdomain-wrap {
    transition: width 0.25s ease;
    will-change: width;
}
