* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --bg-main: #050816;
    --violet: #7c3cff;
    --violet-light: #b46cff;
    --violet-dark: #4b20c8;
    --text-main: #ffffff;
    --text-secondary: #b9b9c9;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Montserrat", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}


/* =========================================
   LOGIN
========================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(124,60,255,0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #03050f,
            #070b1a,
            #0c0821
        );
}


.login-container {
    width: 100%;
    max-width: 1200px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}


.login-brand {
    padding: 40px;
}


.brand-logo-completo {
    margin-bottom: 38px;
}


.brand-logo-completo img {
    width: 460px;
    max-width: 100%;
    display: block;
}


.brand-small {
    display: inline-block;

    font-size: 12px;
    letter-spacing: 5px;

    color: var(--violet-light);

    margin-bottom: 20px;
}


.brand-description {
    max-width: 470px;

    font-size: 18px;
    line-height: 1.7;

    color: var(--text-secondary);
}


.login-card {
    background:
        linear-gradient(
            145deg,
            rgba(20,20,38,0.95),
            rgba(12,12,27,0.95)
        );

    border:
        1px solid
        rgba(150,100,255,0.14);

    border-radius: 28px;

    padding: 48px;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,0.45);
}


.login-label {
    font-size: 11px;

    letter-spacing: 4px;

    color: var(--violet-light);
}


.login-header h2 {
    font-size: 36px;

    margin: 12px 0 10px;
}


.login-header p {
    color: #9292a8;

    font-size: 14px;

    margin-bottom: 35px;
}


.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    font-size: 13px;

    margin-bottom: 9px;

    color: #dadbea;
}


.form-group input,
.form-group select {
    width: 100%;

    padding: 15px 17px;

    border-radius: 12px;

    border:
        1px solid
        rgba(255,255,255,0.08);

    background: #111124;

    color: #ffffff;

    outline: none;

    font-family:
        "Montserrat",
        sans-serif;
}


.form-group input:focus,
.form-group select:focus {
    border-color:
        rgba(180,108,255,0.7);

    box-shadow:
        0 0 0 3px
        rgba(124,60,255,0.10);
}


.login-options {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 30px;
}


.remember {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    color: #a7a7b8;
}


.forgot-password {
    color: var(--violet-light);

    text-decoration: none;

    font-size: 12px;
}


.login-button {
    width: 100%;

    padding: 17px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            90deg,
            #6a2cff,
            #a052ff
        );

    color: white;

    font-family:
        "Montserrat",
        sans-serif;

    font-weight: 600;

    cursor: pointer;
}


.login-footer {
    text-align: center;

    margin-top: 35px;

    padding-top: 25px;

    border-top:
        1px solid
        rgba(255,255,255,0.05);
}


.login-footer p {
    font-size: 11px;

    color: #626275;

    margin-bottom: 7px;
}


.login-footer span {
    color: var(--violet-light);

    letter-spacing: 4px;

    font-size: 12px;
}


/* =========================================
   DASHBOARD
========================================= */

.dashboard-body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(124,60,255,0.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #03050f,
            #070919,
            #0d0820
        );
}


.dashboard-layout {
    display: grid;

    grid-template-columns:
        260px 1fr;

    min-height: 100vh;
}


.sidebar {
    background:
        rgba(8,8,22,0.97);

    border-right:
        1px solid
        rgba(160,90,255,0.10);

    padding: 30px 20px;

    display: flex;
    flex-direction: column;

    height: 100vh;

    position: sticky;
    top: 0;
}


.sidebar-brand {
    padding:
        10px 10px 35px;
}


.sidebar-logo {
    width: 180px;

    max-width: 100%;

    display: block;
}


.sidebar-menu {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.menu-item {
    padding: 14px 16px;

    border-radius: 12px;

    color: #8f90a6;

    text-decoration: none;

    font-size: 13px;

    transition: 0.25s;
}


.menu-item:hover {
    background:
        rgba(124,60,255,0.08);

    color: white;
}


.menu-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(105,44,255,0.20),
            rgba(160,82,255,0.07)
        );

    border:
        1px solid
        rgba(160,82,255,0.18);

    color: #c895ff;
}


