﻿@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --card: rgba(255, 255, 255, 0.78);
    --text: #0f172a;
    --muted: #475569;
    --primary: #dc2626;
    --primary-strong: #b91c1c;
    --line: #cbd5e1;
    --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: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background: url('../img/local/background.webp') 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;
}


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

body.page-profile {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: url('../img/local/background.webp') 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(16, 185, 129, 0.55);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(0, 0, 0, 0.94), rgba(1, 15, 8, 0.9) 48%, rgba(0, 0, 0, 0.96));
    padding: 14px 14px 12px;
    min-height: 196px;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(16, 185, 129, 0.16),
        inset 0 -35px 70px rgba(6, 78, 59, 0.18),
        0 10px 22px rgba(0, 0, 0, 0.52);
}

.user-card-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0 22px,
            rgba(16, 185, 129, 0.08) 22px 23px,
            transparent 23px 46px
        ),
        repeating-linear-gradient(
            180deg,
            rgba(16, 185, 129, 0.34) 0 2px,
            transparent 2px 14px
        );
    background-size: 100% 100%, 100% 180%;
    animation: matrixRainFall 1.4s linear infinite;
    opacity: 0.55;
    pointer-events: none;
}

.user-card-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(5, 150, 105, 0.14), rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0.7)),
        repeating-linear-gradient(
            180deg,
            rgba(16, 185, 129, 0.08) 0 1px,
            transparent 1px 3px
        );
    mix-blend-mode: screen;
    animation: matrixRainDrift 4.2s linear infinite;
    pointer-events: none;
}

.user-card-item > * {
    position: relative;
    z-index: 1;
}

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

.user-card-secret {
    display: inline-block;
    min-width: 7.5ch;
    color: #34d399;
    letter-spacing: 0.18em;
    margin-right: 0.25em;
    font-family: "Consolas", "Courier New", monospace;
}

.user-card-line--number-visible {
    color: #ecfdf5;
    letter-spacing: 0.2em;
    font-family: "Consolas", "Courier New", monospace;
}

@keyframes matrixRainFall {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 0, 0 180px; }
}

@keyframes matrixRainDrift {
    0% { transform: translateY(-8px); opacity: 0.46; }
    50% { transform: translateY(0); opacity: 0.62; }
    100% { transform: translateY(8px); opacity: 0.46; }
}

.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;
}

.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;
}

.favorite-star-wrap {
    width: min(190px, 56vw);
    margin: 0 auto;
    position: relative;
    border-radius: 14px;
}

.favorite-star-wrap img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.85));
}

.favorite-star-wrap::before {
    content: "";
    position: absolute;
    inset: -10px;
    background: conic-gradient(from 0deg, rgba(251, 191, 36, 0), rgba(251, 191, 36, 0.75), rgba(251, 191, 36, 0));
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    filter: blur(6px);
    animation: favoriteStarShine 2s linear infinite;
    pointer-events: none;
}

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

.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: 14px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 10px;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.35);
}

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

.client-product-photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

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

.client-product-cart-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.client-product-title {
    margin: 8px 0 6px;
    font-size: 16px;
    font-weight: 900;
}

.client-product-meta {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
}

.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: 0;
    text-align: right;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    white-space: nowrap;
}

.client-product-days span {
    display: block;
    font-size: 20px;
    color: #fde68a;
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.28);
}

.client-product-money-ring {
    position: relative;
    isolation: isolate;
    margin: 6px 0 2px;
    border-radius: 12px;
}

.client-product-money-ring::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    z-index: -1;
    background: linear-gradient(120deg, #ef4444, #f59e0b, #fde047, #22c55e, #38bdf8, #8b5cf6, #ef4444);
    background-size: 240% 240%;
    filter: blur(7px);
    opacity: 0.95;
    animation: rainbowShift 2.3s linear infinite;
}

.client-product-money-box {
    position: relative;
    padding: 8px 9px;
    border-radius: 10px;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.42);
    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-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;
}

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

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;
}

