:root {

    /* SKY TAXI — Laranja vibrante */
    --primary: #FFD000;
    --primary-rgb: 255, 208, 0;
    --primary-soft: rgba(255, 208, 0, .12);
    --primary-softer: rgba(255, 208, 0, .06);
    --primary-strong: #E6BC00;
    --primary-deep: #FFD000;
    --primary-contrast: #FFFFFF;

    /* ---- Fundos — amarelo bem claro ---- */
    --bg: #FFF9DB;
    --bg2: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #FFFDF0;
    --surface-3: #FFF9DB;

    /* ---- Texto — escuro sobre claro ---- */
    --text: #1A1A1A;
    --text-soft: #3D3D3D;
    --text-muted: #8A8A8E;
    --text-faint: #C7C7CC;

    /* ---- Status ---- */
    --success: #34C759;
    --success-soft: rgba(52, 199, 89, .12);
    --danger: #FF3B30;
    --danger-soft: rgba(255, 59, 48, .12);
    --warning: #FF9500;
    --warning-soft: rgba(255, 149, 0, .14);
    --gold: #FFD000;
    --up: #34C759;
    --down: #FF3B30;

    /* ---- Linhas / sombras ---- */
    --border: rgba(0, 0, 0, .08);
    --border-soft: rgba(0, 0, 0, .05);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08);
    --shadow: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .14);
    --shadow-primary: 0 8px 24px rgba(255, 208, 0, .30);

    /* ---- Raios ---- */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* ---- Layout ---- */
    --app-max: 480px;
    --nav-h: 64px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
}

/* =====================================================================
   Reset
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

/* =====================================================================
   SKY TAXI — fundo branco limpo e moderno
   ===================================================================== */
html::before {
    display: none;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    font-family: var(--font);
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 16px;
    color: inherit;
}

a {
    color: var(--primary);
    text-decoration: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
}

/* =====================================================================
   Utilitários
   ===================================================================== */
.hidden {
    display: none !important;
}

.muted {
    color: var(--text-muted);
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 28px 12px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

/* =====================================================================
   Shell do app
   ===================================================================== */
.app {
    position: relative;
    width: 100%;
    max-width: var(--app-max);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

.app:not(:has(.bottom-nav)) {
    padding-bottom: 24px;
}

/* SKY TAXI — fundo limpo em todas as seções */
.perfil-main,
.carteira-main,
.page-wrap,
.home-about,
.home-quick,
.auth2-wrap,
.ext-page,
.sk-detail-app,
.bau-page,
.ci-page,
.aff-app,
.rl-page,
.lot-operation-page,
.live-traders-page,
.trading-transactions-page,
.voucher-app,
.carteira-app,
.sk-minha-app {
    background: var(--bg) !important;
}

/* Layout limpo sem bordas douradas */
.carteira-app .carteira-main,
.perfil-app .perfil-main {
    margin: 0;
    background: var(--bg) !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding-top: 0 !important;
}

.app:not(.carteira-app):not(.perfil-app) .page-wrap,
.app:not(.carteira-app):not(.perfil-app) .ext-page {
    margin: 0;
    background: var(--bg) !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.home-quick {
    margin: 0;
    background: var(--surface) !important;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    padding-top: 0 !important;
}

.home-about {
    margin: 0;
    background: var(--bg) !important;
    border: none;
    padding-top: 0 !important;
}

/* Trading — chart zone e controls */
.trading-page .trading-chart-zone {
    margin: 0;
    background: var(--surface) !important;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-bottom: none;
    box-shadow: var(--shadow-sm);
}

/* Auth — login/cadastro */
.auth2-wrap {
    margin: 0;
    background: var(--bg) !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0 !important;
}

/* =====================================================================
   Cabeçalho (home / carteira / perfil)
   ===================================================================== */
.header,
.memecoin-header {
    position: relative;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px 22px;
    background: linear-gradient(135deg, #FFD000 0%, #FF8C00 60%, #FF5500 100%) !important;
    color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay para legibilidade do texto sem apagar o banner */
.banner-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg,
            rgba(255, 208, 0, .88) 0%,
            rgba(230, 80, 0, .80) 50%,
            rgba(200, 60, 0, .90) 100%);
}

.memecoin-header-inner {
    position: relative;
    z-index: 1;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 34px;
    gap: 10px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(4px);
    transition: background .15s, transform .1s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, .30);
}

.icon-btn:active {
    transform: scale(.92);
}

/* ---- Bloco de saldo ---- */
.balance-section {
    text-align: center;
    padding: 12px 0 4px;
}

.balance,
.balance-with-usdt {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font-weight: 900;
    letter-spacing: -.5px;
}

.balance-amount {
    font-size: 38px;
    line-height: 1.05;
}

.balance-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .85;
    margin-top: 4px;
    font-weight: 700;
}

.usdt-label {
    font-weight: 700;
    opacity: .9;
    background: rgba(255, 255, 255, .2);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.usdt-label--lg {
    font-size: 15px;
}

.usdt-label--xs {
    font-size: 11px;
}

/* ---- Info do usuário + ticker ---- */
.user-info {
    margin-top: 14px;
}

.ticker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .14);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    overflow: hidden;
}

.ticker-megaphone {
    font-size: 13px;
    flex-shrink: 0;
    opacity: .9;
}

.ticker-viewport {
    overflow: hidden;
    flex: 1;
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    gap: 36px;
    animation: ticker-scroll 55s linear infinite;
}

.ticker-segment {
    font-size: 12px;
    opacity: .95;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
}

.ticker-id {
    font-weight: 700;
}

.user-row,
.user-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.user-meta-row {
    align-items: flex-start;
    gap: 12px;
}

.username {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    font-size: 15px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profit {
    text-align: right;
}

.profit-value {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 800;
}

.profit-amount {
    font-size: 16px;
}

.profit-detail {
    display: block;
    font-size: 11px;
    opacity: .8;
}

/* =====================================================================
   Abas principais
   ===================================================================== */
.tabs {
    position: relative;
    display: flex;
    gap: 4px;
    padding: 6px;
    margin: 16px 14px 0;
    background: #ffffff;
    border-radius: var(--radius-pill);
    border: none;
    box-shadow:
        0 8px 22px rgba(var(--primary-rgb), .16),
        inset 0 1px 1px rgba(255, 255, 255, .9);
}

.tabs::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.6px;
    background: linear-gradient(155deg,
            var(--primary-strong) 0%,
            rgba(var(--primary-rgb), .55) 42%,
            rgba(var(--primary-rgb), .18) 70%,
            rgba(255, 255, 255, .85) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.tab {
    flex: 1;
    padding: 12px 8px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .18s;
}

.tab.active {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.tab-manager.active {
    background: linear-gradient(135deg, var(--gold), #FF8C00);
    color: #5a3c00;
}

/* ---- Sub-filtros (chips) ---- */
.category-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 14px 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    transition: all .18s;
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.category-tab.badge-hot.active {
    background: var(--danger);
}

/* Filtro da home — mesmo visual das abas (container com borda luminosa) */
#mercadosFilters {
    position: relative;
    gap: 4px;
    margin: 10px 14px 0;
    padding: 4px;
    background: #ffffff;
    border-radius: var(--radius-pill);
    overflow: visible;
    box-shadow:
        0 8px 22px rgba(var(--primary-rgb), .16),
        inset 0 1px 1px rgba(255, 255, 255, .9);
}

#mercadosFilters::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.6px;
    background: linear-gradient(155deg,
            var(--primary-strong) 0%,
            rgba(var(--primary-rgb), .55) 42%,
            rgba(var(--primary-rgb), .18) 70%,
            rgba(255, 255, 255, .85) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

#mercadosFilters .category-tab {
    flex: 1;
    padding: 8px 6px;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-muted);
}

#mercadosFilters .category-tab.active {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    box-shadow: var(--shadow-primary);
}

#mercadosFilters .category-tab.badge-hot.active {
    background: var(--danger);
    box-shadow: 0 8px 20px rgba(239, 71, 87, .4);
}

/* =====================================================================
   Navegação inferior
   ===================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max);
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .10);
    z-index: 90;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-faint);
    font-size: 10.5px;
    font-weight: 600;
    transition: color .15s;
    cursor: pointer;
}

.nav-item i {
    font-size: 21px;
}

.nav-item .nav-ico {
    width: 25px;
    height: 25px;
    transition: transform .15s, filter .15s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i,
.nav-item.active .nav-ico {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 8px rgba(var(--primary-rgb), .5));
}

/* =====================================================================
   Footer redes sociais
   ===================================================================== */
.site-footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 16px 30px;
    margin-top: 18px;
}

.footer-social-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
    font-weight: 700;
}

.footer-social-links {
    display: flex;
    gap: 14px;
}

.footer-social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
    transition: all .18s;
}

.footer-social:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* =====================================================================
   Home — lista de traders / investimentos
   ===================================================================== */
.traders-list,
.receita-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.trader-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}

.trader-card:active {
    transform: scale(.99);
}

.trader-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trader-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-soft);
    flex-shrink: 0;
}

.trader-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.trader-limited-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--warning-soft);
    color: var(--warning);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.trader-card-head-end {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.trader-prazo {
    text-align: center;
    line-height: 1.1;
}

.trader-prazo-days {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.trader-prazo-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.subscribe-btn,
.buy-btn.subscribe-btn {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-primary);
    white-space: nowrap;
    transition: transform .1s, opacity .15s;
}

.subscribe-btn:active {
    transform: scale(.95);
}

.trader-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.trader-stat-col {
    text-align: center;
}

.trader-stat-val {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.trader-stat-val--green {
    color: var(--success);
}

.trader-stat-lbl {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

/* =====================================================================
   Minha Receita — contratos do usuário
   ===================================================================== */
.my-sub-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.my-sub-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.my-sub-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-soft);
    flex-shrink: 0;
}

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

.my-sub-name {
    font-size: 15px;
    font-weight: 700;
}

.my-sub-meta {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 2px;
}

.my-sub-status {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.my-sub-profit {
    background: var(--success-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 10px;
}

.my-sub-profit-label {
    font-size: 12px;
    color: var(--text-soft);
}

.my-sub-profit-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--success);
    text-align: right;
}

.my-sub-profit-avail {
    grid-column: 1 / -1;
    font-size: 11.5px;
    color: var(--text-muted);
}

.my-sub-profit-daily {
    grid-column: 1 / -1;
    font-size: 11.5px;
    color: var(--text-muted);
}

.my-sub-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sub-btn {
    flex: 1;
    min-width: 90px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: opacity .15s, transform .1s;
}

.sub-btn:active {
    transform: scale(.97);
}

.sub-btn-operation {
    background: var(--surface-3);
    color: #FFD000;
}

.sub-btn-redeem {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
}

.sub-btn-cancel {
    background: var(--danger-soft);
    color: var(--danger);
}

.sub-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* =====================================================================
   Manager VIP panel
   ===================================================================== */
.manager-panel {
    padding: 16px 14px 0;
}

.manager-vip-card {
    background: linear-gradient(135deg, #fff7e0, #fffdf5);
    border: 1px solid #f3dca0;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.manager-vip-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), #FF8C00);
    box-shadow: 0 8px 20px rgba(255, 208, 0, 0.3);
}

.manager-vip-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c08a16;
}

.manager-vip-copy h2 {
    font-size: 18px;
    margin: 4px 0 6px;
    color: var(--text);
}

.manager-vip-copy p {
    font-size: 13px;
    color: var(--text-soft);
}

.manager-contact-btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-primary);
}

/* =====================================================================
   FAQs
   ===================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-q {
    padding: 15px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    color: var(--text);
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    color: var(--primary);
    transition: transform .2s;
}

.faq-item[open] .faq-q::after {
    transform: rotate(180deg);
}

.faq-a {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
}

/* =====================================================================
   Bottom sheet (investimento)
   ===================================================================== */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.sheet.is-open,
.sheet.show {
    display: block;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    animation: fade-in .2s ease;
}

.sheet-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    padding: 8px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .30);
    animation: sheet-up .28s cubic-bezier(.22, 1, .36, 1);
}

@keyframes sheet-up {
    from {
        transform: translate(-50%, 100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sheet-handle-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0 6px;
}

.sheet-handle {
    width: 42px;
    height: 5px;
    border-radius: 99px;
    background: var(--border);
}

.sub-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sub-sheet-title {
    font-size: 20px;
    font-weight: 800;
}

.sub-sheet-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sub-sheet-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sub-sheet-deposit {
    font-size: 12.5px;
    font-weight: 700;
    color: #FFD000;
    background: var(--primary-soft);
    padding: 7px 12px;
    border-radius: var(--radius-pill);
}

.sub-sheet-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-soft);
    display: grid;
    place-items: center;
    font-size: 15px;
}

.sub-sheet-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 14px;
}

.sub-sheet-balance-label {
    font-size: 12.5px;
    color: var(--text-muted);
}

.sub-sheet-balance-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.sub-sheet-term {
    margin-bottom: 14px;
}

.sub-sheet-term-label,
.sub-sheet-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.sub-sheet-term-tabs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    background: var(--surface-3);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.sub-sheet-term-tab {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all .15s;
}

.sub-sheet-term-tab.active {
    background: #FFD000;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.sub-sheet-term-hint,
.sub-sheet-term-reinvest-note {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
}

.sub-sheet-field {
    margin-bottom: 14px;
}

.sub-sheet-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sub-sheet-rules {
    font-size: 12px;
    font-weight: 700;
    color: #FFD000;
}

.sub-sheet-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sub-sheet-input {
    width: 100%;
    padding: 14px 56px 14px 16px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 700;
    transition: border-color .15s;
}

.sub-sheet-input:focus {
    outline: none;
    border-color: var(--primary);
}

.sub-sheet-input-suffix {
    position: absolute;
    right: 14px;
}

.sub-sheet-limits {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
}

.sub-sheet-summary {
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border-soft);
}

.sub-sheet-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.sub-sheet-summary-row+.sub-sheet-summary-row {
    border-top: 1px solid var(--border-soft);
}

.sub-sheet-summary dt {
    font-size: 13px;
    color: var(--text-soft);
}

.sub-sheet-summary dd {
    font-size: 14px;
    font-weight: 700;
}

.sub-sheet-return-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
}

.sub-sheet-summary-total dt {
    font-weight: 700;
    color: var(--text);
}

.sub-sheet-summary-total dd {
    font-size: 16px;
    color: #FFD000;
}

.sub-sheet-ok {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
    transition: transform .1s, opacity .15s;
}

.sub-sheet-ok:active {
    transform: scale(.98);
}

.sub-sheet-cancel {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

.sheet-error {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.sheet-error-link {
    color: #FFD000;
    text-decoration: underline;
}

/* =====================================================================
   Modal de compra de investimento — redesign (ss2)
   ===================================================================== */
.ss2 {
    background: #FFFFFF !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
}

.ss2 .ss2-label {
    font-size: 13px;
    font-weight: 700;
    color: #4A4A4A;
    letter-spacing: .2px;
}

.ss2 .hidden {
    display: none;
}

/* Hero */
.ss2-hero {
    position: relative;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    background: #FFF8F5 !important;
    border: 1px solid rgba(255, 208, 0, 0.15) !important;
    box-shadow: none !important;
    overflow: hidden;
}

.ss2-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ss2-hero-avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    flex-shrink: 0;
    padding: 2px;
    background: #FFFFFF;
    border: 1px solid rgba(255, 208, 0, 0.2);
}

.ss2-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: transparent;
}

.ss2-hero-id {
    flex: 1;
    min-width: 0;
}

.ss2-hero-title {
    font-size: 18px;
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1.2;
}

.ss2-accent--mid,
.ss2-accent--long {
    color: #FFD000 !important;
}

.ss2-hero-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    color: #FFD000;
    margin-top: 2px;
    text-transform: uppercase;
}

.ss2-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ss2-deposit {
    font-size: 12px;
    font-weight: 700;
    color: #FFD000;
    border: 1px solid rgba(255, 208, 0, .3);
    border-radius: 999px;
    padding: 6px 12px;
    background: #FFFFFF;
}

.ss2-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F0F0F0;
    color: #666666;
    display: grid;
    place-items: center;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.ss2-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 208, 0, 0.1);
}

.ss2-stat {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ss2-stat>i {
    font-size: 14px;
    color: #FFD000;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 208, 0, .1);
}

.ss2-stat span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
}

.ss2-stat strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #1A1A1A;
}

/* Saldo */
.ss2-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #F8F9FA !important;
    border: 1px solid #EBEBEB !important;
}

.ss2-balance>span {
    font-size: 13px;
    color: #666666;
    font-weight: 600;
}

.ss2-balance>strong {
    font-size: 16px;
    font-weight: 800;
    color: #1A1A1A;
}

/* Planos */
.ss2-plans-block {
    margin-bottom: 14px;
}

.ss2-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #EBEBEB !important;
    background: #F8F9FA !important;
    box-shadow: none !important;
}

.ss2-plans--single {
    grid-template-columns: 1fr;
}

.ss2-plan {
    position: relative;
    text-align: left;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all .15s;
}

.ss2-plan+.ss2-plan {
    border-left: 1px solid #EBEBEB;
}

.ss2-plan-name {
    font-size: 15px;
    font-weight: 800;
    color: #1A1A1A;
}

.ss2-plan--mid .ss2-plan-name,
.ss2-plan--long .ss2-plan-name {
    color: #1A1A1A;
}

.ss2-plan-meta {
    font-size: 11px;
    font-weight: 600;
    color: #888888;
}

.ss2-plan-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #FFFFFF;
    background: #FFD000;
    opacity: 0;
    transform: scale(.6);
    transition: .15s;
}

