/**
 * Pages CSS - Stiluri comune pentru paginile cu layout default
 * Acest fisier contine stiluri pentru flow-ul de aplicare credit,
 * pagina contul-meu, detalii credit, etc.
 */

/* =============================================
   FLOW CARD - Container principal pentru formularele de aplicare
   ============================================= */
.flow-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
}
.flow-card.narrow {
    max-width: 600px;
}
.flow-card.centered {
    text-align: center;
}

/* =============================================
   FLOW PROGRESS BAR
   ============================================= */
.flow-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.flow-progress-bar {
    height: 100%;
    background: var(--secondary-color, #0d6efd);
    border-radius: 4px;
}
.flow-progress-bar.success {
    background: #198754;
}

/* =============================================
   FLOW FORM ELEMENTS
   ============================================= */
.flow-input,
.flow-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #fff;
}
.flow-input:focus,
.flow-select:focus {
    outline: none;
    border-color: var(--secondary-color, #0d6efd);
}
.flow-input[readonly] {
    background-color: #f5f5f5;
}
.flow-input-sm,
.flow-select-sm {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #fff;
}
.flow-input-sm:focus,
.flow-select-sm:focus {
    outline: none;
    border-color: var(--secondary-color, #0d6efd);
}
.flow-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.flow-label-sm {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
}
/* =============================================
   FLOW BUTTONS
   ============================================= */
.flow-btn {
    width: 100%;
    padding: 16px;
    background: var(--secondary-color, #0d6efd);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.flow-btn:hover {
    opacity: 0.9;
}
.flow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.flow-btn-success {
    background: #198754;
}
.flow-btn-success:hover {
    background: #157347;
}
.flow-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 12px 24px;
    font-size: 16px;
    text-decoration: none;
}
.flow-btn-primary {
    background: var(--secondary-color, #0d6efd);
    color: #fff;
}
.flow-btn-primary:hover {
    opacity: 0.9;
    color: #fff;
}
.flow-btn-secondary {
    background: #e9ecef;
    color: #495057;
}
.flow-btn-secondary:hover {
    background: #dee2e6;
    color: #495057;
}
.flow-btn i {
    margin-right: 8px;
}
.flow-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 576px) {
    .flow-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* =============================================
   FLOW SECTIONS & GROUPS
   ============================================= */
.flow-section {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.flow-section-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}
.flow-section-hint {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
}
.flow-radio-group {
    display: flex;
    gap: 24px;
}
.flow-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.flow-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 576px) {
    .flow-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   FLOW CHECKBOX SECTIONS
   ============================================= */
.flow-checkbox-section {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.flow-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.flow-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.flow-checkbox-label span {
    font-size: 14px;
    color: #333;
}
.flow-checkbox-label strong {
    font-weight: 600;
}
.flow-checkbox-label a {
    color: var(--secondary-color, #0d6efd);
    text-decoration: none;
}
.flow-checkbox-label a:hover {
    text-decoration: underline;
}

/* =============================================
   FLOW VALIDATION ERRORS
   ============================================= */
/* Error state for checkbox sections */
.flow-checkbox-section.has-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}
.flow-checkbox-section.has-error .flow-checkbox-label {
    color: #dc3545;
}
.flow-checkbox-section .flow-error:not(:empty) {
    display: block;
    color: #dc3545;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8d7da;
    border-radius: 4px;
}

/* Error state for upload sections */
.upload-section.has-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    padding: 1rem;
    border-radius: 8px;
}
.upload-section.has-error .fileup-btn {
    border-color: #dc3545;
}

/* Error state for flow sections (verificare page) */
.flow-section.has-error {
    border: 2px solid #dc3545 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}
.flow-section .flow-error-box {
    display: none;
    background: #dc3545;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}
.flow-section .flow-error-box i {
    margin-right: 8px;
}
.flow-section.has-error .flow-error-box {
    display: block;
}

/* Error state for inputs and selects */
.flow-input.is-invalid,
.flow-select.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}
.flow-input.is-invalid:focus,
.flow-select.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}
.flow-section.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* =============================================
   FLOW MESSAGES & ALERTS
   ============================================= */
.flow-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
}
.flow-info {
    color: #6c757d;
    font-size: 14px;
    margin-top: 8px;
}
.flow-warning {
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.flow-warning label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.flow-warning input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
}
.flow-warning span {
    font-size: 14px;
    color: #664d03;
}
.flow-alert {
    padding: 16px;
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    color: #084298;
    margin-bottom: 1.5rem;
}

/* =============================================
   FLOW SUCCESS BOX
   ============================================= */
.flow-success-box {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.flow-success-box h4 {
    color: #0f5132;
    margin-bottom: 12px;
}
.flow-success-box p {
    color: #0f5132;
    font-size: 14px;
    margin-bottom: 4px;
}
.flow-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background: #d1e7dd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-success-icon i {
    font-size: 36px;
    color: #198754;
}

/* =============================================
   FLOW INFO & CONTACT BOXES
   ============================================= */
.flow-info-box {
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 1.5rem;
    text-align: left;
}
.flow-info-box-title {
    font-weight: 600;
    color: #084298;
    margin-bottom: 12px;
}
.flow-info-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.flow-info-box-list li {
    font-size: 14px;
    color: #0a58ca;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flow-info-box-list li:last-child {
    margin-bottom: 0;
}
.flow-info-box-list i.fa-check {
    color: #198754;
}
.flow-contact-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 1.5rem;
}
.flow-contact-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.flow-contact-box a {
    color: var(--secondary-color, #0d6efd);
    font-weight: 600;
    text-decoration: none;
}
.flow-contact-box a:hover {
    text-decoration: underline;
}

/* =============================================
   FLOW USER CARD
   ============================================= */
.flow-user-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.flow-user-card .user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flow-user-card .user-details {
    font-size: 14px;
    color: #666;
}
.flow-user-card .user-details p {
    margin: 4px 0;
}

/* =============================================
   FLOW UTILITIES
   ============================================= */
.flow-hidden {
    display: none;
}

/* =============================================
   FILEUP STYLING
   ============================================= */
.fileup-btn {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.fileup-btn:hover {
    border-color: var(--secondary-color, #0d6efd);
    background: #e9ecef;
}
.fileup-btn input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 200px;
    cursor: pointer;
    opacity: 0;
}
.queue {
    margin-top: 0.5rem;
}
.fileup-file {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}
.fileup-file .fileup-name {
    font-weight: 500;
    color: #0f5132;
}
.fileup-file .fileup-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 8px;
}
.fileup-file .fileup-progress-bar {
    height: 100%;
    background: #198754;
    border-radius: 2px;
    transition: width 0.3s;
}
.fileup-file .fileup-result {
    font-size: 12px;
    margin-top: 4px;
}
.fileup-file .fileup-result.fileup-success {
    color: #198754;
}
.fileup-file .fileup-result.fileup-error {
    color: #dc3545;
}
.fileup-file .fileup-remove {
    cursor: pointer;
    color: #dc3545;
    float: right;
}

/* =============================================
   CREDIT ITEM (Datorii curente)
   ============================================= */
.credit-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
}
.credit-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.credit-item-title {
    font-weight: 500;
    color: #333;
}
.credit-item-remove {
    color: #dc3545;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.credit-item-remove:hover {
    text-decoration: underline;
}
.credit-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
@media (max-width: 576px) {
    .credit-item-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ACCOUNT CONTAINER (Contul meu)
   ============================================= */
.account-container {
    padding: 2rem 0 4rem 0;
}
.account-header {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.account-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}
.account-header p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* =============================================
   INCOGNITO MODE BADGE
   ============================================= */
.incognito-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    animation: incognito-pulse 2s ease-in-out infinite;
}
.incognito-badge.partner {
    background: #fff5f5;
    color: #dc3545;
    border: 2px solid #dc3545;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}
.incognito-badge i {
    font-size: 1.5rem;
    opacity: 0.9;
}
.incognito-badge span {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
@keyframes incognito-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(220, 53, 69, 0.5);
    }
}

/* =============================================
   CREDITS SECTION (Contul meu)
   ============================================= */
.credits-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.5rem;
}
.credits-section h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.credits-section h5 i {
    color: var(--primary-color, #0d6efd);
}

/* Credit Cards Grid */
.credit-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}
.credit-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.credit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.credit-number {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}
.credit-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}
.credit-card-body {
    flex-grow: 1;
    margin-bottom: 0.75rem;
}
.credit-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color, #0d6efd);
    margin-bottom: 0.25rem;
}
.credit-period {
    color: #888;
    font-size: 0.85rem;
}
.credit-card-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.credit-card-footer .btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    min-width: 110px;
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    transition: all 0.2s ease;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}
/* Prevent text disappearing on click/focus/active states */
.credit-card-footer .btn:focus,
.credit-card-footer .btn:active,
.credit-card-footer .btn:hover,
.credit-card-footer .btn:visited {
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}
.credit-card-footer .btn i {
    font-size: 0.75rem;
    flex-shrink: 0;
}
/* Primary button styles */
.credit-card-footer .btn-primary {
    background: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    color: #fff !important;
}
.credit-card-footer .btn-primary:hover,
.credit-card-footer .btn-primary:focus {
    background: #0b5ed7 !important;
    border-color: #0a58ca !important;
    color: #fff !important;
}
.credit-card-footer .btn-primary:active {
    background: #0a58ca !important;
    border-color: #0a53be !important;
    color: #fff !important;
    transform: scale(0.98);
}
/* Warning button styles */
.credit-card-footer .btn-warning {
    background: #ffc107 !important;
    border: 1px solid #ffc107 !important;
    color: #212529 !important;
}
.credit-card-footer .btn-warning:hover,
.credit-card-footer .btn-warning:focus {
    background: #ffca2c !important;
    border-color: #ffc720 !important;
    color: #212529 !important;
}
.credit-card-footer .btn-warning:active {
    background: #ffcd39 !important;
    border-color: #ffc720 !important;
    color: #212529 !important;
    transform: scale(0.98);
}
/* Loading state - pastreaza dimensiunile si afiseaza spinner */
.credit-card-footer .btn.oc-loading,
.credit-card-footer .btn[data-request].oc-loading {
    pointer-events: none;
    color: transparent !important;
}
.credit-card-footer .btn.oc-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spinner 0.6s linear infinite;
}
.credit-card-footer .btn-primary.oc-loading::after {
    border-color: rgba(255,255,255,0.3);
    border-right-color: transparent;
    border-top-color: #fff;
}
.credit-card-footer .btn-warning.oc-loading::after {
    border-color: rgba(0,0,0,0.2);
    border-right-color: transparent;
    border-top-color: #333;
}
@keyframes btn-spinner {
    to { transform: rotate(360deg); }
}
.no-credits-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}
.no-credits-message i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* =============================================
   INVITATIONS SECTION (Contul meu)
   ============================================= */