.favorite-star-wrap--product {
    width: 88px;
    margin-bottom: 8px;
}

.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;
    overflow: visible;
}

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

.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;
}

.reclamable-live-wrap h3 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reclamable-live-wrap__icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 auto;
    opacity: 0.95;
}

.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);
}

.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--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-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;
    }


    .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;
        overflow: visible;
    }

    .portfolio-hero__coin {
        width: 62px;
        height: 62px;
        transform: scale(1.42);
    }

    .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: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .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: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .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;
    }

    .favorite-star-wrap--product {
        width: 62px;
        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 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__star-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
}

.ban-star-modal__star-wrap::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ef4444, #f59e0b, #ec4899, #ef4444);
    filter: blur(18px) saturate(1.2);
    opacity: .95;
    animation: ban-star-ring-spin 4s linear infinite;
}

.ban-star-modal__star-wrap img {
    position: relative;
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    filter: grayscale(1) brightness(.9) contrast(1.1);
}

.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);
}

@keyframes ban-star-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Portafolio historial modal (table style like admin client history) */
.portfolio-history-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    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 {
    grid-column: span 1;
}

.portfolio-history-table-wrap {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    overflow: auto;
    max-height: min(52vh, 420px);
}

.portfolio-history-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    color: #111827;
    font-size: 12px;
}

.portfolio-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #c53030;
    color: #fff;
    text-align: left;
    font-weight: 800;
    padding: 10px 12px;
    border-right: 1px solid rgba(255,255,255,.15);
}

.portfolio-history-table tbody td {
    padding: 10px 12px;
    border-right: 1px solid rgba(197,48,48,.16);
    border-bottom: 1px solid rgba(197,48,48,.16);
    vertical-align: top;
}

.portfolio-history-table tbody tr:nth-child(even) td {
    background: rgba(197,48,48,.07);
}

.portfolio-history-table tbody tr:hover td {
    background: rgba(197,48,48,.12);
}

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

@media (max-width: 768px) {
    .portfolio-history-filters {
        grid-template-columns: 1fr 1fr;
    }
    .portfolio-history-filters__search {
        grid-column: 1 / -1;
    }
    .portfolio-history-table-wrap {
        max-height: 46vh;
    }
}

/* =============================
   ONIX THEME OVERRIDES - USER
   ============================= */
:root {
    --card: rgba(8, 15, 12, 0.86) !important;
    --text: #eaffd1 !important;
    --muted: #a6c6a6 !important;
    --primary: #22ff88 !important;
    --primary-strong: #12c867 !important;
    --line: rgba(180, 255, 104, 0.38) !important;
    --danger: #ffe84f !important;
    --ok: #22ff88 !important;
    --nav-bg: rgba(0, 0, 0, 0.86) !important;
    --nav-border: rgba(34, 255, 136, 0.45) !important;
    --nav-text: #eaffd1 !important;
    --nav-active: #d9ff3f !important;
}

body,
body.page-auth,
body.page-dashboard,
body.page-profile {
    color: #eaffd1 !important;
    background: radial-gradient(circle at 15% 20%, rgba(34, 255, 136, 0.14), transparent 42%),
                radial-gradient(circle at 82% 12%, rgba(217, 255, 63, 0.14), transparent 38%),
                linear-gradient(170deg, rgba(4, 7, 6, 0.82) 0%, rgba(7, 13, 9, 0.72) 58%, rgba(5, 8, 7, 0.82) 100%),
                url('../img/local/background.webp') center center / cover no-repeat fixed !important;
}

body.page-auth::before,
body.page-auth::after,
body.page-auth .wrap::before {
    opacity: 0 !important;
    animation: none !important;
}