.ss2-plan.is-active {
    background: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ss2-plan.is-active .ss2-plan-name {
    color: #FFD000 !important;
}

.ss2-plan.is-active .ss2-plan-check {
    opacity: 1;
    transform: scale(1);
}

/* Valor do investimento */
.ss2-amount-block {
    margin-bottom: 14px;
}

.ss2-amount-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ss2-rules {
    font-size: 13px;
    font-weight: 700;
    color: #FFD000;
    background: transparent;
    border: none;
    cursor: pointer;
}

.ss2-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #F5F5F5 !important;
    border: 1px solid #EBEBEB !important;
}

.ss2-input-wrap:focus-within {
    border-color: #FFD000 !important;
    background: #FFFFFF !important;
}

.ss2-input-prefix {
    font-size: 16px;
    font-weight: 800;
    color: #FFD000;
}

.ss2-input {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 20px;
    font-weight: 800;
    color: #1A1A1A;
}

.ss2-input-edit {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #FFD000;
    border: 1px solid rgba(255, 208, 0, .2);
    background: rgba(255, 208, 0, .06);
}

.ss2-chips {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.ss2-chip {
    flex: 1;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #666666;
    border: 1px solid #EBEBEB;
    background: #F8F9FA;
    cursor: pointer;
    transition: .15s;
}

.ss2-chip.is-active {
    color: #FFFFFF;
    border-color: #FFD000;
    background: #FFD000;
    box-shadow: 0 2px 6px rgba(255, 208, 0, .25);
}

/* Mínimo / Máximo */
.ss2-range {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #F8F9FA !important;
    border: 1px solid #EBEBEB !important;
    box-shadow: none !important;
}

.ss2-range-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ss2-range-max {
    text-align: right;
    align-items: flex-end;
}

.ss2-range-side>span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #888888 !important;
}

.ss2-range-side>strong {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 800;
    color: #1A1A1A !important;
}

.ss2-range-min i,
.ss2-range-max i {
    color: #FFD000;
}

.ss2-range-hex {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    background: #FFD000;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 208, 0, .3);
}

.ss2-range-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #999999;
    text-align: center;
    margin-bottom: 8px;
}

.ss2-error:empty {
    display: none;
}

.ss2-error {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 700;
    color: #E74C3C;
    margin-bottom: 10px;
}

.ss2-error .ss2-error-txt {
    color: #E74C3C;
}

.ss2-error .sheet-error-link {
    color: #FFD000;
    text-decoration: underline;
    font-weight: 800;
}

/* Resumo */
.ss2-summary {
    margin-bottom: 14px;
}

.ss2-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 2px;
}

.ss2-summary-row+.ss2-summary-row {
    border-top: 1px solid #F5F5F5;
}

.ss2-summary dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666666;
}

.ss2-summary dd {
    font-size: 14px;
    font-weight: 800;
    color: #1A1A1A;
}

.ss2-summary-ico {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #FFD000;
    background: rgba(255, 208, 0, .08);
    flex-shrink: 0;
}

.ss2-summary-profit {
    color: #27AE60 !important;
}

.ss2-summary-total dt {
    font-weight: 700;
    color: #1A1A1A;
}

.ss2-summary-total dd {
    font-size: 16px;
    font-weight: 800;
    color: #1A1A1A;
}

/* CTA */
.ss2-confirm {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 999px !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #FFFFFF !important;
    background: #FFD000 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 208, 0, .35) !important;
    cursor: pointer;
    transition: transform .1s, opacity .15s, background .15s;
}

.ss2-confirm:hover {
    background: #E6BC00 !important;
}

.ss2-confirm-lock {
    position: absolute;
    left: 20px;
    font-size: 15px;
}

.ss2-confirm-arrow {
    position: absolute;
    right: 20px;
    font-size: 15px;
}

.ss2-confirm:active {
    transform: scale(.98);
}

.ss2-confirm:disabled {
    opacity: .5;
    box-shadow: none;
    cursor: not-allowed;
}

.ss2-confirm:disabled {
    opacity: .5;
    box-shadow: none;
}

/* moeda inline */
.amount-with-usdt {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

/* =====================================================================
   Páginas de autenticação (login / cadastro)
   ===================================================================== */
.auth-page {
    background: transparent;
}

.auth-hero {
    border-radius: 0 0 30px 30px;
    padding-bottom: 30px;
}

.auth-header-link {
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    background: rgba(255, 255, 255, .18);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
}

.auth-hero-copy {
    margin-top: 22px;
    color: #fff;
}

.auth-hero-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .9;
}

.auth-hero-copy h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 8px 0 8px;
}

.auth-hero-copy p {
    font-size: 13.5px;
    opacity: .92;
    line-height: 1.55;
}

.auth-main {
    padding: 22px 18px 10px;
}

.auth-title {
    font-weight: 800;
    color: var(--text);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-page .auth-field label {
    display: none;
}

.auth-form--signup .auth-field--country {
    display: none;
}

.auth-page input::placeholder,
.auth-page select {
    color: var(--text-muted);
}

.auth-page .auth-input-wrap input::placeholder {
    color: #9bb2c2;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    transition: border-color .15s, box-shadow .15s;
}

.auth-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18);
}

.auth-input-wrap i {
    color: var(--text-faint);
    font-size: 17px;
    flex-shrink: 0;
}

.auth-input-wrap .auth-ico {
    width: 21px;
    height: 21px;
    color: var(--text-faint);
    flex-shrink: 0;
    transition: color .15s;
}

.auth-prefix {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
    padding: 0 8px 0 2px;
    flex-shrink: 0;
}

.auth-input-wrap:focus-within .auth-ico {
    color: var(--primary-strong);
}

.auth-input-wrap input,
.auth-input-wrap select {
    flex: 1;
    border: none;
    background: none;
    padding: 14px 10px;
    outline: none;
    width: 100%;
}

.auth-input-wrap select {
    appearance: none;
}

.auth-submit {
    position: relative;
    margin-top: 12px;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-strong) 50%, var(--primary) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow:
        0 12px 26px rgba(var(--primary-rgb), .45),
        inset 0 1px 1px rgba(255, 255, 255, .45);
    overflow: hidden;
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent);
    pointer-events: none;
}

.auth-submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 16px 32px rgba(var(--primary-rgb), .55), inset 0 1px 1px rgba(255, 255, 255, .45);
}

.auth-submit:active {
    transform: scale(.98);
}

.auth-link-button {
    display: block;
    margin: 16px auto 0;
    color: #FFD000;
    font-weight: 700;
    font-size: 13.5px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-soft);
}

.auth-switch a {
    font-weight: 700;
}

/* Recuperação de conta */
.auth-recovery {
    margin-top: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.auth-recovery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.auth-recovery-head strong {
    font-size: 16px;
}

.auth-recovery-head button {
    font-size: 16px;
    color: var(--text-muted);
}

.auth-recovery-text {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 14px;
}

.auth-recovery .auth-field {
    margin-bottom: 12px;
}

.auth-recovery-btn,
.auth-recovery-confirm {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-weight: 700;
}

.auth-recovery-code {
    margin-top: 14px;
}

.auth-recovery-ok {
    color: var(--success);
    font-weight: 600;
    font-size: 13px;
    margin-top: 10px;
}

/* Botão mostrar/ocultar senha */
.auth-eye {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0 4px;
    font-size: 18px;
    line-height: 1;
    color: var(--text-faint);
    cursor: pointer;
    transition: color .15s;
}

.auth-eye:hover {
    color: var(--primary-strong);
}

/* Código de acesso (captcha) exibido no campo */
.auth-captcha-code {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px 6px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--primary-strong);
    font-family: "Courier New", monospace;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    transition: color .15s, transform .1s;
}

.auth-captcha-code:hover {
    color: #FFD000;
}

.auth-captcha-code:active {
    transform: scale(.96);
}

.auth-captcha-wrap input {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================================
   Páginas simples (extrato)
   ===================================================================== */
.page-wrap {
    padding: 20px 18px;
}

.page-title {
    font-size: 24px;
    font-weight: 900;
}

.page-lead {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.movement-item,
.position-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.m-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.m-date {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.m-amt {
    font-size: 15px;
    font-weight: 800;
}

.m-amt.positive {
    color: var(--success);
}

.positive {
    color: var(--success);
}

/* =====================================================================
   Carteira
   ===================================================================== */
.carteira-main {
    padding: 16px 14px 0;
}

.wallet-tier-strip {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 4px;
}

.wallet-tier-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-tier-name {
    font-weight: 800;
    font-size: 14px;
    color: #FFD000;
}

.wallet-tier-meta {
    flex: 1;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.wallet-tier-help {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.wallet-tier-progress {
    margin-top: 10px;
    height: 7px;
    border-radius: 99px;
    background: var(--surface-3);
    overflow: hidden;
}

.wallet-tier-progress span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-strong), var(--primary));
}

.carteira-wallet-tabs {
    padding: 16px 0 4px;
}

.carteira-panel {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--shadow-sm);
}

.carteira-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.carteira-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carteira-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.carteira-input {
    width: 100%;
    padding: 13px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s;
}

.carteira-input:focus {
    border-color: var(--primary);
}

.carteira-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: var(--shadow-primary);
    transition: transform .1s;
}

.carteira-btn:active {
    transform: scale(.98);
}

.carteira-btn--ghost {
    background: var(--surface-3);
    color: #FFD000;
    box-shadow: none;
}

.carteira-link-btn {
    display: block;
    margin: 14px auto 0;
    color: #FFD000;
    font-weight: 700;
    font-size: 13.5px;
}

.carteira-hint {
    font-size: 13px;
    color: var(--text-soft);
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    line-height: 1.55;
}

.carteira-hint--sm {
    font-size: 12px;
    padding: 9px 12px;
}

.carteira-saved {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.carteira-gate-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Sub-abas de método (saque/cadastro): neutraliza o box do card de Mercados
   que vaza via ".app .category-tabs" e aplica visual de segmented control */
.carteira-subtabs {
    padding: 0 !important;
    margin: 10px 0 14px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    gap: 8px;
}

.carteira-subtabs .category-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 208, 0, .18);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.carteira-subtabs .category-tab.active {
    color: #FFD000;
    background: rgba(255, 208, 0, .12);
    border-color: rgba(255, 208, 0, .55);
    box-shadow: none;
}

.carteira-subtabs .category-tab.hidden {
    display: none;
}

.deposit-amount-hint {
    font-size: 12px;
    color: #FFD000;
    font-weight: 600;
}

.pix-inline-box {
    background: var(--surface-2);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 12px;
    word-break: break-all;
}

/* Extrato dentro da carteira */
.carteira-extrato {
    margin-top: 22px;
}

.carteira-extrato-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.carteira-extrato-title {
    font-size: 17px;
    font-weight: 800;
}

.carteira-extrato-refresh {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: #FFD000;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.carteira-extrato-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =====================================================================
   Perfil
   ===================================================================== */
.perfil-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    background: rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    padding: 14px;
}

.perfil-avatar-wrap {
    flex-shrink: 0;
}

.perfil-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    border: 2px solid rgba(255, 255, 255, .6);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.perfil-identity-body {
    color: #fff;
    min-width: 0;
}

.perfil-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.perfil-copy-btn {
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
}

.perfil-plan,
.perfil-since {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: .9;
    margin-top: 4px;
}

.perfil-main {
    padding: 16px 14px 0;
}

.perfil-panel {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 8px 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.perfil-panel-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 12px 6px;
}

.perfil-menu-list {
    display: flex;
    flex-direction: column;
}

.perfil-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 12px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background .15s;
}

.perfil-menu-item:hover {
    background: var(--surface-2);
}

.perfil-menu-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: #FFD000;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
}

.perfil-menu-item>span:nth-child(2) {
    flex: 1;
}

.perfil-menu-chevron {
    color: var(--text-faint);
    font-size: 14px;
}

.perfil-menu-danger {
    color: var(--danger);
}

.perfil-menu-danger .perfil-menu-ico {
    background: var(--danger-soft);
    color: var(--danger);
}

.perfil-referral-card {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    border-radius: var(--radius-lg);
    padding: 20px;
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.perfil-referral-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.perfil-referral-title {
    font-size: 18px;
    font-weight: 800;
}

.perfil-referral-desc {
    font-size: 13px;
    opacity: .92;
    margin: 6px 0 12px;
}

.perfil-referral-field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .2);
    border-radius: var(--radius-sm);
    padding: 4px 4px 4px 12px;
    gap: 8px;
}

.perfil-referral-field input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 12.5px;
    outline: none;
    min-width: 0;
}

.perfil-referral-copy {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.perfil-referral-btn {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #FFD000;
    font-weight: 800;
}

.perfil-referral-gift {
    font-size: 40px;
    opacity: .85;
    flex-shrink: 0;
}

.perfil-input {
    width: 100%;
    padding: 13px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
}

.perfil-input:focus {
    border-color: var(--primary);
}

/* =====================================================================
   Full sheet (alterar senha / carreira)
   ===================================================================== */
.iaturbo-full-sheet {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: var(--bg);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    overflow-y: auto;
    visibility: hidden;
}

.iaturbo-full-sheet.is-open {
    transform: translateY(0);
    visibility: visible;
}

.iaturbo-sheet-open {
    overflow: hidden;
}

.iaturbo-full-sheet-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2;
}

.iaturbo-full-sheet-back {
    font-size: 20px;
    color: var(--text);
    width: 34px;
}

.iaturbo-full-sheet-title {
    font-size: 17px;
    font-weight: 800;
    flex: 1;
}

.iaturbo-full-sheet-spacer {
    width: 34px;
}

.iaturbo-full-sheet-body {
    padding: 20px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iaturbo-full-sheet-body label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

/* =====================================================================
   Voucher
   ===================================================================== */
.voucher-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 16px;
    background: linear-gradient(135deg, var(--header-grad-1), var(--header-grad-2));
    color: #fff;
}

.voucher-back {
    color: #fff;
    font-size: 20px;
    width: 34px;
}

.voucher-topbar-title {
    font-size: 17px;
    font-weight: 800;
    flex: 1;
}

.voucher-topbar .header-icons .icon-btn {
    background: rgba(255, 255, 255, .2);
}

.voucher-main {
    padding: 18px 16px 0;
}

.voucher-hero {
    text-align: center;
    padding: 14px 0 22px;
    position: relative;
}

.voucher-hero-glow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), .35), transparent 70%);
    z-index: 0;
}

.voucher-hero-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 32px;
    box-shadow: var(--shadow-primary);
}

.voucher-hero-title {
    font-size: 22px;
    font-weight: 800;
    position: relative;
}

.voucher-hero-lead {
    font-size: 13.5px;
    color: var(--text-soft);
    margin-top: 8px;
    position: relative;
}

.voucher-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.voucher-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    display: block;
    margin-bottom: 8px;
}

.voucher-redeem-row {
    display: flex;
    gap: 10px;
}

.voucher-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 8px 0 14px;
}

.voucher-input-wrap:focus-within {
    border-color: var(--primary);
}

.voucher-input {
    flex: 1;
    border: none;
    background: none;
    padding: 14px 0;
    outline: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 0;
}

.voucher-paste {
    color: #FFD000;
    font-size: 17px;
    padding: 8px;
}

.voucher-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
    white-space: nowrap;
}

.voucher-submit--ghost {
    background: var(--surface-3);
    color: #FFD000;
    box-shadow: none;
}

.voucher-tips {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.voucher-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-soft);
}

.voucher-tips li i {
    color: var(--success);
    margin-top: 2px;
}

.voucher-success {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 28px 20px;
    margin-top: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.voucher-success-icon {
    font-size: 52px;
    color: var(--success);
    margin-bottom: 10px;
}

.voucher-success h3 {
    font-size: 20px;
}

.voucher-success-amount {
    font-size: 28px;
    font-weight: 900;
    color: var(--success);
    margin: 8px 0;
}

.voucher-success-bal {
    font-size: 13px;
}

.voucher-link-wallet {
    display: block;
    margin-top: 14px;
    font-weight: 700;
}

.voucher-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.voucher-burst span {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--primary);
    opacity: 0;
    animation: voucher-burst 1s ease-out;
}

.voucher-burst span:nth-child(2) {
    background: var(--gold);
}

.voucher-burst span:nth-child(3) {
    background: var(--success);
}

.voucher-burst span:nth-child(4) {
    background: var(--primary-strong);
}

.voucher-burst span:nth-child(5) {
    background: var(--danger);
}

@keyframes voucher-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--bx, 40px), var(--by, 60px)) scale(.3);
    }
}

/* =====================================================================
   Trading — layout de tela cheia
   ===================================================================== */
.trading-body {
    background: transparent;
}

.trading-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
}

.trading-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px 14px;
    background: linear-gradient(135deg, var(--header-grad-1), var(--header-grad-2));
    color: #fff;
}

.trading-header-back {
    color: #fff;
    font-size: 20px;
    width: 32px;
    flex-shrink: 0;
}

.trading-header-title {
    font-size: 16px;
    font-weight: 800;
}

.trading-header-fill {
    flex: 1;
}

.trading-header-balance {
    font-weight: 800;
    font-size: 14px;
    background: rgba(255, 255, 255, .2);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}

.trading-mode-switch {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, .18);
    border-radius: var(--radius-pill);
    padding: 3px;
}

.trading-mode-btn {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    transition: all .15s;
}

.trading-mode-btn.active {
    background: #FFD000;
    color: #fff;
}

.trading-chart-zone {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-container {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.chart-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

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

.market-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(255, 208, 0, .5);
    animation: pulse-dot 1.6s infinite;
}

.market-pulse.up {
    background: var(--success);
}

.market-pulse.down {
    background: var(--danger);
    animation: none;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 208, 0, .5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(22, 199, 132, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 199, 132, 0);
    }
}

