@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --card: rgba(255, 255, 255, 0.9);
    --text: #1f2937;
    --muted: #526177;
    --primary: #0f7cc9;
    --primary-strong: #0c5f99;
    --line: #9fc7e9;
    --danger: #b91c1c;
    --ok: #065f46;
    --nav-bg: rgba(15, 23, 42, 0.72);
    --nav-border: rgba(255, 255, 255, 0.3);
    --nav-text: #ffffff;
    --nav-active: #ef4444;
}

* { box-sizing: border-box; }

body.page-auth {
    margin: 0;
    font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background: url('../img/local/background.png') center center / cover no-repeat fixed;
    position: relative;
    overflow-x: hidden;
}

.wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px 14px;
}

body.page-auth .wrap {
    position: relative;
    z-index: 2;
}

body.page-auth .wrap::before {
    content: "";
    position: fixed;
    right: -380px;
    top: 16%;
    width: clamp(230px, 42vw, 380px);
    aspect-ratio: 1 / 1;
    background: url('../img/local/torpedo.webp') center center / contain no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    animation: torpedo-pass-mid 6.6s linear infinite;
    animation-delay: 4s;
}

body.page-auth .wrap > * {
    position: relative;
    z-index: 2;
}

body.page-auth::before {
    content: "";
    position: fixed;
    right: -620px;
    top: 25%;
    width: clamp(360px, 82vw, 620px);
    aspect-ratio: 1 / 1;
    background: url('../img/local/torpedo.webp') center center / contain no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    animation: torpedo-pass 8s linear infinite;
}

body.page-auth::after {
    content: "";
    position: fixed;
    right: -320px;
    top: 8%;
    width: clamp(180px, 34vw, 320px);
    aspect-ratio: 1 / 1;
    background: url('../img/local/torpedo.webp') center center / contain no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    animation: torpedo-pass-top 5.8s linear infinite;
    animation-delay: 3s;
}

@keyframes torpedo-pass {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-260vw);
        opacity: 1;
    }
}

@keyframes torpedo-pass-top {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-240vw);
        opacity: 1;
    }
}

@keyframes torpedo-pass-mid {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-250vw);
        opacity: 1;
    }
}

.top-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.top-logo img {
    width: min(280px, 72vw);
    height: auto;
    display: block;
}

.card {
    width: min(460px, 100%);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(4px);
    padding: 22px;
}

h1 { margin: 0 0 16px; font-size: 22px; }

label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
}

.field {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    padding: 11px 12px;
    font-size: 15px;
    margin-bottom: 14px;
}

.pin-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.pin-digit {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    text-align: center;
    font-size: 20px;
    -webkit-text-security: disc;
}

.error { color: var(--danger); font-size: 14px; margin-bottom: 12px; }
.status { color: var(--ok); font-size: 14px; margin-bottom: 12px; }

button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #ef4444);
}

button:hover { background: linear-gradient(135deg, var(--primary-strong), #dc2626); }

.links { margin-top: 14px; font-size: 14px; }
.links a { color: #0f4c81; text-decoration: none; }

.register-shell { width: min(520px, 100%); }
.register-shell .card { width: min(520px, 100%); }
.captcha-box {
    margin-bottom: 14px;
    border: 1px dashed #38bdf8;
    border-radius: 10px;
    background: rgba(236, 254, 255, 0.72);
    color: #0f766e;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 10px;
}

.recover-shell { width: min(460px, 100%); }
.recover-shell p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* Login special */
body.page-login .wrap {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(32px + env(safe-area-inset-top)) 10px 10px;
}

.login-shell {
    width: min(460px, 100%);
    transform: translateY(-18px);
    position: relative;
    z-index: 5;
}

.login-shell .card {
    padding: 28px 24px 30px;
    min-height: 56vh;
}

body.page-login .top-logo img { width: min(340px, 86vw); }

body.page-login .field {
    border: 2px solid #dc2626;
    background: #ffffff;
}

.phone-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 14px;
}

.phone-prefix {
    min-width: 64px;
    border: 2px solid #dc2626;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.phone-group .field {
    margin-bottom: 0;
    border-radius: 0 10px 10px 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.page-login .pin-digit {
    height: 66px;
    border: 2px solid #dc2626;
    background: #ffffff;
    font-size: 36px;
    line-height: 1;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
}

body.page-login button {
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 16px 18px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.5px;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
}

body.page-login .links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

body.page-login .login-mario-float {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    left: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: clamp(170px, 40vw, 250px);
    pointer-events: none;
    opacity: 1;
    z-index: 30;
    margin: 0;
}

body.page-login .login-mario-float img {
    width: 100%;
    height: auto;
    max-height: 38vh;
    display: block;
    object-fit: contain;
}

/* Dashboard */
body.page-dashboard {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
    background: url('../img/local/background.png') center center / cover no-repeat fixed;
    color: #ffffff;
}

body.page-profile {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
    background: url('../img/local/background.png') center center / cover no-repeat fixed;
    color: #ffffff;
}

body.page-home {
    margin: 0;
    min-height: 100vh;
}

.home-screen {
    padding: 18px 6px 92px;
}

.home-page-title {
    margin: 0 auto 8px;
    width: calc(100vw - 12px);
    max-width: none;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(2, 6, 23, 0.55);
}

.home-dynamic {
    max-width: none;
    width: calc(100vw - 12px);
    margin: 0 auto;
    min-height: calc(100vh - 178px);
    background: rgba(31, 41, 55, 0.72);
    border: 2px solid rgba(255, 255, 255, 0.58);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-panel {
    display: grid;
    gap: 12px;
    min-height: calc(100vh - 182px);
    align-content: start;
    position: relative;
}

.home-panel h1 {
    display: none;
}

.team-panel {
    gap: 10px;
}

.team-root {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(15, 23, 42, 0.58);
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.team-root span {
    font-size: 12px;
    color: #dbeafe;
}

.team-root strong {
    font-size: 18px;
    letter-spacing: 0.4px;
    color: #ffffff;
}

.team-contact-leader-btn {
    margin-top: 6px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #22c55e, #15803d);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
}

.team-contact-leader-btn.is-disabled {
    background: linear-gradient(180deg, #9ca3af, #6b7280);
    color: #e5e7eb;
    pointer-events: none;
    opacity: 0.9;
}

.team-adoption-open-btn {
    margin-top: 6px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #fb923c, #ea580c);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
}

.team-adoption-status {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 800;
}

.team-adoption-status--pending { color: #facc15; }
.team-adoption-status--approved { color: #86efac; }
.team-adoption-status--rejected { color: #fca5a5; }

.team-level-card {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.62);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.team-level-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-level-card__bonus {
    display: grid;
    justify-items: center;
    gap: 1px;
    text-align: center;
    min-width: 112px;
}

.team-level-card__bonus-base {
    color: #fde047;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.05;
}

.team-level-card__bonus-extra {
    color: #4ade80;
    font-weight: 900;
    font-size: 11px;
    line-height: 1.05;
    white-space: nowrap;
}

.team-level-card__header h3 {
    margin: 0;
    font-size: 16px;
    color: #fef08a;
}

.team-level-card__header > span {
    font-size: 12px;
    color: #e2e8f0;
}

.team-level-list {
    display: grid;
    gap: 8px;
}

.team-member {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.56);
    padding: 8px 10px;
    display: grid;
    gap: 3px;
}

.team-member__top,
.team-diagram-node__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-whatsapp-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: #22c55e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.team-whatsapp-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.team-member p {
    margin: 0;
    font-size: 12px;
    color: #f8fafc;
    line-height: 1.25;
}

.team-member p:first-child {
    font-size: 14px;
    color: #ffffff;
}

.team-member__invested {
    font-size: 18px !important;
    font-weight: 900;
    color: #facc15 !important;
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.3);
}

.team-empty {
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 12px;
}

.team-actions {
    display: flex;
    justify-content: flex-end;
}

.team-diagram-btn {
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    cursor: pointer;
}

.team-adoption-modal__content {
    width: min(720px, 100%);
    max-height: min(88svh, 760px);
    overflow: auto;
    padding: 14px;
    display: grid;
    gap: 10px;
    position: relative;
}

.team-adoption-modal__star {
    width: 76px;
    height: 76px;
    margin: 2px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-adoption-modal__star img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.8));
}

.team-adoption-modal__title {
    margin: 0;
    text-align: center;
    color: #fef08a;
    font-size: 20px;
}

.team-adoption-modal__intro {
    margin: 0;
    text-align: center;
    color: #f8fafc;
    font-size: 13px;
}

.team-adoption-modal__warning {
    margin: 0;
    text-align: center;
    color: #ef4444;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

.team-adoption-form {
    display: grid;
    gap: 10px;
}

.team-adoption-form__field {
    display: grid;
    gap: 6px;
}

.team-adoption-form__field[hidden] {
    display: none !important;
}

.team-adoption-form__field span,
.team-adoption-form__check span {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.team-adoption-form__field textarea,
.team-adoption-form__field input[type="text"] {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    padding: 10px 12px;
}

.team-adoption-form__check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-adoption-submit-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 12px 14px;
    background:
        linear-gradient(120deg, rgba(255,0,0,.95), rgba(255,166,0,.95), rgba(255,255,0,.95), rgba(34,197,94,.95), rgba(59,130,246,.95));
    color: #fff;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(255,255,255,0.2);
}

.profile-modal__content--team {
    width: min(980px, 100%);
    max-height: min(82vh, 760px);
    overflow: auto;
}

.team-diagram-title {
    margin: 0 0 4px;
    text-align: center;
    color: #fde68a;
}

.team-diagram-subtitle {
    margin: 0 0 12px;
    text-align: center;
    font-size: 12px;
    color: #dbeafe;
}

.team-diagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 10px;
    min-width: 640px;
}

.team-diagram-col {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.62);
    padding: 10px;
    position: relative;
}

.team-diagram-col h4 {
    margin: 0 0 8px;
    color: #fef08a;
    font-size: 14px;
    text-align: center;
}

.team-diagram-list {
    display: grid;
    gap: 8px;
}

.team-diagram-node {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.45);
    padding: 8px;
    display: grid;
    gap: 3px;
}

.team-diagram-node strong {
    font-size: 13px;
    color: #ffffff;
}

.team-diagram-node span {
    font-size: 11px;
    color: #e2e8f0;
}

@media (min-width: 768px) {
    .team-level-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profile-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 12px 110px;
    display: grid;
    gap: 12px;
}

.profile-card {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 14px;
    position: relative;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    align-self: start;
}

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

.profile-switch[data-portfolio-switch] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-switch[data-history-switch] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-switch__btn {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 10px 12px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.profile-switch__btn.is-active {
    background: #dc2626;
    border-color: rgba(255, 255, 255, 0.95);
}

.admin-finansas-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr);
    gap: 1rem;
    align-items: center;
    margin: 0.9rem 0 1rem;
}

.admin-finansas-search {
    display: block;
    width: 100%;
}

.admin-finansas-search input {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(17, 24, 39, 0.42);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0 0.95rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-finansas-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.admin-finansas-search input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(17, 24, 39, 0.58);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.admin-finansas-export-btn {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(180deg, #ff4d4d 0%, #d01414 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(127, 29, 29, 0.35);
}

.admin-finansas-export-btn::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    z-index: -1;
    background: linear-gradient(120deg, #22c55e, #38bdf8, #a855f7, #f59e0b, #ef4444, #22c55e);
    background-size: 220% 220%;
    opacity: 0.9;
    filter: blur(8px);
    animation: rainbowShift 2.2s linear infinite;
}

.admin-finansas-export-btn:hover {
    filter: brightness(1.05);
}

.admin-finansas-export-btn:active {
    transform: translateY(1px);
}

.auth-dev-mode-box {
    width: min(100%, 560px);
    margin: 0 auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(7, 16, 36, 0.62);
    backdrop-filter: blur(10px);
    padding: 18px 16px 20px;
    display: grid;
    gap: 12px;
    justify-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.auth-dev-mode-box img {
    width: min(100%, 320px);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.auth-dev-mode-title {
    text-align: center;
    color: #fff2b0;
    font-weight: 900;
    letter-spacing: 0.4px;
    font-size: 16px;
    text-shadow: 0 2px 0 rgba(120, 0, 0, 0.55), 0 0 10px rgba(253, 224, 71, 0.35);
}

.admin-aviso-text {
    white-space: pre-wrap;
    line-height: 1.3;
    max-width: 420px;
}

.admin-aviso-thumb {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 40px !important;
    max-height: 40px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: block !important;
}

.admin-aviso-thumb-wrap {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 8px;
    vertical-align: middle;
}

.admin-aviso-form-preview {
    margin-top: 8px;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.4);
    display: block !important;
    overflow: hidden;
    box-sizing: border-box;
}

[data-admin-avisos-root] .admin-field [data-aviso-image-preview] {
    width: 220px !important;
    max-width: 220px !important;
    height: 120px !important;
    max-height: 120px !important;
}

[data-admin-avisos-root] td img.admin-aviso-thumb {
    width: 54px !important;
    height: 40px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

[data-admin-avisos-root] td.admin-aviso-cell-image {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
}

[data-admin-avisos-root] td.admin-aviso-cell-image .admin-aviso-thumb-wrap,
[data-admin-avisos-root] td.admin-aviso-cell-image > .admin-aviso-thumb-wrap {
    width: 54px !important;
    height: 40px !important;
}

.admin-dashboard-report {
    display: grid;
    gap: 14px;
}

.admin-dashboard-sections {
    display: grid;
    gap: 12px;
}

.admin-dashboard-panel {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(8, 15, 30, 0.78));
    border-radius: 18px;
    padding: 13px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 12px 22px rgba(0, 0, 0, 0.16);
}

.admin-dashboard-panel__head {
    margin-bottom: 12px;
    padding: 0;
    border-bottom: 0;
}

.admin-dashboard-panel__head > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.1em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.admin-dashboard-report__filter {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 45%),
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.12), transparent 42%),
        rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

.admin-dashboard-report__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-dashboard-report__hero-title h2 {
    margin: 2px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 900;
}

.admin-dashboard-report__hero-kicker {
    display: inline-block;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-dashboard-report__range-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.05);
    color: #e5e7eb;
    font-size: 11px;
    white-space: nowrap;
}

.admin-dashboard-report__range-chip span {
    color: #fde68a;
    font-weight: 800;
}

.admin-dashboard-report__range-chip strong {
    color: #fff;
    font-weight: 900;
}

.admin-dashboard-report__range-chip em {
    color: rgba(255,255,255,.75);
    font-style: normal;
}

.admin-dashboard-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.admin-dashboard-filter-form .admin-field {
    margin: 0;
}

.admin-dashboard-filter-form .admin-action-btn {
    min-height: 38px;
    align-self: end;
}

.admin-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

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

.admin-dashboard-kpi {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(15, 23, 42, 0.42);
    border-radius: 14px;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.admin-dashboard-kpi::after {
    content: "";
    position: absolute;
    inset: auto -20% -50% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.22), transparent 70%);
    pointer-events: none;
}

