:root {
    --icv-blue: #734bfb;
    --icv-dark: #1A1C1E;
    --icv-gray: #6B7280;
}

/* Hide the modal until a trigger button opens it. */
#icv-verify-overlay.icv-hidden {
    display: none !important;
}

html.icv-lock,
body.icv-lock {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
    position: fixed !important;
    top: 0;
    left: 0;
}

#icv-verify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 28, 30, 0.3);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    overscroll-behavior: none;
}

.icv-verify-modal {
    position: relative;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 420px;
    width: 90%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: icvFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.icv-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--icv-gray);
    cursor: pointer;
    padding: 0;
}

.icv-close-btn:hover {
    color: var(--icv-dark);
}

/* When the iDenfy iframe is loaded, expand the modal to hold the full UI. */
.icv-verify-modal.icv-iframe-mode {
    max-width: 480px;
    width: 95%;
    height: 90vh;
    max-height: 780px;
    padding: 0;
    overflow: hidden;
}

.icv-verify-modal.icv-iframe-mode .icv-close-btn {
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

#icv-iframe-wrap,
.icv-iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.icv-iframe {
    border: 0;
    border-radius: 20px;
}

.icv-logo-container {
    margin-bottom: 24px;
}

.icv-brand-logo {
    height: 200px !important;
    width: auto !important;
}

.icv-modal-title {
    color: var(--icv-dark);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.icv-modal-desc {
    color: var(--icv-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.icv-modal-notice {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.icv-notice-success {
    background: #e6f7ee;
    color: #1b7a47;
}

.icv-notice-error {
    background: #fdecea;
    color: #b3261e;
}

.icv-notice-notice {
    background: #eef2ff;
    color: #3949ab;
}

.icv-verify-btn {
    background-color: var(--icv-blue);
    color: #fff !important;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(41, 98, 255, 0.4);
}

.icv-verify-btn:hover {
    background-color: #0039CB;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 98, 255, 0.5);
}

.icv-security-badge {
    margin-top: 25px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Small inline message shown when an already-verified user clicks a trigger. */
.icv-inline-msg {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: #1b7a47;
    font-weight: 600;
}

@keyframes icvFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