.chart-asset-select {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--radius-xs);
    padding: 6px 10px;
    font-weight: 800;
    font-size: 15px;
    outline: none;
}

.current-price {
    text-align: center;
    line-height: 1.2;
}

.current-price>span {
    font-size: 10.5px;
    color: var(--text-muted);
    display: block;
}

.price {
    font-size: 17px;
    font-weight: 800;
}

.price-change {
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
}

.price-change.positive,
.price-change.up {
    color: var(--success);
}

.price-change.down,
.price-change.negative {
    color: var(--danger);
}

.market-spread {
    text-align: right;
    line-height: 1.2;
}

.market-spread>span {
    font-size: 10.5px;
    color: var(--text-muted);
    display: block;
}

.market-spread strong {
    font-size: 13px;
}

#tradingChart {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

#loteOperationChart {
    width: 100%;
    height: 260px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.chart-markers {
    position: relative;
}

.chart-marker {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: #FFD000;
}

/* Ferramentas e timeframe (flutuantes no chart) */
.chart-tools,
.chart-timeframe {
    position: absolute;
    top: 76px;
}

.chart-tools {
    right: 12px;
}

.chart-timeframe {
    right: 56px;
    left: auto;
}

.chart-tools-toggle,
.chart-timeframe-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}

.chart-tools-menu,
.chart-timeframe-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 10px;
    min-width: 140px;
    z-index: 20;
}

.chart-tools-menu {
    right: 0;
}

.chart-timeframe-menu {
    right: 0;
    left: auto;
    display: none;
}

.chart-tools-menu.show,
.chart-tools-menu.is-open,
.chart-timeframe-menu.show,
.chart-timeframe-menu.is-open {
    display: block;
}

.chart-tools-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.chart-tools-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 6px 0;
}

.chart-timeframe-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.chart-timeframe-option.active {
    background: var(--primary-soft);
    color: #FFD000;
}

/* ---- Posições abertas ---- */
.active-positions {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.active-positions.is-empty {
    display: none;
}

.trading-has-open-positions .active-positions.is-empty {
    display: block;
}

.active-positions h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.positions-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 18px;
}

.position-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.position-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.position-type {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.position-type.buy,
.position-type.up {
    background: var(--success-soft);
    color: var(--success);
}

.position-type.sell,
.position-type.down {
    background: var(--danger-soft);
    color: var(--danger);
}

.position-live {
    font-weight: 800;
    font-size: 14px;
}

.position-progress {
    height: 6px;
    border-radius: 99px;
    background: var(--surface-3);
    overflow: hidden;
}

.position-progress>span {
    display: block;
    height: 100%;
    background: var(--primary);
}

.position-details,
.position-details-full {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ---- Links rápidos ---- */
.trading-quick-links {
    display: flex;
    gap: 10px;
}

.trading-transactions-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}

.trading-transactions-link i {
    color: #FFD000;
    font-size: 16px;
}

.trading-live-link {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    border-color: transparent;
}

.trading-live-link i {
    color: #fff;
}

/* ---- Painel de controles ---- */
.trading-controls {
    margin-top: auto;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
    padding: 18px 14px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trade-panel-header {
    display: flex;
    align-items: center;
}

.trade-panel-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text);
}

.trade-panel-top {
    display: flex;
    gap: 10px;
}

.expiration-selector {
    flex: 1;
    min-width: 0;
}

.amount-selector {
    flex: 1.25;
    min-width: 0;
}

.expiration-menu-wrap {
    position: relative;
}

/* Campos "cartão" (Alavancagem / Capital alocado) */
.op-field {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 11px 12px;
    text-align: left;
    min-height: 64px;
}

.op-field-ico {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 17px;
    color: #FFD000;
    background: var(--primary-soft);
    border: 1px solid rgba(255, 208, 0, .25);
}

.op-field-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.op-field-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-field-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.op-field-caret {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.expiration-toggle {
    cursor: pointer;
}

.expiration-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 20;
    max-height: 220px;
    overflow-y: auto;
}

.expiration-menu.show,
.expiration-menu.is-open {
    display: block;
}

.expiration-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    color: var(--text-soft);
}

.expiration-menu button.active,
.expiration-menu button:hover {
    background: var(--primary-soft);
    color: #FFD000;
}

/* Campo de capital: valor editável + botões +/- */
.op-field--amount {
    gap: 8px;
    padding: 10px 9px;
    background: rgba(14, 22, 17, .92);
    border-color: rgba(255, 208, 0, .18);
}

.op-field--amount .op-field-ico {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.amount-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
}

.amount-value-wrap .amount-cur {
    color: var(--text);
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}

.amount-value-wrap input {
    flex: 1;
    width: 100%;
    min-width: 0;
    text-align: left;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    padding: 0;
}

.amount-steppers {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.amount-step-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD000;
    font-size: 15px;
    border-radius: 9px;
    background: var(--primary-soft);
    border: 1px solid rgba(255, 208, 0, .25);
    flex-shrink: 0;
}

.amount-step-btn:active {
    transform: scale(.94);
}

/* Botões grandes de Comprar / Vender */
.trading-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    position: relative;
}

.trade-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 14px;
    color: #fff;
    transition: transform .1s, box-shadow .15s;
    position: relative;
    overflow: hidden;
}

.trade-btn:active {
    transform: scale(.98);
}

.trade-btn-ico {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.trade-btn-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
}

.trade-btn-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: .85;
}

.buy-btn {
    background: linear-gradient(160deg, rgba(255, 208, 0, .16), rgba(9, 20, 14, .35));
    border: 1.5px solid rgba(255, 208, 0, .55);
    box-shadow: inset 0 0 30px rgba(255, 208, 0, .12), 0 10px 26px rgba(255, 208, 0, .18);
    color: #FFF5EE;
}

.buy-btn .trade-btn-ico {
    color: #FFD000;
    border: 2px solid rgba(255, 208, 0, .6);
    box-shadow: 0 0 22px rgba(255, 208, 0, .45);
}

.buy-btn .trade-btn-sub {
    color: #FFD000;
}

.sell-btn {
    background: linear-gradient(160deg, rgba(255, 84, 104, .16), rgba(22, 8, 10, .35));
    border: 1.5px solid rgba(255, 84, 104, .55);
    box-shadow: inset 0 0 30px rgba(255, 84, 104, .12), 0 10px 26px rgba(239, 71, 87, .18);
    color: #ffecef;
}

.sell-btn .trade-btn-ico {
    color: #ff5468;
    border: 2px solid rgba(255, 84, 104, .6);
    box-shadow: 0 0 22px rgba(255, 84, 104, .45);
}

.sell-btn .trade-btn-sub {
    color: #ff7a86;
}

/* Ícone de troca (losango) no centro */
.trade-actions-swap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #111111;
    border: 1.5px solid rgba(255, 208, 0, .4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
    z-index: 2;
}

.trade-actions-swap i {
    transform: rotate(-45deg);
    color: #FFD000;
    font-size: 15px;
}

/* Take profit / Stop loss */
.trade-risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.trade-risk-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trade-risk-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.trade-risk-item--tp .trade-risk-head i {
    color: #FFD000;
}

.trade-risk-item--sl .trade-risk-head i {
    color: #ff5468;
}

.trade-risk-grid input {
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.trade-risk-item--tp input:focus {
    border-color: var(--primary);
}

.trade-risk-item--sl input:focus {
    border-color: #ff5468;
}

.trade-risk-chips {
    display: flex;
    gap: 6px;
}

.trade-risk-chips button {
    flex: 1;
    padding: 7px 4px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: background .12s, border-color .12s, color .12s;
}

.trade-risk-item--tp .trade-risk-chips button {
    border-color: rgba(255, 208, 0, .35);
    color: #FFD000;
}

.trade-risk-item--tp .trade-risk-chips button.is-active {
    background: rgba(255, 208, 0, .16);
    border-color: #FFD000;
}

.trade-risk-item--sl .trade-risk-chips button {
    border-color: rgba(255, 84, 104, .35);
    color: #ff7a86;
}

.trade-risk-item--sl .trade-risk-chips button.is-active {
    background: rgba(255, 84, 104, .16);
    border-color: #ff5468;
}

.trade-risk-preview,
.trade-risk-preview-card {
    font-size: 12px;
    color: var(--text-soft);
    background: var(--surface-2);
    border-radius: var(--radius-xs);
    padding: 10px 12px;
}

.trade-risk-preview:empty {
    display: none;
}

.trade-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trade-cost-preview {
    font-size: 12px;
    color: var(--text-muted);
}

.trader-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: #FFD000;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.trade-notification {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 13px;
    z-index: 300;
    animation: fade-in .25s ease;
}

/* =====================================================================
   Lote-operação
   ===================================================================== */
.lot-operation-wrap {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lot-operation-summary,
.lot-chart-panel,
.lot-movements-panel {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.lot-summary-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lot-summary-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-soft);
}

.lot-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
}

.lot-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.lot-kpi-grid>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.lot-kpi-grid>div span {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.25;
}

.lot-kpi-grid>div strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.lot-kpi-grid>div strong.positive {
    color: var(--success);
}

.lot-kpi-grid>div strong.negative {
    color: var(--danger);
}

.lot-summary-top h1 {
    font-size: 20px;
    font-weight: 900;
    margin: 2px 0;
    color: var(--text);
    letter-spacing: -.3px;
}

.lot-summary-top p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

.lot-progress-row {
    margin-top: 12px;
}

.lot-progress-row>div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

.lot-progress-row>div:first-child span {
    color: var(--text-muted);
}

.lot-progress-row>div:first-child strong {
    color: var(--text);
    font-weight: 800;
}

.lot-progress-track {
    height: 7px;
    border-radius: 99px;
    background: var(--surface-3);
    overflow: hidden;
    margin-top: 6px;
}

.lot-progress-track>span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-strong), var(--primary));
}

.lot-chart-leverage {
    font-style: normal;
    font-weight: 800;
    font-size: 12px;
    color: #FFD000;
    background: var(--primary-soft);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.lot-chart-action {
    margin-top: 12px;
}

.lot-chart-redeem-btn {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-weight: 800;
}

.lot-chart-bot-status {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.lot-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.lot-panel-head h2 {
    font-size: 15px;
    font-weight: 800;
}

.lot-panel-head span {
    background: var(--primary-soft);
    color: #FFD000;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}

.lot-movement-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lot-movement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.lot-movement-item>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lot-movement-item>div strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.lot-movement-item>div span {
    font-size: 11.5px;
    color: var(--text-muted);
}

.lot-movement-item em {
    font-style: normal;
    font-weight: 800;
    flex-shrink: 0;
}

.lot-movement-item em.positive {
    color: var(--success);
}

.lot-movement-item em.negative {
    color: var(--danger);
}

.lot-empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

/* =====================================================================
   Traders ao vivo
   ===================================================================== */
.live-traders-wrap {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.live-traders-campaign {
    background: linear-gradient(135deg, #FFD000, var(--primary));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-primary);
}

.live-traders-campaign-copy span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    opacity: .92;
}

.live-traders-campaign-copy h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 6px 0;
}

.live-traders-campaign-copy p {
    font-size: 12.5px;
    opacity: .9;
    line-height: 1.5;
}

.live-traders-campaign-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    background: rgba(255, 255, 255, .15);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 12.5px;
}

.live-traders-campaign-rule i {
    font-size: 20px;
}

.live-traders-hero {
    text-align: center;
    padding: 6px 0;
}

.live-traders-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    background: var(--warning-soft);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
}

.live-traders-hero h1 {
    font-size: 22px;
    font-weight: 900;
    margin: 10px 0 6px;
}

.live-traders-hero p {
    font-size: 13px;
    color: var(--text-soft);
}

.live-traders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-trader-card {
    position: relative;
    display: flex;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 14px 16px 14px 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.live-trader-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.live-trader-card.buy::before {
    background: var(--success);
}

.live-trader-card.sell::before {
    background: var(--danger);
}

.live-trader-rank {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: var(--text-faint);
}

.live-trader-rank i {
    font-size: 20px;
}

.live-trader-rank span {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.live-trader-rank.top-1 i {
    color: #f4b740;
}

.live-trader-rank.top-2 i {
    color: #9aa7b4;
}

.live-trader-rank.top-3 i {
    color: #cd7f32;
}

.live-trader-main {
    flex: 1;
    min-width: 0;
}

.live-trader-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.live-trader-head strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-trader-head span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.live-trader-head span.buy {
    color: var(--success);
}

.live-trader-head span.sell {
    color: var(--danger);
}

.live-trader-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.live-trader-stats span {
    display: flex;
    flex-direction: column;
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

.live-trader-stats b {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.live-trader-sides {
    display: flex;
    gap: 3px;
    margin-top: 10px;
    height: 6px;
    border-radius: 99px;
    overflow: hidden;
    background: var(--surface-3);
}

.live-trader-sides span {
    display: block;
    height: 100%;
    border-radius: 99px;
}

.live-trader-sides span.buy {
    width: var(--w, 50%);
    background: var(--success);
}

.live-trader-sides span.sell {
    width: var(--w, 50%);
    background: var(--danger);
}

.live-trader-main small {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    color: var(--text-muted);
}

/* =====================================================================
   Transações de trading
   ===================================================================== */
.trading-transactions-wrap {
    padding: 14px;
}

.trading-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trade-transaction-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.trade-transaction-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.trade-transaction-detail {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
}

/* =====================================================================
   Modal status do trader / ranking
   ===================================================================== */
.trader-status-modal,
.trading-intro {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.trader-status-modal.is-open,
.trader-status-modal.show,
.trading-intro.is-open,
.trading-intro.trading-intro-open {
    display: flex;
}

.trader-status-backdrop,
.trading-intro-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.trader-status-panel,
.trading-intro-panel {
    position: relative;
    width: 100%;
    max-width: var(--app-max);
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-lg);
    animation: sheet-up .28s cubic-bezier(.22, 1, .36, 1);
    max-height: 88vh;
    overflow-y: auto;
}

.trader-status-title,
.trading-intro h2 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
}

.trader-status-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-soft);
    display: grid;
    place-items: center;
}

.trader-status-copy {
    font-size: 13px;
    color: var(--text-soft);
}

.trader-status-stats {
    display: flex;
    gap: 12px;
    margin: 14px 0;
}

.trader-tier-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trader-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.trader-tier-row.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.trader-status-next {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 12px;
}

.trader-status-btn.trader-status-next {
    margin: 0;
}

.trading-intro-icon {
    font-size: 40px;
    color: #FFD000;
    text-align: center;
    margin-bottom: 10px;
}

.trading-intro p {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.55;
    margin: 0 0 4px;
}

.trading-intro-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0;
}

.trading-intro-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.trading-intro-points span i {
    color: var(--primary-strong);
    font-size: 17px;
    flex-shrink: 0;
}

.trading-intro button {
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: transform .1s, opacity .15s;
}

.trading-intro button:active {
    transform: scale(.98);
}

.ranking-intro {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .60);
}

.ranking-intro[aria-hidden="true"] {
    display: none;
}

.ranking-intro-badge {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, var(--gold), #FF8C00);
    color: #5a3c00;
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    box-shadow: 0 16px 50px rgba(244, 183, 64, .5);
    animation: pop-in .4s cubic-bezier(.22, 1.4, .5, 1);
}

.ranking-intro-badge i {
    font-size: 44px;
    display: block;
}

.ranking-intro-badge span {
    font-weight: 900;
    letter-spacing: 2px;
    display: block;
    margin: 6px 0;
}

.ranking-intro-badge strong {
    font-size: 22px;
}

@keyframes pop-in {
    from {
        transform: scale(.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ranking-intro-fire,
.ranking-intro-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* =====================================================================
   Afiliados / Indicados
   ===================================================================== */
.aff-page-body {
    background: transparent;
}

.aff-hero {
    background: linear-gradient(150deg, var(--header-grad-1), var(--header-grad-2));
    color: #fff;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 22px;
    border-radius: 0 0 26px 26px;
    box-shadow: var(--shadow);
}

.aff-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aff-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .2);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
}

.aff-level-badge i {
    color: var(--gold);
}

.aff-rules-btn {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
}

.aff-tier-bar {
    display: flex;
    gap: 6px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.aff-tier-item {
    flex: 1;
    min-width: 60px;
    background: rgba(255, 255, 255, .15);
    border-radius: var(--radius-xs);
    padding: 8px;
    text-align: center;
}

.aff-tier-label {
    font-size: 10px;
    opacity: .85;
    display: block;
}

.aff-tier-pct {
    font-size: 15px;
    font-weight: 800;
}

.aff-hero-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .15);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.aff-hero-promo-text strong {
    display: block;
    font-size: 26px;
    font-weight: 900;
}

.aff-hero-promo-text span {
    font-size: 12px;
    opacity: .9;
}

.aff-hero-promo-art {
    font-size: 34px;
    opacity: .85;
}

.aff-main {
    padding: 16px 14px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aff-stats-card,
.aff-table-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.aff-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.aff-stat,
.aff-stat-full {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.aff-stat-full {
    margin-top: 12px;
}

.aff-stat-label {
    font-size: 11.5px;
    color: var(--text-muted);
    display: block;
    line-height: 1.35;
}

.aff-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    display: block;
    margin-top: 4px;
}

.aff-stat-link,
.aff-stat-link-btn {
    font-size: 12px;
    font-weight: 700;
    color: #FFD000;
    margin-top: 4px;
    display: inline-block;
}

.aff-info {
    color: var(--text-faint);
    font-size: 12px;
    cursor: help;
}

.aff-actions {
    display: flex;
    gap: 10px;
}

.aff-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
}

.aff-btn-copy {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.aff-btn-share {
    background: var(--surface);
    border: 1px solid var(--border);
    color: #FFD000;
}

.aff-link-hidden {
    display: none;
}

.aff-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.aff-period-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.aff-period-tab {
    padding: 7px 16px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.aff-period-tab.active {
    background: #FFD000;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.aff-details-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #FFD000;
}

.aff-table-wrap {
    overflow-x: auto;
}

.aff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.aff-table th,
.aff-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
}

.aff-table th {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
}

.aff-table td:first-child,
.aff-table th:first-child {
    text-align: left;
}

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

.aff-referrals-section {
    margin-top: 4px;
}

.aff-referrals-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.aff-referrals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---- Modal de saque de comissão ---- */
.comm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 280;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .55);
}