.sidebar-footer {
    margin-top: auto;

    padding:
        20px 10px 5px;
}


.logout-link {
    color: #77788c;

    text-decoration: none;

    font-size: 12px;
}


.dashboard-main {
    padding: 38px;

    width: 100%;

    max-width: 1600px;

    margin: 0 auto;
}


.dashboard-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    margin-bottom: 35px;
}


.dashboard-label {
    display: block;

    font-size: 10px;

    letter-spacing: 4px;

    color: var(--violet-light);

    margin-bottom: 12px;
}


.dashboard-header h1 {
    font-size: 34px;

    margin-bottom: 8px;
}


.dashboard-header p {
    color: #818297;

    font-size: 14px;
}


.header-right {
    display: flex;

    align-items: center;

    gap: 14px;
}


.dashboard-user {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px 15px;

    border-radius: 15px;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid
        rgba(255,255,255,0.06);
}


.dashboard-user strong {
    display: block;

    font-size: 12px;

    margin-bottom: 3px;
}


.dashboard-user span {
    color: #77798f;

    font-size: 10px;
}


.user-avatar {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #6a2cff,
            #a052ff
        );

    font-weight: 700;
}


/* =========================================
   MONEDA
========================================= */

.currency-selector {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 10px 12px;

    border-radius: 15px;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid
        rgba(160,82,255,0.15);
}


.currency-info {
    display: flex;

    align-items: center;

    gap: 10px;
}


.currency-icon {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #692cff,
            #a052ff
        );

    font-weight: 700;
}


.currency-label {
    display: block;

    font-size: 8px;

    letter-spacing: 2px;

    color: #817e99;
}


.currency-info strong {
    display: block;

    font-size: 10px;

    color: #d4d1e1;
}


.currency-selector select {
    background: #111124;

    color: white;

    border:
        1px solid
        rgba(255,255,255,0.08);

    border-radius: 10px;

    padding: 9px 10px;

    font-family:
        "Montserrat",
        sans-serif;
}


/* =========================================
   RESUMEN
========================================= */

.summary-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 18px;

    margin-bottom: 25px;
}


.client-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 18px;

    margin-bottom: 25px;
}


.summary-card {
    padding: 24px;

    min-height: 150px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(18,18,35,0.92),
            rgba(10,10,25,0.95)
        );

    border:
        1px solid
        rgba(255,255,255,0.06);
}


.featured-card {
    border:
        1px solid
        rgba(160,82,255,0.28);

    background:
        linear-gradient(
            145deg,
            rgba(70,24,140,0.20),
            rgba(15,12,35,0.95)
        );
}


.summary-title {
    display: block;

    color: #85869a;

    font-size: 11px;

    margin-bottom: 18px;
}


.summary-value {
    display: block;

    font-size: 27px;

    margin-bottom: 15px;
}


.summary-note {
    color: #77798c;

    font-size: 10px;
}


.summary-note.positive {
    color: #a980ff;
}


.summary-note.warning {
    color: #d6a9ff;
}


/* =========================================
   ACCIONES
========================================= */

.quick-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 25px;
}


.action-button {
    border: none;

    border-radius: 12px;

    padding: 13px 18px;

    font-family:
        "Montserrat",
        sans-serif;

    font-weight: 600;

    font-size: 11px;

    cursor: pointer;

    color: white;

    background:
        linear-gradient(
            90deg,
            #6729ff,
            #a34dff
        );

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.action-button:hover {
    transform:
        translateY(-1px);

    opacity: 0.95;
}


.action-button.secondary {
    background:
        rgba(255,255,255,0.035);

    border:
        1px solid
        rgba(255,255,255,0.07);

    color: #c4c4d1;
}


/* =========================================
   PANELES
========================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 20px;

    margin-bottom: 20px;
}


.dashboard-panel {
    border-radius: 20px;

    padding: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(17,17,33,0.93),
            rgba(9,9,24,0.96)
        );

    border:
        1px solid
        rgba(255,255,255,0.06);
}


.panel-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.panel-label {
    display: block;

    color: #a458ff;

    font-size: 9px;

    letter-spacing: 3px;

    margin-bottom: 8px;
}


.dashboard-panel h2 {
    font-size: 18px;
}


.chart-container {
    height: 300px;

    position: relative;
}


/* =========================================
   BALANCE
========================================= */

.balance-item {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 16px 0;

    color: #9293a5;

    font-size: 12px;
}


.balance-item strong {
    color: white;
}


.balance-line {
    height: 1px;

    background:
        rgba(255,255,255,0.06);

    margin: 10px 0;
}


.balance-item.total {
    color: #c696ff;
}


.balance-item.total strong {
    color: #b673ff;

    font-size: 20px;
}


/* =========================================
   TABLAS
========================================= */

.movements-panel {
    margin-bottom: 40px;
}


.table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.movements-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 850px;
}