.card,
.profile-card,
.home-panel,
.profile-modal__content,
.profile-modal__content--team,
.admin-modal__content,
.admin-modal__content--panel {
    background: linear-gradient(180deg, rgba(9, 18, 14, 0.95), rgba(4, 10, 7, 0.94)) !important;
    border: 1px solid rgba(34, 255, 136, 0.34) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(217, 255, 63, 0.08) !important;
}

input,
select,
textarea,
.field input,
.field select,
.field textarea {
    background: rgba(6, 16, 11, 0.88) !important;
    color: #f3ffd7 !important;
    border: 1px solid rgba(34, 255, 136, 0.34) !important;
}

input:focus,
select:focus,
textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #22ff88 !important;
    box-shadow: 0 0 0 3px rgba(34, 255, 136, 0.14) !important;
}

button,
.admin-action-btn,
.profile-switch__btn,
.mobile-bottom-nav__item--active,
.home-menu__item.is-active {
    background: linear-gradient(135deg, #15cc6f, #0e8f4d) !important;
    color: #f4ffd9 !important;
    border: 1px solid rgba(34, 255, 136, 0.5) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
}

button:hover,
.admin-action-btn:hover,
.profile-switch__btn:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 0 12px rgba(34, 255, 136, 0.4) !important;
}

.admin-action-btn--delete,
.profile-delete-btn,
.home-action--danger,
.portfolio-card__btn--danger {
    background: linear-gradient(135deg, #ffe84f, #d3b800) !important;
    color: #111b12 !important;
    border-color: rgba(217, 255, 63, 0.8) !important;
}

.profile-switch,
.home-tabs,
.mobile-bottom-nav,
.admin-main__header {
    background: rgba(2, 8, 5, 0.84) !important;
    border: 1px solid rgba(34, 255, 136, 0.36) !important;
}

.admin-table,
.admin-table th,
.admin-table td,
table,
th,
td {
    border-color: rgba(117, 168, 117, 0.32) !important;
}

.admin-table,
table {
    background: rgba(5, 11, 8, 0.86) !important;
    color: #eaffd1 !important;
}

.admin-table thead th,
thead th {
    background: linear-gradient(180deg, #0e6c3b, #09522d) !important;
    color: #efffd2 !important;
}

.admin-table tbody tr:nth-child(even),
tbody tr:nth-child(even) {
    background: rgba(217, 255, 63, 0.08) !important;
}

.admin-finansas-status--pendiente,
.badge-warning {
    background: #ffe84f !important;
    color: #111b12 !important;
}

.admin-finansas-status--aprobado,
.badge-success {
    background: #22ff88 !important;
    color: #082412 !important;
}

.admin-finansas-status--rechazado,
.badge-danger {
    background: #bbff38 !important;
    color: #111b12 !important;
}

[data-rainbow],
.profile-rainbow,
.rainbow-border,
.upload-payment-btn,
[data-upload-payment-btn] {
    position: relative;
    isolation: isolate;
}

[data-rainbow]::before,
.profile-rainbow::before,
.rainbow-border::before,
.upload-payment-btn::before,
[data-upload-payment-btn]::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;
    background: conic-gradient(from 0deg, #22ff88, #d9ff3f, #22ff88, #0f7f47, #22ff88);
    filter: blur(8px);
    opacity: .55;
    animation: onixGlowSpin 4.5s linear infinite;
}

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

/* =====================================
   MATRIX TERMINAL AUTH (LOGIN/REGISTER/RECOVER/RESET)
   ===================================== */
body.page-auth .card {
    position: relative;
    background: linear-gradient(180deg, rgba(2, 10, 6, 0.96), rgba(1, 6, 4, 0.95)) !important;
    border: 1px solid rgba(42, 255, 149, 0.55) !important;
    border-radius: 14px !important;
    box-shadow: 0 0 0 1px rgba(42, 255, 149, 0.16), 0 0 28px rgba(32, 255, 140, 0.22), inset 0 0 24px rgba(17, 255, 130, 0.07) !important;
    backdrop-filter: blur(2px);
    overflow: hidden;
}

body.page-auth .card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(25, 255, 140, 0.08) 0px,
            rgba(25, 255, 140, 0.08) 1px,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0) 4px
        );
    opacity: .28;
    mix-blend-mode: screen;
}