.comm-modal-overlay.is-open,
.comm-modal-overlay.show {
    display: flex;
}

.comm-modal-panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    animation: pop-in .25s cubic-bezier(.22, 1.2, .5, 1);
}

.comm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-soft);
    display: grid;
    place-items: center;
}

.comm-modal-title {
    font-size: 19px;
    font-weight: 800;
}

.comm-modal-balance {
    font-size: 13.5px;
    color: var(--text-soft);
    margin: 6px 0 16px;
}

.comm-modal-hint {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 12px;
    line-height: 1.5;
}

.comm-hint-sm {
    font-size: 12px;
}

.comm-modal-method {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.comm-register-tabs {
    display: flex;
    gap: 6px;
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 14px;
}

.comm-tab {
    flex: 1;
    padding: 9px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.comm-tab.active {
    background: #FFD000;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.comm-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comm-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.comm-input {
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
}

.comm-input:focus {
    border-color: var(--primary);
}

.comm-btn {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-weight: 800;
}

.comm-edit-btn {
    display: block;
    margin: 12px auto 0;
    color: #FFD000;
    font-weight: 700;
    font-size: 13px;
}

.comm-modal-error {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

.comm-method-type {
    font-weight: 700;
}

/* =====================================================================
   Modal genérico (confirm / alert)
   ===================================================================== */
.iaturbo-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.iaturbo-modal.is-open,
.iaturbo-modal.iaturbo-modal-open,
.iaturbo-modal.show {
    display: flex;
}

.iaturbo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.iaturbo-modal-panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 26px 22px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: pop-in .25s cubic-bezier(.22, 1.2, .5, 1);
}

.iaturbo-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: #FFD000;
    display: grid;
    place-items: center;
    font-size: 28px;
}

.iaturbo-modal.is-error .iaturbo-modal-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.iaturbo-modal-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.iaturbo-modal-msg,
.iaturbo-modal-msg-text {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

.iaturbo-modal-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    text-align: left;
}

.iaturbo-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.iaturbo-modal-btn {
    flex: 1;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14.5px;
}

.iaturbo-modal-btn--primary {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.iaturbo-modal-btn--ghost {
    background: var(--surface-3);
    color: var(--text-soft);
}

.iaturbo-modal-btn--full {
    flex: 1 1 100%;
}

/* =====================================================================
   Modal de saldo insuficiente (dedicado)
   ===================================================================== */
.iaturbo-bal {
    position: fixed;
    inset: 0;
    z-index: 460;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.iaturbo-bal.is-open {
    display: flex;
}

.iaturbo-bal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 5, 3, .8);
    backdrop-filter: blur(3px);
}

.iaturbo-bal-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-top: 34px;
    padding: 3px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 208, 0, .55), rgba(255, 208, 0, .12) 40%, rgba(255, 208, 0, .12) 60%, rgba(255, 208, 0, .40));
    box-shadow: 0 0 42px rgba(255, 208, 0, .30), 0 24px 60px rgba(0, 0, 0, .55);
    animation: pop-in .28s cubic-bezier(.22, 1.2, .5, 1);
}

/* moldura com "cantos" neon */
.iaturbo-bal-frame::before,
.iaturbo-bal-frame::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #FFD000;
    filter: drop-shadow(0 0 6px rgba(255, 208, 0, .8));
    pointer-events: none;
}

.iaturbo-bal-frame::before {
    top: 8px;
    left: 8px;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 16px;
}

.iaturbo-bal-frame::after {
    bottom: 8px;
    right: 8px;
    border-left: 0;
    border-top: 0;
    border-bottom-right-radius: 16px;
}

.iaturbo-bal-avatar {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 42%, rgba(10, 10, 10, .95) 44%, rgba(255, 208, 0, .25) 62%, transparent 72%);
    z-index: 3;
}

.iaturbo-bal-avatar::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 208, 0, .7);
    box-shadow: 0 0 24px rgba(255, 208, 0, .55), inset 0 0 18px rgba(255, 208, 0, .35);
}

.iaturbo-bal-avatar img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    background: #111111;
    z-index: 2;
}

.iaturbo-bal-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, #ff5468, #d5263b);
    border: 3px solid #0a140e;
    box-shadow: 0 6px 16px rgba(213, 38, 59, .5);
    z-index: 4;
}

.iaturbo-bal-panel {
    position: relative;
    border-radius: 23px;
    padding: 64px 22px 22px;
    text-align: center;
    background: linear-gradient(180deg, rgba(16, 16, 16, .98), rgba(7, 13, 10, .99));
    overflow: hidden;
}

.iaturbo-bal-title {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: .3px;
}

.iaturbo-bal-msg {
    font-size: 15px;
    color: #666666;
    line-height: 1.5;
    margin: 10px auto 20px;
    max-width: 300px;
}

.iaturbo-bal-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 208, 0, .22);
    margin-bottom: 18px;
}

.iaturbo-bal-card-ico {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #FFD000;
    border: 1px solid rgba(255, 208, 0, .3);
    background: rgba(255, 208, 0, .1);
}

.iaturbo-bal-card-label {
    flex: 1;
    text-align: left;
    font-size: 15px;
    color: #666666;
}

.iaturbo-bal-card-val {
    font-size: 18px;
    font-weight: 900;
    color: #FFD000;
}

.iaturbo-bal-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 22px;
    padding: 0 2px;
}

.iaturbo-bal-hint-ico {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #FFD000;
    border: 1.5px solid rgba(255, 208, 0, .55);
    background: rgba(255, 208, 0, .08);
}

.iaturbo-bal-hint p {
    font-size: 14px;
    color: #666666;
    line-height: 1.45;
}

.iaturbo-bal-hint strong {
    color: #FFF5EE;
    font-weight: 800;
}

.iaturbo-bal-actions {
    display: flex;
    gap: 12px;
}

.iaturbo-bal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    transition: transform .1s;
}

.iaturbo-bal-btn:active {
    transform: scale(.97);
}

.iaturbo-bal-btn--ghost {
    color: #55f3a0;
    border: 1.5px solid rgba(255, 208, 0, .4);
    background: transparent;
}

.iaturbo-bal-btn--primary {
    color: #111111;
    background: linear-gradient(135deg, #4dffa0 0%, #FFD000 50%, #E6BC00 100%);
    box-shadow: 0 12px 26px rgba(255, 208, 0, .35);
}

/* =====================================================================
   Modal de pagamento + loading (Tema Light / Claro)
   ===================================================================== */
.iaturbo-pay-loading,
.iaturbo-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.iaturbo-pay-loading.is-open,
.iaturbo-pay-loading.iaturbo-pay-open,
.iaturbo-pay-modal.is-open,
.iaturbo-pay-modal.iaturbo-pay-open {
    display: flex;
}

.iaturbo-pay-loading-backdrop,
.iaturbo-pay-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.iaturbo-pay-loading-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #EBEBEB;
    color: #1A1A1A;
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
}

.iaturbo-pay-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 4px solid rgba(255, 208, 0, 0.25);
    border-top-color: #FFD000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.iaturbo-pay-loading-title {
    font-weight: 800;
    font-size: 17px;
    color: #1A1A1A;
    margin: 0 0 4px;
}

.iaturbo-pay-loading-sub {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.iaturbo-pay-modal-panel {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 20px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
    max-height: 92vh;
    overflow-y: auto;
    animation: pop-in .25s cubic-bezier(.22, 1.2, .5, 1);
    color: #1A1A1A;
    box-sizing: border-box;
}

.iaturbo-pay-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F2F2F7;
    color: #555555;
    border: none;
    outline: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s, color 0.15s;
}

.iaturbo-pay-close:hover {
    background: #E5E5EA;
    color: #1A1A1A;
}

.iaturbo-pay-title {
    font-size: 18px;
    font-weight: 800;
    color: #1A1A1A;
    margin: 0;
    letter-spacing: -0.2px;
}

.iaturbo-pay-amount {
    font-size: 26px;
    font-weight: 900;
    color: #1A1A1A;
    margin: 6px 0 16px;
}

.iaturbo-pay-qr-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin: 0 auto;
}

.iaturbo-pay-qr-mount {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.iaturbo-pay-qr-mount canvas {
    display: none !important;
}

.iaturbo-pay-qr-mount img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.iaturbo-pay-hint {
    font-size: 13px;
    color: #666666;
    margin: 14px 0 16px;
    line-height: 1.4;
}

.iaturbo-pay-copy-row {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 5px 5px 5px 12px;
    margin-bottom: 12px;
}

.iaturbo-pay-copy-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 12.5px;
    min-width: 0;
    color: #1A1A1A;
    font-family: inherit;
    font-weight: 500;
}

.iaturbo-pay-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #FFD000;
    color: #111111;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 8px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.iaturbo-pay-copy-btn:active {
    transform: scale(0.97);
}

.iaturbo-pay-copy-btn:hover {
    opacity: 0.92;
}

.iaturbo-pay-status {
    font-size: 12px;
    color: #888888;
    margin: 12px 0 16px;
    line-height: 1.4;
}

.iaturbo-pay-done-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: #F2F2F7;
    color: #1A1A1A;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.iaturbo-pay-done-btn:hover {
    background: #E5E5EA;
    color: #000000;
}

/* =====================================================================
   Notificações de trade
   ===================================================================== */
.notification-icon {
    font-size: 22px;
}

.notification-text {
    display: flex;
    flex-direction: column;
}

.notification-text strong {
    font-size: 13px;
}

.notification-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.trade-notification.win {
    border-left-color: var(--success);
}

.trade-notification.lose,
.trade-notification.loss {
    border-left-color: var(--danger);
}

/* =====================================================================
   Seletor de idioma
   ===================================================================== */
.language-switch {
    position: relative;
}

.has-lang-switch .header-top {
    gap: 8px;
}

.language-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.language-switch-flag {
    font-size: 15px;
}

.language-switch-code {
    text-transform: uppercase;
}

.language-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 6px;
    min-width: 170px;
    z-index: 120;
}

.language-menu.show,
.language-menu.is-open,
.language-switch.is-open .language-menu {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

.language-option:hover,
.language-option.active {
    background: var(--primary-soft);
    color: #FFD000;
}

.language-option-flag {
    font-size: 18px;
}

/* =====================================================================
   Barra de instalação PWA
   ===================================================================== */
.pwa-install-bar {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-h) + 14px);
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: calc(var(--app-max) - 28px);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    box-shadow: var(--shadow-lg);
    z-index: 150;
    animation: sheet-up .3s ease;
}

.pwa-install-bar__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    flex-shrink: 0;
}

.pwa-install-bar__text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.pwa-install-bar__text strong {
    font-size: 13.5px;
    display: block;
}

.pwa-install-bar__text span {
    font-size: 11.5px;
    color: var(--text-muted);
}

.pwa-install-bar__btn {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.pwa-install-bar__close {
    width: 28px;
    height: 28px;
    color: var(--text-faint);
    font-size: 14px;
    flex-shrink: 0;
}

/* =====================================================================
   Toast / Check-in (loading e estados auxiliares)
   ===================================================================== */
.ci-toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 320;
}

.ci-loading {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.ci-loading i {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

/* estados utilitários genéricos */
.is-loading {
    opacity: .6;
    pointer-events: none;
}

.is-error {
    color: var(--danger);
}

/* =====================================================================
   Responsividade
   ===================================================================== */

/* Telas pequenas (≤360px) */
@media (max-width: 360px) {
    .balance-amount {
        font-size: 32px;
    }

    .tab {
        font-size: 12.5px;
        padding: 10px 4px;
    }

    .trader-stat-val,
    .aff-stat-val {
        font-size: 15px;
    }

    .trade-btn {
        font-size: 15px;
        padding: 8px 10px;
    }

    .auth-hero-copy h1 {
        font-size: 24px;
    }

    .iaturbo-pay-qr-mount {
        width: 170px;
        height: 170px;
    }
}

/* Tablets e desktop: app centralizado com moldura */
@media (min-width: 600px) {
    .app {
        margin: 0 auto;
        min-height: 100vh;
        box-shadow: 0 0 60px rgba(0, 0, 0, .15);
    }

    /* elementos fixos acompanham a largura do app */
    .bottom-nav,
    .pwa-install-bar {
        max-width: var(--app-max);
    }
}

/* Telas largas: aproveita espaço em grades */
@media (min-width: 760px) {

    .traders-list,
    .receita-list,
    .live-traders-list,
    .carteira-extrato-list,
    .trading-transactions-list {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Acessibilidade: respeita preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .ticker-track {
        animation: none;
    }
}

/* Foco visível para navegação por teclado */
:focus-visible {
    outline: 2px solid var(--primary-strong);
    outline-offset: 2px;
}

/* =====================================================================
   Login / Cadastro — campos com borda luminosa (pill glow)
   ===================================================================== */
.auth-page .auth-input-wrap {
    position: relative;
    border: none;
    border-radius: var(--radius-pill);
    padding: 2px 18px;
    background: #ffffff;
    box-shadow:
        0 8px 22px rgba(var(--primary-rgb), .20),
        0 2px 6px rgba(0, 0, 0, .10),
        inset 0 1px 1px rgba(255, 255, 255, .9);
    transition: box-shadow .2s ease, transform .12s ease;
    overflow: visible;
}

/* Anel de borda em gradiente (claro no topo, suave embaixo) */
.auth-page .auth-input-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.8px;
    background: linear-gradient(155deg,
            var(--primary-strong) 0%,
            rgba(var(--primary-rgb), .85) 30%,
            rgba(var(--primary-rgb), .35) 62%,
            rgba(255, 255, 255, .9) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background .2s ease, opacity .2s ease;
}

/* Remove o brilho interno no topo dos campos */
.auth-page .auth-input-wrap::after {
    content: none;
}

.auth-page .auth-input-wrap input,
.auth-page .auth-input-wrap select {
    padding: 15px 10px;
    background: transparent;
}

.auth-page .auth-input-wrap .auth-ico {
    color: var(--primary-strong);
}

/* Estado de foco — intensifica o glow e a borda */
.auth-page .auth-input-wrap:focus-within {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px rgba(var(--primary-rgb), .20),
        0 10px 26px rgba(var(--primary-rgb), .28);
}

.auth-page .auth-input-wrap:focus-within::before {
    background: linear-gradient(160deg,
            var(--primary-strong) 0%,
            rgba(var(--primary-rgb), .65) 45%,
            rgba(var(--primary-rgb), .25) 100%);
}

.auth-page .auth-input-wrap:focus-within .auth-ico {
    color: #FFD000;
}

/* =====================================================================
   Card de investimento — duas colunas (Médio / Longo prazo)
   ===================================================================== */
.inv-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
}

.inv-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100px;
    flex-shrink: 0;
}

.inv-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.inv-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-soft);
    background: var(--surface-3);
}

.inv-avatar-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--surface);
}

.inv-head-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.inv-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
}

.inv-subtitle {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

.inv-details {
    margin-top: auto;
    margin-bottom: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 14px;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    box-shadow: var(--shadow-primary);
    transition: transform .1s, filter .15s;
}

.inv-details:active {
    transform: scale(.97);
}

.inv-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    min-width: 0;
    border-left: 1px dashed var(--border);
    padding-left: 12px;
}

.inv-card--single .inv-plans {
    grid-template-columns: 1fr;
}