.movements-table th {
    text-align: left;

    color: #5f6073;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;

    padding: 14px 12px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.05);
}


.movements-table td {
    padding: 18px 12px;

    color: #aaaabb;

    font-size: 11px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.035);
}


.type,
.status {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 50px;

    font-size: 9px;
}


.type.income {
    color: #bd8dff;

    background:
        rgba(124,60,255,0.09);
}


.type.expense {
    color: #ff9aa4;

    background:
        rgba(255,92,110,0.08);
}


.status.completed {
    color: #a980ff;

    background:
        rgba(124,60,255,0.09);
}


.status.pending {
    color: #e0b5ff;

    background:
        rgba(180,108,255,0.08);
}


.delete-movement {
    border: none;

    background:
        rgba(255,255,255,0.04);

    color: #aaaabb;

    border-radius: 8px;

    padding: 7px 10px;

    cursor: pointer;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;
}


.delete-movement:hover {
    background:
        rgba(255,90,110,0.10);

    color: #ff9aa4;
}


.empty-movements {
    display: none;

    text-align: center;

    padding: 35px;

    color: #68697c;

    font-size: 12px;
}


/* =========================================
   ACCIONES INGRESOS
========================================= */

.movement-actions {
    display: flex;

    align-items: center;

    gap: 8px;
}


.complete-income-button {
    padding: 8px 11px;

    border-radius: 8px;

    font-size: 9px;

    white-space: nowrap;

    background:
        linear-gradient(
            90deg,
            #6f35ff,
            #a75cff
        );

    box-shadow:
        0 5px 18px
        rgba(124,60,255,0.16);
}


/* =========================================
   CLIENTES
========================================= */

.client-search input {
    width: 250px;

    padding: 11px 14px;

    border-radius: 10px;

    border:
        1px solid
        rgba(255,255,255,0.08);

    background: #111124;

    color: white;

    outline: none;

    font-family:
        "Montserrat",
        sans-serif;
}


.client-search input:focus {
    border-color:
        rgba(180,108,255,0.7);
}


.client-name {
    color: white;

    font-weight: 600;
}


.client-debt {
    color: #c084ff;

    font-weight: 600;
}


.client-no-debt {
    color: #74758a;
}


/* =========================================
   MODALES
========================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(2,2,10,0.82);

    backdrop-filter:
        blur(8px);

    z-index: 9999;
}


.modal-overlay.active {
    display: flex;
}


.movement-modal {
    width: 100%;

    max-width: 650px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 32px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #161629,
            #0c0c1c
        );

    border:
        1px solid
        rgba(164,88,255,0.20);
}


.modal-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 30px;
}


.modal-label {
    display: block;

    color: var(--violet-light);

    font-size: 9px;

    letter-spacing: 3px;

    margin-bottom: 8px;
}


.modal-close {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    border:
        1px solid
        rgba(255,255,255,0.07);

    background:
        rgba(255,255,255,0.03);

    color: white;

    font-size: 24px;

    cursor: pointer;
}


.modal-form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 0 18px;
}


.full-width {
    grid-column:
        1 / -1;
}


.modal-actions {
    display: flex;

    justify-content: flex-end;

    gap: 12px;
}


.modal-cancel-button,
.modal-save-button {
    padding: 13px 18px;

    border: none;

    border-radius: 11px;

    cursor: pointer;

    font-family:
        "Montserrat",
        sans-serif;

    font-weight: 600;
}


.modal-cancel-button {
    background:
        rgba(255,255,255,0.05);

    color: #aaaabb;
}


.modal-save-button {
    color: white;

    background:
        linear-gradient(
            90deg,
            #692cff,
            #a052ff
        );
}


/* =========================================
   REPORTES
========================================= */