.invitations-section {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border: 1px solid #cce5ff;
    border-radius: 12px;
    padding: 1.5rem;
}
.invitations-section .section-title {
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 1rem;
}
.invitation-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}
.invitation-card:hover {
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
}
.invitation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}
.invitation-card-header .partner-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}
.invitation-card-header .invitation-date {
    font-size: 0.75rem;
    color: #888;
}
.invitation-card-body {
    flex-grow: 1;
    margin-bottom: 1rem;
}
.invitation-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}
.invitation-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}
.invitation-details i {
    color: #0d6efd;
    width: 16px;
}
.invitation-card-footer .btn {
    font-weight: 500;
}

/* =============================================
   CREDIT DETAIL PAGE
   ============================================= */
.credit-detail-container {
    padding: 2rem 0 4rem 0;
}
.credit-card-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.credit-title h5 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.credit-title h5 i {
    color: var(--primary-color, #0d6efd);
}
.credit-type {
    font-size: 0.85rem;
    color: #666;
    margin-left: 24px;
}
.status-text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    color: #6c757d;
}

/* Status colors */
.status-text.status-acordat {
    color: #28a745;
}
.status-text.status-aprobat,
.status-text.status-semnat,
.status-text.status-semnare_contract {
    color: #17a2b8;
}
.status-text.status-in_analiza,
.status-text.status-in_reanaliza,
.status-text.status-analizat,
.status-text.status-cerere_semnata {
    color: #0d6efd;
}
.status-text.status-doc_incarcate,
.status-text.status-card_ok {
    color: #e6a000;
}
.status-text.status-date_incomplete,
.status-text.status-card_neverificat {
    color: #fd7e14;
}
.status-text.status-respins,
.status-text.status-anulat {
    color: #dc3545;
}
.status-text.status-lichidat {
    color: #28a745;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}
.back-link:hover {
    color: var(--primary-color);
}
.detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.detail-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
}
.detail-card h5 i {
    color: var(--primary-color, #0d6efd);
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f5;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    color: #666;
    font-size: 0.9rem;
}
.detail-value {
    font-weight: 500;
    color: #333;
}
.detail-value.highlight {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Credit Info List - Mobile Friendly */
.credit-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fafbfc;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}
.credit-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}
.credit-info-item:last-child {
    border-bottom: none;
}
.credit-info-label {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.credit-info-value {
    font-weight: 600;
    color: #000;
    font-size: 1.05rem;
    text-align: right;
}
.credit-info-value.highlight {
    font-size: 1.25rem;
    color: #000;
    font-weight: 700;
}

@media (max-width: 576px) {
    .credit-info-list {
        padding: 0.25rem 0.75rem;
    }
    .credit-info-item {
        padding: 0.85rem 0;
    }
    .credit-info-label {
        font-size: 0.8rem;
    }
    .credit-info-value {
        font-size: 0.95rem;
    }
    .credit-info-value.highlight {
        font-size: 1.1rem;
    }
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.action-buttons .btn {
    padding: 0.5rem 1.25rem;
}

/* =============================================
   SCADENTAR TABLE
   ============================================= */
.detail-card .scadentar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.detail-card .scadentar-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
#scadentarToggleBtn {
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#scadentarToggleBtn:hover {
    background: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    color: #fff;
}
#scadentarToggleBtn i {
    transition: transform 0.3s ease;
    margin-left: 6px;
    font-size: 0.7rem;
}
#scadentarToggleBtn.active {
    background: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    color: #fff;
}
#scadentarToggleBtn.active i {
    transform: rotate(180deg);
}
.scadentar-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.scadentar-table thead {
    background: #212529;
    color: #fff;
}
.scadentar-table th {
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
}
.scadentar-table th.text-right {
    text-align: right;
}
.scadentar-table th.text-center {
    text-align: center;
}
.scadentar-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}
.scadentar-table tbody tr:nth-child(odd) {
    background: #f8f9fa;
}
.scadentar-table tbody tr:hover {
    background: #e8f4f8;
}
.scadentar-table td {
    padding: 12px 16px;
}
.scadentar-table td.text-right {
    text-align: right;
}
.scadentar-table td.text-center {
    text-align: center;
}
.scadentar-table tfoot {
    background: #212529;
    color: #fff;
    font-weight: 600;
}
.scadentar-table tfoot td {
    padding: 12px 16px;
}
.scadentar-table .text-warning {
    color: #ffc107;
}
.scadentar-table .text-success {
    color: #28a745;
}