.inv-plan {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 9px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.inv-plan--long {
    background: linear-gradient(180deg, #fffaf0, var(--surface-2));
    border-color: #f0dca6;
}

.inv-plan-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #FFD000;
}

.inv-plan--long .inv-plan-kicker {
    color: #c08a16;
}

.inv-plan-days {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.inv-plan-days i {
    color: var(--text-muted);
    font-size: 12px;
}

.inv-plan-rate {
    font-size: 18px;
    font-weight: 900;
    color: var(--success);
    line-height: 1;
    margin-top: 2px;
}

.inv-plan-rate-lbl {
    font-size: 10px;
    color: var(--text-muted);
}

.inv-plan-price {
    margin-top: 6px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.inv-plan-price-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.inv-plan-price-val {
    font-weight: 800;
    color: var(--text);
    font-size: 14px;
}

.inv-plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
    padding: 9px;
    border-radius: var(--radius-xs);
    font-weight: 800;
    font-size: 11.5px;
    color: #fff;
    transition: transform .1s, filter .15s;
}

.inv-plan-btn:active {
    transform: scale(.97);
}

.inv-plan-btn--mid {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    box-shadow: var(--shadow-primary);
}

.inv-plan-btn--long {
    background: linear-gradient(135deg, #e0a420, #f4b740);
    color: #5a3c00;
    box-shadow: 0 8px 18px rgba(244, 183, 64, .42);
}

.inv-plan-btn--long i {
    color: #5a3c00;
}

@media (max-width: 400px) {
    .inv-card {
        gap: 8px;
        padding: 10px;
    }

    .inv-head {
        width: 74px;
        gap: 4px;
    }

    .inv-avatar {
        width: 44px;
        height: 44px;
    }

    .inv-avatar-badge {
        font-size: 8px;
        padding: 1px 5px;
    }

    .inv-name {
        font-size: 12px;
    }

    .inv-subtitle {
        font-size: 9px;
    }

    .inv-details {
        font-size: 9.5px;
    }

    .inv-plans {
        padding-left: 8px;
        gap: 6px;
    }

    .inv-plan {
        padding: 8px 6px;
        gap: 2px;
    }

    .inv-plan-kicker {
        font-size: 8.5px;
    }

    .inv-plan-days {
        font-size: 10.5px;
        gap: 4px;
    }

    .inv-plan-days i {
        font-size: 10px;
    }

    .inv-plan-rate {
        font-size: 15px;
    }

    .inv-plan-rate-lbl {
        font-size: 8px;
    }

    .inv-plan-price {
        padding: 5px 4px;
        margin-top: 5px;
    }

    .inv-plan-price-lbl {
        font-size: 7.5px;
    }

    .inv-plan-price-val {
        font-size: 12px;
    }

    .inv-plan-btn {
        font-size: 9.5px;
        padding: 8px 4px;
        gap: 3px;
        margin-top: 5px;
        white-space: nowrap;
    }
}

/* =====================================================================
   Páginas de trading com barra inferior — reserva o espaço da nav
   ===================================================================== */
.trading-page:has(.bottom-nav) {
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

.trading-page:has(.bottom-nav) .trading-controls {
    border-radius: 24px 24px 0 0;
}

/* =====================================================================
   Perfil — dashboard
   ===================================================================== */
.perfil-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.perfil-hero-stat {
    text-align: center;
    position: relative;
}

.perfil-hero-stat+.perfil-hero-stat::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 10%;
    height: 80%;
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.perfil-hero-val {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.perfil-hero-lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
}

.dash-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dash-stat {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
}

.dash-stat:nth-child(odd) {
    border-right: 1px solid var(--border-soft);
}

.dash-stat:nth-child(n+3) {
    border-bottom: none;
}

.dash-stat strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.dash-stat span {
    font-size: 11.5px;
    color: var(--text-muted);
}

.dash-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.dash-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    line-height: 1.2;
}

.dash-action:active {
    transform: scale(.97);
}

.dash-action-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: #FFD000;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.dash-gift {
    margin-top: 16px;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    border-radius: var(--radius);
    padding: 16px;
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.dash-gift-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.dash-gift-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.dash-gift-text h3 {
    font-size: 15px;
    font-weight: 800;
}

.dash-gift-text p {
    font-size: 12px;
    opacity: .9;
}

.dash-gift-form {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 208, 0, .30);
    border-radius: var(--radius-pill);
    padding: 4px 4px 4px 14px;
}

.dash-gift-form input {
    flex: 1;
    background: none;
    border: none;
    color: #FFD000;
    outline: none;
    font-size: 12.5px;
    letter-spacing: .5px;
    min-width: 0;
}

.dash-gift-form input::placeholder {
    color: rgba(255, 208, 0, .45);
}

.dash-gift-form button {
    background: linear-gradient(135deg, #FFD000, #E6BC00);
    color: #111111;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.dash-gift .sheet-error:not(:empty) {
    color: #fff;
    font-weight: 600;
    margin-top: 8px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.dash-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 14px 6px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    line-height: 1.2;
}

.dash-item:active {
    transform: scale(.97);
}

.dash-item-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: #FFD000;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.dash-item--danger {
    color: var(--danger);
}

.dash-item--danger .dash-item-ico {
    background: var(--danger-soft);
    color: var(--danger);
}

@media (max-width: 360px) {

    .dash-actions,
    .dash-grid {
        gap: 7px;
    }

    .dash-action,
    .dash-item {
        font-size: 10px;
        padding: 11px 4px;
    }

    .dash-action-ico,
    .dash-item-ico {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }
}


:root {
    --primary: #FFD000;
    --primary-rgb: 255, 208, 0;
    --primary-soft: rgba(255, 208, 0, .16);
    --primary-softer: rgba(255, 208, 0, .07);
    --primary-strong: #E6BC00;
    --primary-deep: #ffd700;
    --primary-contrast: #111111;
    --header-grad-1: #0e0e0e;
    --header-grad-2: #1a1a1a;
    --bg: #0a0a0a;
    --bg2: #111111;
    --surface: rgba(18, 18, 18, .95);
    --surface-2: rgba(24, 24, 24, .96);
    --surface-3: rgba(32, 32, 32, .97);
    --text: #f5f5f5;
    --text-soft: #666666;
    --text-muted: #888888;
    --text-faint: #555555;
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, .14);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, .15);
    --warning: #FFD000;
    --warning-soft: rgba(255, 208, 0, .14);
    --gold: #FFD000;
    --border: rgba(255, 208, 0, .20);
    --border-soft: rgba(255, 208, 0, .10);
    --shadow-sm: 0 14px 32px rgba(0, 0, 0, .40);
    --shadow: 0 22px 50px rgba(0, 0, 0, .55);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, .68);
    --shadow-primary: 0 18px 40px rgba(255, 208, 0, .25);
}

/* html e body: xadrez definido no topo do CSS — não sobrescrever */
html {
    /* sem background aqui */
}

body {
    color: var(--text);
}

/* body::before removido — xadrez está no html::before no topo do CSS */

a {
    color: #FFD000;
}

.muted,
.empty-msg,
.page-lead {
    color: var(--text-muted);
}

.app {
    background: transparent;
}

.app::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top, rgba(255, 208, 0, .05), transparent 26%),
        radial-gradient(circle at bottom right, rgba(224, 176, 16, .06), transparent 28%);
}

.header,
.memecoin-header,
.auth-hero,
.trading-header,
.voucher-topbar,
.aff-hero,
.ci-head,
.rl-head {
    background:
        linear-gradient(135deg, rgba(10, 10, 10, .97) 0%, rgba(18, 18, 18, .97) 48%, rgba(22, 22, 22, .98) 100%);
    border-bottom: 1px solid rgba(255, 208, 0, .18);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
}

.header::before,
.memecoin-header::before,
.auth-hero::before,
.trading-header::before,
.voucher-topbar::before,
.aff-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(255, 208, 0, .12), transparent 30%),
        radial-gradient(circle at top right, rgba(224, 176, 16, .16), transparent 34%);
}

.banner-image {
    opacity: .28;
}

.banner-image img {
    filter: saturate(.6) contrast(1.1) brightness(.5) sepia(.5) hue-rotate(15deg);
    transform: scale(1.04);
}

.banner-image::after {
    background:
        linear-gradient(140deg, rgba(8, 8, 8, .90) 0%, rgba(14, 14, 14, .82) 42%, rgba(18, 18, 18, .90) 100%);
}

/* Carteira: banner sem tint amarelo por cima */
.carteira-app .header,
.carteira-app .memecoin-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #0e0e0e 48%, #111111 95%);
    border-bottom-color: rgba(255, 208, 0, .14);
}

.carteira-app .header::before,
.carteira-app .memecoin-header::before {
    background: none;
}

.carteira-app .banner-image img {
    filter: saturate(1) contrast(1.02) brightness(.9);
}

.carteira-app .banner-image::after {
    background:
        linear-gradient(180deg, rgba(6, 6, 6, .10) 0%, rgba(8, 8, 8, .05) 45%, rgba(10, 10, 10, .40) 100%);
}

.tabs,
#mercadosFilters,
.wallet-tier-strip,
.carteira-panel,
.trader-card,
.my-sub-card,
.manager-vip-card,
.faq-item,
.voucher-card,
.voucher-success,
.chart-container,
.active-positions,
.trading-transactions-link,
.trading-controls,
.lot-operation-summary,
.lot-chart-panel,
.lot-movements-panel,
.aff-stats-card,
.aff-table-card,
.aff-stat,
.aff-stat-full,
.comm-modal-panel,
.iaturbo-modal-panel,
.sheet-panel,
.auth-recovery,
.dash-stats,
.dash-action,
.dash-item,
.dash-gift,
.perfil-panel,
.perfil-referral-card,
.rl-card,
.rl-rules,
.rl-win,
.ci-balance,
.ci-task,
.movement-item,
.position-item {
    background: linear-gradient(180deg, rgba(20, 20, 20, .97), rgba(12, 12, 12, .97));
    border: 1px solid rgba(255, 208, 0, .18);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .50),
        inset 0 1px 0 rgba(255, 255, 255, .03);
}

.tabs::before,
#mercadosFilters::before {
    background: linear-gradient(135deg, rgba(255, 208, 0, .80), rgba(224, 176, 16, .60), rgba(255, 255, 255, .10));
}

.tab,
.category-tab,
.auth-field label,
.carteira-field label,
.trade-risk-grid label,
.trade-risk-grid span,
.voucher-label,
.page-title,
.auth-title,
.perfil-panel-title,
.carteira-extrato-title,
.trading-header-title,
.voucher-topbar-title,
.aff-referrals-title {
    color: var(--text);
}

.tab,
.category-tab,
.auth-link-button,
.carteira-link-btn,
.sub-sheet-rules,
.aff-details-link,
.aff-stat-link,
.voucher-link-wallet {
    color: var(--text-soft);
}

.tab.active,
.category-tab.active,
#mercadosFilters .category-tab.active,
.sub-sheet-ok,
.auth-submit,
.carteira-btn,
.manager-contact-btn,
.voucher-submit,
.aff-btn-copy,
.comm-btn,
.iaturbo-modal-btn--primary,
.trading-intro button,
.inv-plan-btn--mid,
.subscribe-btn,
.buy-btn.subscribe-btn {
    background: linear-gradient(135deg, #FFD000 0%, #E6BC00 52%, #c99800 100%);
    color: #111111;
    box-shadow: 0 18px 36px rgba(255, 208, 0, .28);
}

.buy-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

.sell-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.inv-plan-btn--long,
.tab-manager.active,
.manager-vip-icon,
.ranking-intro-badge {
    background: linear-gradient(135deg, #FFD000 0%, #E6BC00 100%);
    color: #111111;
}

.bottom-nav {
    background: rgba(8, 8, 8, .95);
    border-top: 1px solid rgba(255, 208, 0, .20);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, .60);
}

.nav-item {
    color: rgba(200, 200, 200, .50);
}

.nav-item.active {
    color: #FFD000;
}

.nav-item.active i,
.nav-item.active .nav-ico {
    filter: drop-shadow(0 0 16px rgba(255, 208, 0, .55));
}

.balance-label,
.voucher-success-bal,
.trade-cost-preview,
.market-spread>span,
.current-price>span,
.profit-detail,
.aff-stat-label,
.m-date,
.my-sub-meta,
.my-sub-status,
.carteira-hint,
.carteira-saved,
.sheet-error:empty {
    color: var(--text-muted);
}

.balance-amount,
.price,
.perfil-hero-val,
.aff-stat-val,
.voucher-success-amount,
.rl-win-amt,
.ci-balance-val {
    color: #ffffff;
    text-shadow: 0 0 24px rgba(255, 208, 0, .22);
}

.usdt-label,
.trader-limited-badge,
.wallet-tier-help,
.sub-sheet-deposit,
.trader-status-btn,
.aff-level-badge,
.live-traders-pulse,
.market-pulse,
.position-type.buy,
.position-type.up {
    background: rgba(255, 208, 0, .14);
    color: #FFD000;
    border: 1px solid rgba(255, 208, 0, .22);
}

.position-type.sell,
.position-type.down,
.category-tab.badge-hot.active {
    background: rgba(239, 68, 68, .16);
    color: #ff8080;
    border-color: rgba(239, 68, 68, .20);
    box-shadow: none;
}

.ticker-row,
.perfil-identity,
.dash-gift,
.aff-hero-promo,
.live-traders-campaign-rule,
.rl-invite {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.auth-page {
    background: transparent;
}

.auth-page .auth-input-wrap,
.voucher-input-wrap,
.carteira-input,
.perfil-input,
.comm-input,
.sub-sheet-input,
.expiration-toggle,
.amount-stepper,
.chart-asset-select,
.auth-page select {
    background: rgba(16, 16, 16, .95);
    border-color: rgba(255, 208, 0, .20);
    color: var(--text);
    box-shadow: none;
}

.auth-page .auth-input-wrap::before {
    background: linear-gradient(135deg, rgba(255, 208, 0, .60), rgba(224, 176, 16, .42), rgba(255, 255, 255, .08));
}

.auth-page .auth-input-wrap::after {
    content: none;
    opacity: 0;
}

.auth-page .auth-input-wrap .auth-ico,
.voucher-paste,
.comm-modal-close,
.trading-header-back,
.voucher-back,
.iaturbo-full-sheet-back,
.ci-back,
.rl-back {
    color: #FFD000;
}

.auth-page input::placeholder,
.auth-page select,
.voucher-input::placeholder,
.carteira-input::placeholder,
.perfil-input::placeholder,
.sub-sheet-input::placeholder {
    color: #666666;
}

.sheet-backdrop,
.trader-status-backdrop,
.trading-intro-backdrop,
.iaturbo-modal-backdrop,
.comm-modal-overlay,
.rl-win-overlay {
    background: rgba(0, 0, 0, .78);
}

.sheet-panel,
.trader-status-panel,
.trading-intro-panel,
.iaturbo-full-sheet,
.iaturbo-modal-panel,
.comm-modal-panel {
    background: linear-gradient(180deg, rgba(18, 18, 18, .99), rgba(10, 10, 10, .99));
}

.iaturbo-full-sheet-head {
    background: rgba(10, 10, 10, .96);
    border-bottom-color: rgba(255, 208, 0, .16);
}

.trade-risk-preview,
.trade-risk-preview-card,
.sub-sheet-summary,
.sub-sheet-balance,
.my-sub-profit,
.pix-inline-box,
.carteira-hint,
.voucher-tips li,
.live-trader-card,
.trade-transaction-card,
.lot-kpi-grid>div,
.lot-movement-item {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .06);
}

.trade-risk-grid input,
.amount-value-wrap input,
.perfil-referral-field input,
.voucher-input,
.comm-input,
.auth-page .auth-input-wrap input,
.auth-page .auth-input-wrap select {
    color: var(--text);
}

.dash-stat strong,
.trader-stat-val,
.sub-sheet-summary-total dd,
.wallet-tier-name,
.lot-summary-top h1,
.live-trader-stats b,
.trade-transaction-head strong,
.position-live {
    color: #f5f5f5;
}

.dash-stat,
.dash-action,
.dash-item {
    background: linear-gradient(180deg, rgba(20, 20, 20, .95), rgba(12, 12, 12, .95));
}

.dash-action-ico,
.dash-item-ico,
.perfil-menu-ico {
    background: linear-gradient(135deg, rgba(255, 208, 0, .18), rgba(224, 176, 16, .20));
    color: #FFD000;
}

.dash-item--danger,
.perfil-menu-danger {
    color: #ff8080;
}

.dash-item--danger .dash-item-ico,
.perfil-menu-danger .perfil-menu-ico {
    background: rgba(239, 68, 68, .16);
    color: #ff8080;
}

/* Ícones do dashboard em círculo, estilo taxi */
.dash-item:not(.dash-item--danger) .dash-item-ico {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #FFD000;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 208, 0, .20), transparent 62%),
        linear-gradient(180deg, rgba(20, 20, 20, .95), rgba(10, 10, 10, .95));
    border: 1.5px solid rgba(255, 208, 0, .55);
    box-shadow:
        0 0 0 4px rgba(255, 208, 0, .06),
        0 8px 20px rgba(0, 0, 0, .55),
        inset 0 0 14px rgba(255, 208, 0, .12);
}

.dash-item--danger .dash-item-ico {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ff8080;
    background:
        radial-gradient(circle at 50% 40%, rgba(239, 68, 68, .18), transparent 62%),
        linear-gradient(180deg, rgba(20, 20, 20, .95), rgba(10, 10, 10, .95));
    border: 1.5px solid rgba(239, 68, 68, .55);
    box-shadow:
        0 0 0 4px rgba(239, 68, 68, .06),
        0 8px 20px rgba(0, 0, 0, .55),
        inset 0 0 14px rgba(239, 68, 68, .14);
}

.inv-plan--long {
    background:
        linear-gradient(180deg, rgba(255, 208, 0, .14) 0%, rgba(224, 176, 16, .08) 55%, rgba(20, 20, 20, .95) 100%);
    border-color: rgba(255, 208, 0, .34);
    box-shadow:
        0 14px 30px rgba(245, 176, 72, .10),
        inset 0 1px 0 rgba(255, 245, 200, .08);
}

.inv-plan--long .inv-plan-days,
.inv-plan--long .inv-plan-price-val {
    color: #fff8d2;
}

.inv-plan--long .inv-plan-rate-lbl,
.inv-plan--long .inv-plan-days i {
    color: rgba(255, 233, 160, .72);
}

.inv-plan--long .inv-plan-price {
    background: rgba(245, 245, 220, .06);
    border-color: rgba(255, 208, 0, .20);
}

.voucher-topbar .icon-btn,
.icon-btn,
.language-switch-btn {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
}

.ci-page,
.rl-page,
.aff-page-body,
.trading-body {
    background: transparent;
}

.rl-frame {
    filter: drop-shadow(0 0 24px rgba(255, 208, 0, .20));
}

.rl-card,
.rl-rules,
.ci-balance,
.ci-task {
    backdrop-filter: blur(14px);
}

.pwa-install-bar,
.ci-toast,
.rl-toast,
.trade-notification {
    background: rgba(10, 10, 10, .97);
    border-color: rgba(255, 208, 0, .22);
    color: var(--text);
}

@media (min-width: 600px) {
    .app {
        border-left: 1px solid rgba(255, 255, 255, .05);
        border-right: 1px solid rgba(255, 255, 255, .05);
        box-shadow: 0 0 0 1px rgba(255, 208, 0, .08), 0 30px 90px rgba(0, 0, 0, .65);
    }
}

.voucher-hero.hidden {
    display: block !important;
}

.auth-header-link {
    background: rgba(255, 255, 255, .06);
    color: #FFD000;
    border: 1px solid rgba(255, 208, 0, .18);
}

.page-wrap {
    padding: 24px 18px 8px;
}

.carreira-nivel {
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}

.carreira-nivel--top {
    background: linear-gradient(135deg, rgba(255, 214, 111, .16), rgba(255, 142, 67, .12));
    border-color: rgba(255, 214, 111, .34);
    box-shadow: 0 18px 40px rgba(255, 186, 84, .14);
}

.carreira-status.reached {
    background: rgba(255, 208, 0, .12);
    color: #FFD000;
}

.carreira-status.locked {
    background: rgba(120, 146, 130, .12);
    color: #9cc0aa;
}

.carreira-status.claimed {
    background: rgba(255, 208, 0, .12);
    color: #FFD000;
}

/* =====================================================================
   Botão central com ícone de táxi na navegação inferior → Afiliados (/parceiros)
   ===================================================================== */
.bottom-nav {
    overflow: visible;
}

.nav-item[data-page="network"] {
    position: relative;
    flex: 0 0 auto;
    width: 74px;
    justify-content: flex-end;
    gap: 0;
}

.nav-item[data-page="network"] .nav-ico {
    display: none;
}

.nav-item[data-page="network"]>span {
    display: none;
}

.nav-item[data-page="network"]::before {
    content: "\F8AC";
    font-family: "bootstrap-icons";
    font-style: normal;
    font-weight: normal;
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    line-height: 1;
    color: #111111;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 208, 0, .50), transparent 60%),
        linear-gradient(180deg, #FFD000, #c99800);
    border: 2px solid rgba(255, 208, 0, .90);
    box-shadow:
        0 0 0 5px rgba(10, 10, 10, .95),
        0 8px 26px rgba(255, 208, 0, .50),
        inset 0 0 14px rgba(255, 255, 255, .18);
    transition: transform .12s ease, box-shadow .2s ease;
}

.nav-item[data-page="network"]:active::before {
    transform: translateX(-50%) scale(.94);
}

.nav-item[data-page="network"].active::before,
.nav-item[data-page="network"]:hover::before {
    color: #111111;
    background: linear-gradient(180deg, #ffe066, #FFD000);
    box-shadow:
        0 0 0 5px rgba(10, 10, 10, .95),
        0 10px 30px rgba(255, 208, 0, .65),
        inset 0 0 10px rgba(255, 255, 255, .22);
}

/* =====================================================================
   Home — grade de atalhos rápidos
   ===================================================================== */
.home-quick {
    padding: 16px 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-quick-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.home-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.15;
    transition: transform .1s ease;
}

.home-quick-item:active {
    transform: scale(.95);
}

.home-quick-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #FFD000;
    background: linear-gradient(180deg, rgba(20, 20, 20, .97), rgba(10, 10, 10, .97));
    border: 1px solid rgba(255, 208, 0, .28);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .50),
        inset 0 0 12px rgba(255, 208, 0, .06);
}

.home-quick-item:nth-child(1) .home-quick-ico,
.home-quick-item:nth-child(2) .home-quick-ico {
    color: #ffd700;
}

@media (max-width: 360px) {
    .home-quick-row {
        gap: 7px;
    }

    .home-quick-ico {
        width: 46px;
        height: 46px;
        font-size: 19px;
        border-radius: 14px;
    }

    .home-quick-item {
        font-size: 9px;
    }
}

/* =====================================================================
   Home — cabeçalho redesenhado (IA TURBO)
   ===================================================================== */
.hm-header {
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 20px;
}

.hm-header .banner-image {
    opacity: .6;
}

.hm-header .banner-image img {
    object-fit: cover;
    object-position: right center;
    filter: saturate(.9) contrast(1.06) brightness(.72) hue-rotate(85deg);
    transform: scale(1.02);
}

.hm-header .banner-image::after {
    background: linear-gradient(90deg,
            #0a0a0a 0%, rgba(5, 8, 6, .74) 40%, rgba(5, 8, 6, .18) 76%, rgba(5, 8, 6, .45) 100%);
}

/* Barra superior: marca + ícones */
.hm-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hm-brand {
    display: flex;
    align-items: center;
}

.hm-logo-img {
    height: 42px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 14px rgba(255, 208, 0, .35));
}

.hm-icons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.hm-bell {
    position: relative;
}

.hm-bell::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFD000;
    box-shadow: 0 0 8px #FFD000;
}