.report-filter {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px;

    margin-bottom: 25px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(17,17,33,0.93),
            rgba(9,9,24,0.96)
        );

    border:
        1px solid
        rgba(255,255,255,0.06);
}


.report-filter select {
    padding: 10px 14px;

    border-radius: 10px;

    background: #111124;

    color: white;

    border:
        1px solid
        rgba(255,255,255,0.08);

    font-family:
        "Montserrat",
        sans-serif;
}


.report-actions {
    display: flex;

    align-items: center;

    gap: 12px;
}


.report-actions select {
    min-width: 170px;
}


#downloadReportButton {
    white-space: nowrap;
}


.report-secondary-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 18px;

    margin-bottom: 20px;
}


.report-big-number {
    display: block;

    margin-top: 20px;

    font-size: 36px;

    color: #b46cff;
}


.report-description {
    margin-top: 10px;

    color: #77798c;

    font-size: 11px;

    line-height: 1.6;
}


.report-chart-panel {
    margin-bottom: 20px;
}


/* =========================================
   CONFIGURACIÓN
========================================= */

.settings-layout {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 20px;

    align-items: start;
}


.settings-panel {
    margin-bottom: 35px;
}


.settings-form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 0 18px;
}


.settings-form-grid textarea {
    width: 100%;

    resize: vertical;

    min-height: 110px;

    padding: 15px 17px;

    border-radius: 12px;

    border:
        1px solid
        rgba(255,255,255,0.08);

    background:
        #111124;

    color:
        #ffffff;

    outline: none;

    font-family:
        "Montserrat",
        sans-serif;

    line-height: 1.6;
}


.settings-form-grid textarea:focus {
    border-color:
        rgba(180,108,255,0.7);

    box-shadow:
        0 0 0 3px
        rgba(124,60,255,0.10);
}


.settings-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 5px;
}


.settings-preview {
    position: sticky;

    top: 38px;
}


.business-preview-avatar {
    width: 70px;
    height: 70px;

    margin:
        28px auto
        18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #692cff,
            #a052ff
        );

    box-shadow:
        0 12px 40px
        rgba(124,60,255,0.22);

    font-size: 26px;

    font-weight: 700;
}


.settings-preview h3 {
    text-align: center;

    font-size: 20px;

    margin-bottom: 8px;
}


.business-preview-description {
    text-align: center;

    color: #85869a;

    font-size: 11px;

    line-height: 1.6;

    min-height: 35px;
}


.business-preview-line {
    height: 1px;

    background:
        rgba(255,255,255,0.06);

    margin: 25px 0;
}


.business-preview-item {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    padding: 13px 0;

    border-bottom:
        1px solid
        rgba(255,255,255,0.035);
}


.business-preview-item span {
    color: #77798c;

    font-size: 10px;
}


.business-preview-item strong {
    max-width: 60%;

    text-align: right;

    color: #d9d9e4;

    font-size: 10px;

    font-weight: 500;

    overflow-wrap: anywhere;
}


/* =========================================
   TOAST
========================================= */

.nexora-toast {
    position: fixed;

    right: 30px;
    bottom: 30px;

    padding: 15px 20px;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #692cff,
            #a052ff
        );

    color: white;

    font-size: 11px;

    font-weight: 600;

    box-shadow:
        0 15px 45px
        rgba(0,0,0,0.35);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px);

    transition:
        0.3s ease;

    z-index: 10000;
}


.nexora-toast.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (
    max-width: 1150px
) {

    .summary-grid {
        grid-template-columns:
            repeat(2,1fr);
    }


    .dashboard-grid {
        grid-template-columns:
            1fr;
    }

}


