/* Базовый фон и центрирование */
.pay-app { 
    background: #f1f5f9; /* Мягкий фон для выделения белой карточки на ПК */
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex; 
    justify-content: center; 
    align-items: flex-start;
    padding: 40px 20px; 
    min-height: 100vh;
    box-sizing: border-box;
}

/* Единая карточка для десктопа (Убрали разрыв между деталями и QR) */
.pay-container { 
    display: flex; 
    width: 100%;
    max-width: 900px; 
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); /* Премиальная мягкая тень */
    align-items: stretch; /* Колонки одинаковой высоты */
    overflow: hidden;
}

/* Левая колонка (Информация) */
.card-info { 
    flex: 1; 
    position: relative; 
    background: transparent;
}

.pc-header { 
    padding: 30px 40px; 
    border-bottom: 1px solid #f1f5f9; 
    font-weight: 700; 
    font-size: 18px; 
    color: #0f172a;
}

.mob-header { 
    display: none; 
    padding: 20px; 
    text-align: center; 
    background: #f8fafc; 
    font-weight: 700; 
    font-size: 16px; 
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0; 
}

.fop-icon { color: #2563eb; margin-right: 8px; }

/* Блок суммы */
.sum-section { 
    padding: 40px 40px 20px; 
    text-align: center;
}

.sum-label { 
    font-size: 12px; 
    text-transform: uppercase; 
    color: #64748b; 
    letter-spacing: 1px; 
    font-weight: 700; 
    margin-bottom: 12px;
}

.sum-value { 
    font-size: 48px; 
    font-weight: 800; 
    color: #0f172a; 
    line-height: 1; 
    margin-bottom: 16px; 
}

.sum-badge { 
    display: inline-block; 
    background: #eff6ff; 
    color: #2563eb;
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: 600; 
}

/* Разделитель (горизонтальный) */
.ticket-divider { 
    position: relative; 
    height: 20px; 
    background: #fff; 
    margin: 0 20px;
}
.ticket-divider::after { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 20px; 
    right: 20px; 
    border-bottom: 2px dashed #cbd5e1;
}
.ticket-divider::before, .ticket-notch-right { 
    content: ''; 
    position: absolute; 
    top: 0; 
    width: 20px; 
    height: 20px; 
    background: #f1f5f9; /* Цвет внешнего фона */
    border-radius: 50%; 
    z-index: 2;
}
.ticket-divider::before { left: -10px; }
.ticket-notch-right { right: -10px; }

/* Кнопки и мобильные действия */
.mob-actions { 
    display: none; 
    padding: 15px 20px 0; /* Убран лишний отступ снизу */
}

.pay-btn-main { 
    display: flex;
    justify-content: center; 
    align-items: center; 
    background: #2563eb; 
    color: #fff; 
    padding: 16px; 
    border-radius: 14px; 
    font-weight: 700; 
    font-size: 16px;
    margin-bottom: 16px; 
    width: 100%; 
    cursor: pointer; 
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.3); 
    transition: transform 0.1s, box-shadow 0.2s; 
}
.pay-btn-main:hover { box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.4); }
.pay-btn-main:active { transform: scale(0.97); }

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

