/* Экраны ожидания и результата, подсказка с тестовыми картами,
   номер заказа и ссылка в поддержку. */
.tc-res {
    font-size: 11px;
    color: var(--error);
    white-space: nowrap;
}

.tc-res.ok {
    color: var(--success);
}

.test-cards-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 6px;
}

.order-ref {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
}

.support-link {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    
}

.lang-switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.lang-btn {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 5px 12px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn.on {
    color: var(--text-main);
    border-color: var(--primary);
}

/* Status card structures */
.screen {
    display: none;
    text-align: center;
    padding: 20px 0 10px 0;
}

.screen.active {
    display: block;
}

.status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loading Spinner */
.status-icon.loading {
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--primary);
    animation: spin 1s infinite linear;
}

.status-icon.success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-icon.success svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-icon.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.status-icon.error svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.status-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.pulse-text {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Error Banner */
.error-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

/* Ссылка на условия: внутри карточки, приглушённая — она нужна, но не должна
   спорить с кнопкой оплаты. Раньше блок стоял вне контейнера и уезжал вбок. */
.terms-line {
text-align: center;
padding: 20px 0 4px;
font-size: 13px;
opacity: .55;
}
.terms-line a { color: inherit; }
