/* AGENT TABS SYSTEM */

/* AGENT INFO BAR */
.agent-info-bar {
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

.agent-basic-info {
    display: flex;
    gap: 40px;
    align-items: center;
}

.agent-basic-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-basic-info .info-item label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.agent-basic-info .info-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.agent-info-bar .logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-info-bar .logout-btn:hover {
    background: white;
    color: #F26522;
}

/* TABS SYSTEM */
.tabs-container {
    background: var(--bg-card, #ffffff);
    border-bottom: 2px solid var(--border, #e8e8e8);
    padding: 0 40px;
}

.tabs-nav {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-item {
    padding: 18px 30px;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-item:hover {
    color: #F26522;
    background: rgba(242, 101, 34, 0.05);
}

.tab-item.active {
    color: #F26522;
    border-bottom-color: #F26522;
    background: rgba(242, 101, 34, 0.08);
}

.tab-content {
    display: none;
    padding: 30px 40px;
    background: var(--bg-page, #f8fafc);
    min-height: calc(100vh - 200px);
}

.tab-content.active {
    display: block;
}

/* PROFILE TAB STYLES */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.profile-card {
    background: var(--bg-card, #ffffff);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-card, 0 4px 15px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--border, #e8e8e8);
}

.profile-card h4 {
    color: #F26522;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-field {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border, #e8e8e8);
}

.profile-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-field label {
    display: block;
    color: #F26522;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-field .value {
    color: var(--text-primary, #2c3e50);
    font-size: 15px;
    font-weight: 500;
}

.document-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--border, #e8e8e8);
}

.document-preview:hover {
    transform: scale(1.05);
}

.signature-preview {
    width: 200px;
    height: 100px;
    border: 2px dashed var(--border, #e8e8e8);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.signature-preview img {
    max-width: 100%;
    max-height: 100%;
}

.btn-download-contract {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-download-contract:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.4);
}

/* COMMISSION TAB STYLES */

/* Sub-tabs de comisiones */
.commission-sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border, #e8e8e8);
}

.commission-sub-tab {
    padding: 14px 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #6b7280);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: color 0.25s ease;
}

.commission-sub-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: background 0.25s ease;
}

.commission-sub-tab:hover {
    color: #F26522;
}

.commission-sub-tab.active {
    color: #F26522;
}

.commission-sub-tab.active::after {
    background: #F26522;
}

.commission-sub-tab .badge-count {
    background: var(--bg-table-header, #e5e7eb);
    color: var(--text-secondary, #6b7280);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.commission-sub-tab.active .badge-count {
    background: rgba(242, 101, 34, 0.15);
    color: #F26522;
}

/* Panel de contenido de sub-tabs */
.commission-sub-content {
    display: none;
}

.commission-sub-content.active {
    display: block;
}

/* Resumen de comisiones pendientes */
.pending-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.pending-summary-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e8e8e8);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.pending-summary-card.total {
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    border: none;
}

.pending-summary-card .summary-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 6px;
}

.pending-summary-card.total .summary-label {
    color: rgba(255, 255, 255, 0.85);
}

.pending-summary-card .summary-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #1e293b);
}

.pending-summary-card.total .summary-value {
    color: white;
}

.pending-summary-card .summary-count {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-muted, #94a3b8);
}

.pending-summary-card.total .summary-count {
    color: rgba(255, 255, 255, 0.75);
}

/* Tabla de pendientes */
.pending-transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, #e8e8e8);
}

.pending-transactions-table thead {
    background: var(--bg-table-header, #f9fafb);
}

.pending-transactions-table th {
    padding: 12px 15px;
    text-align: left;
    color: var(--text-secondary, #6b7280);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border, #e8e8e8);
}

.pending-transactions-table td {
    padding: 14px 15px;
    font-size: 13px;
    color: var(--text-primary, #2c3e50);
    border-bottom: 1px solid var(--border-light, #f3f4f6);
}

.pending-transactions-table tbody tr:hover {
    background: var(--bg-table-row-hover, rgba(0, 0, 0, 0.03));
}

.pending-transactions-table .commission-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.pending-transactions-table .type-money {
    background: rgba(255, 215, 0, 0.15);
    color: #d97706;
}

.pending-transactions-table .type-crypto {
    background: rgba(100, 200, 255, 0.15);
    color: #0284c7;
}

.pending-transactions-table .amount-positive {
    color: #059669;
    font-weight: 700;
}

.pending-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.commission-header {
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commission-rate {
    font-size: 32px;
    font-weight: 700;
}

/* Compact commission header */
.commission-header-compact {
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.commission-header-compact h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.commission-rates-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.rate-badge strong {
    font-size: 15px;
    font-weight: 800;
}

.rate-badge.rate-money {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.rate-badge.rate-crypto {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.rate-badge i {
    font-size: 12px;
    opacity: 0.85;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card, #ffffff);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card, 0 4px 15px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--border, #e8e8e8);
}

.payments-table thead {
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
}

.payments-table th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.payments-table tbody tr {
    border-bottom: 1px solid var(--border, #e8e8e8);
    transition: all 0.2s ease;
}

.payments-table tbody tr:hover {
    background: var(--bg-table-row-hover, rgba(0, 0, 0, 0.03));
}

.payments-table td {
    padding: 15px;
    color: var(--text-primary, #2c3e50);
    font-size: 14px;
}

.btn-view-commission-details {
    padding: 8px 16px;
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-commission-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
}

/* IMAGE VIEWER MODAL */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.image-viewer-modal.active {
    display: flex;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.btn-close-viewer {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-viewer:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

/* ══════════════════════════════════════════════
   FILTER BAR, SORTABLE HEADERS & PAGINATION
   ══════════════════════════════════════════════ */

/* Filter bar */
.comm-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.comm-search-box {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.comm-search-box i.fa-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 14px;
    pointer-events: none;
}

.comm-search-box input {
    width: 100%;
    padding: 10px 36px 10px 40px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #1e293b);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comm-search-box input:focus {
    outline: none;
    border-color: #F26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.12);
}

.comm-search-box input::placeholder {
    color: var(--text-muted, #94a3b8);
}

.comm-clear-filter {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
    transition: color 0.2s;
}

.comm-clear-filter:hover {
    color: var(--error, #ef4444);
}

/* Sortable table headers */
.sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.sortable-th:hover {
    color: #F26522 !important;
}

.sort-icon {
    margin-left: 4px;
    font-size: 11px;
}

.sort-inactive {
    opacity: 0.3;
}

.sort-active {
    color: #F26522;
    opacity: 1;
}

/* Pagination */
.comm-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    margin-top: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.comm-pagination-info {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    font-weight: 500;
}

.comm-pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comm-page-size {
    padding: 6px 10px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    font-size: 13px;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    margin-right: 8px;
}

.comm-page-size:focus {
    outline: none;
    border-color: #F26522;
}

.comm-page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.comm-page-btn:hover:not(:disabled) {
    background: #F26522;
    color: white;
    border-color: #F26522;
}

.comm-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.comm-page-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    padding: 0 8px;
    min-width: 50px;
    text-align: center;
}

/* ══════════════════════════════════════════════
   DARK MODE OVERRIDES
   ══════════════════════════════════════════════ */

[data-theme="dark"] .tabs-container {
    background: var(--bg-card);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .tab-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .tab-item:hover {
    background: rgba(242, 101, 34, 0.1);
}

[data-theme="dark"] .tab-item.active {
    background: rgba(242, 101, 34, 0.15);
}

[data-theme="dark"] .tab-content {
    background: var(--bg-page);
}

/* Profile cards */
[data-theme="dark"] .profile-card {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .profile-field {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .profile-field .value {
    color: var(--text-primary);
}

[data-theme="dark"] .document-preview {
    border-color: var(--border);
}

[data-theme="dark"] .signature-preview {
    border-color: var(--border);
}

/* Commission sub-tabs */
[data-theme="dark"] .commission-sub-tabs {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .commission-sub-tab {
    color: var(--text-secondary);
}

[data-theme="dark"] .commission-sub-tab .badge-count {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
}

/* Pending summary cards */
[data-theme="dark"] .pending-summary-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .pending-summary-card .summary-value {
    color: var(--text-primary);
}

/* Pending transactions table */
[data-theme="dark"] .pending-transactions-table {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .pending-transactions-table thead {
    background: var(--bg-table-header);
}

[data-theme="dark"] .pending-transactions-table th {
    color: var(--text-secondary);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .pending-transactions-table td {
    color: var(--text-primary);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .pending-transactions-table tbody tr:hover {
    background: var(--bg-table-row-hover, rgba(255, 255, 255, 0.05));
}

/* Payments table (paid commissions) */
[data-theme="dark"] .payments-table {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: var(--shadow-card);
}

[data-theme="dark"] .payments-table tbody tr {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .payments-table tbody tr:hover {
    background: var(--bg-table-row-hover, rgba(255, 255, 255, 0.05));
}

[data-theme="dark"] .payments-table td {
    color: var(--text-primary);
}

/* Empty state boxes (generated in JS) */
[data-theme="dark"] .empty-state-box {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .empty-state-box h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .empty-state-box p {
    color: var(--text-secondary) !important;
}

/* Clients table (generated in JS) */
[data-theme="dark"] .clients-table-container {
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-card) !important;
}

[data-theme="dark"] .clients-table-container th {
    background: var(--bg-table-header) !important;
    color: var(--text-primary) !important;
    border-bottom-color: var(--border) !important;
}

[data-theme="dark"] .clients-table-container td {
    border-bottom-color: var(--border) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .clients-table-container tr:nth-child(even) {
    background: var(--bg-table-row-alt) !important;
}

[data-theme="dark"] .clients-table-container tr:nth-child(odd) {
    background: var(--bg-card) !important;
}

/* Filter bar, pagination dark mode */
[data-theme="dark"] .comm-search-box input {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-input);
}

[data-theme="dark"] .comm-page-size {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-input);
}

[data-theme="dark"] .comm-page-size option {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] .comm-page-btn {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .comm-page-btn:hover:not(:disabled) {
    background: #F26522;
    color: white;
    border-color: #F26522;
}

/* Sortable headers dark mode */
[data-theme="dark"] .pending-transactions-table .sortable-th,
[data-theme="dark"] .payments-table .sortable-th {
    color: var(--text-secondary);
}

/* Commission detail modal table */
[data-theme="dark"] .commission-detail-table td {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .commission-detail-total-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

[data-theme="dark"] .commission-detail-total-row td {
    color: white !important;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .agent-info-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .agent-basic-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        padding: 20px;
    }

    .comm-pagination {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .comm-filter-bar {
        flex-direction: column;
    }

    .comm-search-box {
        max-width: 100%;
    }
}

/* =================================
   ACCOUNTS TAB (Cuentas de Cobro)
   ================================= */
.accounts-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px;
}

.accounts-header-info {
    text-align: center;
    margin-bottom: 28px;
}

.accounts-header-info h3 {
    color: #F26522;
    font-size: 24px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.accounts-header-info p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.account-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(242, 101, 34, 0.2);
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.account-card:hover {
    border-color: rgba(242, 101, 34, 0.4);
    box-shadow: 0 8px 24px rgba(242, 101, 34, 0.08);
}

.account-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(242, 101, 34, 0.08);
    border-bottom: 1px solid rgba(242, 101, 34, 0.15);
}

.account-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.account-icon.euro {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.account-icon.eth {
    background: linear-gradient(135deg, #627eea, #3c5cb4);
}

.account-icon.polygon {
    background: linear-gradient(135deg, #8247e5, #5d2fb3);
}

.account-title h4 {
    margin: 0 0 2px 0;
    font-size: 16px;
    color: #f1f5f9;
    font-weight: 600;
}

.account-title span {
    font-size: 12px;
    color: #94a3b8;
}

.account-card-body {
    padding: 22px;
}

.account-card-body .form-group {
    margin-bottom: 18px;
}

.account-card-body .form-group:last-child {
    margin-bottom: 0;
}

.account-card-body label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.account-card-body label .required {
    color: #ef4444;
    margin-left: 4px;
}

.account-card-body label .optional {
    color: #64748b;
    font-weight: 400;
    font-size: 11px;
    margin-left: 4px;
}

.account-card-body input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.account-card-body input[type="text"]:focus {
    outline: none;
    border-color: #F26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}

.account-card-body input[type="text"]::placeholder {
    color: #64748b;
}

.account-card-body .field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.iban-validation-msg {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.iban-validation-msg i {
    font-size: 16px;
}

.accounts-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-save-accounts {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #F26522, #D4541E);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(242, 101, 34, 0.3);
    font-family: inherit;
}

.btn-save-accounts:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(242, 101, 34, 0.45);
}

.btn-save-accounts:active {
    transform: translateY(0);
}

/* Dark theme already applied - claro adjustments */
[data-theme="light"] .account-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .account-card-header {
    background: #fff7ed;
    border-bottom-color: #fed7aa;
}

[data-theme="light"] .account-title h4 {
    color: #1e293b;
}

[data-theme="light"] .account-title span {
    color: #64748b;
}

[data-theme="light"] .account-card-body label {
    color: #475569;
}

[data-theme="light"] .account-card-body input[type="text"] {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .accounts-header-info p {
    color: #64748b;
}

@media (max-width: 640px) {
    .accounts-wrapper {
        padding: 16px;
    }

    .account-card-header {
        padding: 14px 16px;
    }

    .account-card-body {
        padding: 16px;
    }

    .account-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .account-title h4 {
        font-size: 14px;
    }
}
