:root {
    /* Background */
    --background: #0D1B2A;
    --background-dark: #08121F;
    --background-deep: #050D16;
    --sidebar: #08121F;
    --sidebar-hover: #142235;

    /* Surfaces */
    --card: rgba(255, 255, 255, 0.035);
    --card-hover: rgba(255, 255, 255, 0.055);
    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.065);
    --surface-strong: rgba(255, 255, 255, 0.075);

    /* Text */
    --text: #FFFFFF;
    --white: #FFFFFF;
    --muted: #A6AFB5;
    --muted-dark: #7F8B99;
    --text-soft: #8F9BAA;

    /* Brand */
    --primary: #D4A017;
    --primary-light: rgba(212, 160, 23, 0.12);
    --primary-hover: #E8B84B;
    --gold: #D4A017;
    --gold-light: rgba(212, 160, 23, 0.12);
    --gold-soft: rgba(212, 160, 23, 0.07);
    --gold-border: rgba(212, 160, 23, 0.30);
    --gold-glow: rgba(212, 160, 23, 0.18);

    /* Status */
    --green: #28C76F;
    --green-light: rgba(40, 199, 111, 0.10);
    --purple: #B98AF7;
    --purple-light: rgba(185, 138, 247, 0.10);
    --orange: #E8B84B;
    --orange-light: rgba(232, 184, 75, 0.10);
    --blue: #60A5FA;
    --blue-light: rgba(96, 165, 250, 0.10);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.10);

    /* Borders */
    --border: rgba(255, 255, 255, 0.09);
    --border-soft: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --border-focus: rgba(212, 160, 23, 0.65);

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-card: 18px;
    --radius-pill: 999px;
    --radius: 16px;

    /* Shadows */
    --shadow-xs: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.24);
    --shadow-xl: 0 25px 70px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 10px 30px rgba(212, 160, 23, 0.14);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: 0.18s var(--ease);
    --transition: 0.25s var(--ease);
    --transition-slow: 0.35s var(--ease);

    /* Login aliases */
    --bg-main: #0D1B2A;
    --bg-card: #101F30;
    --bg-input: #0B1725;
    --gold-hover: #E8B84B;
    --text-main: #FFFFFF;
    --text-secondary: #A6AFB5;
    --text-muted: #77838D;
    --radius-input: 10px;
}


/* =========================================================
   02. GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(212, 160, 23, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(35, 75, 115, 0.08),
            transparent 30%
        ),
        var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::selection {
    background: rgba(212, 160, 23, 0.30);
    color: #FFFFFF;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input::placeholder,
textarea::placeholder {
    color: rgba(166, 175, 181, 0.45);
}


/* =========================================================
   03. ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(212, 160, 23, 0.80);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   04. DASHBOARD LAYOUT
   ========================================================= */

.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.main {
    width: calc(100% - 265px);
    min-height: 100vh;
    margin-left: 265px;
}


/* =========================================================
   05. SIDEBAR
   ========================================================= */

.sidebar {
    width: 265px;
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            rgba(8, 18, 31, 0.98),
            rgba(5, 13, 22, 0.99)
        );

    color: #FFFFFF;
    border-right: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow:
        8px 0 30px rgba(0, 0, 0, 0.18);

    transition:
        transform var(--transition-slow),
        box-shadow var(--transition);
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    height: 90px;
    flex-shrink: 0;

    display: flex;
    align-items: center;

    padding: 0 24px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 11px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #E8B84B 0%,
            #D4A017 45%,
            #8C6B15 100%
        );

    color: #0D1B2A;
    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 5px 18px rgba(212, 160, 23, 0.15);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.logo:hover .logo-icon {
    transform: translateY(-1px) rotate(-2deg);
    box-shadow:
        0 8px 24px rgba(212, 160, 23, 0.24);
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-text strong {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.8px;
}

.logo-text span {
    margin-top: 3px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 1.5px;
}


/* =========================================================
   MENU
   ========================================================= */

.menu {
    flex: 1;
    min-height: 0;

    padding: 24px 14px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(212, 160, 23, 0.35)
        transparent;
}

.menu-section {
    margin-bottom: 28px;
}

.menu-title {
    display: block;
    padding: 0 12px 10px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}


/* =========================================================
   MENU ITEMS
   ========================================================= */

.menu-item {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    padding: 0 13px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;

    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.menu-item i {
    width: 18px;
    flex-shrink: 0;

    text-align: center;
    font-size: 15px;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.045);
    color: #FFFFFF;
    transform: translateX(2px);
}

.menu-item:hover i {
    transform: scale(1.05);
}

.menu-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(212, 160, 23, 0.16),
            rgba(212, 160, 23, 0.07)
        );

    color: #FFFFFF;

    box-shadow:
        inset 3px 0 0 #D4A017,
        0 0 20px rgba(212, 160, 23, 0.04);
}

.menu-item.active i {
    color: var(--gold);
}

.menu-item.admin {
    color: #E8B84B;
}

.menu-item.admin:hover {
    background: rgba(212, 160, 23, 0.10);
}


/* =========================================================
   KYC STATUS
   ========================================================= */

.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;

    margin-left: auto;

    border-radius: 50%;
    background: #22C55E;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.08),
        0 0 10px rgba(34, 197, 94, 0.40);
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.sidebar-bottom {
    flex-shrink: 0;

    padding: 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================================================
   MOBILE APP
   ========================================================= */

.mobile-app {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px;
    margin-bottom: 12px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.mobile-app:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(212, 160, 23, 0.14);
}

.mobile-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
}

.mobile-app strong {
    display: block;
    font-size: 12px;
}

.mobile-app span {
    display: block;
    margin-top: 2px;

    color: #8F9BAA;
    font-size: 10px;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: var(--white);
    font-size: 15px;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.logout:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}


/* =========================================================
   06. HEADER
   ========================================================= */