body.page-auth .card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -20%;
    width: 140%;
    height: 220%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(118, 255, 184, 0) 0%, rgba(118, 255, 184, 0.13) 48%, rgba(118, 255, 184, 0) 100%);
    animation: matrixSweep 6s linear infinite;
}

@keyframes matrixSweep {
    from { transform: translateY(-35%); }
    to { transform: translateY(35%); }
}

body.page-auth h1,
body.page-auth label,
body.page-auth p,
body.page-auth .remember,
body.page-auth .links a,
body.page-auth .status,
body.page-auth .error {
    font-family: "Courier New", "Consolas", monospace !important;
    letter-spacing: .4px;
}

body.page-auth h1 {
    color: #d8ffe9 !important;
    text-shadow: 0 0 10px rgba(42, 255, 149, 0.32);
}

body.page-auth label,
body.page-auth p,
body.page-auth .remember {
    color: #b8ffd5 !important;
}

body.page-auth .field,
body.page-auth .phone-prefix,
body.page-auth .pin-digit,
body.page-auth .captcha-box {
    background: rgba(0, 14, 8, 0.92) !important;
    color: #deffe9 !important;
    border: 1px solid rgba(42, 255, 149, 0.48) !important;
    box-shadow: inset 0 0 10px rgba(42, 255, 149, 0.08) !important;
}

body.page-auth .field:focus,
body.page-auth .pin-digit:focus {
    border-color: #8effbe !important;
    box-shadow: 0 0 0 3px rgba(42, 255, 149, 0.16), inset 0 0 12px rgba(42, 255, 149, 0.16) !important;
}

body.page-auth .phone-prefix {
    color: #efff8d !important;
    background: linear-gradient(180deg, #17af5f, #0f7a43) !important;
    border-color: rgba(217, 255, 63, 0.5) !important;
}

body.page-auth button {
    font-family: "Press Start 2P", "Courier New", monospace !important;
    background: linear-gradient(180deg, #1ad673, #109352) !important;
    color: #ecffd6 !important;
    border: 1px solid rgba(42, 255, 149, 0.62) !important;
    box-shadow: 0 0 12px rgba(42, 255, 149, 0.3) !important;
}

body.page-auth button:hover {
    filter: brightness(1.06);
    box-shadow: 0 0 16px rgba(42, 255, 149, 0.42) !important;
}

body.page-auth .links a {
    color: #8effbe !important;
}

body.page-auth .links a:hover {
    color: #efff8d !important;
    text-shadow: 0 0 8px rgba(217, 255, 63, 0.36);
}

/* =====================================
   MATRIX GLOBAL THEME - WHOLE PROJECT
   ===================================== */
:root {
    --mx-bg: #020805;
    --mx-bg-soft: #06110b;
    --mx-card: rgba(2, 12, 7, 0.92);
    --mx-border: rgba(42, 255, 149, 0.38);
    --mx-border-strong: rgba(142, 255, 190, 0.62);
    --mx-text: #d8ffe9;
    --mx-muted: #a7d7bd;
    --mx-neon: #22ff88;
    --mx-neon-2: #d9ff3f;
}

body {
    color: var(--mx-text) !important;
    text-rendering: optimizeLegibility;
}

.home-dynamic,
.profile-wrap,
.profile-card,
.home-panel,
.portfolio-hero,
.portfolio-card,
.portfolio-finance-card,
.portfolio-admin-notice-card,
.team-level-card,
.client-product-card,
.user-card-item,
.admin-module,
.admin-products,
.admin-panel,
.admin-modal__content,
.admin-modal__content--panel,
.profile-modal__content,
.profile-modal__content--panel,
.profile-modal__content--team,
.profile-modal__content--product,
.admin-dashboard-panel,
.admin-dashboard-report__filter,
.admin-dashboard-kpi,
.admin-dashboard-wallet,
.admin-dashboard-chart,
.admin-table-wrap,
.card {
    position: relative;
    background: linear-gradient(180deg, rgba(3, 14, 9, 0.94), rgba(2, 9, 6, 0.93)) !important;
    border: 1px solid var(--mx-border) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.46), 0 0 0 1px rgba(34,255,136,.08), inset 0 0 18px rgba(34,255,136,.05) !important;
}

.home-dynamic::before,
.profile-card::before,
.home-panel::before,
.portfolio-card::before,
.admin-module::before,
.admin-panel::before,
.admin-modal__content::before,
.admin-modal__content--panel::before,
.profile-modal__content::before,
.admin-dashboard-panel::before,
.admin-dashboard-kpi::before,
.admin-dashboard-wallet::before,
.admin-dashboard-chart::before,
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(34,255,136,.06) 0px, rgba(34,255,136,.06) 1px, transparent 2px, transparent 4px);
    opacity: .18;
    mix-blend-mode: screen;
}