@media (
    max-width: 1000px
) {

    .settings-layout {
        grid-template-columns:
            1fr;
    }


    .settings-preview {
        position: relative;

        top: auto;
    }

}


@media (
    max-width: 900px
) {

    .client-summary-grid,
    .report-secondary-grid {
        grid-template-columns:
            1fr;
    }

}


@media (
    max-width: 850px
) {

    .login-container {
        grid-template-columns:
            1fr;
    }


    .dashboard-layout {
        grid-template-columns:
            1fr;
    }


    .sidebar {
        height: auto;

        position: relative;
    }


    .sidebar-menu {
        display: grid;

        grid-template-columns:
            repeat(2,1fr);
    }


    .dashboard-main {
        padding:
            25px 18px;
    }


    .dashboard-header {
        flex-direction: column;

        align-items: flex-start;
    }


    .header-right {
        width: 100%;

        flex-wrap: wrap;
    }

}


@media (
    max-width: 700px
) {

    .report-actions {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }


    .report-actions select,
    #downloadReportButton {
        width: 100%;
    }


    .movement-actions {
        flex-direction: column;

        align-items: stretch;
    }

}


@media (
    max-width: 650px
) {

    .settings-form-grid {
        grid-template-columns:
            1fr;
    }


    .settings-actions
    .action-button {
        width: 100%;
    }


    .nexora-toast {
        left: 18px;

        right: 18px;

        bottom: 18px;

        text-align: center;
    }

}


@media (
    max-width: 600px
) {

    .summary-grid {
        grid-template-columns:
            1fr;
    }


    .sidebar-menu {
        grid-template-columns:
            1fr;
    }


    .header-right {
        flex-direction: column;

        align-items: stretch;
    }


    .currency-selector {
        justify-content:
            space-between;
    }


    .client-search input {
        width: 100%;
    }


    .quick-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .modal-form-grid {
        grid-template-columns:
            1fr;
    }


    .full-width {
        grid-column: auto;
    }


    .report-filter {
        flex-direction: column;

        align-items: stretch;
    }

}/* =========================================
   COTIZACIÓN DE MONEDAS
========================================= */

.exchange-rate-card {
    margin-bottom: 25px;

    padding: 25px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(21, 16, 45, 0.96),
            rgba(9, 9, 24, 0.97)
        );

    border:
        1px solid
        rgba(160, 82, 255, 0.20);

    box-shadow:
        0 18px 55px
        rgba(0, 0, 0, 0.16);
}


.settings-exchange-card {
    margin-bottom: 25px;
}


.exchange-rate-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.exchange-rate-header h2 {
    font-size: 18px;

    margin-bottom: 7px;
}


.exchange-rate-header p {
    color: #77798d;

    font-size: 10px;

    line-height: 1.6;
}


.exchange-refresh-button {
    border:
        1px solid
        rgba(180, 108, 255, 0.25);

    border-radius: 11px;

    padding: 10px 15px;

    background:
        rgba(124, 60, 255, 0.08);

    color: #c494ff;

    cursor: pointer;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    transition: 0.2s ease;

    white-space: nowrap;
}


.exchange-refresh-button:hover {
    background:
        rgba(124, 60, 255, 0.16);

    color: white;
}


.exchange-refresh-button:disabled {
    opacity: 0.6;

    cursor: wait;
}


.exchange-rate-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


.exchange-rate-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid
        rgba(255, 255, 255, 0.055);
}


.exchange-currency {
    width: 52px;

    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #692cff,
            #a052ff
        );

    color: white;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    box-shadow:
        0 10px 30px
        rgba(124, 60, 255, 0.18);
}


.exchange-rate-item span {
    display: block;

    color: #77798c;

    font-size: 9px;

    margin-bottom: 7px;
}


.exchange-rate-item strong {
    display: block;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;
}


.exchange-rate-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 18px;

    padding-top: 16px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.05);

    color: #727388;

    font-size: 9px;
}


.exchange-status {
    display: flex;

    align-items: center;

    gap: 8px;
}