.header {
    height: 90px;

    position: sticky;
    top: 0;
    z-index: 900;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 36px;

    background:
        linear-gradient(
            180deg,
            rgba(8, 18, 31, 0.94),
            rgba(8, 18, 31, 0.86)
        );

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-label {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header h1 {
    margin-top: 3px;

    color: #FFFFFF;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}


/* =========================================================
   HEADER RIGHT
   ========================================================= */

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.notification {
    width: 34px;
    height: 34px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: transparent;
    color: #A6AFB5;
    font-size: 18px;

    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}

.notification:hover {
    color: var(--gold);
    background: rgba(212, 160, 23, 0.08);
}

.notification span {
    width: 6px;
    height: 6px;

    position: absolute;
    top: 2px;
    right: 3px;

    border-radius: 50%;
    background: #EF4444;

    box-shadow:
        0 0 0 3px rgba(239, 68, 68, 0.08);
}


/* =========================================================
   USER
   ========================================================= */

.user {
    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;
}

.user img {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15);
}

.user-info {
    min-width: 0;
}

.user-info strong {
    display: block;

    color: #FFFFFF;
    font-size: 13px;
}

.user-info span {
    display: block;
    margin-top: 2px;

    color: var(--gold);
    font-size: 10px;
}

.user > i {
    margin-left: 4px;

    color: #7F8B99;
    font-size: 10px;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;

    width: 38px;
    height: 38px;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
    font-size: 18px;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.mobile-menu:hover {
    background: rgba(212, 160, 23, 0.10);
    color: var(--gold);
}


/* =========================================================
   07. CONTENT
   ========================================================= */

.content {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;
    padding: 32px 36px 50px;
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 28px;
}

.welcome-label {
    color: white;
    font-size: 16px;
}

.welcome h2 {
    margin-top: 5px;

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #E8B84B 80%
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.6px;
}

.welcome p {
    max-width: 700px;
    margin-top: 5px;
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   SUPPORT ID
   ========================================================= */

.support {
    min-width: 220px;
    display: flex;
    flex-direction: column;

    padding: 13px 17px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: var(--shadow-md);
}

.support span {
    color: var(--white);
    font-size: 12px;
}

.support strong {
    margin-top: 3px;

    color: #FFFFFF;
    font-size: 18px;
}

.support small {
    margin-top: 3px;

    color: var(--white);
    font-size: 12px;
}


/* =========================================================
   08. STATS
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;

    margin-bottom: 20px;
}

.stat-card {
    min-width: 0;
    position: relative;
    padding: 20px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-md);
    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 160, 23, 0.35),
            transparent
        );

    opacity: 0.6;
}

.stat-card:hover {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.035)
        );

    border-color: rgba(212, 160, 23, 0.28);

    transform: translateY(-2px);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.20),
        0 0 30px rgba(212, 160, 23, 0.035);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 15px;
}

.stat-top > span {
    color: var(--white);
    font-size: 18px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.stat-card:hover .stat-icon {
    transform: translateY(-1px) scale(1.04);
}

.stat-icon.blue {
    color: var(--gold);
    background: var(--primary-light);
}

.stat-icon.green {
    color: var(--green);
    background: var(--green-light);
}

.stat-icon.purple {
    color: var(--purple);
    background: var(--purple-light);
}

.stat-icon.orange {
    color: var(--orange);
    background: var(--orange-light);
}

.stat-card > strong {
    display: block;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.5px;

    overflow-wrap: anywhere;
}

.stat-card .positive {
    color: var(--green);
}

.stat-description {
    display: block;

    margin-top: 5px;

    color: var(--white);
    font-size: 13px;
    line-height: 1.5;
}

.stat-description a {
    color: var(--gold);
    font-weight: 600;
}

.stat-description a:hover {
    color: var(--primary-hover);
}


/* =========================================================
   09. GENERIC CARD
   ========================================================= */

.card {
    position: relative;
    padding: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.card:hover {
    border-color: rgba(212, 160, 23, 0.20);
}

.card-header,
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.card-label {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h3 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;

}


.information-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.information-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.information-icon {
    flex-shrink: 0;
}

.information-item p {
    margin: 0;
    color: var(--white);
    font-size: 13px;
    line-height: 1.5;
}

.information-card .stat-icon i {
    color: #3b82f6 !important;
}


.market-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-filter label {
    color: var(--white);
    font-size: 14px;
}

.market-filter select {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #111f2e;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.market-filter select:focus {
    outline: none;
    border-color: var(--gold);
}

.market-filter option {
    background: #0d1b2a;
    color: #fff;
}

/* =========================================================
   NUEVA SOLICITUD — WITHDRAW
========================================================= */

.withdrawal-card,
.withdrawal-help {
    background: #0d1b2a;
}

.withdrawal-form {
    margin-top: 20px;
}

.withdrawal-form .form-group {
    margin-bottom: 18px;
}


/* =========================================================
   LABELS
========================================================= */

.withdrawal-form label {
    display: block;

    margin-bottom: 7px;

    color: #fff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.withdrawal-form input,
.withdrawal-form select,
.withdrawal-form textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid #26384a;
    border-radius: 6px;

    background: #111f2e;
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.withdrawal-form input::placeholder,
.withdrawal-form textarea::placeholder {
    color: var(--white);
    opacity: 1;
}
.withdrawal-form input:focus,
.withdrawal-form select:focus,
.withdrawal-form textarea:focus {
    outline: none;

    border-color: #d4a017;

    background: #122234;

    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.10);
}

.withdrawal-form select {
    cursor: pointer;
}

.withdrawal-form select option {
    background: #0d1b2a;
    color: #fff;
}

.withdrawal-form textarea {
    min-height: 110px;
    resize: vertical;
}


.amount-input {
    width: 100%;
}

.amount-input input {
    display: block;

    width: 100%;

    margin: 0;
}


/* Firefox */
.amount-input input[type="number"] {
    -moz-appearance: textfield;
}

/* Chrome / Chromium / Edge */
.amount-input input[type="number"]::-webkit-inner-spin-button,
.amount-input input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
}

#withdrawal-amount-help,
#withdrawal-method-help,
#withdrawal-destination-help {
    display: block;
    margin-top: 6px;
    color:  var(--white);
    font-size: 13px;
    line-height: 1.5;
}

#withdrawal-amount-error,
#withdrawal-method-error,
#withdrawal-destination-error {
    display: block;
    margin-top: 5px;
    color: #ff6b6b;
    font-size: 13px;
    line-height: 1.5;
}

.withdrawal-header-icon,
.withdrawal-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.withdrawal-header-icon i {
    color: #f59e0b;
    font-size: 18px;
}

.withdrawal-help-icon i {
    color: #3b82f6;
    font-size: 18px;
}


#withdrawal_confirmation {
    width: auto;
    margin: 3px 0 0;
    color: var(--white);
    cursor: pointer;
}

label[for="withdrawal_confirmation"] {
    margin: 0;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.6;
    cursor: pointer;
}

#withdrawal-form > div:has(#withdrawal_confirmation) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

#withdrawal-submit {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;
}

#withdrawal-submit i {
    color: #fff;
}

#withdrawal-form-message {
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid #26384a;
    border-radius: 6px;
    background: #111f2e;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}



.withdrawal-help-text {
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
}

#withdrawal-minimum-info,
#withdrawal-processing-info,
#withdrawal-fee-info {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   INFORMACIÓN — ESPACIADO
========================================================= */

.withdrawal-help-text + div {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

/* =========================================================
   MIS RETIROS
========================================================= */

.withdrawal-history {
    background: #0d1b2a;
}

.withdrawal-history-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
}

.withdrawal-history-icon {
    display: inline-flex;
    align-items: center;
}

.withdrawal-history-icon i {
    color: #d4a017;
    font-size: 16px;
}
/* =========================================================
   TÍTULOS CON ICONOS
========================================================= */

.welcome-title,
.section-title-icon,
.stat-title {
    display: flex;

    align-items: center;

    gap: 10px;
}

.welcome-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex-shrink: 0;
}

.welcome-title h2 {
    margin: 0;
}

.section-title-icon h3 {
    margin: 0;
}

.stat-title {
    font-weight: 600;
}

.stat-title i {
    font-size: 14px;
}

.welcome-content > p {
    margin-top: 12px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .withdrawal-form {
        margin-top: 16px;
    }

    .withdrawal-form .form-group {
        margin-bottom: 16px;
    }


    /* Inputs un poco más cómodos en móvil */

    .withdrawal-form input,
    .withdrawal-form select,
    .withdrawal-form textarea {
        padding: 12px;

        font-size: 14px;
    }


    /* Monto */

    .amount-input input {
        width: 100%;
    }


    /* Textos */

    .withdrawal-help-text,
    #withdrawal-minimum-info,
    #withdrawal-processing-info,
    #withdrawal-fee-info {
        font-size: 12px;
    }


    /* Botón */

    #withdrawal-submit {
        width: 100%;
    }
}




/* =========================================================
   TÍTULOS CON ICONOS
========================================================= */

.welcome-title,
.section-title-icon,
.stat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.welcome-title h2 {
    margin: 0;
}

.section-title-icon h3 {
    margin: 0;
}

.stat-title {
    font-weight: 600;
}

.stat-title i {
    font-size: 14px;
}

.welcome-content > p {
    margin-top: 12px;
}


/* =========================================================
   FILTROS DE investment
========================================================= */

.transaction-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.transaction-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: .2s ease;
}

.transaction-filter:hover,
.transaction-filter.active {
    border-color: var(--gold);
    background: rgba(212, 160, 23, .06);
    transform: translateY(-1px);
}

.transaction-filter:active {
    transform: scale(.96);
}

.transaction-filter span {
    color: var(--white);
    font-size: 15px;
}

.transaction-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}


/* =========================================================
   DETALLE DEL ACTIVO
========================================================= */

.investment-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.investment-detail-hero h2 {
    margin: 5px 0 10px;
}

.investment-roi {
    text-align: right;
}

.investment-roi span,
.investment-roi small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.investment-roi strong {
    display: block;
    margin: 4px 0;
    color: var(--gold);
    font-size: 24px;
}