.bank-item { 
    display: flex; align-items: center; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; cursor: pointer; transition: all 0.2s; 
}
.bank-item:hover { border-color: #cbd5e1; background: #f8fafc; }
.bank-item:active { background: #f1f5f9; }

.b-icon-wrap { 
    width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 12px; color: #fff; font-weight: 800; font-size: 10px; text-transform: uppercase; flex-shrink: 0; 
}
.bank-item[data-bank='Raiffeisen'] .b-icon-wrap, .bank-item[data-bank='izibank'] .b-icon-wrap { color: #1e293b; }
.b-name { font-size: 13px; font-weight: 600; color: #334155; }

.btn-show-more { 
    width: 100%; padding: 12px; background: transparent; border: none; color: #64748b; font-weight: 600; cursor: pointer; 
    margin-bottom: 5px; /* Уменьшен отступ */
    font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; 
}
.btn-show-more:hover { color: #334155; }

.other-banks-grid { 
    display: none; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 5px; /* Прижали к разделителю */
}

/* Секция реквизитов */
.details-section { padding: 20px 40px 40px; background: transparent; }

.section-title { 
    font-size: 12px; text-transform: uppercase; color: #94a3b8; font-weight: 700; margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px; 
}
.section-title::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

.det-group { margin-bottom: 20px; position: relative; }
.det-label { font-size: 12px; color: #64748b; margin-bottom: 6px; display: block; }
.det-val { 
    font-size: 15px; font-weight: 600; color: #1e293b;
    line-height: 1.5; word-break: break-all; padding-right: 35px; 
}
.det-sub { font-size: 13px; color: #94a3b8; margin-top: 2px; }

.btn-copy { 
    position: absolute; right: 0; top: 20px; color: #cbd5e1; cursor: pointer; padding: 5px; transition: color 0.2s; 
}
.btn-copy:hover { color: #2563eb; }

/* Правая колонка ПК (Новый дизайн QR-кода - интеграция в карточку) */
.card-qr-pc { 
    width: 320px; 
    background: #f8fafc; /* Легкий серый фон вместо тяжелого синего */
    border-left: 2px dashed #e2e8f0; /* Эффект отрывного чека */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px; 
}

.qr-white-bg { 
    background: #fff; padding: 16px; border-radius: 20px; margin-bottom: 24px; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06); /* Аккуратная тень только у самого QR */
}
.qr-clickable { width: 180px; height: 180px; cursor: pointer; border-radius: 12px; }

.qr-pc-text-block { 
    background: transparent; color: #475569; padding: 0; font-size: 14px; 
    line-height: 1.5; text-align: center; font-weight: 500; box-shadow: none; 
}

/* Мобильный QR */
.mob-qr-btn { 
    display: none; margin: 0 20px 20px; text-align: center; color: #2563eb; font-weight: 600; font-size: 14px; cursor: pointer; padding: 14px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; 
}
.mob-qr-area { display: none; padding: 0 20px 20px; text-align: center; }

/* Модалки и тосты (Косметика) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-box { background: #fff; padding: 30px 25px; border-radius: 24px; width: 85%; max-width: 320px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); transform: scale(0.9); transition: transform 0.3s ease; }
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-icon-circle { width: 50px; height: 50px; background: #eff6ff; color: #2563eb; font-size: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; }
.modal-title { margin: 0 0 10px; font-size: 20px; color: #0f172a; font-weight: 800; }
.modal-desc { font-size: 14px; color: #64748b; line-height: 1.5; margin-bottom: 20px; }
.modal-btn { background: #2563eb; color: #fff; border: none; width: 100%; padding: 16px; border-radius: 14px; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 4px 15px rgba(37,99,235,0.2); transition: transform 0.1s; }
.modal-btn:active { transform: scale(0.96); }

#my-toast { visibility: hidden; min-width: 140px; background-color: rgba(15,23,42,0.9); color: #fff; text-align: center; border-radius: 50px; padding: 12px 24px; position: fixed; z-index: 1000; left: 50%; bottom: 40px; transform: translateX(-50%); font-size: 14px; backdrop-filter: blur(4px); font-weight: 600; }
#my-toast.show { visibility: visible; animation: fadein 0.3s, fadeout 0.3s 1.5s; }
@keyframes fadein { from {bottom: 20px; opacity: 0;} to {bottom: 40px; opacity: 1;} }
@keyframes fadeout { from {bottom: 40px; opacity: 1;} to {bottom: 20px; opacity: 0;} }

/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ */
@media (max-width: 850px) {
    .pay-app { padding: 0; background: #fff; }
    .pay-container { flex-direction: column; border-radius: 0; box-shadow: none; }
    .card-qr-pc { display: none; }
    .pc-header { display: none; }
    
    .mob-header { display: block; }
    .mob-actions { display: block; }
    .mob-qr-btn { display: block; }
    
    .sum-section { padding: 30px 20px 10px; }
    .details-section { padding: 10px 25px 40px; }
    
    /* Делаем вырезы разделителя белыми под фон телефона */
    .ticket-divider { margin: 0; }
    .ticket-divider::before { 
        left: -10px; background: #fff; border: 1px solid #e2e8f0; border-left: 0; 
    }
    .ticket-notch-right { 
        right: -10px; background: #fff; border: 1px solid #e2e8f0; border-right: 0;
    }
}