.exchange-status-dot {
    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #74758a;

    box-shadow:
        0 0 10px
        rgba(255, 255, 255, 0.08);
}


.exchange-status-dot.success {
    background: #9f5cff;

    box-shadow:
        0 0 12px
        rgba(159, 92, 255, 0.6);
}


.exchange-status-dot.warning {
    background: #d7a3ff;

    box-shadow:
        0 0 12px
        rgba(215, 163, 255, 0.45);
}


.exchange-status-dot.error {
    background: #ff7285;

    box-shadow:
        0 0 12px
        rgba(255, 114, 133, 0.45);
}


@media (max-width: 750px) {

    .exchange-rate-header {
        flex-direction: column;

        align-items: stretch;
    }


    .exchange-refresh-button {
        width: 100%;
    }


    .exchange-rate-grid {
        grid-template-columns: 1fr;
    }


    .exchange-rate-footer {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 450px) {

    .exchange-rate-item strong {
        font-size: 13px;
    }

}/* =========================================
   MENSAJES LOGIN / REGISTRO
========================================= */

.login-message {
    min-height: 20px;
    margin: 10px 0;
    font-size: 10px;
    line-height: 1.6;
    color: #9b9cad;
}

.login-message.error {
    color: #ff7b8d;
}

.login-message.success {
    color: #b986ff;
}

.login-message.info {
    color: #aaaaBC;
}

.login-button:disabled,
.modal-save-button:disabled,
.forgot-password-button:disabled {
    opacity: 0.6;
    cursor: wait;
}/* =====================================================
   NEXORA - LOGIN NUEVO
===================================================== */

body.login-body {
    margin: 0;
    min-height: 100vh;

    font-family:
        "Montserrat",
        sans-serif;

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(96, 40, 180, 0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #030613 0%,
            #08091b 45%,
            #130a2d 100%
        );

    color: #ffffff;
}


.nexora-login-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    box-sizing: border-box;
}


.nexora-login-card {
    width: min(1120px, 100%);
    min-height: 650px;

    display: grid;

    grid-template-columns:
        1.12fr
        0.88fr;

    overflow: hidden;

    border-radius: 28px;

    background:
        rgba(6, 7, 22, 0.96);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    box-shadow:
        0 35px 100px
        rgba(0, 0, 0, 0.45);
}


/* =====================================================
   PANEL IZQUIERDO
===================================================== */

.nexora-login-brand {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 45px 55px;

    box-sizing: border-box;

    background:
        radial-gradient(
            circle at 40% 30%,
            rgba(124, 60, 255, 0.16),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #02040f,
            #060719
        );

    border-right:
        1px solid
        rgba(255, 255, 255, 0.05);
}


.nexora-brand-top {
    width: 100%;

    margin-bottom: 55px;
}


.nexora-login-logo {
    width: 92px !important;
    height: 92px !important;

    display: block;

    object-fit: cover;

    border-radius: 20px;

    box-shadow:
        0 15px 45px
        rgba(124, 60, 255, 0.20);
}


.nexora-brand-content {
    max-width: 480px;
}


.nexora-brand-label {
    display: inline-block;

    margin-bottom: 18px;

    color: #a86bff;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.2px;
}


.nexora-brand-content h1 {
    margin: 0 0 22px;

    font-size: clamp(
        36px,
        4vw,
        52px
    );

    line-height: 1.07;

    font-weight: 650;

    letter-spacing: -2px;
}


.nexora-brand-content h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #b977ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.nexora-brand-content > p {
    max-width: 440px;

    margin: 0;

    color: #9294aa;

    font-size: 13px;

    line-height: 1.8;
}


.nexora-feature-list {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 16px 22px;

    margin-top: 38px;
}


.nexora-feature-item {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #b2b3c2;

    font-size: 11px;

    line-height: 1.5;
}


.nexora-feature-item span {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7333ff,
            #c166ff
        );

    box-shadow:
        0 0 13px
        rgba(164, 82, 255, 0.65);
}


.nexora-brand-footer {
    margin-top: auto;

    display: flex;
    flex-direction: column;

    gap: 5px;
}