.investment-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.detail-stat,
.metric-card,
.return-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,.02);
    transition: .2s ease;
}

.detail-stat:hover,
.metric-card:hover,
.return-card:hover {
    border-color: rgba(212,160,23,.45);
    transform: translateY(-2px);
}

.detail-stat span,
.metric-card span,
.return-card > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: var(--white);
    font-size: 13px;
}

.detail-stat strong,
.metric-card strong {
    color: #fff;
    font-size: 16px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.metric-card strong.positive,
.positive {
    color: #22c55e;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.project-info-grid article {
    min-width: 0;
}

.project-info-grid .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.project-info-grid h4 {
    margin: 0 0 6px;
}

.project-info-grid p {
    margin: 0;
    color: var(--white);
    font-size: 13px;
    line-height: 1.5;
}


.returns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.return-card strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 17px;
}

.return-card p {
    margin: 0 0 10px;
    color: var(--white);
    font-size: 13px;
    line-height: 1.5;
}

.return-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--white);
    font-size: 13px;
}

.return-status i {
    font-size: 8px;
}

.table-wrapper {
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.table-wrapper th {
    color: var(--white);
    font-size: 10px;
    text-transform: uppercase;
}

.table-wrapper td {
    color: #fff;
    font-size: 13px;
}

.table-wrapper tbody tr {
    transition: .2s ease;
}

.table-wrapper tbody tr:hover {
    background: rgba(255,255,255,.025);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.detail-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .2s ease;
}

.detail-actions a:hover {
    transform: translateY(-2px);
}

.detail-actions a:active {
    transform: scale(.97);
}

/* =========================================================
   REGISTRO
========================================================= */

.register-page {
    min-height: 100vh;
}

.register-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.register-page .content {
    width: 100%;
}

.register-page .welcome {
    margin-bottom: 20px;
}

.register-page .welcome h2 {
    margin: 0 0 8px;
}

.register-page .welcome p {
    max-width: 650px;
    margin: 0;
    color: var(--white);
    font-size: 13px;
    line-height: 1.6;
}

.register-page .settings-card {
    overflow: hidden;
}

.register-page .section-header {
    align-items: center;
}

.register-page .section-header h3 {
    margin: 5px 0 0;
}

.register-page .level-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid rgba(212,160,23,.35);
    border-radius: 5px;
    color: var(--gold);
    background: rgba(212,160,23,.05);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.register-page .settings-form {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

.register-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.register-page .form-group {
    display: grid;
    gap: 7px;
}

.register-page .form-group label,
.register-page .profile-photo-field > label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.register-page .form-group input,
.register-page .profile-upload input {
    box-sizing: border-box;
}

.register-page .form-group input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: #fff;
    font: inherit;
    font-size: 13px;
    transition: .2s ease;
}

.register-page .form-group input::placeholder {
    color: var(--white);
}

.register-page .form-group input:hover {
    border-color: rgba(255,255,255,.15);
}

.register-page .form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(212,160,23,.025);
    box-shadow: 0 0 0 2px rgba(212,160,23,.08);
}

.profile-photo-field {
    display: grid;
    gap: 10px;
}

.profile-photo-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,.025);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-upload {
    min-width: 0;
}

.profile-upload input[type="file"] {
    width: 100%;
    color: var(--white);
    font-size: 13px;
}

.profile-upload input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255,255,255,.03);
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.profile-upload input[type="file"]::file-selector-button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.profile-upload p {
    margin: 7px 0 0;
    color: var(--white);
    font-size: 10px;
    line-height: 1.5;
}


#toggle-password,
#toggle-confirm-password {
    transition: .2s ease;
}

#toggle-password:hover,
#toggle-confirm-password:hover {
    color: var(--gold) !important;
}

#toggle-password:active,
#toggle-confirm-password:active {
    transform: translateY(-50%) scale(.92) !important;
}

#password,
#confirm-password {
    padding-right: 42px !important;
}

#password-length-indicator,
#password-match-indicator {
    transition: color .2s ease;
}

#terms {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--gold);
    cursor: pointer;
}

.register-page label[for="terms"] a {
    transition: color .2s ease;
}

.register-page label[for="terms"] a:hover {
    color: #fff !important;
}

#register-message {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
}

.register-page .support-box {
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255,255,255,.02);
}

.register-page .support-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.register-page .support-box strong {
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

.register-page .support-box span {
    line-height: 1.5;
    text-align: right;
}

.register-page .form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

#register-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 145px;
    transition: .2s ease;
}

#register-submit:hover {
    transform: translateY(-1px);
}

#register-submit:active {
    transform: scale(.97);
}

#register-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.register-page footer {
    padding: 18px 0 30px;
    text-align: center;
}

.register-page footer a {
    transition: color .2s ease;
}

.register-page footer a:hover {
    color: #fff !important;
}

#profile-photo-error,
#username-error,
#confirm-password-error {
    line-height: 1.4;
}



/* =========================================================
   10. DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 20px;

    margin-bottom: 20px;
}


/* =========================================================
   LEVEL CARD
   ========================================================= */

.level-card {
    overflow: hidden;
}

.level-badge {
    padding: 6px 10px;

    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 20px;

    color: var(--gold);
    background: var(--gold-light);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.level-description {
    margin: 16px 0 20px;

    color: var(--white);
    font-size: 13px;
    line-height: 1.6;
}

.level-card h4 {
    margin-bottom: 12px;
    color: #FFFFFF;
    font-size: 18px;
}


/* =========================================================
   BENEFITS
   ========================================================= */

.benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;

    margin-bottom: 22px;
}

.benefits div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--white);
    font-size: 13px;
    line-height: 1.4;
}

.benefits i {
    flex-shrink: 0;
    color: var(--green);
    font-size: 10px;
}


/* =========================================================
   LEVELS
   ========================================================= */

.levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.level {
    padding: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 9px;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.level:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.level span {
    font-size: 13px;
}

.level strong {
    display: block;
    margin-top: 8px;
    color: #FFFFFF;
    font-size: 13px;
}

.level small {
    color: var(--gold);
    font-size: 13px;
}

.level.platinum {
    background: var(--gold-light);
    border-color: rgba(212, 160, 23, 0.35);
}


/* =========================================================
   PERFORMANCE
   ========================================================= */

.performance-value {
    color: var(--green);
    font-size: 17px;
    font-weight: 700;
    text-align: right;
}

.performance-value span {
    display: block;
    margin-top: 3px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 400;
}


/* =========================================================
   CHART
   ========================================================= */

.chart {
    height: 250px;

    display: flex;

    margin-top: 25px;
}

.chart-y {
    width: 45px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding-bottom: 25px;
}

.chart-y span {
    color: var(--muted-dark);
    font-size: 9px;
}

.chart-area {
    position: relative;

    flex: 1;
    height: 220px;
    min-width: 0;
}

.grid-line {
    position: relative;
    height: 20%;

    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.chart-area svg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 220px;

    overflow: visible;
}

.chart-fill {
    fill: url(#gradient);
}

.chart-line {
    fill: none;
    stroke: #D4A017;
    stroke-width: 3;
    filter:
        drop-shadow(0 0 5px rgba(212, 160, 23, 0.18));
}

.months {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;

    display: flex;
    justify-content: space-between;
}

.months span {
    color: var(--muted-dark);
    font-size: 9px;
}


/* =========================================================
   11. FINANCIAL ROW
   ========================================================= */

.financial-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;

    margin-bottom: 20px;
}

.balance-card,
.exchange-card {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-md);

    transition:
        border-color var(--transition),
        transform var(--transition);
}

.balance-card:hover,
.exchange-card:hover {
    border-color: rgba(212, 160, 23, 0.20);
    transform: translateY(-1px);
}

.balance-card span,
.exchange-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 18px;
}

.balance-card strong {
    color: #FFFFFF;
    font-size: 25px;
    font-weight: 750;

    overflow-wrap: anywhere;
}

