/* ============================================================
   PAGAMENTOS E REPASSES — Solid Fintech Dashboard Style
   ============================================================ */

.pay-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 96px 20px 100px;
    color: #f4f4f5;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pay-breadcrumb {
    margin-bottom: 14px;
}

.pay-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #948b9f;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pay-back-link:hover {
    color: #ffffff;
}

.pay-header {
    margin-bottom: 24px;
}

.pay-title {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.pay-subtitle {
    font-size: 0.88rem;
    color: #948b9f;
    margin: 0;
    line-height: 1.45;
}

/* ── Seção de Balanço & Métricas (Solid Fintech Header) ── */
.pay-balance-section {
    background: #14101e;
    border: 1px solid #251c38;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.pay-balance-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.pay-balance-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pay-label {
    font-size: 0.78rem;
    color: #8c8299;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pay-big-number {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Linha de progresso sólida */
.pay-timeline-bar {
    width: 100%;
    height: 3px;
    background: #251c38;
    border-radius: 2px;
    overflow: hidden;
}

.pay-timeline-fill {
    height: 100%;
    background: #8a05be;
}

/* ── Cards de Conteúdo (Solid Dark Surfaces) ── */
.pay-card {
    background: #14101e;
    border: 1px solid #251c38;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 20px;
}

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

.pay-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
}

.pay-card-title i {
    color: #a855f7;
    font-size: 1.1rem;
}

.pay-card-desc {
    font-size: 0.82rem;
    color: #8c8299;
    margin: 0;
}

.btn-pay-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(138, 5, 190, 0.15);
    border: 1px solid rgba(138, 5, 190, 0.35);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-pay-action:hover {
    background: #8a05be;
    color: #ffffff;
}

/* ── Pix Container ── */
.pay-pix-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #0e0a16;
    border: 1px solid #201730;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.pay-pix-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pay-pix-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #1c152a;
    border: 1px solid #2e2244;
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pay-pix-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pay-pix-key {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.pay-pix-holder {
    font-size: 0.78rem;
    color: #8c8299;
}

.pay-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.pay-rule-notice {
    font-size: 0.8rem;
    color: #948b9f;
    line-height: 1.45;
    padding-top: 4px;
}

.pay-rule-notice strong {
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.pay-rule-notice p {
    margin: 0;
}

/* ── Filtros Flat ── */
.pay-filters-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.pay-filter-pill {
    padding: 6px 12px;
    border-radius: 6px;
    background: #0e0a16;
    border: 1px solid #201730;
    color: #8c8299;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.pay-filter-pill:hover {
    background: #1c152a;
    color: #ffffff;
}

.pay-filter-pill--active {
    background: #8a05be;
    border-color: #8a05be;
    color: #ffffff;
}

/* ── Tabela de Dados Sólida ── */
.pay-table-container {
    overflow-x: auto;
}

.pay-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    text-align: left;
}

.pay-data-table th {
    padding: 10px 12px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #716880;
    border-bottom: 1px solid #251c38;
    font-weight: 700;
}

.pay-data-table td {
    padding: 12px;
    border-bottom: 1px solid #1c152a;
    color: #e4e4e7;
    vertical-align: middle;
}

.pay-data-table tr:last-child td {
    border-bottom: none;
}

.pay-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.pay-status-tag--success {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.pay-status-tag--pending {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
}

.pay-val-green {
    color: #4ade80;
    font-weight: 700;
}

.pay-val-red {
    color: #f87171;
    font-weight: 700;
}

.pay-receipt-link {
    background: none;
    border: none;
    color: #a855f7;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: color 0.15s ease;
}

.pay-receipt-link:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* ── Modal Sólido ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-box {
    background: #14101e;
    border: 1px solid #251c38;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.modal-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.modal-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #8c8299;
    cursor: pointer;
    font-size: 1rem;
}

.modal-desc {
    font-size: 0.82rem;
    color: #8c8299;
    margin: 0 0 18px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    color: #8c8299;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-input,
.form-select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #0e0a16;
    border: 1px solid #201730;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #8a05be;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-modal-cancel {
    flex: 1;
    padding: 10px;
    background: #0e0a16;
    border: 1px solid #201730;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
}

.btn-modal-save {
    flex: 1;
    padding: 10px;
    background: #8a05be;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-modal-save:hover {
    background: #9d0dcc;
}

@media (max-width: 680px) {
    .pay-page {
        padding: 76px 16px 90px;
    }

    .pay-balance-header {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pay-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-pay-action {
        width: 100%;
        justify-content: center;
    }

    .pay-pix-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