/* Mobile cards for scadentar */
.scadentar-mobile {
    display: none;
}
.scadentar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.scadentar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.scadentar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
.scadentar-card-header .badge {
    background: #212529;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.scadentar-card-body {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.scadentar-card-item label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 2px;
}
.scadentar-card-item span {
    font-weight: 600;
}
.scadentar-card-total {
    background: #212529;
    color: #fff;
    padding: 16px;
}
.scadentar-card-total .title {
    font-weight: 600;
    margin-bottom: 12px;
}
.scadentar-card-total .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    text-align: center;
}
.scadentar-card-total label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .scadentar-desktop {
        display: none;
    }
    .scadentar-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    .account-header {
        padding: 1.25rem;
    }
    .account-header h1 {
        font-size: 1.25rem;
    }
    .invitations-section {
        padding: 1rem;
    }
    .invitation-amount {
        font-size: 1.25rem;
    }
    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons .btn {
        width: 100%;
    }
    .scadentar-section .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .credit-card-header-inline {
        flex-direction: column;
        gap: 0.75rem;
    }
    .credit-type {
        margin-left: 0;
    }
    /* Flow card mobile */
    .flow-card {
        padding: 1rem;
        border-radius: 8px;
    }
    .flow-btn {
        padding: 14px;
        font-size: 16px;
    }
    .flow-btn-inline {
        padding: 10px 16px;
    }
    .flow-radio-group {
        gap: 12px;
    }
    .flow-success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    /* Credit cards mobile */
    .credit-card {
        padding: 1rem;
    }
    .credit-amount {
        font-size: 1.2rem;
    }
    .credit-info-list .info-item {
        padding: 0.5rem 0;
    }
    /* Scadentar table mobile */
    .scadentar-table th,
    .scadentar-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .scadentar-card {
        padding: 0.75rem;
    }
    .scadentar-card-body {
        gap: 0.5rem;
    }
    /* Account header mobile */
    .account-header {
        padding: 1rem;
    }
    .account-header h1 {
        font-size: 1.1rem;
    }
}