.balance-card a {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.balance-card a i {
    margin-left: 5px;
}

.balance-card a:hover {
    color: var(--primary-hover);
}


/* =========================================================
   EXCHANGE
   ========================================================= */

.exchange-card {
    justify-content: flex-start;
    gap: 15px;
}

.exchange-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-light);
    color: var(--green);

    border-radius: 12px;

    font-size: 20px;
}

.exchange-card strong {
    color: #FFFFFF;
    font-size: 23px;
}

.exchange-card small {
    display: block;

    color: var(--white);
    font-size: 13px;
}


/* =========================================================
   12. MOVEMENTS
   ========================================================= */

.movements {
    margin-bottom: 25px;
}

.section-header a {
    color: var(--gold);
    font-size: 18px;
    font-weight: 600;
}

.section-header a:hover {
    color: var(--primary-hover);
}

.movement {
    display: flex;
    align-items: center;

    padding-top: 20px;
    margin-top: 18px;

    border-top: 1px solid var(--border);
}

.movement-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 13px;

    background: var(--green-light);
    color: var(--green);

    border-radius: 10px;
}

.movement-info {
    flex: 1;
    min-width: 0;
}

.movement-info strong {
    display: block;
    color: var(--gold);
    font-size: 13px;
}

.movement-info span {
    display: inline-block;

    margin-top: 3px;

    color: var(--white);
    font-size: 13px;
}

.movement-info small {
    margin-left: 8px;

    color: var(--muted-dark);
    font-size: 9px;
}

.movement-amount {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   13. QUICK ACTIONS
   ========================================================= */

.section-title {
    margin-bottom: 12px;

    color: var(--white);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 30px;
}

.action {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid var(--border);
    border-radius: 12px;
    color: #FFFFFF;
    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.action:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 160, 23, 0.35);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.17);
}