.nexora-brand-footer strong {
    font-size: 12px;

    letter-spacing: 2px;
}


.nexora-brand-footer small {
    color: #646579;

    font-size: 9px;
}


/* =====================================================
   PANEL DERECHO
===================================================== */

.nexora-login-form-side {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 55px;

    box-sizing: border-box;

    background:
        linear-gradient(
            160deg,
            rgba(14, 10, 34, 0.98),
            rgba(21, 10, 48, 0.96)
        );
}


.nexora-login-form-container {
    width: 100%;
    max-width: 360px;
}


.nexora-login-label {
    color: #9f5cff;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;
}


.nexora-login-form-container h2 {
    margin:
        11px 0
        10px;

    color: #ffffff;

    font-size: 30px;

    line-height: 1.2;

    font-weight: 600;
}


.nexora-login-description {
    margin:
        0 0
        32px;

    color: #85869a;

    font-size: 11px;

    line-height: 1.7;
}


.nexora-login-group {
    margin-bottom: 19px;
}


.nexora-login-group label {
    display: block;

    margin-bottom: 8px;

    color: #bebfca;

    font-size: 10px;

    font-weight: 500;
}


.nexora-login-group input {
    width: 100%;
    height: 47px;

    padding:
        0 15px;

    box-sizing: border-box;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.035);

    color: #ffffff;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 11px;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.nexora-login-group input::placeholder {
    color: #56576b;
}


.nexora-login-group input:focus {
    border-color:
        rgba(157, 82, 255, 0.7);

    background:
        rgba(255, 255, 255, 0.05);

    box-shadow:
        0 0 0 3px
        rgba(124, 60, 255, 0.10);
}


.nexora-login-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 2px;

    margin-bottom: 22px;
}


.nexora-remember {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #85869a;

    font-size: 9px;

    cursor: pointer;
}


.nexora-remember input {
    accent-color: #8c48ff;
}


.nexora-forgot-button {
    padding: 0;

    border: none;

    background: transparent;

    color: #a86bff;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;

    cursor: pointer;
}


.nexora-forgot-button:hover {
    color: #d0aaff;
}


.nexora-login-button {
    width: 100%;
    height: 48px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #6c31ff,
            #a953ff
        );

    color: #ffffff;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 11px;

    font-weight: 650;

    cursor: pointer;

    box-shadow:
        0 12px 35px
        rgba(124, 60, 255, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.nexora-login-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 15px 42px
        rgba(124, 60, 255, 0.34);
}


.nexora-login-button:disabled {
    opacity: 0.65;

    cursor: wait;

    transform: none;
}


.login-message {
    min-height: 18px;

    margin-bottom: 10px;

    font-size: 9px;

    line-height: 1.5;
}


.login-message.error {
    color: #ff7488;
}


.login-message.success {
    color: #bb81ff;
}


.login-message.info {
    color: #a8a9ba;
}


/* =====================================================
   REGISTRO
===================================================== */

.nexora-register-box {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 23px;

    color: #797a8e;

    font-size: 9px;
}


.nexora-register-box button {
    padding: 0;

    border: none;

    background: transparent;

    color: #b77cff;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 9px;

    font-weight: 600;

    cursor: pointer;
}


.nexora-register-box button:hover {
    color: #d9b7ff;
}


.nexora-security {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 7px;

    margin-top: 28px;

    color: #5d5e71;

    font-size: 8px;
}


.nexora-security span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #9250ff;

    box-shadow:
        0 0 9px
        rgba(146, 80, 255, 0.8);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .nexora-login-card {
        grid-template-columns: 1fr;

        max-width: 620px;
    }


    .nexora-login-brand {
        min-height: 430px;

        padding: 38px;
    }


    .nexora-brand-top {
        margin-bottom: 30px;
    }


    .nexora-brand-footer {
        margin-top: 35px;
    }


    .nexora-login-form-side {
        padding:
            50px 38px;
    }

}