/* Rate calculator (home slider) */
.rate-calculator {
    border-top: 1px solid var(--border-color-1);
    padding-top: 25px;
}

.rate-calculator__label {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.rate-calculator__controls {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.rate-calculator__btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

.rate-calculator__value {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
}

.rate-calculator__slider {
    margin-top: 15px;
    margin-bottom: 0px;
    padding: 15px 15px;
    overflow: visible;
    position: relative;
}

.rate-calculator__slider .credit-amount-range.ui-widget-content {
    height: 8px;
    border: none;
    background: #eef2f4;
    margin-bottom: 40px;
}

.rate-calculator__slider .ui-slider .ui-slider-range {
    background: var(--secondary-color);
}

.rate-calculator__slider .ui-state-default {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    top: -10px;
    cursor: grab;
}

.rate-calculator__slider .ui-state-default:active {
    cursor: grabbing;
}

.rate-calculator__range {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
    color: var(--paragraph-color);
}

.rate-calculator__results {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color-1);
    flex-wrap: wrap;
}

.rate-calculator__monthly {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color);
}

.rate-calculator__monthly-currency {
    font-size: 16px;
    font-weight: 600;
    margin-left: 6px;
}

.rate-calculator__monthly-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--paragraph-color);
    margin-left: 6px;
}