.admin-dashboard-kpi p {
    margin: 0;
    color: #fde68a;
    font-weight: 800;
    font-size: 12px;
}

.admin-dashboard-kpi h3 {
    margin: 6px 0 4px;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
}

.admin-dashboard-kpi small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    line-height: 1.3;
    display: block;
}

.admin-dashboard-wallets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-dashboard-wallet {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.45));
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.admin-dashboard-wallet p {
    margin: 0;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
}

.admin-dashboard-wallet h4 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
}

.admin-dashboard-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-dashboard-chart {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.56));
    border-radius: 14px;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.admin-dashboard-chart h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.admin-dashboard-bars {
    display: grid;
    gap: 8px;
}

.admin-dashboard-bar-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 92px;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    padding: 4px 0;
}

.admin-dashboard-bar-row > span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.admin-dashboard-bar-row > strong {
    color: #fff;
    font-weight: 900;
    text-align: right;
}

.admin-dashboard-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.admin-dashboard-bar-fill {
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.admin-dashboard-bar-fill--green {
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.admin-dashboard-bar-fill--blue {
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.admin-dashboard-bar-fill--gold {
    background: linear-gradient(90deg, #f59e0b, #fde047);
}

@media (max-width: 1100px) {
    .admin-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-dashboard-kpis--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-dashboard-wallets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .admin-dashboard-report__hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-dashboard-filter-form {
        grid-template-columns: 1fr;
    }
    .admin-dashboard-kpis {
        grid-template-columns: 1fr;
    }
    .admin-dashboard-kpis--2 {
        grid-template-columns: 1fr;
    }
    .admin-dashboard-wallets {
        grid-template-columns: 1fr;
    }
    .admin-dashboard-bar-row {
        grid-template-columns: 46px minmax(0, 1fr) 74px;
        gap: 6px;
        font-size: 10px;
    }
    .admin-dashboard-kpi h3 {
        font-size: 20px;
    }
}

.profile-card h1,
.profile-card h2,
.profile-card h3 {
    margin: 0 0 12px;
}

.profile-cards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.profile-cards-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-cards-counter {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
    color: #fde68a;
    background: rgba(15, 23, 42, 0.55);
}

.profile-cards-desc {
    margin: 0 0 10px;
    font-size: 12px;
    color: #fde68a;
}

.profile-pin-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.9);
    background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b 65%, #d97706);
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
    animation: pinBtnGlow 1.6s ease-in-out infinite;
}

@keyframes pinBtnGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(251, 191, 36, 0.55); transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.95); transform: scale(1.03); }
}

.profile-add-btn,
.profile-delete-btn {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.8);
    cursor: pointer;
}

.profile-add-btn:disabled {
    background: rgba(107, 114, 128, 0.9);
    cursor: not-allowed;
    opacity: 0.9;
}

.profile-delete-btn {
    width: auto;
    background: rgba(127, 29, 29, 0.95);
}

.profile-fav-btn {
    width: auto;
    border: 1px solid rgba(251, 191, 36, 0.55);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
    background: rgba(31, 41, 55, 0.88);
    margin-bottom: 0;
}

.profile-fav-btn--active {
    background: rgba(245, 158, 11, 0.95);
    color: #111827;
    border-color: rgba(251, 191, 36, 1);
}

.cards-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.profile-card[data-profile-panel="tarjetas"] {
    min-height: 420px;
}

.user-card-item {
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    background:
        linear-gradient(140deg, rgba(2, 6, 23, 0.28), rgba(15, 23, 42, 0.18)),
        url('../img/local/tarjeta.png') center center / cover no-repeat;
    padding: 14px 14px 12px;
    min-height: 196px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(2, 6, 23, 0.45);
}

.user-card-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -36%;
    width: 42%;
    height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
    transform: skewX(-18deg);
    animation: cardShine 4.6s ease-in-out infinite;
    pointer-events: none;
}

.user-card-line {
    margin: 0 0 6px;
    font-size: 13px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.8);
    letter-spacing: 0.2px;
    padding-left: 25%;
}

.user-card-row--top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.user-card-line--bank,
.user-card-line--key {
    font-size: 12px;
    padding-left: 25%;
}

