/* ========== Стилі сторінки "Оплата послуг / Вартість навчання" ========== */

.oplata-page-wrapper {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 15px 10px 35px;
    box-sizing: border-box;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
}

.oplata-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Заголовок сторінки */
.oplata-header {
    text-align: center;
    margin-bottom: 5px;
}

.oplata-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e1effe, #bfdbfe);
    color: #0a5584;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(10, 85, 132, 0.12);
}

.oplata-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.3;
}

.oplata-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* 📋 Акуратна таблиця вартості */
.oplata-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.oplata-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
}

.oplata-table thead {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
}

.oplata-table th {
    padding: 13px 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    font-size: 0.92rem;
}

.oplata-table th.th-year {
    text-align: left;
    padding-left: 20px;
    width: 48%;
}

.oplata-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.oplata-table tbody tr:last-child {
    border-bottom: none;
}

.oplata-table tbody tr:hover {
    background-color: #f8fafc;
}

.oplata-table td {
    padding: 13px 16px;
    color: #334155;
    border: none;
}

.oplata-table .year-cell {
    text-align: left;
    padding-left: 20px;
}

.year-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.growth-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

.year-header-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.badge-current {
    font-size: 0.72rem;
    font-weight: 700;
    background: #fef08a;
    color: #854d0e;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #fde047;
}

.course-desc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.3;
}

.tag-new {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.tag-senior {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.price-val {
    font-weight: 600;
    color: #334155;
    font-size: 0.98rem;
}

.current-row.row-newbie {
    background-color: #f0f9ff !important;
}

.current-row.row-newbie:hover {
    background-color: #e0f2fe !important;
}

.current-row.row-senior {
    background-color: #fffaf5 !important;
}

.current-row.row-senior:hover {
    background-color: #ffedd5 !important;
}

.highlight-val.val-newbie strong {
    color: #0369a1;
    font-size: 1.05rem;
}

.highlight-val.val-senior strong {
    color: #9a3412;
    font-size: 1.05rem;
}

/* 📄 Банер-посилання на накази */
.orders-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1.5px solid #cbd5e1;
    border-left: 4px solid #3191d1;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.orders-banner:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(49, 145, 209, 0.12);
}

.orders-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.orders-banner-info i {
    font-size: 1.8rem;
    color: #e11d48;
    flex-shrink: 0;
}

.orders-banner-info h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
}

.orders-banner-info p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

.orders-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0a5584, #147ec4);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(10, 85, 132, 0.25);
    flex-shrink: 0;
}

.orders-btn:hover {
    background: linear-gradient(135deg, #147ec4, #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 85, 132, 0.35);
}

/* 💳 Картка реквізитів */
.oplata-requisites-card {
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
    border: 2px solid #bfdbfe;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 6px 20px rgba(10, 85, 132, 0.08);
    position: relative;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0a5584;
    background: #e1effe;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.card-badge i {
    color: #3191d1;
    font-size: 0.9rem;
}

.account-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.35;
}

/* IBAN блок */
.iban-block {
    margin-bottom: 14px;
}

.iban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.iban-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.click-hint {
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
}

.iban-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px dashed #93c5fd;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 10px;
}

.iban-box:hover {
    background: #eff6ff;
    border-color: #3191d1;
    box-shadow: 0 4px 14px rgba(49, 145, 209, 0.18);
}

.iban-text {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.6px;
    word-break: break-all;
}

.iban-box .copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #3191d1, #147ec4);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(20, 126, 196, 0.25);
}

.iban-box:hover .copy-btn {
    background: linear-gradient(135deg, #147ec4, #0a5584);
    transform: scale(1.03);
}

.copy-tooltip {
    position: absolute;
    top: -32px;
    right: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(4px);
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Банк */
.bank-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 14px;
}

.bank-row i {
    color: #16a34a;
    font-size: 1.1rem;
}

/* Примітки до оплати */
.payment-notes {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3191d1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

.payment-notes i {
    color: #3191d1;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-notes strong {
    color: #1e293b;
    display: block;
    margin-bottom: 2px;
}

.payment-notes p {
    margin: 0;
}

/* 📱 Адаптивність */
@media (max-width: 768px) {
    .orders-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .orders-btn {
        justify-content: center;
    }

    .oplata-header h2 {
        font-size: 1.35rem;
    }

    .account-title {
        font-size: 1.1rem;
    }

    .oplata-table th.th-year,
    .oplata-table .year-cell {
        padding-left: 10px;
    }
}

@media (max-width: 600px) {
    .iban-box {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 8px;
    }

    .iban-text {
        font-size: 0.92rem;
        text-align: center;
    }

    .iban-box .copy-btn {
        justify-content: center;
        width: 100%;
    }

    .oplata-requisites-card {
        padding: 16px 14px;
    }

    .oplata-table th,
    .oplata-table td {
        padding: 10px 6px;
        font-size: 0.82rem;
    }

    .highlight-val.val-newbie strong,
    .highlight-val.val-senior strong {
        font-size: 0.92rem;
    }
}

/* Блоки реквізитів (ЄДРПОУ та IBAN) */
.requisites-item-block {
    margin-bottom: 14px;
}

.requisites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.requisites-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.requisites-copy-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px dashed #93c5fd;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 10px;
}

.requisites-copy-box:hover {
    background: #eff6ff;
    border-color: #3191d1;
    box-shadow: 0 4px 14px rgba(49, 145, 209, 0.18);
}

.requisites-code-text {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.6px;
    word-break: break-all;
}

.requisites-code-text.edrpou-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #0369a1;
}

.requisites-copy-box .copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #3191d1, #147ec4);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(20, 126, 196, 0.25);
}

.requisites-copy-box:hover .copy-btn {
    background: linear-gradient(135deg, #147ec4, #0a5584);
    transform: scale(1.03);
}