.action > div {
    width: 35px;
    height: 35px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    font-size: 18px;

    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.action:hover > div {
    transform: scale(1.05);
}

.action:nth-child(1) > div {
    color: #D4A017;
    background: rgba(212, 160, 23, 0.10);
}

.action:nth-child(1):hover > div {
    color: #E8B84B;
    background: rgba(212, 160, 23, 0.17);
}

.action:nth-child(2) > div {
    color: #28C76F;
    background: rgba(40, 199, 111, 0.10);
}

.action:nth-child(2):hover > div {
    background: rgba(40, 199, 111, 0.17);
}

.action:nth-child(3) > div {
    color: #60A5FA;
    background: rgba(96, 165, 250, 0.10);
}

.action:nth-child(3):hover > div {
    background: rgba(96, 165, 250, 0.17);
}

.action:nth-child(4) > div {
    color: #B98AF7;
    background: rgba(185, 138, 247, 0.10);
}

.action:nth-child(4):hover > div {
    background: rgba(185, 138, 247, 0.17);
}

.action span {
    flex: 1;
    min-width: 0;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}

.action > i {
    flex-shrink: 0;

    color: var(--muted-dark);
    font-size: 9px;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.action:hover > i {
    color: var(--gold);
    transform: translateX(2px);
}


/* =========================================================
   14. PROJECTS
   ========================================================= */

.projects-section {
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;

    margin-top: 15px;
}

.project {
    min-width: 0;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-md);

    transition:
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.project:hover {
    border-color: rgba(212, 160, 23, 0.28);
    transform: translateY(-2px);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.18);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 15px;
}

.project-status {
    padding: 5px 8px;

    border-radius: 6px;

    color: var(--green);
    background: var(--green-light);

    font-size: 13px;
    font-weight: 700;
}

.project-type {
    color: var(--white);
    font-size: 18px;
}

.project h4 {
    min-height: 36px;

    margin-bottom: 18px;

    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.4;
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    color: var(--white);
    font-size: 13px;
}

.progress-info strong {
    color: #FFFFFF;
}

.progress {
    height: 5px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.progress span {
    display: block;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #A8790D,
            #D4A017,
            #E8B84B
        );

    border-radius: inherit;

    box-shadow:
        0 0 10px rgba(212, 160, 23, 0.20);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 18px;
}

.project-footer span {
    color: var(--white);
    font-size: 13px;
}

.project-footer strong {
    color: #FFFFFF;
}

.project-footer a {
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
}

.project-footer a:hover {
    color: var(--primary-hover);
}


/* =========================================================
   PROJECT BUTTON
   ========================================================= */

.project-footer button {
    padding: 8px 11px;

    border: 1px solid rgba(212, 160, 23, 0.30);
    border-radius: 8px;

    background: rgba(212, 160, 23, 0.08);
    color: var(--gold);

    font-size: 9px;
    font-weight: 700;

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.project-footer button:hover {
    transform: translateY(-1px);

    background: var(--gold);
    color: #0D1B2A;
    border-color: var(--gold);

    box-shadow: var(--shadow-gold);
}


/* =========================================================
   15. INVESTMENTS TABLE
   ========================================================= */

.investments {
    margin-bottom: 35px;
}

.table-container {
    width: 100%;

    margin-top: 20px;

    overflow-x: auto;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(212, 160, 23, 0.45)
        rgba(255, 255, 255, 0.04);
}

table {
    width: 100%;
    min-width: 650px;

    border-collapse: collapse;
}

th {
    padding: 12px 10px;

    color: var(--muted-white);
    font-size: 9px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.7px;

    border-bottom: 1px solid var(--border);
}

td {
    padding: 15px 10px;

    color: var(--muted);
    font-size: 11px;

    border-bottom: 1px solid var(--border);
}

tbody tr {
    transition:
        background var(--transition-fast);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-project {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);
    color: var(--gold);

    border-radius: 8px;
}

.table-project strong {
    color: #FFFFFF;
    font-size: 11px;
}

.table-amount {
    color: #FFFFFF;
    font-weight: 700;
    text-align: right;
}


/* =========================================================
   16. FUNDS FORM
   ========================================================= */

.funds-form {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 22px;

    margin-top: 22px;
}

.form-group {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
}

.form-group small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   AMOUNT INPUT
   ========================================================= */

.amount-input {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 10px;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.amount-input:focus-within {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(212, 160, 23, 0.55);

    box-shadow:
        0 0 0 3px rgba(212, 160, 23, 0.07);
}

.amount-input > span {
    width: 50px;
    height: 100%;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);
    font-size: 17px;
    font-weight: 700;

    background: rgba(212, 160, 23, 0.07);

    border-right: 1px solid var(--border);
}

.amount-input input {
    width: 100%;
    height: 100%;

    padding: 0 15px;

    border: none;
    outline: none;

    background: transparent;
    color: var(--gold);

    font-size: 15px;
}

.amount-input input:focus {
    outline: none;
}


/* =========================================================
   SELECT
   ========================================================= */

.form-group select {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;

    background: #101F30;
    color: #FFFFFF;

    font-size: 12px;
    cursor: pointer;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group select:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.form-group select:focus {
    border-color: rgba(212, 160, 23, 0.55);

    box-shadow:
        0 0 0 3px rgba(212, 160, 23, 0.07);
}

.form-group select option {
    background: #101F30;
    color: #FFFFFF;
}


/* =========================================================
   RECEIPT UPLOAD
   ========================================================= */

.receipt-upload {
    min-height: 190px;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 25px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px dashed rgba(212, 160, 23, 0.35);
    border-radius: 14px;

    text-align: center;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.receipt-upload:hover {
    transform: translateY(-1px);

    background: rgba(212, 160, 23, 0.035);
    border-color: rgba(212, 160, 23, 0.60);
}

.receipt-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 5px;

    border-radius: 14px;

    background: var(--primary-light);
    color: var(--gold);

    font-size: 21px;

    box-shadow:
        0 8px 25px rgba(212, 160, 23, 0.08);
}

.receipt-upload strong {
    color: #FFFFFF;
    font-size: 13px;
}

.receipt-upload > span {
    color: var(--muted-dark);
    font-size: 10px;
}

.receipt-upload input[type="file"] {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}


/* =========================================================
   PRIMARY ACTION
   ========================================================= */

.primary-action {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 1px solid var(--gold);
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #E8B84B 0%,
            #D4A017 48%,
            #B88912 100%
        );

    color: #0D1B2A;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(212, 160, 23, 0.12);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.primary-action:hover {
    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 14px 35px rgba(212, 160, 23, 0.22);
}

.primary-action:active {
    transform: translateY(0);
    box-shadow: var(--shadow-gold);
}


/* =========================================================
   PAYMENT OPTIONS
   ========================================================= */

.payment-option {
    display: block;

    cursor: pointer;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.payment-option:hover {
    transform: translateY(-2px);

    border-color: rgba(212, 160, 23, 0.35);
    background: rgba(255, 255, 255, 0.055);
}

.payment-option strong {
    display: block;

    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 35px 20px;

    margin-top: 20px;

    border-top: 1px solid var(--border);

    text-align: center;
}

.empty-state-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 15px;

    background: var(--primary-light);
    color: var(--gold);

    font-size: 22px;
}

.empty-state h3 {
    margin-bottom: 6px;

    color: #FFFFFF;
    font-size: 15px;
}

.empty-state p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   17. SETTINGS
   ========================================================= */

.settings-card {
    width: 100%;

    padding: 24px;
    margin-bottom: 25px;
}

.settings-card .section-header {
    width: 100%;
    margin-bottom: 24px;
}

.settings-card .section-header > div:first-child {
    min-width: 0;
}

.settings-card .section-header h3 {
    margin: 0;
}


/* =========================================================
   SUPPORT BOX
   ========================================================= */

.support-box {
    width: 100%;
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 14px 16px;
    margin-bottom: 26px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);
    border-radius: 12px;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.support-box:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(212, 160, 23, 0.18);
}

.support-box > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.support-box strong {
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
}

.support-box span {
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
}


/* =========================================================
   SECONDARY ACTION
   ========================================================= */

.secondary-action {
    min-height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 13px;

    border: 1px solid rgba(212, 160, 23, 0.30);
    border-radius: 8px;

    background: rgba(212, 160, 23, 0.07);
    color: var(--gold);

    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.secondary-action:hover {
    background: rgba(212, 160, 23, 0.14);
    border-color: rgba(212, 160, 23, 0.50);
    color: var(--primary-hover);

    transform: translateY(-1px);
}

.secondary-action i {
    font-size: 10px;
}


/* =========================================================
   SETTINGS FORM
   ========================================================= */

.settings-form {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* =========================================================
   PROFILE PHOTO
   ========================================================= */

.profile-photo-field {
    width: 100%;
}

.profile-photo-field > label {
    display: block;
    margin-bottom: 11px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
}

.profile-photo-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid var(--border);
    border-radius: 13px;
}

.profile-photo {
    width: 110px;
    height: 110px;
    min-width: 110px;
    max-width: 110px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(212, 160, 23, 0.35);
    border-radius: 50%;
    background: #101F30;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.20),
        0 0 0 5px rgba(212, 160, 23, 0.035);
}

.profile-upload {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-upload input[type="file"] {
    width: 100%;
    max-width: 330px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.035);
    color: var(--white);

    font-size: 13px;

    cursor: pointer;
}

.profile-upload input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(212, 160, 23, 0.30);
    border-radius: 7px;
    background: rgba(212, 160, 23, 0.09);
    color: var(--gold);
    font-size: 18x;
    font-weight: 700;
    cursor: pointer;
}

.profile-upload p {
    margin: 0;
    color: var(--white);
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.form-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.settings-form .form-group {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-form .form-group label {
    margin: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   SETTINGS INPUTS
   ========================================================= */

.settings-form .form-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;

    background: rgba(255, 255, 255, 0.035);
    color: #FFFFFF;

    font-size: 12px;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.settings-form .form-group input:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.settings-form .form-group input:focus {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(212, 160, 23, 0.55);

    box-shadow:
        0 0 0 3px rgba(212, 160, 23, 0.07);
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
    width: 100%;

    display: flex;
    justify-content: flex-end;

    padding-top: 3px;

    border-top: 1px solid var(--border);
}

.form-actions .primary-action {
    width: auto;
    min-width: 180px;
    min-height: 46px;

    padding: 0 20px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 5px;
    color: var(--white);
    font-size: 18px;
}


/* =========================================================
   18. LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    padding: 40px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% -5%,
            rgba(212, 160, 23, 0.13),
            transparent 38%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(35, 75, 115, 0.08),
            transparent 35%
        ),
        var(--bg-main);
}

.login-page::before {
    content: "";

    position: absolute;
    width: 420px;
    height: 420px;

    top: -250px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(212, 160, 23, 0.12),
            transparent 68%
        );

    filter: blur(10px);

    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 440px;

    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;

    padding: 38px 40px 30px;

    background:
        linear-gradient(
            145deg,
            rgba(16, 31, 48, 0.96),
            rgba(10, 23, 37, 0.96)
        );

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-card);

    box-shadow:
        var(--shadow-xl),
        0 0 50px rgba(212, 160, 23, 0.035);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 160, 23, 0.65),
            transparent
        );
}

.login-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -120px;
    right: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(212, 160, 23, 0.09),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   LOGIN BRAND
   ========================================================= */

.login-brand {
    display: flex;
    justify-content: center;

    margin-bottom: 34px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--text-main);

    transition:
        transform var(--transition);
}

.login-logo:hover {
    transform: translateY(-1px);
}

.login-logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #E8B84B,
            #D4A017 55%,
            #A8790D
        );

    color: #101010;

    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;

    box-shadow:
        0 8px 22px rgba(212, 160, 23, 0.16);
}

.login-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.login-logo-text strong {
    color: var(--text-main);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0.8px;
}

.login-logo-text span {
    margin-top: 4px;

    color: var(--gold);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.8px;
}


/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.login-header h1 {
    margin-bottom: 8px;

    color: var(--text-main);

    font-size: 30px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--white);
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   LOGIN FORM
   ========================================================= */

.login-form {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    width: 100%;
}

.login-field > label,
.login-label-row label {
    display: block;

    margin-bottom: 8px;

    color: #E8EDF0;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   PASSWORD LABEL ROW
   ========================================================= */

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 8px;
}

.login-label-row label {
    margin-bottom: 0;
}

.login-label-row a {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;

    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

.login-label-row a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}


/* =========================================================
   LOGIN INPUT
   ========================================================= */

.login-input {
    width: 100%;
    position: relative;
}

.login-input i {
    position: absolute;
    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);
    font-size: 14px;

    pointer-events: none;

    transition:
        color var(--transition-fast);
}

.login-input input {
    width: 100%;
    height: 48px;

    padding: 0 15px 0 43px;

    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    outline: none;

    background: var(--bg-input);
    color: var(--text-main);

    font-size: 14px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.login-input input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.login-input input:focus {
    border-color: var(--border-focus);
    background: #0C1928;

    box-shadow:
        0 0 0 3px rgba(212, 160, 23, 0.08),
        0 5px 20px rgba(0, 0, 0, 0.08);
}

.login-input:focus-within i {
    color: var(--gold);
}


/* =========================================================
   REMEMBER SESSION
   ========================================================= */

.login-options {
    margin-top: -2px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--white);
    font-size: 13px;

    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;

    margin: 0;

    cursor: pointer;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 2px;

    border: 1px solid var(--gold);
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #E8B84B 0%,
            #D4A017 50%,
            #B88912 100%
        );

    color: #111111;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 8px 22px rgba(212, 160, 23, 0.10);

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.login-button i {
    font-size: 13px;

    transition:
        transform var(--transition-fast);
}

.login-button:hover {
    background:
        linear-gradient(
            135deg,
            #F0C96B,
            #E8B84B,
            #D4A017
        );

    box-shadow:
        0 12px 30px rgba(212, 160, 23, 0.20);

    transform: translateY(-2px);
}

.login-button:hover i {
    transform: translateX(3px);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-gold);
}


/* =========================================================
   LOGIN FOOTER
   ========================================================= */

.login-footer {
    margin-top: 26px;
    padding-top: 24px;

    border-top: 1px solid var(--border);

    text-align: center;
}