.user-card-line--name {
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

.user-card-line--number {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin-top: 2px;
    margin-bottom: 10px;
}

.user-card-line strong {
    color: #fbbf24;
    font-weight: 800;
}

.user-card-line--bank,
.user-card-line--key,
.user-card-line--name,
.user-card-line--number {
    color: #f8fafc;
}

.user-card-item .profile-delete-btn {
    border-color: rgba(248, 113, 113, 0.7);
    background: rgba(127, 29, 29, 0.92);
}

.user-card-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@keyframes cardShine {
    0% { transform: translateX(0) skewX(-18deg); opacity: 0; }
    20% { opacity: 0.6; }
    45% { transform: translateX(320%) skewX(-18deg); opacity: 0; }
    100% { transform: translateX(320%) skewX(-18deg); opacity: 0; }
}

.profile-empty {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    z-index: 70;
}

.profile-modal.is-open {
    display: flex;
}

.profile-modal__content {
    width: min(460px, 100%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    padding: 14px;
    position: relative;
}

.profile-modal__content--favorite {
    text-align: center;
}

.profile-modal__content--favorite h3 {
    margin: 6px 0 10px;
    color: #fef3c7;
    font-size: 18px;
}

.profile-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    border-radius: 8px;
    padding: 6px 8px;
    background: rgba(220, 38, 38, 0.9);
}

.profile-form .field {
    margin-bottom: 10px;
}

.profile-inline-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-inline-col {
    min-width: 0;
}

.profile-ine-box {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    margin-bottom: 10px;
}

.profile-avatar-block {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.profile-avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    border: 2px solid #dc2626;
    padding: 4px;
    background: rgba(2, 6, 23, 0.55);
    position: relative;
    overflow: visible;
}

.profile-avatar-ring::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    border: 3px solid transparent;
    border-top-color: #22c55e;
    animation: profileSpin 2s linear infinite;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

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

.profile-identity-item {
    display: grid;
    gap: 6px;
}

.profile-identity-thumb-wrap {
    position: relative;
}

.profile-identity-item span {
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
}

.profile-ine-thumb {
    width: 100%;
    height: 82px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.profile-identity-item .field {
    margin-bottom: 0;
    padding: 6px 8px;
    font-size: 12px;
}

.profile-file-input {
    display: none;
}

.profile-image-edit {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(220, 38, 38, 0.95);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.profile-avatar-ring > .profile-image-edit {
    top: auto;
    bottom: -8px;
    right: -8px;
}

.profile-ine-status,
.profile-ine-lock {
    margin: 0 0 8px;
    font-size: 12px;
    color: #f8fafc;
}

.profile-ine-lock {
    color: #fecaca;
    font-weight: 700;
}

@keyframes profileSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-form button[disabled] {
    background: #6b7280;
    cursor: not-allowed;
    opacity: 0.9;
}

.profile-pin-grid .pin-digit {
    height: 52px;
    font-size: 28px;
}

@media (max-width: 820px) {
    .cards-list {
        grid-template-columns: 1fr;
    }

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

    .profile-card[data-profile-panel="tarjetas"] {
        min-height: 340px;
    }
}

.bank-picker {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
    margin-bottom: 12px;
}

.bank-picker__search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-picker__icon {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    min-width: 56px;
}

.bank-picker__search,
.bank-picker__select {
    margin-bottom: 8px !important;
}

.bank-picker__search {
    margin-bottom: 0 !important;
}

.bank-picker__hint {
    margin: 0;
    font-size: 11px;
    color: #cbd5e1;
}

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

.client-products-banner {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    margin: 0 0 10px;
}

.client-products-banner img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.client-products-banner p {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    font-family: "Press Start 2P", "Arial Black", sans-serif;
}

.client-product-card {
    border-radius: 18px;
    border: 1px solid rgba(173, 216, 255, 0.45);
    padding: 10px;
    color: #ffffff;
    background: linear-gradient(165deg, rgba(13, 35, 90, 0.92), rgba(5, 15, 42, 0.94));
    box-shadow: 0 16px 30px rgba(1, 8, 22, 0.45), inset 0 0 0 1px rgba(190, 228, 255, 0.1);
}

.client-product-card--lvl-1,
.client-product-card--lvl-2,
.client-product-card--lvl-3,
.client-product-card--lvl-4,
.client-product-card--lvl-5,
.client-product-card--lvl-6,
.client-product-card--lvl-7,
.client-product-card--lvl-8,
.client-product-card--lvl-9,
.client-product-card--lvl-10 {
    background: linear-gradient(165deg, rgba(13, 35, 90, 0.92), rgba(5, 15, 42, 0.94)) !important;
    color: #ffffff !important;
}

.client-product-photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    border: 1px solid rgba(194, 228, 255, 0.5);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
}

.client-product-photo {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.client-product-cart-badge {
    position: static;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(206, 232, 255, 0.85);
    background: rgba(10, 22, 54, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.client-product-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 900;
}

.client-product-meta {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: #e7f2ff;
}

.client-product-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.client-product-meta-stack {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.client-product-meta-stack .client-product-meta {
    margin: 0;
}

.client-product-days {
    margin: 4px 0 0;
    text-align: right;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    white-space: nowrap;
}

.client-product-days span {
    display: block;
    font-size: 22px;
    color: #fef08a;
    text-shadow: 0 0 10px rgba(254, 240, 138, 0.35);
}

.client-product-overlay {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(190, 225, 255, 0.32);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.client-product-overlay__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.client-product-overlay__left {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.client-product-overlay__right {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 4px;
}

.client-product-money-box {
    position: relative;
    padding: 8px 9px;
    border-radius: 10px;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.client-product-meta--money {
    margin: 0 0 4px;
    color: #f8fafc;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: 0.2px;
}

.client-product-meta--money:last-child {
    margin-bottom: 0;
    color: #fde68a;
    font-size: 15px;
}

.client-product-meta--money-invest {
    color: #dbeafe;
    font-size: 15px;
}

.client-product-meta--money-gain {
    margin-bottom: 0;
    color: #fef08a;
    font-size: 22px;
    letter-spacing: 0.35px;
    text-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
}

.trabajo-wallet-hero {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(170, 231, 255, 0.45);
    background: linear-gradient(140deg, rgba(4, 35, 58, 0.92), rgba(11, 76, 120, 0.72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 8, 19, 0.34);
}

.trabajo-wallet-hero__label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #bfdbfe;
    text-transform: uppercase;
}

.trabajo-wallet-hero__amount {
    font-size: clamp(32px, 4.5vw, 48px);
    line-height: 1;
    font-weight: 900;
    color: #f0f9ff;
    text-shadow: 0 0 18px rgba(125, 211, 252, 0.35);
}

.client-product-buy-btn {
    width: 100%;
    margin-top: 8px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 10px 8px;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
    font-size: 11px;
    letter-spacing: 0.3px;
    background: linear-gradient(180deg, #60a5fa, #1d4ed8);
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    box-shadow: 0 3px 0 #0b3b9f;
}

.client-product-buy-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #0b3b9f;
}

.client-product-buy-btn--disabled,
.client-product-buy-btn:disabled {
    background: linear-gradient(180deg, #9ca3af, #6b7280);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 2px 0 #4b5563;
    cursor: not-allowed;
}

button[data-recharge-upload] {
    position: relative;
    margin-top: 12px;
    min-height: 56px;
    padding: 14px 12px;
    font-size: 13px;
    letter-spacing: 0.55px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(180deg, #34d399, #16a34a);
    box-shadow:
        0 4px 0 #166534,
        0 0 0 2px rgba(255,255,255,.08) inset;
    z-index: 0;
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

button[data-recharge-upload]:not(:disabled)::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 50%, rgba(239, 68, 68, 0.78), transparent 48%),
        radial-gradient(circle at 34% 18%, rgba(245, 158, 11, 0.72), transparent 46%),
        radial-gradient(circle at 52% 78%, rgba(34, 197, 94, 0.74), transparent 48%),
        radial-gradient(circle at 72% 24%, rgba(59, 130, 246, 0.72), transparent 48%),
        radial-gradient(circle at 90% 60%, rgba(236, 72, 153, 0.72), transparent 48%);
    filter: blur(14px) saturate(1.12);
    opacity: .92;
    z-index: -1;
    animation: recharge-upload-aura-pulse 2.6s ease-in-out infinite;
}

button[data-recharge-upload]:active {
    box-shadow:
        0 2px 0 #166534,
        0 0 0 2px rgba(255,255,255,.08) inset;
}

button[data-recharge-upload]:disabled {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    box-shadow: 0 3px 0 #475569;
    border-color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

button[data-recharge-upload]:disabled::before {
    content: none;
}

@keyframes recharge-upload-aura-pulse {
    0%, 100% {
        opacity: .78;
        transform: scale(0.985);
        filter: blur(12px) saturate(1.05);
    }
    50% {
        opacity: 1;
        transform: scale(1.015);
        filter: blur(16px) saturate(1.2);
    }
}

.profile-modal__content--product {
    width: min(520px, 100%);
    padding-top: 12px;
    max-height: 92svh;
    overflow-y: auto;
}


.product-detail-modal-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.profile-modal__content--product.product-lvl-1 { background: linear-gradient(180deg, #dc2626, #991b1b); }
.profile-modal__content--product.product-lvl-2 { background: linear-gradient(180deg, #22c55e, #15803d); }
.profile-modal__content--product.product-lvl-3 { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.profile-modal__content--product.product-lvl-4 { background: linear-gradient(180deg, #ec4899, #be185d); }
.profile-modal__content--product.product-lvl-5 { background: linear-gradient(180deg, #facc15, #ca8a04); color: #111827; }
.profile-modal__content--product.product-lvl-6 { background: linear-gradient(180deg, #a855f7, #7e22ce); }
.profile-modal__content--product.product-lvl-7 { background: linear-gradient(180deg, #fb923c, #c2410c); }
.profile-modal__content--product.product-lvl-8 { background: linear-gradient(180deg, #d1d5db, #9ca3af); color: #111827; }
.profile-modal__content--product.product-lvl-9 { background: linear-gradient(180deg, #f59e0b, #b45309); color: #111827; }
.profile-modal__content--product.product-lvl-10 { background: linear-gradient(180deg, #38bdf8, #2563eb); }

.profile-modal__content--product.product-lvl-5 .product-detail-modal-title,
.profile-modal__content--product.product-lvl-8 .product-detail-modal-title,
.profile-modal__content--product.product-lvl-9 .product-detail-modal-title {
    color: #111827;
}

.product-detail-head {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 180px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.product-detail-head img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.product-detail-info p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #f8fafc;
}

.product-detail-info {
    display: grid;
    gap: 6px;
    margin-bottom: 4px;
}

.product-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.16);
    padding: 8px 10px;
}

.product-detail-row--pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.product-detail-pair-item {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.product-detail-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.95;
}

.product-detail-value {
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.profile-modal__content--product.product-lvl-5 .product-detail-row,
.profile-modal__content--product.product-lvl-8 .product-detail-row,
.profile-modal__content--product.product-lvl-9 .product-detail-row {
    border-color: rgba(17, 24, 39, 0.35);
    background: rgba(255, 255, 255, 0.34);
}

.profile-modal__content--product.product-lvl-5 .product-detail-label,
.profile-modal__content--product.product-lvl-8 .product-detail-label,
.profile-modal__content--product.product-lvl-9 .product-detail-label,
.profile-modal__content--product.product-lvl-5 .product-detail-value,
.profile-modal__content--product.product-lvl-8 .product-detail-value,
.profile-modal__content--product.product-lvl-9 .product-detail-value,
.profile-modal__content--product.product-lvl-5 .product-detail-subtitle,
.profile-modal__content--product.product-lvl-8 .product-detail-subtitle,
.profile-modal__content--product.product-lvl-9 .product-detail-subtitle {
    color: #111827;
}

.product-detail-subtitle {
    margin: 10px 0 8px;
    font-size: 14px;
    color: #fde68a;
}

.product-gain-switch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.product-gain-switch button {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    padding: 7px 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.product-gain-switch button.is-active {
    background: #dc2626;
}

.product-gain-result {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    margin-bottom: 10px;
}

.product-gain-amount {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 900;
    color: #fef3c7;
    text-align: center;
}

.product-gain-loss {
    margin: 0;
    font-size: 12px;
    color: #fecaca;
    text-align: center;
}

.product-gain-note {
    margin: 0 0 10px;
    font-size: 12px;
    text-align: center;
    color: #e2e8f0;
}

.product-payment-box {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.42);
    padding: 8px;
    margin: 0 0 10px;
}

.product-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #f8fafc;
}

.product-payment-row strong {
    color: #fde68a;
    font-size: 13px;
}

.product-payment-row--total {
    margin-bottom: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.product-payment-label {
    display: block;
    margin: 4px 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.product-payment-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.product-payment-input {
    margin-bottom: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #111827 !important;
}

.product-payment-max-btn {
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, #dc2626, #991b1b);
    color: #ffffff;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
    font-size: 11px;
    font-weight: 900;
    padding: 0 12px;
    cursor: pointer;
    margin-bottom: 6px;
}

.product-payment-hint {
    margin: 0 0 6px;
    font-size: 11px;
    color: #fde68a;
}

.product-level-warning {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(252, 165, 165, 0.7);
    background: rgba(127, 29, 29, 0.5);
    color: #fee2e2;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.portfolio-hero {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.portfolio-hero__phone {
    margin: 0;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(2, 6, 23, 0.7);
    text-align: center;
}

.portfolio-hero__coin-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
}

.portfolio-hero__coin {
    width: 78px;
    height: 78px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.portfolio-hero__coin-glow {
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: conic-gradient(
        from 0deg,
        #ef4444,
        #f59e0b,
        #fde047,
        #22c55e,
        #38bdf8,
        #8b5cf6,
        #ec4899,
        #ef4444
    );
    filter: blur(10px);
    opacity: 0.9;
    animation: portfolioRainbowSpin 2.4s linear infinite;
}

.portfolio-hero__level {
    margin: 0;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
    font-size: 12px;
    color: #fde68a;
    text-shadow: 0 2px 6px rgba(2, 6, 23, 0.7);
    text-align: center;
}

.portfolio-invite-box {
    margin-top: 2px;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.portfolio-invite-box__id {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(2, 6, 23, 0.65);
}

.portfolio-invite-btn {
    position: relative;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #16a34a, #15803d);
    color: #ffffff;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
    font-size: 11px;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 4px 0 #14532d;
}

.portfolio-invite-btn::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #fde047, #22c55e, #38bdf8, #8b5cf6, #ef4444);
    background-size: 240% 100%;
    animation: rainbowShift 2.1s linear infinite;
    filter: blur(5px);
    opacity: 0.88;
    z-index: -1;
}

.portfolio-invite-btn.is-copied {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

@keyframes portfolioRainbowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portfolio-finance-grid {
    display: grid;
    gap: 10px;
}

.portfolio-finance-card {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    padding: 10px 12px;
}

.portfolio-finance-grid > .portfolio-finance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portfolio-finance-card p {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fde68a;
    text-transform: uppercase;
}

.portfolio-finance-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
}

.portfolio-finance-grid > .portfolio-finance-card p {
    margin: 0;
}

.portfolio-finance-grid > .portfolio-finance-card h3 {
    text-align: right;
    white-space: nowrap;
    font-size: 20px;
}

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

.portfolio-finance-card--small h3 {
    font-size: 18px;
}

.reclamable-live-wrap {
    position: relative;
    min-height: 28px;
}

.portfolio-claim-btn {
    margin-top: 8px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 6px 8px;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.portfolio-claim-btn:disabled {
    opacity: 0.45;
}

.portfolio-convert-btn {
    margin-top: 8px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 7px 10px;
    background: linear-gradient(180deg, #16a34a 0%, #166534 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.45px;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
}

.portfolio-convert-btn:not(:disabled)::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: conic-gradient(from 0deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #ec4899, #ef4444);
    filter: blur(8px);
    opacity: 0.85;
    z-index: -1;
    animation: portfolioRainbowSpin 4.5s linear infinite;
}

.portfolio-convert-btn:disabled {
    opacity: 1;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    filter: saturate(0.75) brightness(0.9);
    cursor: not-allowed;
}

.portfolio-convert-btn:disabled::before {
    content: none !important;
}

.portfolio-convert-note {
    margin: 6px 0 0;
    color: #f87171;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portfolio-convert-modal {
    display: grid;
    gap: 10px;
    max-width: 420px;
}

.portfolio-convert-modal h3 {
    margin: 0;
    text-align: center;
}

.portfolio-convert-modal__meta {
    margin: 0;
    font-size: 12px;
    color: #e2e8f0;
    text-align: center;
}

.portfolio-convert-modal__meta strong {
    color: #fde68a;
}

.portfolio-convert-modal__field {
    display: grid;
    gap: 6px;
}

.portfolio-convert-modal__field span {
    font-size: 12px;
    font-weight: 800;
    color: #e2e8f0;
}

.portfolio-convert-modal__field input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

.portfolio-convert-modal__receive {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.42);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.portfolio-convert-modal__receive span {
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
}

.portfolio-convert-modal__receive strong {
    color: #22c55e;
    font-size: 18px;
    font-weight: 900;
}

.portfolio-convert-submit {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    padding: 9px 12px;
    background: linear-gradient(180deg, #16a34a 0%, #166534 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.45px;
}

.portfolio-convert-submit:disabled {
    opacity: 0.5;
}

.portfolio-recharge-min-alert {
    margin: 8px 0 10px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(127, 29, 29, 0.28);
    position: relative;
    overflow: visible;
}

.portfolio-recharge-min-alert::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: conic-gradient(from 0deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #ec4899, #ef4444);
    filter: blur(8px);
    opacity: 0.8;
    z-index: -1;
    animation: portfolioRainbowSpin 4.8s linear infinite;
}

.portfolio-recharge-min-alert strong {
    display: block;
    color: #fecaca;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.35px;
}

.portfolio-pending-claim-btn {
    margin-top: 8px;
    width: 100%;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.portfolio-pending-claim-btn.is-waiting {
    background: rgba(100, 116, 139, 0.6);
    color: #e2e8f0;
}

.portfolio-pending-claim-btn.is-ready {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}


.portfolio-tasks {
    display: grid;
    gap: 10px;
}

.portfolio-task {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.52);
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.portfolio-task--done {
    border-color: rgba(74, 222, 128, 0.85);
    background: rgba(22, 163, 74, 0.2);
}

.portfolio-task--next {
    border-color: rgba(148, 163, 184, 0.75);
    background: rgba(71, 85, 105, 0.28);
}

.portfolio-task--next .portfolio-task__title,
.portfolio-task--next .portfolio-task__value,
.portfolio-task--next .portfolio-task__status {
    color: #d1d5db;
}

.portfolio-task--next .portfolio-task__reward-right {
    color: #cbd5e1;
}

.portfolio-task--next .portfolio-task__bar {
    background: rgba(148, 163, 184, 0.25);
}

.portfolio-task--next .portfolio-task__bar span {
    background: linear-gradient(90deg, #94a3b8, #64748b);
}

.portfolio-task--next .portfolio-task__reward-coin {
    filter: grayscale(1) brightness(0.9);
}

.portfolio-task--locked > * {
    filter: blur(3px) grayscale(1);
    opacity: 0.28;
    user-select: none;
    pointer-events: none;
}

.portfolio-task--locked {
    border-color: rgba(34, 197, 94, 0.78);
    background: rgba(22, 101, 52, 0.22);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.35) inset,
        0 0 18px rgba(34, 197, 94, 0.18);
}

.portfolio-task--locked::selection {
    background: transparent;
}

.portfolio-task--locked::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.18), transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.16), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.16), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.18), transparent 45%),
        repeating-linear-gradient(
            -45deg,
            rgba(34, 197, 94, 0.12) 0 10px,
            rgba(15, 23, 42, 0.46) 10px 20px
        );
    z-index: 1;
}

.portfolio-task--locked::after {
    content: "Desbloquea el nivel anterior para ver.";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #bbf7d0;
    font-weight: 900;
    letter-spacing: 0.4px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.75);
    background: rgba(6, 20, 12, 0.9);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3) inset,
        0 0 14px rgba(34, 197, 94, 0.22),
        0 0 26px rgba(250, 204, 21, 0.16);
    text-align: center;
    width: min(88%, 360px);
}

.portfolio-task__title {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}

.portfolio-task__value {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 900;
    color: #fde68a;
}

.portfolio-task__bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.portfolio-task__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #84cc16);
}

.portfolio-task__status {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
}

.portfolio-task__line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.portfolio-task__reward-right {
    margin: 0;
    font-size: 11px;
    text-align: right;
    color: #86efac;
    font-weight: 800;
}

.portfolio-task__reward-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.portfolio-task__reward-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 10px;
}

.portfolio-task__reward-copy {
    display: grid;
    gap: 8px;
    align-content: center;
}

.portfolio-task__reward-coin {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

.portfolio-task__reward-coin--tall {
    width: 42px;
    height: 100%;
    min-height: 54px;
    object-fit: contain;
    align-self: center;
}

.portfolio-task__reward-spacer {
    min-height: 1px;
}

@media (max-width: 820px) {
    .portfolio-task__line {
        grid-template-columns: 1fr;
    }

    .portfolio-task__reward-panel {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .portfolio-task__reward-copy {
        gap: 6px;
    }

    .portfolio-task__reward-wrap {
        grid-template-columns: 1fr auto;
    }

    .portfolio-task__reward-right {
        text-align: left;
    }

    .portfolio-task__reward-coin {
        width: 24px;
        height: 24px;
    }

    .portfolio-task__reward-coin--tall {
        width: 32px;
        min-height: 42px;
        height: auto;
    }
}

.portfolio-login-bonus-extra {
    margin: 0 0 8px;
    font-size: 12px;
    color: #22c55e;
    font-weight: 900;
}

.global-star-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.portfolio-wallet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.portfolio-gold-btn--wide {
    grid-column: 1 / -1;
}

.portfolio-gold-btn {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 12px 10px;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
    font-size: 12px;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #fde047, #22c55e, #38bdf8, #8b5cf6, #f59e0b);
    background-size: 220% 100%;
    animation: rainbowShift 2.2s linear infinite;
    box-shadow: 0 4px 0 rgba(146, 64, 14, 0.9);
}

.portfolio-gold-btn:disabled {
    filter: grayscale(1);
    opacity: 0.7;
    cursor: not-allowed;
}

.portfolio-logout-form {
    margin: 0;
}

.portfolio-gold-btn--logout {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 0 rgba(127, 29, 29, 0.95);
}

.pixar-withdraw-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cartera-finance-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(180, 226, 255, 0.32);
    background: linear-gradient(145deg, rgba(8, 35, 60, 0.66), rgba(4, 24, 46, 0.78));
}

.cartera-finance-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(186, 230, 253, 0.42);
    background: linear-gradient(130deg, rgba(10, 34, 58, 0.88), rgba(11, 52, 84, 0.82));
}

.cartera-finance-row span {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.35px;
    color: #fde68a;
}

.cartera-finance-row strong {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #f8fafc;
    text-shadow: 0 4px 12px rgba(3, 7, 18, 0.6);
}

.cartera-finance-row strong {
    justify-self: end;
}

.cartera-finance-row--actions {
    grid-template-columns: auto 1fr;
}

.cartera-finance-actions {
    justify-self: end;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 560px) {
    .cartera-finance-box {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pixar-action-btn {
    width: 100%;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #1e3a8a;
    background: #7dd3fc;
    box-shadow: none;
    transition: filter .15s ease;
}

.pixar-action-btn:hover {
    filter: brightness(1.03);
}

.pixar-action-btn:active {
    filter: brightness(0.97);
}

.pixar-action-btn:disabled {
    filter: grayscale(0.25) brightness(0.86);
    cursor: not-allowed;
}

.pixar-action-btn--recharge {
    background: #7dd3fc;
}

.pixar-action-btn--withdraw {
    background: #7dd3fc;
}

.pixar-action-btn--history {
    background: #7dd3fc;
}
.pixar-action-btn--card {
    background: #7dd3fc;
}

.pixar-action-btn--muted {
    color: #64748b !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    background: #cbd5e1 !important;
}

.pixar-action-btn--muted:disabled {
    opacity: 0.92 !important;
    cursor: not-allowed;
}

.pixar-action-btn--mini {
    width: auto;
    min-width: 108px;
    padding: 6px 9px;
    font-size: 10px;
}

.pixar-modal-shell {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background:
        radial-gradient(120% 120% at 10% 0%, rgba(125, 211, 252, 0.28), transparent 45%),
        radial-gradient(110% 120% at 90% 0%, rgba(167, 243, 208, 0.26), transparent 44%),
        linear-gradient(165deg, rgba(9, 41, 74, 0.96), rgba(13, 32, 58, 0.98));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 18px 44px rgba(2, 6, 23, 0.62);
}

.pixar-modal-shell .product-detail-modal-title {
    letter-spacing: 0.7px;
    color: #f0f9ff;
}

.pixar-modal-shell .field,
.pixar-modal-shell select {
    border-color: rgba(186, 230, 253, 0.45);
    background: rgba(15, 23, 42, 0.62);
}

.pixar-modal-shell .product-payment-box {
    background: rgba(5, 23, 44, 0.6);
    border-color: rgba(148, 197, 255, 0.32);
}

.pixar-modal-shell .product-payment-row strong {
    color: #e0f2fe;
}

.pixar-modal-cta {
    width: 100%;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    padding: 11px 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    color: #f8fafc;
    background: linear-gradient(120deg, #06b6d4, #2563eb 52%, #1d4ed8);
    box-shadow: 0 10px 18px rgba(29, 78, 216, 0.35);
}

.pixar-modal-cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Recarga/Comprobante: boton blanco con texto azul, sin efectos arcoiris */
.pixar-modal-shell--recharge .pixar-modal-cta,
[data-recharge-proof-modal] .pixar-modal-cta,
button[data-recharge-upload] {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
}

button[data-recharge-upload]::before,
button[data-recharge-upload]:not(:disabled)::before,
button[data-recharge-upload]:disabled::before {
    content: none !important;
    animation: none !important;
    filter: none !important;
}

.pixar-modal-shell--recharge .pixar-modal-cta:disabled,
[data-recharge-proof-modal] .pixar-modal-cta:disabled,
button[data-recharge-upload]:disabled {
    background: #e2e8f0 !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}

.pixar-modal-shell--wide {
    width: min(94vw, 980px);
}

.pixar-modal-shell--recharge,
.pixar-modal-shell--history-terminal {
    border: 1px solid rgba(190, 230, 255, 0.42);
    background: linear-gradient(160deg, #062646, #041a31);
    box-shadow: none;
}

.pixar-modal-shell--recharge::before,
.pixar-modal-shell--history-terminal::before {
    display: none;
}

@media (max-width: 820px) {
    .pixar-withdraw-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cartera-finance-row strong {
        font-size: 24px;
    }

    .cartera-finance-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label amount"
            "action action";
    }
    .cartera-finance-row span { grid-area: label; }
    .cartera-finance-row strong { grid-area: amount; }
    .cartera-finance-row .pixar-action-btn--mini,
    .cartera-finance-actions { grid-area: action; justify-self: start; }
}

.cards-list--modal {
    margin-top: 14px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}

.portfolio-support-fab {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(180deg, #dc2626, #991b1b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.45);
    z-index: 12;
}

.portfolio-notice-fab {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.45);
    z-index: 12;
}

.portfolio-download-fab {
    position: absolute;
    top: 58px;
    left: 6px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.96), rgba(21, 128, 61, 0.96));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.45);
    z-index: 12;
}

.portfolio-download-fab::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 14px;
    background: linear-gradient(90deg, #22c55e, #86efac, #38bdf8, #22c55e);
    background-size: 240% 100%;
    animation: rainbowShift 2.3s linear infinite;
    filter: blur(6px);
    opacity: 0.8;
    z-index: -1;
}

.portfolio-notice-fab::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 14px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #fde047, #22c55e, #38bdf8, #8b5cf6, #ef4444);
    background-size: 240% 100%;
    animation: rainbowShift 2.3s linear infinite;
    filter: blur(6px);
    opacity: 0.85;
    z-index: -1;
}

.portfolio-notice-fab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.portfolio-download-fab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.portfolio-notice-fab__badge {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.portfolio-notice-fab__badge.is-hidden {
    display: none;
}

.portfolio-support-fab::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #fde047, #22c55e, #38bdf8, #8b5cf6, #ef4444);
    background-size: 240% 100%;
    animation: rainbowShift 2.1s linear infinite;
    filter: blur(5px);
    opacity: 0.9;
    z-index: -1;
}

.portfolio-notice-modal {
    max-width: 460px;
    width: min(92vw, 460px);
}

.portfolio-notice-box {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(15, 23, 42, 0.35);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.portfolio-notice-box h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #fde68a;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
    line-height: 1.4;
}

.portfolio-notice-schedule {
    display: grid;
    gap: 6px;
}

.portfolio-notice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    color: #ffffff;
}

.portfolio-notice-row strong {
    color: #f8fafc;
    text-align: right;
}

.portfolio-notice-row strong.is-open {
    color: #86efac;
}

.portfolio-notice-row strong.is-closed {
    color: #fca5a5;
}

.portfolio-notice-row--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.portfolio-notice-cell {
    display: grid;
    gap: 4px;
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    color: #ffffff;
}

.portfolio-notice-cell strong {
    color: #f8fafc;
    text-align: right;
}

.portfolio-notice-row--warning {
    align-items: flex-start;
    background: rgba(127, 29, 29, 0.45);
    border-color: rgba(254, 202, 202, 0.45);
}

.portfolio-notice-row--warning span {
    color: #fecaca;
    font-weight: 800;
}

.portfolio-notice-row--warning strong {
    color: #fff1f2;
    max-width: 65%;
    line-height: 1.25;
}

.portfolio-notice-row--admin {
    align-items: flex-start;
}

.portfolio-notice-row--admin span {
    color: #fde68a;
    font-weight: 900;
    max-width: 38%;
    line-height: 1.25;
}

.portfolio-notice-row--admin strong {
    color: #ffffff;
    line-height: 1.25;
    white-space: normal;
}

.portfolio-notice-schedule--compact {
    gap: 5px;
}

.portfolio-notice-row--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    background: linear-gradient(130deg, rgba(24, 47, 90, 0.72), rgba(12, 28, 58, 0.78));
    border: 1px solid rgba(176, 218, 255, 0.22);
}

.portfolio-notice-day {
    font-size: 12px;
    font-weight: 800;
    color: #e6f1ff;
}

.portfolio-notice-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.portfolio-notice-state.is-open {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.45);
}

.portfolio-notice-state.is-closed {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(248, 113, 113, 0.45);
}

.portfolio-admin-notice-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.42);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.portfolio-admin-notice-card:last-child {
    margin-bottom: 0;
}

.portfolio-admin-notice-card__image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.portfolio-admin-notice-card__body {
    padding: 9px 10px 10px;
}

.portfolio-admin-notice-card__title {
    margin: 0 0 5px;
    color: #fde68a;
    font-weight: 900;
    font-size: 12px;
    line-height: 1.2;
}

.portfolio-admin-notice-card__text {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    white-space: pre-wrap;
}

.portfolio-notice-row--link a {
    color: #86efac;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(134, 239, 172, 0.45);
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.12);
}

.portfolio-stripe-warning {
    position: relative;
    margin: 8px 0 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.85), rgba(69, 10, 10, 0.78));
    overflow: hidden;
}

.portfolio-stripe-warning::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    z-index: 0;
    background: linear-gradient(120deg, #ef4444, #f59e0b, #22c55e, #38bdf8, #a855f7, #ef4444);
    background-size: 240% 240%;
    filter: blur(10px);
    opacity: 0.9;
    animation: rainbowShift 2.2s linear infinite;
}

.portfolio-stripe-warning__title,
.portfolio-stripe-warning__line,
.portfolio-stripe-warning__meta {
    position: relative;
    z-index: 1;
}

.portfolio-stripe-warning__title {
    color: #fff;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: 0.4px;
}

.portfolio-stripe-warning__line {
    color: #fee2e2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.portfolio-stripe-warning__line strong {
    color: #fef08a;
    font-weight: 900;
}

.portfolio-stripe-warning__meta {
    margin-top: 5px;
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
}

.portfolio-support-fab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.portfolio-support-fab__badge {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: #facc15;
    color: #111827;
    font-size: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.portfolio-support-fab__badge.is-hidden {
    display: none;
}

.portfolio-support__messages {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.5);
    padding: 10px;
    display: grid;
    gap: 8px;
    max-height: 44vh;
    overflow: auto;
}

.portfolio-support__bubble {
    max-width: 90%;
    width: fit-content;
    border-radius: 12px;
    padding: 8px 10px;
    display: grid;
    gap: 4px;
}

.portfolio-support__bubble.is-user {
    justify-self: end;
    background: rgba(220, 38, 38, 0.32);
    border: 1px solid rgba(252, 165, 165, 0.6);
}

.portfolio-support__bubble.is-admin {
    justify-self: start;
    background: rgba(59, 130, 246, 0.28);
    border: 1px solid rgba(147, 197, 253, 0.6);
}

.portfolio-support__bubble p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.portfolio-support__bubble small {
    font-size: 10px;
    opacity: 0.86;
}

.portfolio-support__bubble.is-system {
    justify-self: center;
    max-width: 80%;
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.6);
}

.portfolio-support__status {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fde68a;
}

.portfolio-support__img {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.portfolio-support__form {
    margin-top: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: end;
}

.portfolio-support__input {
    min-height: 64px;
    max-height: 140px;
    resize: vertical;
}

.portfolio-support__clip {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.portfolio-support__file-name {
    grid-column: 1 / -1;
    font-size: 11px;
    color: #dbeafe;
    min-height: 16px;
}

.portfolio-support-online {
    margin: 8px 0 0;
    font-size: 12px;
    color: #fde68a;
}

@media (max-width: 820px) {
    .portfolio-support__messages {
        padding: 8px;
        gap: 6px;
        max-height: 38vh;
    }

    .portfolio-support__bubble {
        padding: 6px 8px;
        max-width: 92%;
    }

    .portfolio-support__bubble p {
        font-size: 12px;
        line-height: 1.25;
    }

    .portfolio-support__bubble small,
    .portfolio-support__status {
        font-size: 9px;
    }

    .portfolio-support__img {
        width: 160px;
    }

    .portfolio-support__input {
        min-height: 52px;
        font-size: 12px;
    }

    .portfolio-support__clip {
        width: 34px;
        height: 34px;
    }
}

.portfolio-pending {
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    padding: 10px;
}

.portfolio-pending h4 {
    margin: 0 0 8px;
    font-size: 12px;
    color: #fde68a;
    font-weight: 900;
}

.portfolio-pending-item {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.portfolio-pending-item:last-child {
    margin-bottom: 0;
}

.portfolio-pending-item p {
    margin: 0 0 4px;
    font-size: 11px;
    color: #ffffff;
}

.portfolio-history-list {
    margin-top: 10px;
    max-height: min(52svh, 420px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    padding: 8px;
}

.portfolio-history-item {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    margin-bottom: 8px;
}

.portfolio-history-item:last-child {
    margin-bottom: 0;
}

.portfolio-history-item p {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.portfolio-history-item p:last-child {
    margin-bottom: 0;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.client-product-buy-btn--cancel {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    box-shadow: 0 3px 0 #7f1d1d;
}

.screen {
    min-height: 100vh;
    padding-bottom: 96px;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--nav-border);
    z-index: 50;
}

.mobile-bottom-nav__form {
    margin: 0;
}

.mobile-bottom-nav__item {
    text-decoration: none;
    color: var(--nav-text);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.mobile-bottom-nav__item--logout {
    width: 100%;
    cursor: pointer;
    background: rgba(239, 68, 68, 0.2);
}

.mobile-bottom-nav__item--active {
    background: var(--nav-active);
    border-color: rgba(255, 255, 255, 0.65);
}

.home-page-title.is-hidden {
    display: none;
}

@media (max-width: 820px) {
    .wrap {
        padding: 10px 10px;
    }

    .card {
        padding: 14px;
        border-radius: 14px;
    }

    h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .field {
        padding: 9px 10px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .pin-digit {
        height: 42px;
        font-size: 18px;
    }

    body.page-login .wrap {
        padding: calc(12px + env(safe-area-inset-top)) 8px 8px;
    }

    .login-shell {
        transform: translateY(0);
    }

    .login-shell .card {
        min-height: auto;
        padding: 14px 12px 16px;
    }

    body.page-login .top-logo img {
        width: min(260px, 76vw);
    }

    .phone-prefix {
        min-width: 56px;
        font-size: 14px;
    }

    .phone-group .field {
        font-size: 18px;
    }

    body.page-login .pin-digit {
        height: 54px;
        font-size: 30px;
    }

    body.page-login button {
        padding: 12px 14px;
        font-size: 12px;
    }

    body.page-login .login-mario-float {
        width: clamp(140px, 34vw, 200px);
        bottom: max(8px, env(safe-area-inset-bottom));
    }

    .home-screen {
        padding: 8px 6px 80px;
    }

    .home-page-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .home-dynamic {
        width: calc(100vw - 12px);
        min-height: calc(100svh - 132px);
        border-radius: 12px;
        padding: 10px;
    }

    .home-panel {
        min-height: auto;
        gap: 8px;
    }

    .portfolio-hero {
        gap: 4px;
        margin-bottom: 0;
    }

    .portfolio-hero__phone {
        font-size: 11px;
    }

    .portfolio-hero__coin-wrap {
        width: 70px;
        height: 70px;
    }

    .portfolio-hero__coin {
        width: 62px;
        height: 62px;
    }

    .portfolio-hero__level {
        font-size: 10px;
    }

    .portfolio-invite-box__id {
        font-size: 11px;
    }

    .portfolio-invite-btn {
        font-size: 10px;
        padding: 9px 12px;
    }

    .profile-card {
        padding: 10px;
        border-radius: 12px;
    }

    .profile-switch__btn {
        height: 38px;
        font-size: 11px;
    }

    .profile-switch[data-portfolio-switch] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-finansas-toolbar {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .portfolio-gold-btn {
        font-size: 9px;
        padding: 10px 6px;
    }

    .profile-avatar-ring {
        width: 98px;
        height: 98px;
    }

    .profile-ine-thumb {
        height: 68px;
    }

    .client-products-banner img {
        height: 98px;
    }

    .client-products-banner p {
        font-size: 14px;
        bottom: 8px;
    }

    .product-payment-max-btn {
        height: 34px;
        font-size: 9px;
        padding: 0 10px;
    }

    .client-products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .client-product-card {
        padding: 8px;
    }

    .client-product-title {
        font-size: 13px;
        margin: 6px 0 4px;
    }

    .client-product-meta {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .client-product-meta-row {
        gap: 6px;
        margin-bottom: 3px;
    }

    .client-product-days span {
        font-size: 16px;
    }

    .client-product-days {
        font-size: 10px;
    }

    .client-product-buy-btn {
        font-size: 9px;
        padding: 8px 6px;
        margin-top: 6px;
    }

    .client-product-meta--money {
        font-size: 12px;
    }

    .client-product-meta--money:last-child {
        font-size: 13px;
    }

    .profile-modal {
        padding: 8px;
    }

    .profile-modal__content {
        width: 100%;
        max-height: 94svh;
        overflow: auto;
        padding: 10px;
    }

    .product-detail-modal-title {
        font-size: 16px;
    }

    .mobile-bottom-nav {
        gap: 6px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav__item {
        font-size: 11px;
        padding: 9px 3px;
    }
}

@media (max-width: 420px) {
    .cards-list {
        grid-template-columns: 1fr;
    }

    .client-products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .client-products-banner img {
        height: 112px;
    }

    .client-products-banner p {
        left: 50%;
        bottom: 8px;
        transform: translateX(-50%);
        font-size: 12px;
        letter-spacing: 0.2px;
        width: 100%;
        text-align: center;
    }

    .client-product-card {
        padding: 8px;
    }

    .client-product-title {
        font-size: 13px;
    }

    .client-product-meta {
        font-size: 11px;
    }

    .client-product-buy-btn {
        font-size: 9px;
        padding: 9px 6px;
    }

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

    .product-detail-row--pair {
        grid-template-columns: 1fr;
    }

    .portfolio-finance-row-small {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-modal {
        padding: 8px;
    }

    .profile-modal__content--product {
        padding: 10px;
        max-height: 94svh;
    }

    .product-detail-modal-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .product-detail-head {
        aspect-ratio: 16 / 8;
        min-height: 120px;
        margin-bottom: 8px;
    }

    .product-detail-row {
        padding: 6px 8px;
    }

    .product-detail-label {
        font-size: 11px;
    }

    .product-detail-value {
        font-size: 12px;
    }

    .product-detail-subtitle {
        margin: 8px 0 6px;
        font-size: 13px;
    }

    .product-gain-result {
        padding: 7px;
        margin-bottom: 8px;
    }

    .product-gain-amount {
        font-size: 14px;
    }

    .product-gain-loss,
    .product-gain-note,
    .product-payment-row,
    .product-payment-label,
    .product-payment-hint {
        font-size: 11px;
    }

    .card { padding: 16px; border-radius: 14px; }
    .pin-digit { height: 44px; font-size: 18px; }
    .top-logo img { width: min(250px, 82vw); }

    body.page-register .wrap {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 6px 10px 10px;
    }
    body.page-register .register-shell {
        margin-top: 2px;
    }
    body.page-register .top-logo {
        margin-bottom: 4px;
    }
    body.page-register .top-logo img {
        width: min(220px, 64vw);
    }
    body.page-register .card {
        padding: 10px 10px;
        border-radius: 12px;
    }
    body.page-register h1 {
        margin-bottom: 8px;
        font-size: 18px;
    }
    body.page-register .field {
        margin-bottom: 8px;
        padding: 9px 10px;
        font-size: 14px;
    }
    body.page-register .pin-grid {
        margin-bottom: 8px;
        gap: 6px;
    }
    body.page-register .pin-digit {
        height: 36px;
        font-size: 16px;
    }
    body.page-register .captcha-box {
        margin-bottom: 8px;
        padding: 6px;
        font-size: 18px;
        letter-spacing: 2px;
    }
    body.page-register button {
        padding: 10px;
    }
    body.page-register .links {
        margin-top: 8px;
        font-size: 13px;
    }

    body.page-login .wrap { padding: calc(32px + env(safe-area-inset-top)) 10px 10px; }
    body.page-login h1 { margin: 0 0 10px; font-size: 20px; }
    body.page-login .top-logo { margin: 0 0 6px; }
    body.page-login .top-logo img { width: min(300px, 84vw); }
    body.page-login .login-shell { transform: translateY(-18px); margin-top: 0; }
    body.page-login .card { min-height: 54svh; }
    body.page-login .phone-group { margin-bottom: 10px; }
    body.page-login .pin-grid { margin-bottom: 10px; }
    body.page-login .pin-digit { height: 56px; font-size: 30px; }
    body.page-login .remember { margin-bottom: 10px; }
    body.page-login .links { margin-top: 10px; font-size: 13px; }
    body.page-login .login-mario-float {
        width: clamp(170px, 48vw, 230px);
        right: max(6px, env(safe-area-inset-right));
        left: auto;
        bottom: max(10px, env(safe-area-inset-bottom));
        opacity: 1;
    }
    body.page-login .login-mario-float img { max-height: 34vh; }
    body.page-login button { font-size: 16px; padding: 14px 14px; }
}


/* Ban login modal (red aura + gray star) */
.ban-star-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(2, 6, 23, 0.72);
    display: grid;
    place-items: center;
    padding: 18px;
}

.ban-star-modal[hidden] { display: none !important; }

.ban-star-modal__panel {
    width: min(520px, 96vw);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(10, 19, 45, 0.94);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    position: relative;
    padding: 16px 14px 14px;
}

.ban-star-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.8);
    background: #dc2626;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.ban-star-modal__title {
    margin: 2px 42px 8px 0;
    color: #fecaca;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 0 10px rgba(239,68,68,.6);
}


.ban-star-modal__message {
    margin: 0 0 12px;
    color: #fff1f2;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.ban-star-modal__actions {
    display: flex;
    justify-content: center;
}

.ban-star-modal__ok {
    min-width: 180px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.95);
    background: linear-gradient(180deg, #ef4444, #991b1b);
    color: #fff;
    font-family: "Press Start 2P", "Arial Black", sans-serif;
    font-size: 12px;
    font-weight: 900;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(239,68,68,.45);
}


/* Portafolio historial modal (table style like admin client history) */
.portfolio-history-filters {
    display: block;
    margin: 10px 0 12px;
}

.portfolio-history-filters label {
    display: grid;
    gap: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.portfolio-history-filters label span {
    color: rgba(255,255,255,.9);
    font-size: 11px;
    letter-spacing: .2px;
}

.portfolio-history-filters input,
.portfolio-history-filters select {
    width: 100%;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(8, 18, 47, .78);
    color: #fff;
    padding: 8px 10px;
    outline: none;
}

.portfolio-history-filters__search {
    width: 100%;
}

.portfolio-history-table-wrap {
    border: 1px solid rgba(125, 211, 252, .3);
    border-radius: 14px;
    background: #030712;
    overflow: auto;
    max-height: min(52vh, 400px);
}

.portfolio-history-table {
    width: 100%;
    min-width: 460px;
    border-collapse: separate;
    border-spacing: 0;
    color: #dbeafe;
    font-size: 11px;
    font-family: "Consolas", "Courier New", monospace;
}

.portfolio-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0b2542;
    color: #93c5fd;
    text-align: left;
    font-weight: 700;
    padding: 8px 10px;
    border-right: 1px solid rgba(125, 211, 252, .18);
}

.portfolio-history-table tbody td {
    padding: 8px 10px;
    border-right: 1px solid rgba(125, 211, 252, .12);
    border-bottom: 1px solid rgba(125, 211, 252, .12);
    vertical-align: top;
}

.portfolio-history-table tbody tr:nth-child(even) td {
    background: rgba(15, 23, 42, .82);
}

.portfolio-history-table tbody tr:hover td {
    background: rgba(12, 34, 61, .95);
}

.portfolio-history-table .profile-empty {
    color: #bfdbfe;
    text-align: center;
    font-weight: 600;
    padding: 14px 10px;
}

@media (max-width: 768px) {
    .portfolio-history-table-wrap {
        max-height: 46vh;
    }
}

/* Auth redesign: cinematic Pixar-like look, keep only selected background */
body.page-auth::before,
body.page-auth::after,
body.page-auth .wrap::before,
body.page-login .login-mario-float {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
}

body.page-auth {
    font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
}

.top-logo img {
    width: min(320px, 78vw);
}

.auth-tabs {
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 auto 12px;
}

.auth-tab {
    text-decoration: none;
    text-align: center;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.54);
    color: #274766;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 5px 14px rgba(12, 38, 66, 0.14);
    transition: transform 140ms ease, background-color 140ms ease;
}

.auth-tab:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.72);
}

.auth-tab.is-active {
    color: #ffffff;
    border-color: rgba(15, 124, 201, 0.75);
    background: linear-gradient(140deg, #2ba0f2, #0f7cc9);
}

body.page-auth .card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 26px;
    box-shadow: 0 20px 46px rgba(7, 33, 58, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px;
}

body.page-auth h1 {
    font-size: 28px;
    font-family: "Baloo 2", "Nunito", sans-serif;
    font-weight: 800;
    color: #11365b;
}

body.page-auth .field,
body.page-auth .pin-digit {
    border: 1px solid rgba(100, 153, 198, 0.62);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

body.page-auth .phone-prefix {
    border: 1px solid rgba(100, 153, 198, 0.75);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #0f7cc9;
}

body.page-auth .phone-group .field {
    border-radius: 0 14px 14px 0;
    font-size: 20px;
}

body.page-auth button {
    border-radius: 14px;
    padding: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #0f7cc9, #26a8ff);
}

body.page-auth button:hover {
    background: linear-gradient(135deg, #0c5f99, #0f7cc9);
}

body.page-login .wrap {
    align-items: center;
    padding: calc(24px + env(safe-area-inset-top)) 10px 10px;
}

body.page-login .login-shell {
    transform: none;
}

body.page-login button {
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    font-family: "Baloo 2", "Nunito", sans-serif;
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .auth-tabs {
        gap: 6px;
    }

    .auth-tab {
        font-size: 13px;
        padding: 9px 6px;
    }

    body.page-auth h1 {
        font-size: 24px;
    }
}
/* Auth containers redesign v2: structural change, not just skin */
body.page-auth .wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(18px, 4vw, 42px) 14px !important;
}

.login-shell,
.register-shell,
.recover-shell {
    width: min(560px, 100%) !important;
    position: relative;
    isolation: isolate;
    border-radius: 34px;
    padding: clamp(12px, 2vw, 18px);
    background: linear-gradient(155deg, rgba(8, 27, 45, 0.6), rgba(20, 84, 131, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 28px 60px rgba(3, 22, 39, 0.45);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.login-shell::before,
.register-shell::before,
.recover-shell::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: -1;
    border-radius: 26px;
    border: 1px solid rgba(147, 220, 255, 0.42);
    pointer-events: none;
}

body.page-auth .top-logo {
    margin-bottom: 10px;
}

body.page-auth .top-logo img {
    width: min(260px, 62vw);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.auth-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 12px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(6, 31, 52, 0.58);
    border: 1px solid rgba(198, 235, 255, 0.35);
}

.auth-tab {
    border-radius: 11px;
    background: transparent;
    color: rgba(224, 245, 255, 0.92);
    border: 1px solid transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
}

.auth-tab:hover {
    transform: none;
    background: rgba(73, 159, 220, 0.24);
}

.auth-tab.is-active {
    color: #08385f;
    background: linear-gradient(140deg, #e9f7ff, #bfe8ff);
    border-color: rgba(255, 255, 255, 0.75);
}

body.page-auth .card {
    width: 100% !important;
    border-radius: 20px;
    border: 0;
    padding: clamp(18px, 3vw, 26px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(237, 248, 255, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 30px rgba(3, 40, 68, 0.18);
}

body.page-auth h1 {
    margin-bottom: 12px;
    font-size: clamp(26px, 3vw, 32px);
    letter-spacing: 0.2px;
}

body.page-auth label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #355775;
    margin-bottom: 5px;
}

body.page-auth .field,
body.page-auth .pin-digit {
    border: 2px solid #c0def3;
    background: #ffffff;
    border-radius: 12px;
}

body.page-auth .field:focus,
body.page-auth .pin-digit:focus {
    outline: none;
    border-color: #5caedf;
    box-shadow: 0 0 0 3px rgba(92, 174, 223, 0.22);
}

body.page-auth .phone-prefix {
    border: 2px solid #5eaedd;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #3a96cf, #2a7cb5);
}

body.page-auth .phone-group .field {
    border-radius: 0 12px 12px 0;
    font-size: 19px;
}

body.page-auth button {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #1d9ae8, #0f7cc9);
}

body.page-auth .links {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

body.page-auth .links a {
    background: rgba(16, 90, 143, 0.09);
    color: #0c5f99;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .login-shell,
    .register-shell,
    .recover-shell {
        border-radius: 24px;
        padding: 10px;
    }

    .login-shell::before,
    .register-shell::before,
    .recover-shell::before {
        inset: 6px;
        border-radius: 18px;
    }

    body.page-auth .card {
        border-radius: 16px;
        padding: 16px;
    }

    .auth-tab {
        font-size: 12px;
        padding: 9px 4px;
    }
}
/* User module full redesign: Pixar-inspired floating cockpit */
body.page-home {
    margin: 0;
    min-height: 100vh;
    color: #f8fbff;
    background:
        radial-gradient(1200px 420px at 20% -8%, rgba(139, 218, 255, 0.28), transparent 58%),
        radial-gradient(1000px 340px at 90% -10%, rgba(31, 166, 241, 0.24), transparent 56%),
        url('../img/local/background.png') center center / cover no-repeat fixed;
}

body.page-home::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(4, 23, 43, 0.42), rgba(8, 47, 82, 0.28));
    z-index: 0;
}

body.page-home .user-shell {
    width: min(1220px, calc(100vw - 26px));
    margin: 0 auto;
    padding: 120px 0 24px;
    position: relative;
    z-index: 2;
}

body.page-home .user-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    border-radius: 24px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: linear-gradient(145deg, rgba(11, 33, 54, 0.72), rgba(19, 77, 120, 0.66));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(1, 12, 25, 0.42);
}

body.page-home .user-topbar__left-actions,
body.page-home .user-topbar__right-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.page-home .user-topbar__password-btn {
    width: auto;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #083c61;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.2px;
    background: linear-gradient(140deg, #eaf7ff, #a8e4ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(2, 15, 28, 0.28);
}

body.page-home .user-topbar__password-btn i {
    font-size: 14px;
}

body.page-home .user-topbar__info-btn {
    width: auto;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    padding: 10px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #eaf7ff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.25px;
    background: linear-gradient(140deg, rgba(15, 89, 142, 0.9), rgba(9, 53, 93, 0.95));
    box-shadow: 0 8px 18px rgba(2, 15, 28, 0.28);
}

body.page-home .user-topbar__invite-btn {
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #073a5d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.25px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(2, 15, 28, 0.3);
}

body.page-home .user-topbar__center {
    text-align: center;
    min-width: 0;
}

body.page-home .user-topbar__name {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-home .user-topbar__meta {
    margin-top: 2px;
    font-size: 12px;
    color: #d8efff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-home .user-topbar__logout {
    margin: 0;
}

body.page-home .user-topbar__logout-btn {
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 8px 14px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    color: #eaf6ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

body.page-home .home-page-title {
    margin: 6px 0 0;
    width: auto;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.2;
    color: #9fdcff;
    text-shadow: none;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

body.page-home .mobile-bottom-nav {
    position: fixed;
    bottom: auto;
    right: auto;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    width: min(860px, calc(100vw - 24px));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: auto;
    max-height: none;
    gap: 8px;
    padding: 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(150deg, rgba(3, 26, 46, 0.84), rgba(11, 64, 102, 0.76));
    box-shadow: 0 16px 45px rgba(1, 16, 31, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.page-home .mobile-bottom-nav__item {
    min-width: 128px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.08);
    color: #d7efff;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    transition: all 160ms ease;
}

body.page-home .mobile-bottom-nav__item i {
    font-size: 14px;
}

body.page-home .mobile-bottom-nav__item:hover {
    transform: translateY(-1px);
    background: rgba(166, 229, 255, 0.22);
}

body.page-home .mobile-bottom-nav__item--active {
    border-color: rgba(255, 255, 255, 0.55);
    color: #083a5f;
    background: linear-gradient(140deg, #eef9ff, #b5e6ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.page-home .home-dynamic {
    width: 100%;
    min-height: calc(100vh - 220px);
    margin: 0;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background:
        linear-gradient(160deg, rgba(5, 22, 40, 0.7), rgba(13, 67, 107, 0.62)),
        radial-gradient(circle at 20% 0, rgba(102, 200, 255, 0.2), transparent 45%);
    box-shadow: 0 28px 70px rgba(0, 11, 23, 0.5);
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.page-home .home-panel {
    min-height: calc(100vh - 290px);
    gap: 14px;
}

body.page-home .profile-card,
body.page-home .team-root,
body.page-home .product-card,
body.page-home .portfolio-card,
body.page-home .profile-panel,
body.page-home .profile-modal__content {
    border-radius: 18px;
    border: 1px solid rgba(180, 226, 255, 0.3);
    background: linear-gradient(145deg, rgba(12, 49, 79, 0.65), rgba(7, 33, 57, 0.72));
    box-shadow: 0 10px 26px rgba(0, 7, 15, 0.28);
}

body.page-home .profile-switch,
body.page-home .portfolio-finance-switch,
body.page-home .product-switch {
    border-radius: 16px;
    padding: 6px;
    border: 1px solid rgba(171, 228, 255, 0.3);
    background: rgba(6, 34, 57, 0.55);
}

body.page-home .profile-switch__btn,
body.page-home .portfolio-finance-switch__btn,
body.page-home .product-switch__btn {
    border-radius: 12px;
    font-weight: 800;
}

body.page-home .profile-switch__btn.is-active,
body.page-home .portfolio-finance-switch__btn.is-active,
body.page-home .product-switch__btn.is-active {
    background: linear-gradient(140deg, #eaf8ff, #bce8ff);
    color: #083a5f;
}

@media (max-width: 980px) {
    body.page-home .user-shell {
        padding-top: 136px;
    }

    body.page-home .mobile-bottom-nav {
        bottom: auto;
        right: auto;
        top: 10px;
        border-radius: 16px;
        gap: 6px;
        padding: 8px;
    }

    body.page-home .mobile-bottom-nav__item {
        min-width: 108px;
        font-size: 13px;
        padding: 9px 10px;
    }

    body.page-home .home-dynamic {
        border-radius: 22px;
        padding: 14px;
    }
}

@media (max-width: 640px) {
    body.page-home .user-shell {
        width: calc(100vw - 14px);
        padding-top: 150px;
    }

    body.page-home .user-topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "center"
            "right";
        gap: 10px;
        border-radius: 18px;
    }

    body.page-home .user-topbar__left-actions {
        grid-area: left;
    }

    body.page-home .user-topbar__password-btn {
        min-height: 44px;
        border-radius: 12px;
        font-size: 12px;
        padding: 8px 10px;
    }

    body.page-home .user-topbar__center {
        grid-area: center;
        text-align: left;
    }

    body.page-home .user-topbar__name {
        font-size: 16px;
    }

    body.page-home .user-topbar__meta {
        font-size: 11px;
    }

    body.page-home .user-topbar__logout {
        margin: 0;
    }

    body.page-home .user-topbar__right-actions {
        grid-area: right;
        justify-content: space-between;
    }

    body.page-home .user-topbar__invite-btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    body.page-home .user-topbar__logout-btn {
        width: auto;
    }

    body.page-home .mobile-bottom-nav {
        bottom: auto;
        right: auto;
        width: calc(100vw - 12px);
        justify-content: stretch;
    }

    body.page-home .mobile-bottom-nav__item {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    body.page-home .mobile-bottom-nav__item span {
        font-size: 12px;
    }

    body.page-home .home-dynamic {
        min-height: calc(100vh - 250px);
        border-radius: 18px;
    }
}
/* Perfil simplificado: acciones directas */
body.page-home .profile-password-launch-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(23, 125, 189, 0.68), rgba(10, 75, 124, 0.8));
    color: #eaf7ff;
    font-weight: 900;
    letter-spacing: 0.25px;
    box-shadow: 0 10px 22px rgba(2, 26, 46, 0.35);
}

body.page-home .profile-password-launch-btn__icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 15px;
}

body.page-home .profile-quick-actions {
    display: grid;
    gap: 12px;
}

body.page-home .profile-quick-card-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 20px;
    padding: 18px 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(116, 210, 255, 0.25), transparent 50%),
        linear-gradient(145deg, rgba(7, 43, 71, 0.86), rgba(15, 82, 129, 0.74));
    color: #e8f6ff;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
    box-shadow: 0 14px 30px rgba(0, 14, 28, 0.35);
}

body.page-home .profile-quick-card-btn__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: linear-gradient(145deg, #f1fbff, #a9e5ff);
    color: #084369;
}

body.page-home .profile-quick-card-btn__text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

body.page-home .profile-quick-card-btn small {
    font-size: 12px;
    color: #cdefff;
}

/* Disney+ modal theme (global override) */
:root {
    --dp-bg-1: #040714;
    --dp-bg-2: #0b1f53;
    --dp-glow: rgba(78, 146, 255, 0.38);
    --dp-border: rgba(163, 211, 255, 0.36);
    --dp-text: #eaf4ff;
}

.profile-modal,
.ban-star-modal {
    background: radial-gradient(circle at 50% 10%, rgba(54, 110, 220, 0.22), rgba(1, 4, 14, 0.9) 55%);
    backdrop-filter: blur(7px);
}

.profile-modal__content,
.profile-modal__content--product,
.profile-modal__content--favorite,
.ban-star-modal__panel {
    width: min(560px, 96vw);
    border-radius: 20px;
    border: 1px solid var(--dp-border);
    background: linear-gradient(155deg, rgba(13, 32, 88, 0.95), rgba(4, 12, 33, 0.96) 60%, rgba(2, 8, 22, 0.98));
    color: var(--dp-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(196, 227, 255, 0.12), 0 0 28px var(--dp-glow);
}

.profile-modal__content::before,
.profile-modal__content--product::before,
.profile-modal__content--favorite::before,
.ban-star-modal__panel::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(170, 219, 255, 0.9), transparent);
    border-radius: 999px;
    pointer-events: none;
}

.profile-modal__close,
.ban-star-modal__close {
    border: 1px solid rgba(185, 222, 255, 0.52);
    background: rgba(11, 35, 86, 0.82);
    color: #f4fbff;
    font-weight: 900;
}

.profile-modal h3,
.product-detail-modal-title,
.ban-star-modal__title {
    color: #f4fbff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.profile-modal .client-product-buy-btn,
.profile-modal .portfolio-pending-claim-btn,
.profile-modal .pixar-modal-cta,
.profile-modal .profile-form button,
.ban-star-modal__ok {
    border: 1px solid rgba(180, 222, 255, 0.62);
    border-radius: 999px;
    background: linear-gradient(90deg, #0f2f77, #1d4ea8 48%, #2b6de0);
    color: #eef7ff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 26px rgba(6, 20, 53, 0.45);
}