/* Hero: capital gerenciado + saldo + tagline */
.hm-hero {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    max-width: 66%;
}

.hm-cap-label {
    text-align: left;
    letter-spacing: 3px;
    margin: 0 0 6px;
    color: var(--text-muted);
    opacity: 1;
}

.hm-hero .balance {
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.hm-hero .balance-amount {
    font-size: 44px;
    color: #ffffff;
    text-shadow: 0 0 26px rgba(255, 208, 0, .2);
}

.hm-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 208, 0, .10);
    border: 1.6px solid rgba(255, 208, 0, .6);
    color: #FFD000;
    font-size: 14px;
    font-weight: 800;
    padding: 0;
}

.hm-tagline {
    margin-top: 14px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.28;
    color: #eeeeee;
    letter-spacing: .4px;
}

.hm-tagline span {
    color: #FFD000;
}

/* Faixa de criptomoedas */
.hm-crypto {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 11px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 18, 18, .92), rgba(12, 12, 12, .92));
    border: 1px solid rgba(255, 208, 0, .22);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.hm-crypto-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFD000;
    box-shadow: 0 0 8px #FFD000;
    flex-shrink: 0;
}

.hm-crypto-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hm-crypto-track {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
    animation: hm-crypto-scroll 26s linear infinite;
}

.hm-crypto:hover .hm-crypto-track {
    animation-play-state: paused;
}

@keyframes hm-crypto-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.hm-crypto-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hm-crypto-item strong {
    display: block;
    font-size: 11px;
    color: #f5f5f5;
    font-weight: 700;
    line-height: 1.3;
}

.hm-crypto-item span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}

.hm-crypto-item em {
    font-style: normal;
    color: #FFD000;
}

.hm-c-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .04);
}

/* Ícone de táxi no ticker de frota */
.hm-c-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 208, 0, .10);
    color: #FFD000;
    font-size: 15px;
}

/* Linha da conta + Ver extrato */
.hm-account {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 18, 18, .92), rgba(12, 12, 12, .92));
    border: 1px solid rgba(120, 160, 135, .16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    flex-wrap: wrap;
}

.hm-account-wallet {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 208, 0, .12);
    border: 1px solid rgba(255, 208, 0, .28);
    color: #FFD000;
    font-size: 18px;
    flex-shrink: 0;
}

.hm-account-id {
    flex-shrink: 0;
}

.hm-account-id strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.hm-account-id span {
    font-size: 11px;
    color: var(--text-muted);
}

.hm-account-bal {
    flex: 1;
    min-width: 90px;
    text-align: center;
}

.hm-account-bal strong {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.hm-account-bal strong i {
    color: var(--text-muted);
    font-size: 13px;
}

.hm-account-bal>span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.hm-account .profit-detail {
    display: none;
}

.hm-badge-xs {
    font-size: 11px;
    color: #FFD000;
    font-weight: 800;
}

.hm-extrato-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 15px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 800;
    color: #FFD000;
    background: rgba(255, 208, 0, .10);
    border: 1px solid rgba(255, 208, 0, .45);
    box-shadow: 0 8px 20px rgba(255, 208, 0, .18);
}

.hm-extrato-btn:active {
    transform: scale(.97);
}

@media (max-width: 420px) {
    .hm-hero {
        max-width: 74%;
    }

    .hm-hero .balance-amount {
        font-size: 38px;
    }

    .hm-badge {
        width: 40px;
        height: 40px;
    }

    .hm-account-bal {
        flex-basis: 100%;
        order: 5;
        text-align: left;
        margin-top: 2px;
    }

    .hm-account-bal strong {
        justify-content: flex-start;
    }

    .hm-extrato-btn {
        margin-left: auto;
    }
}

/* =====================================================================
   Trading — gráfico escuro integrado ao fundo + carrossel de criptos
   ===================================================================== */
.trading-body .chart-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 4px 4px;
}

.trading-body #tradingChart {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
}

.tr-crypto {
    margin: 0 0 4px;
}

/* =====================================================================
   Afiliados — redesign (verde/preto/cinza)
   ===================================================================== */
.aff-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 14px;
    background: none;
    border: none;
    box-shadow: none;
}

.aff-top::before {
    content: none;
}

.aff-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
}

.aff-level-badge>i {
    color: #FF8C00;
    font-size: 19px;
}

.aff-level-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.aff-level-kicker {
    font-size: 8.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
}

.aff-level-badge-text #affLevelText {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

.aff-rules-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .18);
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 700;
}

.aff-rules-btn i:first-child {
    color: var(--text-muted);
}

.aff-rules-btn i:last-child {
    color: var(--text-muted);
    font-size: 12px;
}

.aff-section-title {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #FFD000;
    margin: 6px 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aff-section-title i {
    font-size: 15px;
}

/* Comissão por indicação */
.aff-comm-card {
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.aff-comm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
}

.aff-comm-row+.aff-comm-row {
    border-top: 1px solid rgba(120, 160, 135, .12);
}

.aff-comm-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 44%;
    min-width: 0;
}

.aff-comm-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(255, 208, 0, .12);
    border: 1px solid rgba(255, 208, 0, .24);
    color: #FFD000;
    font-size: 16px;
}

.aff-comm-head-text strong {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.2;
}

.aff-comm-head-text span {
    font-size: 10px;
    color: var(--text-muted);
}

.aff-comm-levels {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.aff-comm-lvl,
.aff-comm-levels .aff-tier-item {
    display: flex;
    align-items: center;
    gap: 2px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 2px;
    min-width: 0;
    flex-direction: column;
}

.aff-comm-levels .aff-tier-item {
    flex-direction: column-reverse;
}

.aff-comm-lvl span,
.aff-comm-levels .aff-tier-label {
    font-size: 8.5px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    opacity: 1;
}

.aff-comm-lvl strong,
.aff-comm-levels .aff-tier-pct {
    font-size: 19px;
    font-weight: 900;
    color: #FFD000;
    line-height: 1;
}

/* Promo destaque */
.aff-promo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 50%, rgba(255, 208, 0, .16), transparent 46%),
        linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(255, 208, 0, .22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.aff-promo-ico {
    font-size: 40px;
    color: #FFD000;
    flex-shrink: 0;
    filter: drop-shadow(0 0 14px rgba(255, 208, 0, .5));
}

.aff-promo-pct {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.aff-promo-text {
    min-width: 0;
}

.aff-promo-text>strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #f5f5f5;
    line-height: 1.3;
}

.aff-promo-text>strong em {
    color: #FFD000;
    font-style: normal;
}

.aff-promo-text>span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Seus ganhos */
.aff-earn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.aff-earn {
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .16);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}

.aff-earn--full {
    grid-column: 1 / -1;
}

.aff-earn-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.35;
}

.aff-earn-val {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-top: 8px;
}

.aff-earn-val--icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aff-earn-val--icon i {
    color: #FFD000;
    font-size: 20px;
}

.aff-earn-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #FFD000;
}

.aff-earn-sub {
    display: block;
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--text-muted);
}

/* CTAs */
.aff-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.aff-cta {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 14px;
    border-radius: 16px;
    text-align: left;
}

.aff-cta i {
    font-size: 22px;
    flex-shrink: 0;
}

.aff-cta-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.aff-cta-text span {
    display: block;
    font-size: 10.5px;
    margin-top: 2px;
    opacity: .85;
}

.aff-cta--primary {
    background: linear-gradient(135deg, #FFD000, #E6BC00);
    color: #111111;
    box-shadow: 0 16px 32px rgba(255, 208, 0, .3);
}

.aff-cta--primary i {
    color: #111111;
}

.aff-cta--ghost {
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .18);
    color: #f5f5f5;
}

.aff-cta--ghost i {
    color: #FFD000;
}

.aff-cta:active {
    transform: scale(.98);
}

/* Como funciona a rede */
.aff-how {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    padding: 14px 6px 6px;
}

.aff-how-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    min-width: 0;
}

.aff-how-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 208, 0, .10);
    border: 1px solid rgba(255, 208, 0, .3);
    color: #FFD000;
    font-size: 19px;
}

.aff-how-step strong {
    font-size: 10.5px;
    font-weight: 800;
    color: #f5f5f5;
    line-height: 1.2;
}

.aff-how-step span {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.3;
}

.aff-how-arrow {
    color: #FFD000;
    font-size: 13px;
    margin-top: 16px;
    flex-shrink: 0;
}

@media (max-width: 360px) {
    .aff-comm-head-text strong {
        font-size: 10.5px;
    }

    .aff-comm-levels .aff-tier-pct,
    .aff-comm-lvl strong {
        font-size: 16px;
    }

    .aff-earn-val {
        font-size: 19px;
    }

    .aff-cta-text strong {
        font-size: 12px;
    }
}

/* =====================================================================
   Carteira — redesign (depósito / retirada / extrato)
   ===================================================================== */
.wl-balance-section {
    padding: 10px 0 6px;
}

.wl-balance-label {
    order: -1;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.wl-balance-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wl-balance-section #carteiraBalance {
    font-size: 40px;
    line-height: 1.05;
    justify-content: center;
}

.wl-balance-section .balance-amount {
    font-size: 40px;
}

.wl-balance-usdt {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #ffd700;
}

/* Tier / status */
.wl-tier {
    padding: 14px 16px;
}

.wl-tier-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wl-tier-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.wl-tier-diamond {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #FFD000;
    background: rgba(255, 208, 0, .12);
    border: 1px solid rgba(255, 208, 0, .3);
}

.wl-tier-plan-text .wallet-tier-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.wl-tier-level {
    font-size: 10px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #FFD000;
    font-weight: 800;
}

.wl-tier-col {
    text-align: right;
    min-width: 0;
}

.wl-tier-lbl {
    display: block;
    font-size: 9px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.wl-tier-limit,
.wl-tier-used {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-top: 3px;
}

.wl-tier-limit {
    color: #FFD000;
}

.wl-tier-used {
    color: #f5f5f5;
}

.wl-tier-track {
    height: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
    margin-top: 12px;
}

.wl-tier-track>span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #E6BC00, #FFD000);
    box-shadow: 0 0 12px rgba(255, 208, 0, .5);
}

.wl-tier-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Tabs principais */
.wl-tabs {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 16px 0 0;
    overflow: visible;
}

.wl-tabs .wl-tab {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .18);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.wl-tabs .wl-tab i {
    font-size: 16px;
    color: var(--text-muted);
}

.wl-tabs .wl-tab.active {
    background: rgba(255, 208, 0, .10);
    border-color: rgba(255, 208, 0, .55);
    color: #ffd700;
    box-shadow: 0 0 0 1px rgba(255, 208, 0, .25), 0 10px 26px rgba(255, 208, 0, .18);
}

.wl-tabs .wl-tab.active i {
    color: #ffd700;
}

/* Painéis */
.wl-panel {
    padding: 16px;
}

.wl-panel-head {
    margin-bottom: 14px;
}

.wl-panel-title {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .3px;
}

.wl-panel-title .wl-accent,
.wl-accent {
    color: #FFD000;
}

.wl-panel-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.wl-form {
    gap: 12px;
}

.wl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wl-field-row .carteira-field {
    gap: 8px;
}

.wl-secure-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-soft);
}

.wl-secure-hint i {
    color: #FFD000;
}

.wl-quick-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.wl-quick-chip {
    height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text, #edf4ff);
    border: 1px solid rgba(255, 208, 0, .22);
    background: rgba(255, 208, 0, .06);
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .1s ease;
}

.wl-quick-chip:hover {
    color: #FFD000;
    border-color: rgba(255, 208, 0, .5);
    background: rgba(255, 208, 0, .12);
}

.wl-quick-chip:active {
    transform: translateY(1px);
}

.wl-quick-chip.is-active {
    color: #111;
    border-color: transparent;
    background: linear-gradient(135deg, #FFD000, #E6BC00);
    box-shadow: 0 6px 16px rgba(255, 208, 0, .25);
}

@media (max-width: 360px) {
    .wl-quick-chips {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wl-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #FFD000, #E6BC00) !important;
    color: #111111 !important;
    box-shadow: 0 16px 32px rgba(255, 208, 0, .3) !important;
    font-size: 15px;
}

.wl-btn-primary i {
    font-size: 18px;
}

.wl-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.wl-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 12px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(120, 160, 135, .12);
}

.wl-trust-item i {
    color: #FFD000;
    font-size: 18px;
}

.wl-trust-item strong {
    font-size: 10.5px;
    font-weight: 800;
    color: #f5f5f5;
}

.wl-trust-item span {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.25;
}

/* Retirada — cadastro de chave */
.wl-reg-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wl-protect {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-align: right;
    line-height: 1.3;
    max-width: 130px;
}

.wl-protect i {
    color: #FFD000;
    font-size: 13px;
    flex-shrink: 0;
}

.wl-info-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wl-info-hint i {
    color: #ffd700;
    margin-top: 1px;
}

.wl-method-tabs {
    padding: 0;
    margin: 12px 0;
    gap: 10px;
}

.wl-method-tabs .category-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 8px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .18);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 13px;
}