h1, h2, h3, h4, h5,
label,
small,
span,
p,
th,
td,
.admin-main__title,
.admin-sidebar__item,
.profile-switch__btn,
.admin-action-btn,
button,
a {
    color: inherit;
}

h1, h2, h3, h4, h5,
.admin-main__title,
.home-page-title,
.profile-card h1,
.profile-card h2,
.profile-card h3,
.admin-module h1,
.admin-module h2,
.admin-module h3 {
    color: #ecffe0 !important;
    text-shadow: 0 0 10px rgba(34,255,136,.24);
}

input,
select,
textarea,
.field,
.admin-field input,
.admin-field select,
.admin-field textarea,
.pin-digit,
.phone-prefix,
.captcha-box {
    background: rgba(2, 16, 9, 0.92) !important;
    color: #e6ffef !important;
    border: 1px solid var(--mx-border) !important;
}

input:focus,
select:focus,
textarea:focus,
.field:focus,
.pin-digit:focus,
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: var(--mx-border-strong) !important;
    box-shadow: 0 0 0 3px rgba(34,255,136,.16), inset 0 0 12px rgba(34,255,136,.12) !important;
}

button,
.admin-action-btn,
.admin-module__btn,
.admin-card-toggle,
.profile-switch__btn,
.mobile-bottom-nav__item,
.admin-sidebar__item {
    border: 1px solid rgba(34,255,136,.48) !important;
    background: linear-gradient(140deg, #14bb66, #0e7f46) !important;
    color: #ecffe0 !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.35);
    transition: all .2s ease !important;
}

button:hover,
.admin-action-btn:hover,
.admin-module__btn:hover,
.admin-card-toggle:hover,
.profile-switch__btn:hover,
.mobile-bottom-nav__item:hover,
.admin-sidebar__item:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 14px rgba(34,255,136,.4) !important;
    transform: translateY(-1px);
}

