/* --- Modal Wrapper --- */
.verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.verification-modal.show {
    display: flex;
    opacity: 1;
}

/* --- Reset & Base Styles (Scoped) --- */
.verification-modal * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Main Card --- */
.card {
    background-color: #ffffff;
    width: 90%;
    max-width: 380px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.verification-modal.show .card {
    transform: scale(1);
}

/* --- Top Gradient Bar --- */
.gradient-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #10b981, #8b5cf6);
    /* Green to Purple */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* --- Dark Header --- */
.header-dark {
    background-color: #111827;
    /* Dark Navy */
    padding: 40px 32px 32px 32px;
    text-align: center;
    color: white;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #4b5563;
    cursor: pointer;
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #9ca3af;
}

/* --- Language Selector (Adapted for Dark Header) --- */
.lang-wrapper {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 4px 8px 4px 24px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-select:focus {
    outline: none;
    border-color: #10b981;
}

.lang-select option {
    background-color: #111827;
    color: white;
}

.lang-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    color: #9ca3af;
    pointer-events: none;
}

/* --- Shield Icon --- */
.shield-container {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.shield-svg {
    width: 32px;
    height: 32px;
    color: #10b981;
}

.check-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #111827;
    /* Match header bg */
}

.check-badge svg {
    width: 12px;
    height: 12px;
    color: #111827;
}

.header-dark h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.secure-connection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.secure-icon {
    width: 12px;
    height: 12px;
}

/* --- Body Content --- */
.body-content {
    padding: 24px;
    background-color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.description {
    font-size: 13px;
    color: #64748b;
    /* slate-500 */
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 24px;
}

.body-content strong {
    color: #0f172a;
    font-weight: 700;
}

/* --- Verification Stage --- */
.verification-stage {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.check-item.active {
    opacity: 1;
    color: #0f172a;
}

.check-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.check-status {
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    /* Blue for processing */
    display: none;
}

.check-item.completed .check-status {
    color: #22c55e;
    /* Green for done */
    display: block;
}

.check-item.completed .check-icon {
    color: #22c55e;
}

.progress-container {
    margin-top: 8px;
    background-color: #f1f5f9;
    border-radius: 999px;
    height: 6px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #6366f1);
    width: 0%;
    border-radius: 999px;
    transition: width 0.5s ease-out;
}

.progress-text {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 600;
}

/* --- Offers Section --- */
.offers-wrapper {
    display: none;
    /* Hidden initially */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.offers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Offer Button Styles */
.offer-btn {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-decoration: none;
    color: inherit;
}

.offer-btn:hover {
    line-height: 1.2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.offer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.offer-icon {
    width: 48px;
    height: 48px;
    background-color: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    padding: 8px;
}

.offer-btn:hover .offer-icon {
    border-color: #bfdbfe;
}

.offer-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offer-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.offer-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.payout-badge {
    background-color: #f0fdf4;
    color: #166534;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #dcfce7;
    letter-spacing: 0.025em;
}

/* --- Footer Status --- */
.footer {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.footer-text {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Keyframes --- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