.rate-calculator__dae {
    background: rgb(255 124 0 / 20%);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--paragraph-color);
}

/* Period slider separator */
.rate-calculator__label--period {
    margin-top: 0px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color-1);
}

/* Period slider handle icon - calendar */
.rate-calculator__slider--period .ui-state-default::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    background-image: url(../img/icons/calendar1.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 99;
    pointer-events: none;
}

/* Period slider wrapper - extra padding for icon */
.rate-calculator__slider--period {
    padding-top: 50px;
    margin-top: 0;
}

/* Period slider track styling */
.rate-calculator__slider--period .credit-period-range.ui-widget-content {
    height: 8px;
    border: none;
    background: #eef2f4;
    margin-bottom: 40px;
}

.rate-calculator__slider--period .ui-slider .ui-slider-range {
    background: var(--secondary-color);
}

.rate-calculator__slider--period .ui-state-default {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    top: -10px;
    cursor: grab;
    touch-action: none;
}

.rate-calculator__slider--period .ui-state-default:active {
    cursor: grabbing;
}

/* Results section - full width layout */
.rate-calculator__results-full {
    margin-top: 0px;
    padding-top: 00px;
    border-top: 1px solid var(--border-color-1);
}

.rate-calculator__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.rate-calculator__result-row--main {
    padding-bottom: 0px;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border-color-1);
}