@media (max-width: 550px) {

    .nexora-login-page {
        padding: 18px;
    }


    .nexora-login-card {
        border-radius: 20px;
    }


    .nexora-login-brand {
        padding: 30px 25px;
    }


    .nexora-login-logo {
        width: 70px !important;
        height: 70px !important;
    }


    .nexora-brand-content h1 {
        font-size: 34px;

        letter-spacing: -1.2px;
    }


    .nexora-feature-list {
        grid-template-columns: 1fr;
    }


    .nexora-login-form-side {
        padding:
            40px 25px;
    }


    .nexora-login-options {
        align-items: flex-start;

        flex-direction: column;
    }

}/* =========================================
   PROTECCIÓN DE SESIÓN
========================================= */

body.auth-checking .dashboard-layout {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dashboard-layout {
    transition: opacity 0.18s ease;
}/* =========================================
   NEXORA - BUSCADORES, FILTROS Y NOTAS
========================================= */

.dashboard-body .table-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.dashboard-body #movementPageSearch,
.dashboard-body #clientSearch,
.dashboard-body #accountsSearch,
.dashboard-body #movementPageStatusFilter,
.dashboard-body #reportPeriod,
.dashboard-body #clientNotes {
    box-sizing: border-box;

    border: 1px solid rgba(174, 98, 255, 0.20);
    border-radius: 12px;

    background-color: #101022;
    color: #eeeaf8;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.5;

    outline: none;
    color-scheme: dark;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-body #movementPageSearch,
.dashboard-body #clientSearch,
.dashboard-body #accountsSearch {
    width: 360px;
    max-width: 100%;
    min-height: 46px;
    padding: 12px 16px;
}

.dashboard-body #movementPageStatusFilter,
.dashboard-body #reportPeriod {
    min-height: 46px;
    max-width: 100%;
    padding: 12px 42px 12px 16px;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b77cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.dashboard-body #movementPageStatusFilter option,
.dashboard-body #reportPeriod option {
    background-color: #101022;
    color: #eeeaf8;
}

.dashboard-body #clientNotes {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 15px 18px;
    resize: vertical;
}

.dashboard-body #movementPageSearch::placeholder,
.dashboard-body #clientSearch::placeholder,
.dashboard-body #accountsSearch::placeholder,
.dashboard-body #clientNotes::placeholder {
    color: #85819c;
    opacity: 1;
}

.dashboard-body #movementPageSearch:hover,
.dashboard-body #clientSearch:hover,
.dashboard-body #accountsSearch:hover,
.dashboard-body #movementPageStatusFilter:hover,
.dashboard-body #reportPeriod:hover,
.dashboard-body #clientNotes:hover {
    border-color: rgba(174, 98, 255, 0.40);
}

.dashboard-body #movementPageSearch:focus,
.dashboard-body #clientSearch:focus,
.dashboard-body #accountsSearch:focus,
.dashboard-body #movementPageStatusFilter:focus,
.dashboard-body #reportPeriod:focus,
.dashboard-body #clientNotes:focus {
    background-color: #141129;
    border-color: #9f5cff;

    box-shadow:
        0 0 0 3px rgba(159, 92, 255, 0.12);
}

@media (max-width: 600px) {
    .dashboard-body .table-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-body #movementPageSearch,
    .dashboard-body #clientSearch,
    .dashboard-body #accountsSearch,
    .dashboard-body #movementPageStatusFilter,
    .dashboard-body #reportPeriod {
        width: 100%;
    }
}/* =========================================
   NEXORA - CAMPOS DE NOTAS
   ========================================= */

.movement-modal textarea,
#nexoraSaleModal textarea {
    width: 100%;
    min-height: 115px;
    padding: 14px 16px;

    background: #111020 !important;
    color: #eeeaf7 !important;

    border: 1px solid rgba(183, 124, 255, 0.28) !important;
    border-radius: 14px;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;

    resize: vertical;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.movement-modal textarea::placeholder,
#nexoraSaleModal textarea::placeholder {
    color: #8f879f !important;
}

.movement-modal textarea:focus,
#nexoraSaleModal textarea:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
}

.movement-modal textarea:disabled,
#nexoraSaleModal textarea:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}#nxSalesPayments {
    position: fixed;
    inset: 0;
    margin: auto;
}