.login-footer p {
    color: var(--white);
    font-size: 18px;
    line-height: 1.5;
}

.login-footer a {
    color: var(--gold);

    transition:
        color var(--transition-fast);
}

.login-footer a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}


/* =========================================================
   SECURITY
   ========================================================= */

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 24px;

    color: var(--white);
    font-size: 13px;
}

.login-security i {
    color: var(--gold);
    font-size: 12px;
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.login-copyright {
    margin-top: 22px;
    padding: 0 10px;

    color:  var(--white);

    text-align: center;

    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   LOGIN ACCESSIBILITY
   ========================================================= */

.login-button:focus-visible,
.login-input input:focus-visible,
.login-label-row a:focus-visible,
.login-logo:focus-visible,
.login-footer a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* =========================================================
   19. SCROLLBARS
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.025);
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            rgba(212, 160, 23, 0.48),
            rgba(212, 160, 23, 0.28)
        );

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            rgba(212, 160, 23, 0.70),
            rgba(212, 160, 23, 0.42)
        );
}


/* =========================================================
   20. TABLET / LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    .content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   21. MOBILE SIDEBAR
   ========================================================= */

@media (max-width: 850px) {

    .sidebar {
        transform: translateX(-100%);

        box-shadow:
            15px 0 40px rgba(0, 0, 0, 0.35);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        width: 100%;
        margin-left: 0;
    }

    .mobile-menu {
        display: flex;
    }

    .header {
        padding: 0 20px;

        background:
            rgba(8, 18, 31, 0.96);
    }

    .content {
        padding: 25px 20px 40px;
    }

    .user-info {
        display: none;
    }

    .financial-row {
        grid-template-columns: 1fr;
    }

    .settings-card {
        padding: 20px;
    }

    .profile-photo-row {
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .primary-action {
        width: 100%;
    }
}

/* =========================================================
   LOGIN INPUT — DISTRIBUCIÓN CORRECTA DE ICONOS
========================================================= */

.login-input {
    position: relative;
    width: 100%;
    display: block;
}

/* =========================================================
   ICONO IZQUIERDO
   Usuario / Candado
========================================================= */

.login-input > i.fa-user,
.login-input > i.fa-lock {
    position: absolute;

    left: 17px;
    top: 50%;

    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    color: #D4A017;

    font-size: 15px;
    line-height: 1;

    pointer-events: none;

    z-index: 2;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   INPUT
========================================================= */

.login-input input {
    display: block;

    width: 100%;
    height: 52px;

    /* 
       IZQUIERDA:
       espacio para icono

       DERECHA:
       espacio para botón del ojo
    */
    padding: 0 56px 0 48px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.035);

    color: #F5F7FA;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.login-input input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}


/* =========================================================
   HOVER
========================================================= */

.login-input:hover input {
    border-color: rgba(212, 160, 23, 0.28);
}


/* =========================================================
   FOCUS
========================================================= */

.login-input:focus-within input {
    border-color: #D4A017;

    background: rgba(212, 160, 23, 0.045);

    box-shadow:
        0 0 0 3px rgba(212, 160, 23, 0.09),
        0 8px 24px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   ICONO IZQUIERDO EN FOCUS
========================================================= */

.login-input:focus-within > i.fa-user,
.login-input:focus-within > i.fa-lock {
    color: #F0C75E;

    transform:
        translateY(-50%)
        scale(1.05);
}


/* =========================================================
   BOTÓN DEL OJO
========================================================= */

.login-input .password-toggle {
    position: absolute;

    right: 7px;
    top: 50%;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: rgba(255, 255, 255, 0.42);

    cursor: pointer;

    z-index: 5;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   ICONO DEL OJO
========================================================= */

.login-input .password-toggle i {
    position: static;

    display: block;

    width: auto;
    height: auto;

    margin: 0;

    transform: none;

    color: inherit;

    font-size: 15px;

    pointer-events: none;
}


/* =========================================================
   HOVER OJO
========================================================= */

.login-input .password-toggle:hover {
    color: #D4A017;

    background: rgba(212, 160, 23, 0.08);
}


/* =========================================================
   FOCUS OJO
========================================================= */

.login-input .password-toggle:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}


/* =========================================================
   CLICK
========================================================= */

.login-input .password-toggle:active {
    transform:
        translateY(-50%)
        scale(0.94);
}


/* =========================================================
   ERRORES
========================================================= */

.login-input input[aria-invalid="true"] {
    border-color: rgba(239, 68, 68, 0.75);

    box-shadow:
        0 0 0 3px rgba(239, 68, 68, 0.08);
}

.login-input:has(input[aria-invalid="true"]) > i.fa-user,
.login-input:has(input[aria-invalid="true"]) > i.fa-lock {
    color: #F87171;
}

/* =========================================================
   21. MOBILE RESPONSIVE PROFESIONAL
   ========================================================= */

@media (max-width: 600px) {

    :root {
        --mobile-page-padding: 13px;
        --mobile-section-gap: 14px;
        --mobile-card-radius: 14px;
    }


    /* =====================================================
       CONTROL GENERAL
       ===================================================== */

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body {
        min-height: 100vh;
    }

    .dashboard,
    .main,
    .content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }


    /* =====================================================
       SIDEBAR
       ===================================================== */

    .sidebar {
        position: fixed;

        top: 0;
        left: 0;
        bottom: 0;

        width: min(265px, 82vw);
        max-width: 265px;

        height: 100vh;
        height: 100dvh;

        z-index: 9999;

        transform: translateX(-105%);

        overflow-x: hidden;
        overflow-y: auto;

        -webkit-overflow-scrolling: touch;

        box-shadow:
            15px 0 40px rgba(0, 0, 0, 0.35);

        transition:
            transform 0.30s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar .logo,
    .sidebar .menu,
    .sidebar .menu-section,
    .sidebar-bottom {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .sidebar .logo {
        flex-shrink: 0;
        overflow: hidden;
    }

    .sidebar .logo-text {
        min-width: 0;
        overflow: hidden;
    }

    .sidebar .logo-text strong,
    .sidebar .logo-text span {
        display: block;

        min-width: 0;
        max-width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar .menu-item {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .sidebar .menu-item span:not(.status-dot) {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-app {
        min-width: 0;
        max-width: 100%;
    }

    .mobile-app > div:last-child {
        min-width: 0;
        overflow: hidden;
    }

    .mobile-app strong,
    .mobile-app span {
        display: block;

        min-width: 0;
        max-width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .logout {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .logout span {
        min-width: 0;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =====================================================
       MAIN
       ===================================================== */

    .main {
        margin-left: 0;
        overflow-x: hidden;
    }


    /* =====================================================
       HEADER
       ===================================================== */

    .header {
        position: sticky;

        top: 0;

        z-index: 1000;

        width: 100%;
        max-width: 100%;

        height: 68px;

        padding:
            0
            var(--mobile-page-padding);

        box-sizing: border-box;

        background:
            rgba(8, 18, 31, 0.96);

        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .header-left {
        min-width: 0;
        max-width: 100%;

        display: flex;
        align-items: center;

        gap: 9px;

        flex: 1 1 auto;
    }

    /* NO dañar el botón */
    .mobile-menu {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 38px;
        height: 38px;

        min-width: 38px;
        max-width: 38px;

        padding: 0;

        flex: 0 0 38px;

        box-sizing: border-box;
    }

    .mobile-menu i {
        font-size: 16px;
        line-height: 1;
    }

    .header-left > div:last-child {
        min-width: 0;
        max-width: 100%;

        overflow: hidden;
    }

    .page-label {
        display: none;
    }

    .header h1 {
        display: block;

        min-width: 0;
        max-width: 100%;

        margin: 0;

        font-size:
            clamp(16px, 4.7vw, 20px);

        line-height: 1.2;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =====================================================
       HEADER RIGHT
       ===================================================== */

    .header-right {
        min-width: 0;

        display: flex;
        align-items: center;

        gap: 7px;

        flex: 0 0 auto;
    }

    .notification {
        display: none;
    }

    .user {
        min-width: 0;

        display: flex;
        align-items: center;

        gap: 6px;

        flex-shrink: 0;
    }

    /* FOTO DE PERFIL — NO ROMPER */
    .user img,
    #user-avatar {
        display: block;

        width: 35px;
        height: 35px;

        min-width: 35px;
        min-height: 35px;

        max-width: 35px;
        max-height: 35px;

        flex: 0 0 35px;

        border-radius: 50%;

        object-fit: cover;

        overflow: hidden;
    }

    .user-info {
        display: none;
    }

    .user > i {
        display: none;
    }


    /* =====================================================
       CONTENIDO
       ===================================================== */

    .content {
        padding:
            18px
            var(--mobile-page-padding)
            30px;
    }


    /* =====================================================
       WELCOME
       ===================================================== */

    .welcome {
        width: 100%;
        min-width: 0;

        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 13px;

        margin-bottom: var(--mobile-section-gap);
    }

    .welcome > div {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .welcome-label {
        display: block;

        max-width: 100%;

        font-size: 10px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .welcome h2 {
        max-width: 100%;

        margin-top: 5px;

        font-size:
            clamp(22px, 7vw, 28px);

        line-height: 1.15;

        overflow-wrap: anywhere;
    }

    .welcome p {
        max-width: 100%;

        margin-top: 7px;

        font-size: 12px;

        line-height: 1.55;

        overflow-wrap: anywhere;
    }


    /* =====================================================
       SUPPORT / ESTADO DE CONEXIÓN
       ===================================================== */

    .support {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        box-sizing: border-box;

        padding: 14px;

        border-radius: 12px;

        overflow: hidden;
    }

    .support span,
    .support strong,
    .support small {
        display: block;

        max-width: 100%;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =====================================================
       ESTADÍSTICAS
       ===================================================== */

    .stats-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

        margin-bottom: var(--mobile-section-gap);
    }

    .stat-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        box-sizing: border-box;

        padding: 14px;

        overflow: hidden;

        border-radius:
            var(--mobile-card-radius);
    }

    .stat-top {
        width: 100%;
        min-width: 0;

        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 7px;

        margin-bottom: 9px;
    }

    .stat-top > span {
        min-width: 0;

        font-size: 11px;
        line-height: 1.3;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /*
     * ICONOS DE ESTADÍSTICAS
     * Se mantienen cuadrados y estables.
     */
    .stat-icon {
        width: 32px;
        height: 32px;

        min-width: 32px;
        min-height: 32px;

        max-width: 32px;
        max-height: 32px;

        flex: 0 0 32px;

        display: flex;

        align-items: center;
        justify-content: center;

        font-size: 13px;

        box-sizing: border-box;
    }

    .stat-card > strong {
        display: block;

        width: 100%;
        min-width: 0;

        font-size:
            clamp(16px, 5vw, 21px);

        line-height: 1.2;

        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .stat-description {
        display: block;

        width: 100%;
        min-width: 0;

        margin-top: 5px;

        font-size: 10px;

        line-height: 1.4;

        overflow-wrap: anywhere;
    }


    /* =====================================================
       CARDS
       ===================================================== */

    .card {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        box-sizing: border-box;

        padding: 15px;

        border-radius:
            var(--mobile-card-radius);

        overflow: hidden;
    }

    .card-header {
        width: 100%;
        min-width: 0;

        display: flex;

        align-items: flex-start;
        justify-content: space-between;

        gap: 10px;
    }

    .card-header > div {
        min-width: 0;
        max-width: 100%;
    }

    .card-label {
        display: block;

        max-width: 100%;

        font-size: 9px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .card h3 {
        max-width: 100%;

        margin-top: 4px;

        font-size: 16px;

        line-height: 1.25;

        overflow-wrap: anywhere;
    }



    
    /* =====================================================
       DESCRIPCIONES
       ===================================================== */

    .level-description {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        font-size: 12px;

        line-height: 1.55;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =====================================================
       BENEFITS
       ===================================================== */

    .benefits {
        width: 100%;
        min-width: 0;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        margin-bottom: 14px;
    }

    .benefits > div {
        min-width: 0;
        max-width: 100%;

        display: flex;

        align-items: flex-start;

        gap: 7px;

        padding: 8px;

        box-sizing: border-box;

        overflow: hidden;
    }

    .benefits i {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .benefits span,
    .benefits strong {
        min-width: 0;
        max-width: 100%;

        font-size: 10px;

        line-height: 1.4;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =====================================================
       DASHBOARD GRID
       ===================================================== */

    .dashboard-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr);

        gap: var(--mobile-section-gap);

        margin-bottom: var(--mobile-section-gap);
    }


    /* =====================================================
       SECTION HEADER
       ===================================================== */

    .section-header {
        width: 100%;
        min-width: 0;

        display: flex;

        align-items: flex-start;
        justify-content: space-between;

        gap: 10px;
    }

    .section-header > div {
        min-width: 0;
        max-width: 100%;
    }

    .section-header > a,
    .section-header > span {
        flex-shrink: 0;

        max-width: 45%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =====================================================
       BADGE
       ===================================================== */

    .level-badge {
        min-width: 0;
        max-width: 42%;

        flex-shrink: 0;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =====================================================
       EVITAR QUE LOS STATS INTERNOS SE APRIETEN
       ===================================================== */

    .card > .stats-grid {
        margin-top: 15px;
        margin-bottom: 0;
    }


    /* =====================================================
       INFORMACIÓN DE CUENTA
       ===================================================== */

    #account-id,
    #account-state,
    #account-last-check,
    #sync-state,
    #sync-date,
    #data-availability,
    #connection-status,
    #last-sync,
    #assets-count,
    #base-currency {
        min-width: 0;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =====================================================
       CONEXIÓN
       ===================================================== */

    #connection-icon {
        flex-shrink: 0;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    footer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;
        gap: 7px;
        padding-top: 10px;

        text-align: center;

        overflow: hidden;
    }

    footer span {
        max-width: 100%;

        font-size: 10px;

        line-height: 1.4;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =====================================================
       ELEMENTOS DINÁMICOS
       ===================================================== */

    #user-name,
    #user-status,
    #account-status,
    #account-status-description,
    #connection-title,
    #connection-description,
    #sync-status,
    #sync-description,
    #footer-account-status {
        min-width: 0;
        max-width: 100%;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* =====================================================
       IMÁGENES / SVG / VIDEO
       ===================================================== */

    img,
    svg,
    video,
    canvas,
    iframe {
        max-width: 100%;
    }


    /* =====================================================
       BOTONES Y CAMPOS
       ===================================================== */

    button,
    a,
    input,
    select,
    textarea {
        max-width: 100%;
    }


    /* =====================================================
       SEGURIDAD CONTRA OVERFLOW
       ===================================================== */

    .main,
    .content,
    .welcome,
    .support,
    .stats-grid,
    .dashboard-grid,
    .card,
    .stat-card,
    .benefits,
    .section-header {
        overflow-x: hidden;
    }


    /* =====================================================
       MÓVILES PEQUEÑOS
       ===================================================== */

    @media (max-width: 380px) {

        :root {
            --mobile-page-padding: 10px;
            --mobile-section-gap: 12px;
        }

        .header {
            padding-left: 10px;
            padding-right: 10px;
        }

        .content {
            padding-left: 10px;
            padding-right: 10px;
        }

        .mobile-menu {
            width: 36px;
            height: 36px;

            min-width: 36px;
            max-width: 36px;

            flex-basis: 36px;
        }

        .user img,
        #user-avatar {
            width: 33px;
            height: 33px;

            min-width: 33px;
            min-height: 33px;

            max-width: 33px;
            max-height: 33px;

            flex-basis: 33px;
        }

        .stats-grid {
            gap: 8px;
        }

        .stat-card {
            padding: 11px;
        }

        .stat-top {
            gap: 5px;
        }

        .stat-top > span {
            font-size: 10px;
        }

        .stat-icon {
            width: 29px;
            height: 29px;

            min-width: 29px;
            min-height: 29px;

            max-width: 29px;
            max-height: 29px;

            flex-basis: 29px;

            font-size: 11px;
        }

        .stat-card > strong {
            font-size: 15px;
        }

        .stat-description {
            font-size: 9px;
        }

        .card {
            padding: 13px;
        }

        .card h3 {
            font-size: 15px;
        }

        .benefits {
            grid-template-columns:
                minmax(0, 1fr);

            gap: 7px;
        }

        .benefits > div {
            padding: 8px;
        }

        .benefits span,
        .benefits strong {
            font-size: 10px;
        }

        .support {
            padding: 12px;
        }

        .level-description {
            font-size: 11px;
            line-height: 1.5;
        }
    }


    /* =====================================================
       TELÉFONOS MUY PEQUEÑOS
       ===================================================== */

    @media (max-width: 340px) {

        .stats-grid {
            grid-template-columns:
                minmax(0, 1fr);
        }

        .stat-card {
            padding: 13px;
        }

        .stat-icon {
            width: 30px;
            height: 30px;

            min-width: 30px;
            min-height: 30px;

            max-width: 30px;
            max-height: 30px;

            flex-basis: 30px;
        }

        .card-header {
            gap: 7px;
        }

        .level-badge {
            max-width: 38%;
        }
    }

}
.settings-card {
    background: #0d1b2a;
}


/* =========================================================
   Registro Complet !!
========================================================= */

.settings-form {
    margin-top: 20px;
}

.settings-form .form-group {
    margin-bottom: 18px;
}

.settings-form label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #26384a;
    border-radius: 6px;
    background: #111f2e;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.settings-form input::placeholder {
    color: #7f8b96;
}

.settings-form input:focus,
.settings-form textarea:focus {
    outline: none;
    border-color: #d4a017;
    background: #122234;
    box-shadow: 0 0 0 2px rgba(212,160,23,.10);
}

.section-description {
    margin: 10px 0 0;
    color: var(--white);
    font-size: 12px;
    line-height: 1.6;
}

.support-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: 20px;
    padding: 13px 14px;

    border: 1px solid #26384a;
    border-radius: 6px;

    background: #111f2e;
}

.support-box strong,
.support-box span {
    display: block;
}

.support-box strong {
    color: #fff;
    font-size: 12px;
}

.support-box span {
    margin-top: 4px;
    color: #d4a017;
    font-size: 12px;
}



.profile-photo-field {
    margin-bottom: 20px;
}

.profile-photo-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.profile-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid gold;
}

.profile-upload p {
    margin: 6px 0 0;
    color: var(--white);
    font-size: 13px;
}


.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


.password-input {
    position: relative;
}

.password-input input {
    padding-right: 42px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 0;
    background: transparent;
    color: var(--white);

    cursor: pointer;
    transform: translateY(-50%);
}

.toggle-password:hover {
    color: #d4a017;
}

.notification-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.notification-info {
    min-width: 0;
}

.notification-info strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.notification-info p {
    margin: 4px 0 0;
    color: var(--white);
    font-size: 11px;
    line-height: 1.5;
}

.switch {
    position: relative;

    display: block;

    width: 40px;
    height: 22px;

    flex-shrink: 0;
}

.switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.slider {
    position: absolute;
    inset: 0;

    border-radius: 20px;
    background: #26384a;

    cursor: pointer;

    transition: background .18s ease;
}

.slider::before {
    content: "";

    position: absolute;

    width: 16px;
    height: 16px;

    left: 3px;
    top: 3px;

    border-radius: 50%;
    background: #fff;

    transition: transform .18s ease;
}

.switch input:checked + .slider {
    background: #d4a017;
}

.switch input:checked + .slider::before {
    transform: translateX(18px);
}


.account-management {
    margin-top: 20px;
}

.management-header {
    margin-bottom: 16px;
}

.management-header h3 {
    margin: 4px 0 0;
    color: #fff;
}

.management-header p {
    margin: 8px 0 0;
    color: var(--white);
    font-size: 13px;
    line-height: 1.6;
}


.status-dot {
    width: 9px;
    height: 9px;

    flex-shrink: 0;

    border-radius: 50%;
    background: #f59e0b;

    box-shadow:
        0 0 0 3px rgba(245,158,11,.10);
}


.management-action {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid #26384a;
    border-radius: 6px;

    background: #111f2e;
    color: #fff;

    text-align: left;
    text-decoration: none;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.management-action:hover {
    background: #122234;
    border-color: #d4a017;
}

.management-action:active {
    transform: translateY(1px);
}

.management-action:focus-visible {
    outline: none;
    border-color: #d4a017;
    box-shadow: 0 0 0 2px rgba(212,160,23,.15);
}

.management-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex-shrink: 0;
}

.management-icon i {
    color: #d4a017;
    font-size: 17px;
}


.management-action > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.management-action strong,
.management-action span {
    display: block;
}

.management-action strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.management-action span {
    margin-top: 4px;
    color: var(--white);
    font-size: 13px;
    line-height: 1.5;
}


.management-action > .fa-chevron-right {
    flex-shrink: 0;

    color: var(--white);
    font-size: 11px;

    transition:
        color .18s ease,
        transform .18s ease;
}

.management-action:hover > .fa-chevron-right {
    color: #d4a017;
    transform: translateX(3px);
}

.management-action.danger:hover {
    border-color: #ff6b6b;
    background: rgba(255,107,107,.05);
}

.management-action.danger:hover .management-icon i,
.management-action.danger:hover > .fa-chevron-right {
    color: #ff6b6b;
}


#save-profile-button,
#change-password-button,
#report-problem-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    cursor: pointer;
}


.form-message {
    margin-top: 15px;
    padding: 10px 12px;

    border: 1px solid #26384a;
    border-radius: 6px;

    background: #111f2e;
    color: #fff;

    font-size: 12px;
    line-height: 1.5;
}


@media (max-width: 700px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .support-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-photo-row {
        align-items: flex-start;
    }

    .management-action {
        padding: 12px;
        gap: 10px;
    }

    .management-action strong {
        font-size: 12px;
    }

    .management-action span {
        font-size: 10px;
    }

    #save-profile-button,
    #change-password-button,
    #report-problem-button {
        width: 100%;
    }

}




/* =========================================================
   PORTFOLIO CUSTOM STYLES
   ========================================================= */

.portfolio-state[hidden],
.portfolio-investments[hidden] {
    display: none !important;
}

.portfolio-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin: 20px 0;
    padding: 22px;

    color: var(--muted-white);
    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.portfolio-state > i {
    color: var(--gold);
    font-size: 20px;
}

.portfolio-state a {
    color: var(--gold);
    font-weight: 600;
}

.portfolio-investments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin: 20px 0 30px;
}

.portfolio-investment-card {
    min-width: 0;
    padding: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.02)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        border-color var(--transition),
        transform var(--transition);
}

.portfolio-investment-card:hover {
    border-color: rgba(212, 160, 23, 0.35);
    transform: translateY(-2px);
}

.portfolio-investment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.portfolio-investment-identity {
    min-width: 0;
}

.portfolio-investment-label,
.portfolio-investment-type,
.portfolio-investment-detail > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.portfolio-investment-symbol {
    margin: 7px 0;
    color: #fff;
    font-size: 19px;
    overflow-wrap: anywhere;
}

.portfolio-investment-status {
    flex-shrink: 0;
    padding: 6px 10px;

    color: var(--green);
    background: var(--green-light);

    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.portfolio-investment-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    padding-top: 18px;
}

.portfolio-investment-detail {
    min-width: 0;
}

.portfolio-investment-detail strong {
    display: block;
    margin-top: 8px;

    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .portfolio-investments {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .portfolio-investment-card {
        padding: 16px;
    }

    .portfolio-investment-header {
        gap: 8px;
    }

    .portfolio-investment-status {
        padding: 5px 8px;
        font-size: 10px;
    }

    .portfolio-investment-details {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
