/**
 * Telegram Verification System — Styles (Universal)
 *
 * Override the CSS variables below to match your site's theme.
 */

/* === CSS Variables (customize these) === */
:root {
    --ver-primary:       #10a0ae;
    --ver-primary-hover: #0d8a97;
    --ver-primary-light: rgba(16, 160, 174, .15);
    --ver-red:           #c0392b;
    --ver-green:         #27ae60;
    --ver-text:          #080e19;
    --ver-muted:         #5f6570;
    --ver-border:        #e2e2e2;
    --ver-bg:            #f7f7f7;
    --ver-white:         #fff;
    --ver-font:          'brandon-grotesque', 'Segoe UI', Arial, sans-serif;
}

/* === Container === */
.verification-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 28px 28px;
    box-sizing: border-box;
}

/* === Card === */
.verification-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    animation: ver-fadeIn .25s ease-out;
    font-family: var(--ver-font);
    color: var(--ver-text);
}

/* === Logo row (hidden by default — override if needed) === */
.verification-logos {
    display: none;
}

/* === Title === */
.verification-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ver-text);
    text-align: left;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ver-border);
    font-family: var(--ver-font);
    letter-spacing: .1px;
}

/* === Loading spinner === */
.verification-loading-text {
    font-size: .88rem;
    color: var(--ver-muted);
    text-align: left;
    margin: 8px 0 6px;
    line-height: 1.5;
}

.verification-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 0 20px;
}

.verification-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e8f7f8;
    border-top-color: var(--ver-primary);
    border-radius: 50%;
    animation: ver-spin .9s linear infinite;
}

@keyframes ver-spin {
    to { transform: rotate(360deg); }
}

/* === Transaction info table === */
.ver-info-table {
    margin: 0 0 20px;
    border-top: 1px solid var(--ver-border);
    border-bottom: 1px solid var(--ver-border);
    padding: 10px 0;
}

.ver-info-row {
    display: flex;
    align-items: baseline;
    padding: 5px 0;
    font-size: .82rem;
}

.ver-info-label {
    flex: 0 0 38%;
    color: var(--ver-muted);
    font-weight: 400;
    padding-right: 8px;
}

.ver-info-value {
    flex: 1;
    color: var(--ver-text);
    font-weight: 600;
}

.ver-info-mono {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    font-size: .8rem;
}

/* Moderator → user message (between card block and step text) */
.verification-mod-notice {
    margin: 0 0 18px;
    padding: 0;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--ver-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}
.verification-mod-notice.hidden {
    display: none !important;
}

/* === Step text === */
.verification-step-text {
    font-size: .88rem;
    color: var(--ver-text);
    line-height: 1.6;
    text-align: left;
    margin: 0 0 18px;
}

/* === SMS input === */
.verification-input-container {
    margin-bottom: 10px;
}

.verification-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--ver-white);
    color: var(--ver-text);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 13px;
    font-size: 15px;
    font-family: var(--ver-font);
    text-align: center;
    letter-spacing: normal;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.verification-input::placeholder {
    letter-spacing: normal;
}

.verification-input:focus {
    border-color: var(--ver-primary);
    box-shadow: 0 0 0 2px var(--ver-primary-light);
}

/* === Primary button === */
.verification-btn {
    width: 100%;
    max-width: 100%;
    background: var(--ver-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--ver-font);
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
    margin: 18px 0 0;
    display: block;
    transition: background .2s, box-shadow .2s, transform .1s;
    box-shadow: 0 4px 12px rgba(16, 160, 174, .25);
}

.verification-btn:hover {
    background: var(--ver-primary-hover);
    box-shadow: 0 6px 16px rgba(16, 160, 174, .35);
    transform: translateY(-1px);
}

.verification-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* === Change Card link === */
.verification-change-card {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--ver-primary);
    cursor: pointer;
    font-size: 12px;
    font-family: var(--ver-font);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}

.verification-change-card:hover {
    color: var(--ver-primary-hover);
}

/* === Error messages === */
.verification-error {
    color: var(--ver-red);
    font-size: 12px;
    font-family: var(--ver-font);
    margin-top: 7px;
    text-align: center;
    font-weight: 600;
}

.verification-error-message {
    color: var(--ver-red);
    font-size: .85rem;
    font-family: var(--ver-font);
    font-weight: 500;
    text-align: center;
    margin: 16px 0;
    padding: 14px 16px;
    background: rgba(192, 57, 43, .07);
    border-radius: 4px;
    border: 1px solid rgba(192, 57, 43, .3);
    line-height: 1.5;
}

/* === Timer (push step) === */
.verification-timer-container {
    margin: 6px 0 4px;
}

.verification-timer-text {
    font-size: .88rem;
    font-family: var(--ver-font);
    font-weight: 600;
    color: var(--ver-text);
    text-align: center;
    margin-bottom: 12px;
}

.verification-timer-text span {
    color: var(--ver-primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.verification-progress-bar {
    width: 100%;
    height: 6px;
    background: #e8f7f8;
    border-radius: 3px;
    overflow: hidden;
}

.verification-progress-bar-fill {
    height: 100%;
    background: var(--ver-primary);
    border-radius: 3px;
    transition: width 1s linear;
    width: 100%;
}

/* === Hidden === */
.verification-hidden {
    display: none !important;
}

/* === Success state === */
.verification-success {
    color: var(--ver-green);
    font-size: .9rem;
    font-family: var(--ver-font);
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    padding: 16px;
    background: rgba(39, 174, 96, .08);
    border-radius: 4px;
    border: 1px solid rgba(39, 174, 96, .3);
}

/* === Animations === */
@keyframes ver-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Accessibility === */
.verification-btn:focus,
.verification-input:focus,
.verification-change-card:focus {
    outline: 2px solid var(--ver-primary);
    outline-offset: 2px;
}

/* === Responsive === */
@media (max-width: 480px) {
    .verification-container {
        padding: 16px 16px 20px;
    }
    .verification-title {
        font-size: .98rem;
    }
    .verification-step-text,
    .verification-loading-text {
        font-size: .84rem;
    }
    .verification-btn {
        font-size: 13px;
        padding: 11px 16px;
    }
    .ver-info-label {
        flex: 0 0 42%;
    }
}

@media print {
    .verification-container { display: none; }
}