.wl-method-tabs .category-tab.active {
    background: rgba(255, 208, 0, .10);
    border-color: rgba(255, 208, 0, .55);
    color: #ffd700;
    box-shadow: 0 0 0 1px rgba(255, 208, 0, .25);
}

.wl-important {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 2px 0 4px;
    background: rgba(255, 208, 0, .07);
    border: 1px solid rgba(255, 208, 0, .22);
}

.wl-important i {
    color: #FFD000;
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.wl-important strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.wl-important span {
    display: block;
    font-size: 11px;
    color: var(--text-soft);
    line-height: 1.4;
    margin-top: 2px;
}

/* Extrato geral */
.wl-statement {
    margin-top: 22px;
}

.wl-statement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.wl-statement-title {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
}

.wl-statement-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.wl-statement-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wl-filter {
    background: #F8F9FA;
    border: 1.5px solid #E0E0E0;
    color: #1A1A1A;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    outline: none;
}

.wl-sum-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.wl-sum {
    background: linear-gradient(180deg, rgba(18, 18, 18, .95), rgba(12, 12, 12, .95));
    border: 1px solid rgba(120, 160, 135, .16);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wl-sum-lbl {
    font-size: 8.5px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.25;
}

.wl-sum-val {
    font-size: 13px;
    font-weight: 900;
    color: #f5f5f5;
}

.wl-sum-credit {
    color: #FFD000;
}

.wl-sum-debit {
    color: #ff5468;
}

.wl-sum-ico {
    font-size: 14px;
    color: var(--text-muted);
}

.wl-ico-credit {
    color: #FFD000;
}

.wl-ico-debit {
    color: #ff5468;
}

.wl-ext-list {
    display: block;
}

.wl-ext-head,
.wl-ext-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 82px 66px;
    gap: 8px;
    align-items: center;
}

.wl-ext-head {
    padding: 4px 2px 10px;
    font-size: 9px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
    border-bottom: 1px solid rgba(120, 160, 135, .14);
}

.wl-ext-head .wl-col-val {
    text-align: right;
}

.wl-ext-head .wl-col-status {
    text-align: center;
}

.wl-ext-row {
    padding: 12px 2px;
    border-bottom: 1px solid rgba(120, 160, 135, .1);
}

.wl-ext-date {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    font-size: 9.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

.wl-ext-date i {
    color: #ffd700;
    font-size: 11px;
    margin-top: 1px;
    flex-shrink: 0;
}

.wl-ext-date>span {
    min-width: 0;
    white-space: nowrap;
}

.wl-ext-date em {
    display: block;
    font-style: normal;
    font-size: 9px;
    opacity: .8;
}

.wl-ext-desc {
    min-width: 0;
    overflow: hidden;
}

.wl-ext-desc strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1A1A1A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-ext-tag {
    display: inline-block;
    margin-top: 5px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 2px 7px;
    border-radius: 99px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-ext-tag.is-credit {
    background: rgba(255, 208, 0, .14);
    color: #ffd700;
}

.wl-ext-tag.is-debit {
    background: rgba(255, 84, 104, .16);
    color: #ff8296;
}

.wl-ext-val {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.wl-ext-val i {
    font-size: 16px;
}

.wl-ext-val.is-credit {
    color: #FFD000;
}

.wl-ext-val.is-debit {
    color: #ff5468;
}

.wl-ext-status-wrap {
    text-align: center;
}

.wl-ext-status {
    display: inline-block;
    font-size: 8.5px;
    font-weight: 800;
    text-align: center;
    color: #ffd700;
    background: rgba(255, 208, 0, .12);
    border: 1px solid rgba(255, 208, 0, .2);
    border-radius: 99px;
    padding: 4px 8px;
    white-space: nowrap;
}

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

@media (max-width: 400px) {
    .wl-tier-top {
        flex-wrap: wrap;
    }

    .wl-tier-col {
        text-align: left;
    }

    .wl-ext-head,
    .wl-ext-row {
        grid-template-columns: 66px minmax(0, 1fr) 68px 56px;
        gap: 6px;
    }

    .wl-ext-status {
        padding: 4px 5px;
        font-size: 8px;
    }

    .wl-ext-val {
        font-size: 11px;
    }

    .wl-trust-item strong {
        font-size: 9.5px;
    }
}

/* =====================================================================
   Perfil — atalhos com ícone redondo (estilo "target" verde)
   ===================================================================== */
.dash-actions .dash-action {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 6px 2px;
    gap: 8px;
}

.dash-action-ico {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 23px;
    color: #FFD000;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 208, 0, .18), transparent 62%),
        linear-gradient(180deg, rgba(18, 18, 18, .92), rgba(10, 10, 10, .92));
    border: 1.5px solid rgba(255, 208, 0, .55);
    box-shadow:
        0 0 0 4px rgba(255, 208, 0, .06),
        0 8px 20px rgba(0, 0, 0, .45),
        inset 0 0 14px rgba(255, 208, 0, .14);
    transition: transform .1s ease, box-shadow .2s ease;
}

.dash-action:active .dash-action-ico {
    transform: scale(.94);
}

@media (max-width: 360px) {
    .dash-action-ico {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* =====================================================================
   Home — cards de planos de investimento
   ===================================================================== */

/* Lista de traders */
.traders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px 24px;
}

/* Grupo */
.iv3-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

/* Card individual */
.iv3-card {
    background: #FFFFFF !important;
    border: 1px solid #EBEBEB !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 16px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.iv3-card--mid {
    border-color: #EBEBEB !important;
}

.iv3-card--long {
    border-color: #EBEBEB !important;
}

/* Corpo do card: esquerda (info) + direita (imagem) */
.iv3-card-body {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
}

/* Coluna esquerda: dados */
.iv3-card-left {
    flex: 1;
    min-width: 0;
}

/* Cabeçalho: nome + badge */
.iv3-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.iv3-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
    margin: 0;
    line-height: 1.2;
}

/* Badge "Operação" */
.iv3-badge-op {
    display: inline-block;
    background: rgba(255, 208, 0, 0.1) !important;
    color: #FFD000 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    letter-spacing: .3px;
    white-space: nowrap;
    border: 1px solid rgba(255, 208, 0, 0.25) !important;
}

/* Faixa de lucro */
.iv3-profit-range {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFD000 !important;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Tags: táxi / Agendado */
.iv3-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.iv3-tag {
    background: #F4F5F7 !important;
    border: 1px solid #EBEBEB !important;
    color: #666666 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
}

/* Ciclo */
.iv3-cycle {
    font-size: 12px !important;
    color: #888888 !important;
    font-weight: 500 !important;
}

/* Coluna direita: imagem */
.iv3-card-right {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

/* Avatar / imagem do produto */
.iv3-avatar {
    width: 100px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
}

.iv3-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* Rodapé do card: preço + botão */
.iv3-card-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border-top: 1px solid #F5F5F5 !important;
    padding-top: 12px !important;
}

/* Preços */
.iv3-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iv3-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;

    .iv3-discount {
        font-size: 13px;
        font-weight: 700;
        color: #ef4444;
    }

    .iv3-price-old {
        font-size: 12px;
        color: rgba(255, 255, 255, .35);
        text-decoration: line-through;
        font-weight: 500;
    }

    /* Botão Alugar */
    .iv3-btn {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 11px 22px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 800;
        white-space: nowrap;
        transition: transform .12s, filter .12s;
        line-height: 1;
    }

    .iv3-btn:active {
        transform: scale(.95);
    }

    .iv3-btn--mid {
        background: linear-gradient(135deg, #FFD000 0%, #E6BC00 100%);
        color: #111111;
        box-shadow: 0 6px 20px rgba(255, 208, 0, .40);
    }

    .iv3-btn--mid:hover {
        filter: brightness(1.07);
    }

    .iv3-btn--long {
        background: linear-gradient(135deg, #FF8C00 0%, #e0a420 100%);
        color: #111111;
        box-shadow: 0 6px 20px rgba(255, 186, 84, .35);
    }

    .iv3-btn--long:hover {
        filter: brightness(1.07);
    }

    @media (max-width: 380px) {
        .iv3-title {
            font-size: 14px;
        }

        .iv3-avatar {
            width: 72px;
            height: 50px;
        }

        .iv3-price-main {
            font-size: 17px;
        }

        .iv3-btn {
            padding: 10px 16px;
            font-size: 14px;
        }
    }


    /* =====================================================================
   Home — filtros de categoria em caixas (estilo abas)
   ===================================================================== */
    #mercadosFilters {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 20px 14px 0;
        padding: 8px 0 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    #mercadosFilters::before {
        content: none;
    }

    #mercadosFilters .category-tab {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        padding: 12px 8px;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(18, 18, 18, .92), rgba(12, 12, 12, .92));
        border: 1px solid rgba(120, 160, 135, .2);
        color: var(--text-soft);
        font-size: 12.5px;
        font-weight: 700;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
        box-shadow: none;
    }

    #mercadosFilters .category-tab.active,
    #mercadosFilters .category-tab.badge-hot.active,
    #mercadosFilters .category-tab.badge-new.active {
        background: rgba(255, 208, 0, .09);
        border-color: rgba(255, 208, 0, .6);
        color: #ffd700;
        box-shadow: 0 0 0 1px rgba(255, 208, 0, .22), 0 10px 24px rgba(255, 208, 0, .16);
    }

    #mercadosFilters .category-tab.badge-hot::after,
    #mercadosFilters .category-tab.badge-new::after {
        position: absolute;
        top: -7px;
        left: 10px;
        z-index: 3;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: .6px;
        padding: 2px 7px;
        border-radius: 7px;
        line-height: 1.2;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
    }

    #mercadosFilters .category-tab.badge-hot::after {
        content: "HOT";
        background: #ff5468;
        color: #fff;
    }

    #mercadosFilters .category-tab.badge-new::after {
        content: "NEW";
        background: #FFD000;
        color: #111111;
    }

    /* =====================================================================
   Extrato / Movimentações — redesign (filtros + ícones)
   ===================================================================== */
    .ext-page {
        padding-bottom: 24px;
    }

    /* ---- Cards de resumo ---- */
    .ext-summary {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 16px 0 18px;
    }

    .ext-sum-card {
        background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 12px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .ext-sum-ico {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 18px;
        border: 1px solid transparent;
    }

    .ext-sum-ico.in {
        color: var(--success);
        background: var(--success-soft);
        border-color: rgba(255, 208, 0, .35);
    }

    .ext-sum-ico.out {
        color: var(--danger);
        background: var(--danger-soft);
        border-color: rgba(255, 84, 104, .35);
    }

    .ext-sum-ico.total {
        color: var(--gold);
        background: rgba(255, 214, 111, .12);
        border-color: rgba(255, 214, 111, .35);
    }

    .ext-sum-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .ext-sum-lbl {
        font-size: 11.5px;
        color: var(--text-muted);
        font-weight: 700;
    }

    .ext-sum-val {
        font-size: 14px;
        font-weight: 900;
        color: var(--text);
        line-height: 1.1;
    }

    .ext-sum-val.pos {
        color: var(--success);
    }

    .ext-sum-val.neg {
        color: var(--danger);
    }

    /* ---- Filtros por tipo (chips) ---- */
    .ext-filters {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-bottom: 8px;
        scrollbar-width: none;
    }

    .ext-filters::-webkit-scrollbar {
        display: none;
    }

    .ext-chip {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border-radius: var(--radius-pill);
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, .04);
        color: var(--text-soft);
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        transition: background .15s, color .15s, border-color .15s, transform .1s;
    }

    .ext-chip i {
        font-size: 14px;
    }

    .ext-chip:active {
        transform: scale(.96);
    }

    .ext-chip.is-active {
        background: linear-gradient(135deg, var(--success), #12b768);
        color: #04150c;
        border-color: transparent;
        box-shadow: 0 6px 16px rgba(255, 208, 0, .28);
    }

    /* ---- Cabeçalho de seção ---- */
    .ext-section-head {
        margin: 20px 0 10px;
    }

    .ext-section-head h2 {
        font-size: 15px;
        font-weight: 800;
        color: var(--text);
    }

    /* ---- Lista de movimentos ---- */
    .ext-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .ext-list .mv-row {
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 12px 14px;
    }

    .mv-ico {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 19px;
        border: 1px solid transparent;
    }

    .mv-ico[data-cat="deposito"] {
        color: var(--success);
        background: var(--success-soft);
        border-color: rgba(255, 208, 0, .32);
    }

    .mv-ico[data-cat="saque"] {
        color: var(--danger);
        background: var(--danger-soft);
        border-color: rgba(255, 84, 104, .32);
    }

    .mv-ico[data-cat="rendimento"] {
        color: #4aa8ff;
        background: rgba(74, 168, 255, .14);
        border-color: rgba(74, 168, 255, .32);
    }

    .mv-ico[data-cat="recompensa"] {
        color: var(--gold);
        background: rgba(255, 214, 111, .14);
        border-color: rgba(255, 214, 111, .32);
    }

    .mv-body {
        flex: 1;
        min-width: 0;
    }

    .mv-label {
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mv-date {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 3px;
    }

    .mv-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        flex-shrink: 0;
    }

    .mv-amt {
        font-size: 15px;
        font-weight: 900;
    }

    .mv-amt.pos {
        color: var(--success);
    }

    .mv-amt.neg {
        color: var(--danger);
    }

    .mv-tag {
        font-size: 10.5px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: var(--radius-pill);
        color: var(--text-muted);
        background: rgba(255, 255, 255, .06);
    }

    .mv-tag.deposito {
        color: var(--success);
        background: var(--success-soft);
    }

    .mv-tag.saque {
        color: var(--danger);
        background: var(--danger-soft);
    }

    .mv-tag.rendimento {
        color: #4aa8ff;
        background: rgba(74, 168, 255, .14);
    }

    .mv-tag.recompensa {
        color: var(--gold);
        background: rgba(255, 214, 111, .14);
    }

    /* =====================================================================
   Home — seção institucional / história da empresa
   ===================================================================== */
    .home-about {
        padding: 18px 16px 8px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .about-hero-card {
        position: relative;
        overflow: hidden;
        padding: 22px 20px;
        border-radius: 20px;
        background:
            radial-gradient(120% 90% at 100% 0%, rgba(255, 208, 0, .16), transparent 55%),
            linear-gradient(180deg, rgba(18, 18, 18, .96), rgba(10, 10, 10, .96));
        border: 1px solid rgba(255, 208, 0, .22);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    }

    .about-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 208, 0, .1);
        border: 1px solid rgba(255, 208, 0, .22);
        color: #FFD000;
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .6px;
        text-transform: uppercase;
    }

    .about-title {
        margin-top: 14px;
        font-size: 23px;
        font-weight: 900;
        line-height: 1.18;
        letter-spacing: -.5px;
        color: #eef6f0;
    }

    .about-title span {
        color: #FFD000;
    }

    .about-lead {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.6;
        color: #666666;
    }

    .about-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-stat {
        padding: 15px 14px;
        border-radius: 16px;
        text-align: center;
        background: linear-gradient(180deg, rgba(18, 18, 18, .94), rgba(12, 12, 12, .94));
        border: 1px solid rgba(120, 160, 135, .18);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
    }

    .about-stat strong {
        display: block;
        font-size: 22px;
        font-weight: 900;
        color: #FFD000;
        line-height: 1;
    }

    .about-stat span {
        display: block;
        margin-top: 6px;
        font-size: 11px;
        font-weight: 700;
        color: #888888;
    }

    .about-story {
        padding: 18px;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(18, 18, 18, .94), rgba(12, 12, 12, .94));
        border: 1px solid rgba(120, 160, 135, .18);
    }

    .about-story h3 {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 15px;
        font-weight: 800;
        color: #eef6f0;
        margin-bottom: 12px;
    }

    .about-story h3 i {
        color: #FFD000;
    }

    .about-story p {
        font-size: 12.5px;
        line-height: 1.65;
        color: #999999;
    }

    .about-story p+p {
        margin-top: 10px;
    }

    .about-features {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .about-features li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(18, 18, 18, .92), rgba(12, 12, 12, .92));
        border: 1px solid rgba(120, 160, 135, .16);
    }

    .af-ico {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border-radius: 12px;
        display: grid;
        place-items: center;
        font-size: 19px;
        color: #FFD000;
        background: rgba(255, 208, 0, .12);
        border: 1px solid rgba(255, 208, 0, .24);
    }

    .about-features li div strong {
        display: block;
        font-size: 13.5px;
        font-weight: 800;
        color: #eef6f0;
    }

    .about-features li div span {
        display: block;
        margin-top: 3px;
        font-size: 11.5px;
        line-height: 1.5;
        color: #888888;
    }

    .about-trust {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 16px;
        border-radius: 16px;
        background: rgba(255, 208, 0, .06);
        border: 1px dashed rgba(255, 208, 0, .3);
    }

    .about-trust i {
        font-size: 24px;
        color: #FFD000;
        flex-shrink: 0;
    }

    .about-trust p {
        font-size: 11.5px;
        line-height: 1.55;
        color: #666666;
    }

    @media (max-width: 360px) {
        .about-title {
            font-size: 20px;
        }

        .about-stat strong {
            font-size: 19px;
        }
    }

    /* =====================================================================
   AUTH v2 — Login / Cadastro (design pixel-perfect conforme mockup)
   ===================================================================== */
    .auth2 {
        --a2-green: #FFD000;
        --a2-green-soft: rgba(255, 208, 0, .14);
        --a2-green-line: rgba(255, 208, 0, .30);
        --a2-ink: #FFF5EE;
        --a2-muted: #8fa79b;
        --a2-faint: #6d8579;
        --a2-card: rgba(9, 16, 12, .72);
        background: transparent;
        min-height: 100vh;
    }

    .auth2 .auth2-wrap {
        max-width: 460px;
        margin: 0 auto;
        padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 34px;
    }

    /* ---- Abas (Cadastrar / Entrar) ---- */
    .auth2-tabs {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin-bottom: 18px;
    }

    .auth2-tab {
        padding: 10px 30px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 700;
        color: var(--a2-muted);
        text-decoration: none;
        border: 1px solid transparent;
        transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
    }

    .auth2-tab:hover {
        color: var(--a2-ink);
    }

    .auth2-tab.is-active {
        color: var(--a2-ink);
        border-color: var(--a2-green);
        background: var(--a2-green-soft);
        box-shadow: 0 0 0 1px rgba(255, 208, 0, .18), 0 8px 24px rgba(255, 208, 0, .22);
    }

    /* ---- Logo ---- */
    .auth2-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 4px 0 20px;
    }

    .auth2-logo img {
        width: min(80%, 320px);
        height: auto;
        display: block;
        filter: drop-shadow(0 8px 26px rgba(255, 208, 0, .22));
    }

    .auth2-logo-tag {
        font-size: 9px;
        letter-spacing: 4.5px;
        text-transform: uppercase;
        color: var(--a2-faint);
        font-weight: 600;
    }

    /* ---- Intro ---- */
    .auth2-intro {
        margin-bottom: 20px;
    }

    .auth2-kicker {
        display: block;
        color: var(--a2-green);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .auth2-intro h1 {
        margin: 0 0 12px;
        font-size: 28px;
        line-height: 1.15;
        font-weight: 900;
        color: #f6fdf9;
    }

    .auth2-intro h1 span {
        color: var(--a2-green);
    }

    .auth2-intro p {
        margin: 0;
        font-size: 13.5px;
        line-height: 1.6;
        color: var(--a2-muted);
    }

    /* ---- Formulário ---- */
    .auth2 .auth-form {
        gap: 14px;
    }

    .auth2 .auth-page .auth-input-wrap,
    .auth2 .auth-input-wrap {
        border-radius: 16px;
        padding: 3px 16px;
        min-height: 56px;
        background: rgba(10, 18, 13, .9);
    }

    .auth2 .auth-input-wrap input,
    .auth2 .auth-input-wrap select {
        padding: 15px 8px;
        font-size: 14.5px;
    }

    .auth2 .auth-input-wrap .auth-ico {
        color: var(--a2-green);
        width: 20px;
        height: 20px;
    }

    /* Seletor de código de país (dentro do campo de telefone) */
    .auth2-dial {
        flex-shrink: 0;
        border: none;
        background: transparent;
        color: var(--a2-ink);
        font-weight: 700;
        font-size: 14px;
        text-align: right;
        padding: 0 2px;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2317e07a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right center;
        padding-right: 20px;
    }

    .auth2-dial option {
        color: #111;
    }

    /* Campo com rótulo interno (código de acesso / afiliado) */
    .auth2 .auth2-stacked {
        align-items: center;
    }

    .auth2-stacked-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding: 8px 8px;
    }

    .auth2-stacked-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--a2-green);
        letter-spacing: .3px;
        margin-bottom: 1px;
    }

    .auth2-stacked-body input {
        padding: 0 !important;
        font-size: 14px;
        min-height: 20px;
    }

    /* Botão mostrar/ocultar senha e código do captcha já herdam de .auth-eye / .auth-captcha-code */
    .auth2 .auth-captcha-code {
        font-size: 15px;
        letter-spacing: 3px;
    }

    /* Botão principal */
    .auth2 .auth-submit {
        margin-top: 4px;
        border-radius: 999px;
        padding: 16px;
        font-size: 16px;
        font-weight: 800;
        background: linear-gradient(135deg, #FFD000 0%, #E6BC00 100%);
        color: #111111;
        box-shadow: 0 16px 34px rgba(255, 208, 0, .38);
    }

    /* ---- Linha lembrar / esqueci ---- */
    .auth2-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 4px 2px 2px;
        font-size: 13.5px;
    }

    .auth2-check {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--a2-muted);
        cursor: pointer;
        user-select: none;
    }

    .auth2-check input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .auth2-check-box {
        width: 20px;
        height: 20px;
        border-radius: 999px;
        border: 1.5px solid var(--a2-green-line);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: transparent;
        transition: .15s;
    }

    .auth2-check input:checked+.auth2-check-box {
        background: var(--a2-green);
        border-color: var(--a2-green);
        color: #111111;
    }

    .auth2-link {
        background: none;
        border: none;
        color: var(--a2-green);
        font-weight: 700;
        font-size: 13.5px;
        cursor: pointer;
        padding: 0;
    }

    /* ---- Divisor OU ---- */
    .auth2-or {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 18px 0;
        color: var(--a2-faint);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .auth2-or::before,
    .auth2-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, .08);
    }

    /* ---- Botão secundário (contorno) ---- */
    .auth2-secondary {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 15px;
        border-radius: 999px;
        border: 1px solid var(--a2-green-line);
        background: rgba(255, 208, 0, .05);
        color: var(--a2-ink);
        font-size: 14.5px;
        font-weight: 700;
        cursor: pointer;
        transition: .15s;
    }

    .auth2-secondary:hover {
        border-color: var(--a2-green);
        background: var(--a2-green-soft);
    }

    .auth2-secondary svg {
        width: 20px;
        height: 20px;
        color: var(--a2-green);
    }

    /* ---- Alternar (Já tem conta / Cadastre-se) ---- */
    .auth2-switch {
        text-align: center;
        margin: 18px 0 4px;
        font-size: 14px;
        color: var(--a2-muted);
    }

    .auth2-switch a {
        color: var(--a2-green);
        font-weight: 700;
        text-decoration: none;
    }

    /* ---- Cartão informativo ---- */
    .auth2-info {
        margin-top: 24px;
        border: 1px solid var(--a2-green-line);
        border-radius: 20px;
        background: var(--a2-card);
        padding: 20px 18px 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    }

    .auth2-info-head {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }

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

    .auth2-info-text strong {
        display: block;
        font-size: 18px;
        font-weight: 900;
        color: #f6fdf9;
        letter-spacing: .5px;
        margin-bottom: 6px;
    }

    .auth2-info-text strong em {
        color: var(--a2-green);
        font-style: normal;
    }

    .auth2-info-text p {
        margin: 0;
        font-size: 12px;
        line-height: 1.5;
        color: var(--a2-muted);
    }

    .auth2-info-badge {
        flex-shrink: 0;
        width: 76px;
        height: 76px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 900;
        color: var(--a2-green);
        border: 2px solid var(--a2-green-line);
        background: radial-gradient(circle at 50% 50%, rgba(255, 208, 0, .18), transparent 70%);
        box-shadow: 0 0 26px rgba(255, 208, 0, .35), inset 0 0 18px rgba(255, 208, 0, .18);
    }

    .auth2-features {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 14px 0;
        border-top: 1px solid rgba(255, 255, 255, .06);
    }

    .auth2-feat {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 0 5px;
        text-align: left;
    }

    .auth2-feat+.auth2-feat {
        border-left: 1px solid rgba(255, 255, 255, .06);
    }

    .auth2-feat i {
        color: var(--a2-green);
        font-size: 15px;
    }

    .auth2-feat strong {
        font-size: 8.5px;
        font-weight: 800;
        letter-spacing: .3px;
        color: #eeeeee;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .auth2-feat span {
        font-size: 8.5px;
        line-height: 1.35;
        color: var(--a2-faint);
    }

    .auth2-info-foot {
        text-align: center;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .06);
        font-size: 9px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--a2-faint);
        font-weight: 600;
    }

    /* Erro / recuperação dentro do auth2 */
    .auth2 .sheet-error {
        color: #ff7a7a;
        font-size: 13px;
        text-align: center;
    }

    .auth2 .auth-recovery {
        margin-top: 16px;
    }

    /* =====================================================================
   Perfil — dark theme overrides (texto legível sobre fundos escuros)
   ===================================================================== */

    /* Labels das estatísticas (Conta de Recarga, Total Sacado, etc.) */
    .dash-stat span {
        color: rgba(200, 200, 200, .70);
    }

    /* Valores numéricos dos stats já estão em #f5f5f5 mas reforçamos */
    .dash-stat strong {
        color: #f5f5f5;
    }

    /* Texto dentro do card de cupom/gift */
    .dash-gift {
        color: #ffffff;
    }

    .dash-gift-text h3 {
        color: #ffffff;
    }

    .dash-gift-text p {
        color: rgba(255, 255, 255, .80);
    }

    .dash-gift-ico {
        background: rgba(255, 208, 0, .15);
        color: #FFD000;
        border: 1px solid rgba(255, 208, 0, .25);
    }

    /* Input do cupom — texto amarelo sobre fundo escuro */
    .dash-gift-form input {
        color: #FFD000;
        border: none;
        outline: none;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .5px;
    }

    .dash-gift-form input::placeholder {
        color: rgba(255, 208, 0, .45);
    }

    /* Botão Reivindicar */
    .dash-gift-form button {
        background: linear-gradient(135deg, #FFD000, #E6BC00);
        color: #111111;
        font-weight: 800;
        border-radius: 999px;
        border: none;
    }

    /* Itens do grid (Convidar Amigos, Ganhos, etc.) */
    .dash-item {
        color: rgba(220, 220, 220, .90);
    }

    .dash-item span:not(.dash-item-ico) {
        color: rgba(210, 210, 210, .85);
    }

    /* Ações rápidas (Recarregar, Sacar, etc.) */
    .dash-action {
        color: rgba(210, 210, 210, .85);
    }

    .dash-action span:not(.dash-action-ico) {
        color: rgba(210, 210, 210, .85);
        text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
    }

    /* Atalhos rápidos do início */
    .home-quick-item span {
        text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
        color: rgba(220, 220, 220, .90);
    }

    /* Identidade do perfil no header */
    .perfil-identity-body {
        color: #ffffff;
    }

    .perfil-id-row {
        color: #ffffff;
    }

    .perfil-plan,
    .perfil-since {
        color: rgba(255, 208, 0, .90);
    }

    .perfil-plan i,
    .perfil-since i {
        color: #FFD000;
    }

    .perfil-copy-btn {
        color: rgba(255, 208, 0, .80);
    }

    /* Saldo da carteira e afiliado no header */
    .perfil-hero-val {
        color: #ffffff;
    }

    .perfil-hero-lbl {
        color: rgba(200, 200, 200, .75);
    }

    /* Erro do gift */
    .dash-gift .sheet-error:not(:empty) {
        color: #ff8080;
        font-size: 12px;
        margin-top: 6px;
    }

    /* =====================================================================
   Card de conteúdo — páginas sem classe específica no main
   Garante que TODA área de conteúdo abaixo do header tenha fundo escuro
   ===================================================================== */

    /* Checkin e Roleta — usam .ci-main e .rl-wrap */
    .ci-main,
    .rl-wrap {
        margin: 0 8px;
        background: #FFFFFF !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .50);
    }

    /* Afiliados */
    .aff-page-body {
        margin: 0 8px;
        background: #FFFFFF !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .50);
    }

    /* Mercados — traders list e receita list */
    .app .traders-list,
    .app .receita-list {
        margin: 0 8px;
    }

    /* Voucher */
    .voucher-main {
        margin: 0 8px;
        background: #FFFFFF !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .50);
    }

    /* Lote operação */
    .lot-page {
        margin: 0 8px;
        background: #FFFFFF !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
    }

    /* =====================================================================
   CARD DE CONTEÚDO — todas as páginas (sobre o xadrez)
   Estilo único e profissional: fundo escuro, bordas arredondadas,
   borda amarela sutil. Cobre TODOS os containers de todas as páginas.
   ===================================================================== */

    /* Mixin visual do card */
    .aff-main,
    .ci-main,
    .live-traders-wrap,
    .trading-transactions-wrap,
    .lot-operation-wrap,
    .voucher-main,
    .trading-chart-zone {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow:
            0 -6px 30px rgba(0, 0, 0, .55),
            inset 0 1px 0 rgba(255, 208, 0, .07);
    }

    /* Trading controls fica logo abaixo do chart-zone sem nova borda */
    .trading-controls {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-left: 1px solid rgba(255, 208, 0, .18);
        border-right: 1px solid rgba(255, 208, 0, .18);
        border-top: 1px solid rgba(255, 208, 0, .10);
        border-bottom: none;
    }

    /* Mercados — tabs + lista de planos */
    .app .tabs,
    .app .category-tabs,
    .app .traders-list,
    .app .receita-list,
    .app .manager-panel {
        margin-left: 8px;
        margin-right: 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-left: 1px solid rgba(255, 208, 0, .18);
        border-right: 1px solid rgba(255, 208, 0, .18);
    }

    /* Primeira seção após header vira o topo arredondado */
    .app .tabs:first-of-type,
    .app>.tabs {
        border-radius: 22px 22px 0 0;
        border-top: 1px solid rgba(255, 208, 0, .18);
        padding-top: 4px;
        margin-top: 0;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
    }

    /* Index — home-quick é a primeira seção: topo arredondado */
    .home-quick {
        border-radius: 22px 22px 0 0 !important;
        border-top: 1px solid rgba(255, 208, 0, .18) !important;
        padding-top: 16px !important;
    }

    /* home-about e stats: continuam o card sem borda do topo */
    .home-about {
        border-top: none !important;
        border-radius: 0 !important;
    }

    /* Roleta — rl-wrap e rl-wheel-area */
    .rl-page .rl-wrap {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
        padding-top: 12px;
    }

    /* Roleta — área acima do rl-wrap também precisa de fundo */
    .rl-page .rl-wheel-area,
    .rl-page .rl-spins,
    .rl-page .rl-invite {
        background: transparent !important;
    }

    /* =====================================================================
   Mercados (.app sem modificador) — card de conteúdo
   ===================================================================== */
    .app>.tabs {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
        padding: 6px 6px 0;
    }

    .app>.category-tabs,
    .app>.manager-panel,
    .app>.traders-list,
    .app>.receita-list {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-left: 1px solid rgba(255, 208, 0, .18);
        border-right: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
    }

    /* Sheet subscribe fica dentro do card */
    .app>#subscribeSheet {
        margin: 0 8px;
    }

    /* =====================================================================
   Card de conteúdo — páginas de trading (sem banner, com trading-header)
   O card começa logo abaixo do trading-header
   ===================================================================== */

    /* trading.php — chart zone + controls formam o card */
    .trading-page .trading-chart-zone {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
    }

    .trading-page .trading-controls {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-left: 1px solid rgba(255, 208, 0, .18);
        border-right: 1px solid rgba(255, 208, 0, .18);
        border-top: 1px solid rgba(255, 208, 0, .08);
        border-bottom: none;
        border-radius: 0;
    }

    /* trading-traders.php */
    .live-traders-page .live-traders-wrap {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
    }

    /* trading-transacoes.php */
    .trading-transactions-page .trading-transactions-wrap {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
        padding: 14px;
    }

    /* lote-operacao.php */
    .lot-operation-page .lot-operation-wrap {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
    }

    /* afiliados.php */
    .app .aff-main {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
    }

    /* checkin.php */
    .app .ci-main {
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
        padding-top: 6px;
    }

    /* voucher.php */
    .voucher-app .voucher-main {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
    }

    /* extrato.php — page-wrap ext-page */
    .auth-page .page-wrap {
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px 22px 0 0;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
    }

    /* Login / Cadastro — auth2-wrap */
    .auth2-wrap {
        margin: 8px !important;
        padding: 24px 16px 32px !important;
        background: rgba(13, 13, 13, 0.96) !important;
        border-radius: 22px !important;
        border: 1px solid rgba(255, 208, 0, .18) !important;
        box-shadow:
            0 8px 40px rgba(0, 0, 0, .60),
            inset 0 1px 0 rgba(255, 208, 0, .10) !important;
    }

    /* Auth tabs no topo (Entrar/Cadastrar) ficam fora do card — fundo transparente */
    .auth2 .auth2-tabs {
        background: transparent;
        margin: 8px 8px 0;
        padding: 12px 0 0;
    }

    /* =====================================================================
   Roleta — roda fica visível sobre o xadrez, wrap é o card
   ===================================================================== */
    .rl-page .rl-wheel-area {
        position: relative;
        z-index: 1;
    }

    .rl-page .rl-spins {
        color: #1A1A1A;
        text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
    }

    .rl-page .rl-invite {
        margin: 0 8px 8px;
    }

    .rl-page .rl-wrap {
        border-radius: 22px 22px 0 0;
        margin: 0 8px;
        background: rgba(13, 13, 13, 0.96) !important;
        border: 1px solid rgba(255, 208, 0, .18);
        border-bottom: none;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, .55);
    }

    /* =====================================================================
   Fundo semi-escuro atrás da roda e área do header trading
   (para melhorar contraste sem tirar o xadrez)
   ===================================================================== */
    .trading-header,
    .rl-head,
    .ci-head,
    .voucher-topbar {
        margin: 0 8px;
        border-radius: 0 0 18px 18px;
        border: 1px solid rgba(255, 208, 0, .14);
        border-top: none;
    }

    /* =====================================================================
   Garantir que bottom-nav fique dentro do card visual
   ===================================================================== */
    .bottom-nav {
        border-top: 1px solid rgba(255, 208, 0, .25) !important;
    }