/* ============================================================
   verify.css — SMS / 3-D Secure verification modal
   Styled to match the Basilica Cistern clone (brand colours).
   ============================================================ */

:root {
    --vfy-primary: #10a5b2;
    --vfy-primary-dark: #0c8b96;
    --vfy-ink: #0d151e;
    --vfy-red: #ff3863;
    --vfy-green: #12b569;
    --vfy-muted: #6b7280;
    --vfy-border: #e6e9ee;
    --vfy-font: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

/* overlay */
.vfy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 22, .62);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100000;
    animation: vfy-fade .25s ease-out;
}

@keyframes vfy-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes vfy-pop { from { opacity: 0; transform: translateY(14px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes vfy-spin { to { transform: rotate(360deg) } }

/* card */
.vfy-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    font-family: var(--vfy-font);
    color: var(--vfy-ink);
    overflow: hidden;
    animation: vfy-pop .3s ease-out;
}

/* top secure bar */
.vfy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    background: linear-gradient(100deg, var(--vfy-ink) 0%, #123 60%, var(--vfy-green) 160%);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.vfy-bar__lock { margin-right: 7px; }

.vfy-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
    padding: 0 2px;
}

.vfy-close:hover { opacity: 1; }

.vfy-body { padding: 22px 26px 26px; }

/* logos row */
.vfy-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--vfy-border);
    margin-bottom: 16px;
    min-height: 30px;
}

.vfy-logos__left { font-weight: 800; font-size: 14px; letter-spacing: .3px; color: var(--vfy-ink); }
.vfy-logos__left span { color: var(--vfy-primary); }

.vfy-logos__right { display: flex; align-items: center; gap: 10px; }

.vfy-idcheck {
    font-size: 11px;
    font-weight: 800;
    color: var(--vfy-primary);
    border: 1px solid currentColor;
    border-radius: 20px;
    padding: 2px 9px;
}

.vfy-title {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 16px;
}

/* purchase info table */
.vfy-info {
    border-top: 1px solid var(--vfy-border);
    border-bottom: 1px solid var(--vfy-border);
    padding: 8px 0;
    margin-bottom: 18px;
}

.vfy-info__row {
    display: flex;
    align-items: baseline;
    padding: 5px 0;
    font-size: 13px;
}

.vfy-info__label { flex: 0 0 40%; color: var(--vfy-muted); }
.vfy-info__value { flex: 1; text-align: right; font-weight: 700; }
.vfy-info__value--mono { font-family: 'Courier New', monospace; letter-spacing: 1px; }

/* step text */
.vfy-text {
    text-align: center;
    font-size: 13.5px;
    line-height: 1.6;
    color: #3b4450;
    margin-bottom: 16px;
}

/* phone line on the sms step (no input: taken from the checkout form) */
.vfy-text--phone {
    margin-top: -8px;
    color: var(--vfy-muted);
}

/* sms input */
.vfy-input {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 20px;
    letter-spacing: 7px;
    font-weight: 700;
    padding: 12px 14px;
    border: 1.5px solid var(--vfy-border);
    border-radius: 10px;
    outline: none;
    font-family: var(--vfy-font);
    transition: border-color .15s, box-shadow .15s;
}

.vfy-input::placeholder { letter-spacing: 2px; font-weight: 500; font-size: 15px; }

.vfy-input:focus { border-color: var(--vfy-primary); box-shadow: 0 0 0 3px rgba(16, 165, 178, .16); }
.vfy-input.is-error { border-color: var(--vfy-red); box-shadow: 0 0 0 3px rgba(255, 56, 99, .14); }

.vfy-error {
    color: var(--vfy-red);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
}

/* button */
.vfy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background-image: linear-gradient(to right, var(--vfy-ink) 9%, var(--vfy-green) 102%);
    color: #fff;
    font-family: var(--vfy-font);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}

.vfy-btn:hover { opacity: .93; transform: translateY(-1px); }
.vfy-btn:active { transform: none; }
.vfy-btn[disabled] { opacity: .6; pointer-events: none; }

.vfy-link {
    display: block;
    text-align: center;
    margin-top: 13px;
    font-size: 12.5px;
    color: var(--vfy-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.vfy-link:hover { color: var(--vfy-primary-dark); }

/* spinner */
.vfy-spinner-wrap { display: flex; justify-content: center; padding: 26px 0 18px; }
.vfy-spinner {
    width: 44px; height: 44px;
    border: 4px solid rgba(16, 165, 178, .18);
    border-top-color: var(--vfy-primary);
    border-radius: 50%;
    animation: vfy-spin .9s linear infinite;
}

/* timer (push step) */
.vfy-timer { margin-top: 4px; }
.vfy-timer__text { text-align: center; font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.vfy-timer__text span { color: var(--vfy-primary); font-size: 17px; font-weight: 800; }
.vfy-timer__bar { height: 6px; background: #eef2f4; border-radius: 3px; overflow: hidden; }
.vfy-timer__fill { height: 100%; width: 100%; background: var(--vfy-primary); transition: width 1s linear; }

/* success / error */
.vfy-status { text-align: center; padding: 8px 0 2px; }
.vfy-status__icon {
    width: 62px; height: 62px; margin: 4px auto 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff;
}
.vfy-status--ok .vfy-status__icon { background: var(--vfy-green); }
.vfy-status--err .vfy-status__icon { background: var(--vfy-red); }
.vfy-status__title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.vfy-status__msg { font-size: 13.5px; color: var(--vfy-muted); line-height: 1.6; }

.vfy-note {
    text-align: center;
    font-size: 11.5px;
    color: #98a0aa;
    margin-top: 14px;
}

@media (max-width: 480px) {
    .vfy-body { padding: 18px 18px 22px; }
    .vfy-input { font-size: 18px; letter-spacing: 5px; }
}

/* phone input on the SMS step */
.vfy-input--phone {
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}
.vfy-input--phone::placeholder { letter-spacing: 0; font-weight: 500; font-size: 14px; }

/* moderator notice ("записка") */
.vfy-notice {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    max-width: 440px;
    width: calc(100% - 32px);
    animation: vfy-pop .25s ease-out;
}
.vfy-notice__box {
    background: #fff;
    border-left: 4px solid var(--vfy-primary);
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
    padding: 14px 18px;
    font-family: var(--vfy-font);
}
.vfy-notice__text { font-size: 14px; color: #0d151e; line-height: 1.55; white-space: pre-wrap; }
.vfy-notice__timer { margin-top: 7px; font-size: 12px; color: var(--vfy-muted); }
.vfy-notice__timer span { font-weight: 800; color: var(--vfy-primary); }