.admin-action-btn--delete,
.admin-action-btn--danger,
.profile-delete-btn,
.admin-card-toggle--warn {
    background: linear-gradient(135deg, #e8ff59, #b2c900) !important;
    color: #0f1a12 !important;
    border-color: rgba(217,255,63,.85) !important;
}

.admin-action-btn--info-blue,
.admin-card-toggle--ok,
.admin-action-btn--edit {
    background: linear-gradient(135deg, #1de077, #108f4f) !important;
    color: #efffe4 !important;
}

.admin-table,
table {
    background: rgba(2, 10, 7, 0.9) !important;
    color: #e8ffe0 !important;
    border-color: rgba(95, 164, 117, 0.35) !important;
}

.admin-table thead th,
thead th {
    background: linear-gradient(180deg, #11673a, #0a4a29) !important;
    color: #ecffe2 !important;
    border-color: rgba(142,255,190,.34) !important;
}

.admin-table tbody td,
tbody td {
    border-color: rgba(95, 164, 117, 0.28) !important;
}

.admin-table tbody tr:nth-child(even),
tbody tr:nth-child(even) {
    background: rgba(217,255,63,.06) !important;
}

.admin-finansas-status--pendiente { background: #e9ff5b !important; color: #122015 !important; }
.admin-finansas-status--aprobado { background: #22ff88 !important; color: #082413 !important; }
.admin-finansas-status--rechazado { background: #b7ff44 !important; color: #131d12 !important; }

.admin-sidebar {
    background: linear-gradient(180deg, rgba(0,0,0,.96), rgba(3,10,7,.93)) !important;
    border-right: 1px solid var(--mx-border) !important;
}

.admin-main__header,
.profile-switch,
.mobile-bottom-nav,
.admin-dashboard-panel__head > span {
    background: rgba(0, 0, 0, 0.74) !important;
    border-color: rgba(34,255,136,.34) !important;
}

.status,
.error,
.admin-alert,
.admin-alert--ok,
.admin-alert--error {
    font-family: "Courier New", Consolas, monospace !important;
}

.status {
    background: rgba(34,255,136,.12) !important;
    border-color: rgba(34,255,136,.45) !important;
    color: #cbffe1 !important;
}

.error {
    background: rgba(217,255,63,.14) !important;
    border-color: rgba(217,255,63,.5) !important;
    color: #f3ffca !important;
}

/* PERFORMANCE OVERRIDE - LIGHT LAYERS */
html,
body {
    background-attachment: scroll !important;
}

body::before,
body::after,
.app-shell::before,
.app-shell::after,
.profile-main::before,
.profile-main::after,
.admin-main::before,
.admin-main::after,
[class*="aura"]::before,
[class*="aura"]::after,
[class*="glow"]::before,
[class*="glow"]::after {
    content: none !important;
    display: none !important;
}

.app-shell,
.auth-shell,
.login-card,
.register-card,
.forgot-card,
.reset-card,
.profile-main,
.profile-card,
.profile-panel,
.profile-modal__content,
.admin-module,
.admin-dashboard-panel,
.admin-modal__content,
.admin-modal__content--panel,
.admin-table-wrap,
.admin-products,
.admin-finanzas-board,
.admin-clientes-wrap,
[class*="modal"],
[class*="panel"],
[class*="card"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    background-image: none !important;
}

button,
.admin-action-btn,
.admin-module__btn,
.profile-switch__btn,
.mobile-bottom-nav__item,
.admin-sidebar__item {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* MODAL STAR CLEANUP - MATRIX TERMINAL ONLY */
.profile-modal .favorite-star-wrap,
.ban-star-modal__star-wrap,
.team-adoption-modal__star {
    display: none !important;
}

.profile-modal .favorite-star-wrap::before,
.profile-modal .favorite-star-wrap::after,
.ban-star-modal__star-wrap::before,
.ban-star-modal__star-wrap::after,
.team-adoption-modal__star::before,
.team-adoption-modal__star::after {
    content: none !important;
    animation: none !important;
}

/* NO ANIMATIONS / NO RAINBOW - SOLID ONIX BUTTONS */
*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
}

[data-rainbow],
.rainbow-border,
.profile-rainbow,
.global-star-actions::before,
.favorite-star-wrap::before,
.favorite-star-wrap::after,
.team-adoption-submit-btn::before,
.team-adoption-submit-btn::after,
.portfolio-hero__coin-glow,
[class*="rainbow"],
[class*="aura"],
[class*="glow"] {
    background-image: none !important;
    filter: none !important;
    box-shadow: none !important;
}

button,
.btn,
.client-product-buy-btn,
.portfolio-pending-claim-btn,
.profile-switch__btn,
.mobile-bottom-nav__item,
.admin-action-btn,
.admin-module__btn,
.admin-card-toggle,
.team-adoption-submit-btn,
.team-contact-leader-btn,
.team-adoption-open-btn {
    background: #118a4c !important;
    color: #eaffdf !important;
    border: 1px solid #2aff95 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.admin-action-btn--delete,
.admin-action-btn--danger,
.portfolio-pending-claim-btn,
.team-adoption-open-btn {
    background: #b91c1c !important;
    color: #fff1f1 !important;
    border-color: #ef4444 !important;
}

/* HARD KILL FOR RAINBOW/AURA BUTTON PSEUDOS */
button::before,
button::after,
.btn::before,
.btn::after,
.portfolio-invite-btn::before,
.portfolio-invite-btn::after,
.portfolio-convert-btn::before,
.portfolio-convert-btn::after,
.portfolio-download-fab::before,
.portfolio-download-fab::after,
.portfolio-notice-fab::before,
.portfolio-notice-fab::after,
.portfolio-support-fab::before,
.portfolio-support-fab::after,
.admin-finansas-export-btn::before,
.admin-finansas-export-btn::after,
button[data-recharge-upload]::before,
button[data-recharge-upload]::after,
.portfolio-recharge-min-alert::before,
.portfolio-recharge-min-alert::after,
.portfolio-stripe-warning::before,
.portfolio-stripe-warning::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    filter: none !important;
    box-shadow: none !important;
}

.portfolio-invite-btn,
.portfolio-convert-btn,
.portfolio-download-fab,
.portfolio-notice-fab,
.portfolio-support-fab,
.admin-finansas-export-btn,
button[data-recharge-upload],
.client-product-buy-btn,
.portfolio-pending-claim-btn {
    background: #0f8f4f !important;
    background-image: none !important;
    color: #e9ffe1 !important;
    border: 1px solid #22ff88 !important;
    box-shadow: 0 0 0 1px rgba(34,255,136,.2) inset, 0 0 12px rgba(34,255,136,.28) !important;
}

/* PORTFOLIO PREVIEW - HIDE LARGE INNER CONTAINER BORDERS */
.home-panel > .portfolio-hero,
.home-panel > .profile-switch[data-portfolio-switch],
.profile-card[data-portfolio-panel="finanzas"],
.profile-card[data-portfolio-panel="finanzas"] .portfolio-wallet-actions,
.profile-card[data-portfolio-panel="finanzas"] .portfolio-pending {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Keep small cards crisp */
.profile-card[data-portfolio-panel="finanzas"] .portfolio-finance-card,
.profile-card[data-portfolio-panel="finanzas"] .portfolio-pending-item {
    border: 1px solid rgba(34, 255, 136, 0.45) !important;
}

/* Portfolio top spacing fix */
.home-panel > .portfolio-hero {
    padding-top: 12px !important;
    margin-top: 6px !important;
}

/* GLOBAL CLEAN CONTAINERS: big wrappers without borders */
.profile-card,
.home-panel,
.profile-switch,
.portfolio-wallet-actions,
.portfolio-pending,
.portfolio-notice-box,
.portfolio-history-table-wrap,
.team-level-card,
.team-diagram-col,
.admin-main__content,
.admin-module,
.admin-dashboard-panel,
.admin-products,
.admin-finanzas-board,
.admin-clientes-wrap {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Keep small inner cards readable */
.portfolio-finance-card,
.portfolio-pending-item,
.team-member,
.team-diagram-node,
.admin-dashboard-kpi,
.admin-dashboard-wallet,
.admin-dashboard-chart {
    border: 1px solid rgba(34, 255, 136, 0.35) !important;
}

/* BIG CONTAINER TRANSPARENCY BOOST */
.home-panel,
.profile-card,
.profile-switch,
.portfolio-wallet-actions,
.portfolio-pending,
.portfolio-notice-box,
.portfolio-history-table-wrap,
.portfolio-hero {
    background: rgba(0, 0, 0, 0.09) !important;
}

/* MODAL OVERLAY - MORE OPAQUE */
.profile-modal {
    background: rgba(0, 0, 0, 0.93) !important;
}

/* MAIN DYNAMIC VIEW: restore margins and let background breathe */
.home-dynamic {
    width: calc(100vw - 32px) !important;
    margin: 10px auto 0 !important;
    background: rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18) !important;
}

.home-panel,
.profile-card,
.profile-switch,
.portfolio-wallet-actions,
.portfolio-pending,
.portfolio-notice-box,
.portfolio-history-table-wrap,
.portfolio-hero {
    background: rgba(0, 0, 0, 0.03) !important;
}

/* Remove matrix scanline cloth from the big wrappers only */
.home-dynamic::before,
.home-panel::before,
.profile-card::before {
    content: none !important;
    display: none !important;
}

@media (max-width: 920px) {
    .home-dynamic {
        width: calc(100vw - 18px) !important;
        margin-top: 6px !important;
    }
}

/* MODALS: darker overlay and solid content panels */
.profile-modal {
    background: rgba(0, 0, 0, 0.96) !important;
}

.profile-modal__content,
.profile-modal__content--panel,
.profile-modal__content--team,
.profile-modal__content--product,
.profile-modal__content--favorite {
    background: rgba(3, 8, 6, 0.98) !important;
    border: 1px solid rgba(34, 255, 136, 0.42) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.58) !important;
}

.profile-modal__content::before,
.profile-modal__content--panel::before,
.profile-modal__content--team::before,
.profile-modal__content--product::before,
.profile-modal__content--favorite::before {
    content: none !important;
    display: none !important;
}

/* CREDIT CARD MATRIX OVERRIDE (ONLY TARJETAS) */
.profile-card[data-profile-panel="tarjetas"] .user-card-item {
    background: linear-gradient(165deg, rgba(0, 0, 0, 0.94), rgba(1, 15, 8, 0.9) 48%, rgba(0, 0, 0, 0.96)) !important;
    border: 1px solid rgba(16, 185, 129, 0.55) !important;
    box-shadow:
        inset 0 0 0 1px rgba(16, 185, 129, 0.16),
        inset 0 -35px 70px rgba(6, 78, 59, 0.18),
        0 10px 22px rgba(0, 0, 0, 0.52) !important;
}

.profile-card[data-profile-panel="tarjetas"] .user-card-item::before {
    content: "" !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 15%, rgba(16, 185, 129, 0.15), rgba(0, 0, 0, 0.72) 62%) !important;
    opacity: 0.9;
    pointer-events: none;
}

.profile-card[data-profile-panel="tarjetas"] .user-card-item::after {
    content: "" !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(0, 0, 0, 0.46) 38%, rgba(0, 0, 0, 0.75)),
        repeating-linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0 1px, transparent 1px 4px) !important;
    mix-blend-mode: normal;
    animation: none;
    pointer-events: none;
}

.profile-card[data-profile-panel="tarjetas"] .user-card-item > * {
    position: relative;
    z-index: 1;
}

.profile-card[data-profile-panel="tarjetas"] .user-card-matrix-rain {
    position: absolute;
    inset: 8px 10px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 2px;
    opacity: 0.62;
}

.profile-card[data-profile-panel="tarjetas"] .user-card-matrix-col {
    flex: 1 1 0;
    max-width: 18px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.08;
    color: #34d399;
    text-shadow: 0 0 6px rgba(52, 211, 153, 0.55), 0 0 12px rgba(16, 185, 129, 0.32);
    white-space: pre;
    user-select: none;
    opacity: var(--matrix-col-opacity, 0.8);
    animation: matrixColumnFall var(--matrix-col-duration, 6.4s) linear infinite;
    animation-delay: var(--matrix-col-delay, -2s);
}

@keyframes matrixColumnFall {
    0% { transform: translateY(-105%); }
    100% { transform: translateY(105%); }
}


