* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #495057;
    line-height: 1.5;
    }

.container {
    width: 100%;
    max-width: 400px;
}

/* Таймер и номер заказа */
.timer-section {
    display: none; /* Скрываем по умолчанию */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.timer-info {
    text-align: left;
}

.timer-label {
    font-size: 10px;
    color: #6c757d;
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-display {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.order-number {
    text-align: right;
}

.order-label {
    font-size: 10px;
    color: #6c757d;
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-id {
    font-size: 12px;
    font-weight: 400;
    color: #495057;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    cursor: pointer;
    transition: color 0.2s ease;
    max-width: 94px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #eee;
    padding: 2px 6px;
    border-radius: 5px;
}

.order-id:hover {
    color: #206bc4;
}

.order-id.copied {
    color: #2fb344;
}

/* Банковская карта */
.bank-card {
    background: #808080;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    position: relative;
    display: none;
}

/* Стили для разных банков */
.bank-card.sber {
    background: linear-gradient(135deg, #21a038, #1e8b32, #1a7a2e);
    box-shadow: 0 8px 32px rgba(33, 160, 56, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bank-card.tinkoff {
    background: linear-gradient(135deg, #ffdd2d, #ffcd02, #ffb700);
    color: #333;
    box-shadow: 0 8px 32px rgba(255, 221, 45, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bank-card.alfa {
    background: linear-gradient(135deg, #ef3124, #d42a1f, #c0251c);
    box-shadow: 0 8px 32px rgba(239, 49, 36, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bank-card.vtb {
    background: linear-gradient(135deg, #1e3c72, #2a5298, #1a3462);
    box-shadow: 0 8px 32px rgba(30, 60, 114, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bank-card.ozon {
    background: linear-gradient(135deg, #005bff, #0047cc, #003bb3);
    box-shadow: 0 8px 32px rgba(0, 91, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bank-card.other {
    background: linear-gradient(135deg, #808080, #6c757d, #5a6268);
    box-shadow: 0 8px 32px rgba(128, 128, 128, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Дополнительные эффекты для всех карт */
.bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    pointer-events: none;
}

.bank-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 15px 15px 0 0;
    pointer-events: none;
}

.bank-card.blurred {
    display: none !important;
}


.card-content {
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    padding: 0px;
    border-radius: 10px;
    display: none;
    width: 90%;
    max-width: 400px;
    min-width: 280px;
}

.loading-overlay.show {
    display: block;
}

.loading-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.loading-timer {
    font-size: 16px;
    color: #666;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-timer svg {
    width: 32px;
    height: 32px;
    color: #666;
    animation: bounce 1s infinite;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.loading-phrases {
    margin-top: 15px;
    height: 30px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
}

.loading-phrases.hide {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    margin-top: 0;
}

.phrase-item {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #888;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.phrase-item.active {
    opacity: 1;
    transform: translateY(0);
}

.phrase-item.prev {
    opacity: 0;
    transform: translateY(-20px);
}

.show-requisites-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #21a038, #1e8b32, #1a7a2e);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px auto 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(33, 160, 56, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.show-requisites-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.show-requisites-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.show-requisites-btn:hover {
    background: linear-gradient(135deg, #1e8b32, #1a7a2e, #166a28);
    box-shadow: 0 6px 20px rgba(33, 160, 56, 0.4), 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.show-requisites-btn:hover::before {
    left: 100%;
}

.show-requisites-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 160, 56, 0.3), 0 1px 4px rgba(0, 0, 0, 0.1);
}

.show-requisites-btn.disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3) !important;
}

.show-requisites-btn.disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3) !important;
}

.show-requisites-btn.disabled::before {
    display: none !important;
}

/* Стили для чекбоксов */
.checkboxes-section {
    margin: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.checkboxes-section.show {
    opacity: 1;
    transform: translateY(0);
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-item.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #1a8030;
    cursor: pointer;
}

.checkbox-label {
    color: #555;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .loading-overlay {
        width: 95%;
        max-width: 350px;
        min-width: 250px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-timer {
        font-size: 14px;
        max-width: 250px;
    }
    
    .phrase-item {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .checkbox-label {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .show-requisites-btn {
        font-size: 16px;
        padding: 12px 24px;
        max-width: 280px;
    }
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.amount-section {
    display: flex;
    flex-direction: column;
}

.card-amount {
    font-size: 20px;
    font-weight: bold;
}

.currency-symbol {
    opacity: 0.5;
    font-weight: 400;
}

.card-type {
    font-size: 18px;
    font-weight: bold;
    line-height: 0;
}

.card-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Логотипы для разных банков */
.bank-card.sber .card-logo {
    filter: brightness(0) invert(1);
}

.bank-card.tinkoff .card-logo {
    filter: brightness(0) invert(0);
}

.bank-card.alfa .card-logo,
.bank-card.vtb .card-logo,
.bank-card.ozon .card-logo,
.bank-card.other .card-logo {
    filter: brightness(0) invert(1);
}

/* Цвета кнопки копирования для разных банков */
.bank-card.tinkoff .copy-btn {
    background: #333;
    color: #fff;
}

.bank-card.tinkoff .copy-btn:hover {
    background: #555;
}

.bank-card.tinkoff .copy-btn.copied {
    background: #2fb344;
    color: #fff;
}

.card-number {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    text-align: center;
        width: 100%;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}


.card-number span {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    pointer-events: none;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.copy-btn.copied {
    background: #27ae60;
    border-color: #27ae60;
}

.transfer-instruction-inside {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.transfer-instruction-inside span {
    font-weight: 600;
}

/* Цвет текста для Тинькоффа */
.bank-card.tinkoff .transfer-instruction-inside {
    color: rgba(51, 51, 51, 0.8);
}



/* Выбор банка */
.bank-selection {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.bank-selection h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.bank-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.bank-option {
    padding: 16px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    font-weight: 500;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bank-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bank-option:hover {
    border-color: #206bc4;
    background: #f8f9fa;
    color: #206bc4;
}

.bank-option.selected {
    border-color: #206bc4;
    background: #206bc4;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(32, 107, 196, 0.2);
}


/* Кнопки действий */

.receipt-upload {
    width: 100%;
    border: 2px dashed #007bff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.receipt-upload:hover {
    background: #e3f2fd;
    border-color: #0056b3;
}

.receipt-upload.dragover {
    background: #bbdefb;
    border-color: #0056b3;
}

.upload-icon {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 12px;
    color: #6c757d;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
            opacity: 0;
    cursor: pointer;
}

.uploaded-file {
    display: none;
    align-items: center;
    gap: 10px;
}

.file-icon {
    font-size: 20px;
    color: #007bff;
}

.file-name {
    font-size: 14px;
    color: #495057;
    flex: 1;
    text-align: left;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.help-section {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    display: none;
}

.help-btn {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.help-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Модальное окно в стиле Tabler.io */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-blur {
    backdrop-filter: blur(8px);
}

.bg-surface-backdrop {
    background: transparent;
}

.modal-dialog {
    margin: 0 auto;
    position: relative;
    width: auto;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-sm {
    max-width: 300px;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 50px 0 rgb(0 0 0 / 50%);
    position: relative;
    width: 100%;
}

.btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: #495057;
}

.modal-status {
    height: 4px;
    border-radius: 8px 8px 0 0;
}

.bg-warning {
    background: #ffc107;
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.modal-body h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.text-secondary {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.modal-footer {
    background: #f5f5f5;
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #eee;
}

.modal-footer .row {
    display: flex;
    gap: 12px;
    padding: 10px 15px;
}

.modal-footer .col {
    flex: 1;
    padding: 0;
}

.icon {
    width: 24px;
    height: 24px;
}

.icon-lg {
    width: 48px;
    height: 48px;
}

.text-warning {
    color: #ffc107;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-3 {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.btn-3:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-4 {
    background: #2fb344;
    color: white;
    border-color: #2fb344;
}

.btn-4:hover {
    background: #28a745;
    border-color: #28a745;
}

.btn-success {
    background: #2fb344;
    color: white;
    border-color: #2fb344;
}

.btn-success:hover {
    background: #28a745;
    border-color: #28a745;
}

/* Блюр для кнопки помощи при открытом модальном окне */
.modal-open .help-section {
    filter: blur(8px);
    pointer-events: none;
}

/* Кнопки действий после показа реквизитов */
.payment-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-paid-action {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, #21a038, #1e8b32, #1a7a2e);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(33, 160, 56, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-paid-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-paid-action:hover {
    background: linear-gradient(135deg, #1e8b32, #1a7a2e, #166a28);
    box-shadow: 0 6px 20px rgba(33, 160, 56, 0.4), 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-paid-action:hover::before {
    left: 100%;
}

.btn-paid-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 160, 56, 0.3), 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn-problem-action {
    flex: 1;
    padding: 12px 10px;
    background: transparent;
    color: #9ca3aa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-problem-action:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Экран загрузки чека */
.receipt-screen {
    display: none;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6c757d;
    cursor: pointer;
    margin: 0 auto 20px auto;
    font-size: 14px;
    transition: color 0.3s;
    width: fit-content;
}

.back-button:hover {
    color: #495057;
}

.receipt-screen .receipt-title {
    margin-bottom: 20px;
}

/* Свернутая карточка */
.bank-card.collapsed .transfer-instruction-inside,
.bank-card.collapsed .card-number,
.bank-card.collapsed .copy-btn {
    display: none !important;
}

.bank-card.collapsed {
    height: auto;
    padding: 15px 20px;
}

.bank-card.collapsed .card-header {
    margin-bottom: 0;
}

.bank-card.collapsed .amount {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
}

/* Анимация троеточия */
.loading-dots {
    display: inline-block;
}

.loading-dots span {
    opacity: 0.3;
    animation: loadingDots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
            opacity: 1;
        transform: scale(1);
    }
}

/* Информация о банке */
.bank-info-text {
    text-align: center;
    margin: 0;
    padding: 0 20px;
}

.bank-info-text p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.bank-info-text span {
    font-weight: 600;
    color: #495057;
}

.arrow-down {
    text-align: center;
    margin-top: 15px;
}

.arrow-down svg {
    color: #6c757d;
    opacity: 0.7;
}

/* Заголовки */
.receipt-title {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 5px;
}

.receipt-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .bank-card {
        padding: 20px;
    }
    
    .card-number {
        font-size: 25px;
        letter-spacing: 1px;
    }
    
    .payment-form {
        padding: 20px;
        }
    }