.rate-calculator__result-label {
    font-size: 14px;
    color: var(--paragraph-color);
}

.rate-calculator__result-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
}

.rate-calculator__result-value.rate-calculator__dae {
    background: rgb(255 124 0 / 20%);
    padding: 4px 10px;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .rate-calculator__controls {
        grid-template-columns: 40px 1fr 40px;
    }

    .rate-calculator__btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .rate-calculator__value {
        font-size: 22px;
    }

    .rate-calculator__results {
        gap: 8px;
    }

    .rate-calculator__label--period {
        margin-top: 20px;
        padding-top: 20px;
    }

    .rate-calculator__slider--period .ui-state-default {
        width: 24px;
        height: 24px;
    }

    .rate-calculator__slider--period .ui-state-default::after {
        top: -19px;
        width: 60px;
        height: 55px;
    }
}

/* Slider handle image - base styles */
.rate-calculator__slider .ui-state-default::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 99;
    pointer-events: none;
}
/* Credit Produse - produse.svg (only for amount slider) */
.rate-calculator--produse .rate-calculator__slider--amount .ui-state-default::after {
    background-image: url(../img/icons/produse.svg);
}

/* Credit Servicii - servicii.svg (only for amount slider) */
.rate-calculator--servicii .rate-calculator__slider--amount .ui-state-default::after {
    background-image: url(../img/icons/servicii.svg);
}
.rate-calculator__slider .ui-state-default {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Ensure slider track is also touch-friendly */
.rate-calculator__slider .ui-slider {
    touch-action: none;
}

/* =============================================
   HERO SECTION - Background Image with Overlay
   ============================================= */
.hero-section {
    position: relative;
    min-height: 450px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(19, 36, 62, 0.88) 0%,
        rgba(19, 36, 62, 0.75) 50%,
        rgba(19, 36, 62, 0.6) 100%
    );
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }
    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(19, 36, 62, 0.92) 0%,
            rgba(19, 36, 62, 0.8) 35%,
            rgba(19, 36, 62, 0.5) 65%,
            rgba(19, 36, 62, 0.3) 100%
        );
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 550px;
    }

    .hero-bg img {
        object-position: right center;
    }
}

@media (min-width: 1280px) {
    .hero-section {
        min-height: 600px;
    }
}

@media (min-width: 1536px) {
    .hero-section {
        min-height: 650px;
    }
}
@media (max-width: 768px) {
    .rate-calculator__slider .ui-state-default {
        width: 21px;
        height: 21px;
    }
    .rate-calculator__slider .ui-state-default::after {
        top: -19px;
        width: 48px;
        height: 53px;
    }
    /* Period slider - smaller padding on mobile */
    .rate-calculator__slider--period {
        padding-top: 40px;
    }
    /* Period slider - calendar icon smaller on mobile */
    .rate-calculator__slider--period .ui-state-default::after {
        top: -16px;
        width: 40px;
        height: 45px;
    }
}

/* =============================================
   HOMEPAGE SECTION IMAGES
   ============================================= */
.section-img {
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .section-img {
        max-height: 400px;
    }
}

/* Section grid - better centering */
.section-grid-centered {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 1024px) {
    .section-grid-centered {
        grid-template-columns: 1fr 1fr;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }
}

.section-grid-centered .section-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Variant with space-evenly for pasi-aplicare section */
.section-grid-centered .section-img-wrapper--evenly {
    justify-content: space-evenly;
}

.section-grid-centered .section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}