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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0e1a;
    color: #ffffff;
    overflow-x: hidden;
}

.reinvestment-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #111827 0%, #07111f 54%, #050913 100%);
}

.reinvestment-main {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 26px 18px 40px;
}

.reinvestment-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #f8fafc;
    font-weight: 800;
}

.reinvestment-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.reinvestment-panel {
    padding: 20px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    background: rgba(5, 9, 19, 0.78);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.reinvestment-kicker {
    margin: 0 0 10px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reinvestment-panel h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
}

.reinvestment-panel p {
    margin: 0 0 14px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.55;
}

.reinvestment-rule {
    margin: 18px 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(22, 199, 132, 0.1);
    border: 1px solid rgba(22, 199, 132, 0.24);
    color: #dcfce7;
    font-size: 14px;
    line-height: 1.5;
}

.reinvestment-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.reinvestment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 800;
}

.reinvestment-btn.primary {
    border-color: #16c784;
    background: #16c784;
    color: #04110c;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    background: #0a0e1a;
    min-height: 100vh;
    padding-bottom: 102px;
}

/* Header */
.header {
    background: linear-gradient(180deg, #1a1f2e 0%, #0a0e1a 100%);
    padding: 12px 16px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.vip-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 193, 7, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.vip-badge .icon {
    font-size: 16px;
}

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

.icon-btn {
    font-size: 20px;
    cursor: pointer;
    opacity: 0.85;
}

button.icon-btn {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.balance-section {
    text-align: center;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

.balance {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.balance-with-usdt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.balance-amount {
    line-height: 1;
}

.usdt-icon {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.usdt-icon--lg {
    width: 32px;
    height: 32px;
}

.usdt-icon--sm {
    width: 22px;
    height: 22px;
}

.usdt-icon--xs {
    width: 16px;
    height: 16px;
}

.usdt-label {
    flex-shrink: 0;
    font-weight: 700;
    color: #26a17b;
    letter-spacing: 0.06em;
    line-height: 1;
}

.usdt-label--lg {
    font-size: 17px;
    opacity: 0.95;
}

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

.amount-with-usdt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.amount-with-usdt__val {
    line-height: 1.2;
}

.profit-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #00aae4;
    font-weight: 700;
    font-size: 13px;
}

.balance-label {
    font-size: 11px;
    color: #6b7280;
    letter-spacing: 1px;
}

.user-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.ticker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 24px;
}

.ticker-megaphone {
    color: #00aae4;
    font-size: 15px;
    flex-shrink: 0;
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: zhox-ticker-scroll 70s linear infinite;
}

.ticker-segment {
    flex-shrink: 0;
    padding-right: 3.5rem;
    font-size: 12px;
    color: #e5e7eb;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.ticker-segment .ticker-id {
    color: #00aae4;
    font-weight: 700;
}

.ticker-dot {
    color: #6b7280;
    user-select: none;
}

.user-meta-row {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }
}

@keyframes zhox-ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.username {
    color: #9ca3af;
}

.profit {
    margin-left: auto;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
    max-width: 58%;
}

.profit-amount {
    line-height: 1.2;
}

.profit-detail {
    font-size: 10px;
    line-height: 1.35;
    color: #9ca3af;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 6px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 2px;
    cursor: pointer;
    position: relative;
    flex: 1;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
}

.tab.active {
    color: #00aae4;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00aae4;
}

/* Category Tabs — filtros mercados (quadrado, borda fina, 100% largura) */
.tab-manager {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #f8d86a;
}

.tab-manager i {
    font-size: 13px;
}

.tab-manager.active {
    color: #f8d86a;
}

.tab-manager.active::after {
    background: #f8d86a;
}

.manager-panel {
    padding: 12px 16px 80px;
}

.manager-vip-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(248, 216, 106, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(248, 216, 106, 0.14), rgba(14, 165, 233, 0.08)),
        #0a0f1a;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.manager-vip-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(248, 216, 106, 0.14);
    border: 1px solid rgba(248, 216, 106, 0.36);
    color: #f8d86a;
    font-size: 21px;
}

.manager-vip-copy {
    min-width: 0;
}

.manager-vip-kicker {
    margin: 0 0 4px;
    color: #f8d86a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.manager-vip-copy h2 {
    margin: 0 0 6px;
    color: #f8fafc;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
}

.manager-vip-copy p:last-child {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.45;
}

.manager-contact-btn {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #00aae4;
    color: #00111a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.manager-contact-btn:hover {
    filter: brightness(1.08);
}

.category-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
}

.category-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 8px 6px;
    border: 1px solid #2a3548;
    border-radius: 5px;
    background: #0a0f1a;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.category-tab:hover:not(.active) {
    border-color: #3d4d66;
    color: #fff;
}

.category-tab.active {
    background: rgba(0, 170, 228, 0.12);
    border-color: #00aae4;
    color: #00aae4;
}

.category-tab.badge-hot {
    padding-left: 20px;
}

.category-tab.badge-hot::before {
    content: 'HOT';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 2px 7px 2px 5px;
    background: #ef4444;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

/* Traders List */
.traders-list,
.receita-list,
.faq-list {
    padding: 8px 16px 80px 16px;
}

/* FAQs */
.faq-list {
    padding-top: 4px;
}

.faq-item {
    background: rgba(30, 35, 48, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    cursor: pointer;
    list-style: none;
    line-height: 1.35;
}

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

.faq-q::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 14px;
    color: #00aae4;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

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

.faq-a {
    padding: 0 16px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #9ca3af;
}

.faq-a p {
    margin: 0 0 10px;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.my-sub-card {
    background: rgba(30, 35, 48, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 11px;
    margin-bottom: 10px;
}

.my-sub-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 9px;
}

.my-sub-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.my-sub-name {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 4px;
}

.my-sub-meta,
.my-sub-status {
    font-size: 10px;
    color: #9ca3af;
    margin: 0 0 2px;
}

.my-sub-profit {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    padding: 8px 10px;
    background: rgba(0, 170, 228, 0.08);
    border-radius: 8px;
    margin-bottom: 10px;
}

.my-sub-profit-label {
    font-size: 10px;
    color: #9ca3af;
    width: 100%;
}

.my-sub-profit-val {
    font-size: 14px;
    font-weight: 700;
    color: #00aae4;
}

.my-sub-profit-avail {
    font-size: 10px;
    color: #d1d5db;
}

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

.sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

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

.sub-btn-redeem {
    background: #00aae4;
    color: #fff;
}

.sub-btn-cancel {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.sub-btn-operation {
    margin-right: auto;
    background: rgba(22, 199, 132, 0.14);
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.lot-operation-body {
    background: #050913;
}

.lot-operation-page {
    min-height: 100vh;
}

.lot-operation-wrap {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 12px 14px 36px;
}

.lot-operation-summary,
.lot-movements-panel {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 12px 0 14px;
}

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

.lot-summary-avatar {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}

.lot-kicker {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5eead4;
}

.lot-summary-top h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
    color: #f8fafc;
}

.lot-summary-top p {
    margin: 4px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

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

.lot-kpi-grid div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
}

.lot-kpi-grid span,
.lot-progress-row span,
.lot-movement-item span {
    display: block;
    font-size: 10px;
    color: #94a3b8;
}

.lot-kpi-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lot-kpi-grid .positive,
.lot-movement-item .positive {
    color: #16c784;
}

.lot-movement-item .negative {
    color: #f87171;
}

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

.lot-progress-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 7px;
}

.lot-progress-row strong {
    font-size: 11px;
    color: #e2e8f0;
}

.lot-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.13);
}

.lot-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16c784, #38bdf8);
}

.lot-chart-panel {
    padding: 14px 0;
}

.lot-chart-container {
    position: relative;
    height: 430px;
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 8px;
    overflow: hidden;
    background: #050913;
}

#loteOperationChart {
    width: 100%;
    height: calc(100% - 54px);
}

.lot-chart-leverage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    color: #052e2b;
    background: #5eead4;
}

.lot-chart-action {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
}

.lot-chart-action.hidden {
    display: none;
}

.lot-chart-redeem-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    max-width: min(320px, calc(100vw - 48px));
    padding: 8px 11px;
    border: 1px solid rgba(45, 212, 191, 0.42);
    border-radius: 8px;
    background: rgba(7, 22, 33, 0.92);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
}

.lot-chart-redeem-btn i {
    color: #5eead4;
    font-size: 16px;
}

.lot-chart-redeem-btn strong {
    color: #16c784;
    white-space: nowrap;
}

.lot-chart-redeem-btn:disabled {
    opacity: 0.65;
    cursor: progress;
}

.lot-chart-bot-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(340px, calc(100vw - 48px));
    padding: 10px 12px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 8px;
    background: rgba(7, 22, 33, 0.94);
    color: #f8fafc;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
}

.lot-chart-bot-status i {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    flex: 0 0 auto;
}

.lot-chart-bot-status strong,
.lot-chart-bot-status span {
    display: block;
}

.lot-chart-bot-status strong {
    margin-bottom: 2px;
    font-size: 12px;
    color: #f8fafc;
}

.lot-chart-bot-status span {
    font-size: 10px;
    color: #94a3b8;
}

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

.lot-panel-head h2 {
    margin: 0;
    font-size: 14px;
    color: #f8fafc;
}

.lot-panel-head span {
    min-width: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #5eead4;
    background: rgba(20, 184, 166, 0.12);
}

.lot-movement-list {
    display: grid;
    gap: 8px;
}

.lot-movement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}

.lot-movement-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    color: #e2e8f0;
}

.lot-movement-item em {
    flex: 0 0 auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.lot-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 180px;
    text-align: center;
    color: #94a3b8;
}

.lot-empty-state i {
    font-size: 28px;
    color: #f59e0b;
}

.lot-empty-state p {
    margin: 0;
    font-size: 13px;
}

.lot-empty-state a {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 640px) {
    .lot-operation-wrap {
        padding: 10px 12px 30px;
    }

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

    .lot-chart-container {
        height: 390px;
    }

    .lot-summary-top h1 {
        font-size: 16px;
    }
}

.trader-card {
    background: #141a24;
    border-radius: 10px;
    padding: 14px 14px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

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

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

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

.trader-card-media {
    flex-shrink: 0;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.trader-card-avatar,
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center center;
    border: none;
    box-shadow: none;
    display: block;
    flex-shrink: 0;
}

.trader-card .trader-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #f3f4f6;
    line-height: 1.3;
    align-self: center;
}

.trader-limited-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(250, 204, 21, 0.16);
    color: #facc15;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    vertical-align: 1px;
}

.trader-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.stat-item {
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 170, 228, 0.15);
    padding: 4px 6px;
    border-radius: 6px;
    text-align: center;
}

.stat-item.green {
    color: #00aae4;
}

.stat-labels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.label {
    font-size: 9px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.3;
}

.trader-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.days {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 8px;
}

.subscribe-btn {
    background: #00aae4;
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    background: #1a1f2e;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    font-size: 24px;
}

.nav-item.active {
    opacity: 1;
    color: #00aae4;
}

.nav-icon {
    font-size: 24px;
}

/* Memecoin Header — banner só no fundo do header (altura do conteúdo) */
.memecoin-header {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #0a0e1a;
}

.banner-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.banner-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 26, 0.4) 0%,
        rgba(10, 14, 26, 0.6) 50%,
        rgba(10, 14, 26, 0.85) 100%
    );
    pointer-events: none;
}

.banner-image img,
.banner-image svg {
    display: block;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
}

.memecoin-header-inner {
    position: relative;
    z-index: 2;
    padding: 12px 16px;
    box-sizing: border-box;
}

.memecoin-header .header-top {
    margin-bottom: 16px;
}

.memecoin-header .balance-section {
    margin: 20px 0;
    padding-bottom: 4px;
}

.memecoin-header .balance,
.memecoin-header .icon-btn {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.memecoin-header .header-icons .icon-btn {
    font-size: 24px;
    width: 42px;
    height: 42px;
    opacity: 0.92;
}

.memecoin-header--home .header-icons .icon-btn {
    font-size: 21px;
    width: 38px;
    height: 38px;
}

.memecoin-header .header-icons a.icon-btn[href*="voucher"] {
    color: #e8c547;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(232, 197, 71, 0.5));
}

.memecoin-header .header-icons a.icon-btn[href*="voucher"]:hover,
.memecoin-header .header-icons a.icon-btn[href*="voucher"]:active {
    color: #f5d76e;
}

.memecoin-header .header-top,
.auth-page .header-top {
    justify-content: flex-end;
}

.memecoin-header .header-top.has-lang-switch,
.auth-page .header-top.has-lang-switch {
    justify-content: space-between;
    overflow: visible;
    z-index: 180;
}

.language-switch {
    position: relative;
    z-index: 240;
    direction: ltr;
}

.language-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 7px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 5px;
    background: #0b1220;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.language-switch-btn i {
    color: #38bdf8;
    font-size: 12px;
}

.language-switch-flag,
.language-option-flag {
    font-size: 14px;
    line-height: 1;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 168px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: #080d18;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68);
    z-index: 260;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.language-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: #080d18;
}

.language-switch.is-open .language-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.language-option:hover,
.language-option.active {
    background: rgba(0, 170, 228, 0.16);
    color: #fff;
}

.memecoin-header .balance-label {
    color: rgba(209, 213, 219, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.logo-section,
.logo,
.app-name {
    display: none !important;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.logo-img--svg {
    display: block;
}

.app-name {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, #23292f, #00aae4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 170, 228, 0.3);
}

/* Trading Page Styles */
.trading-body {
    overflow-y: auto;
    overflow-x: hidden;
}

.trading-page.app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    padding-bottom: 0;
    overflow: visible;
    background: #0b0e11;
}

.trading-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 6px 12px;
    padding-top: max(6px, env(safe-area-inset-top));
    background: #0b0e11;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    z-index: 20;
}

.trading-header-back {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
}

.trading-header-back:active {
    opacity: 0.85;
}

.trading-header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.trading-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.2;
}

.trading-header-balance {
    font-size: 11px;
    font-weight: 600;
    color: #00aae4;
    line-height: 1.2;
    background: transparent;
    border: none;
    padding: 0;
}

.trading-header-spacer {
    width: 36px;
    flex-shrink: 0;
}

.trading-chart-zone {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #070b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trading-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.trading-controls {
    padding: 14px 16px 16px;
    background: #0b0e11;
}

.asset-selector,
.trade-panel-top {
    display: grid;
    grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1.28fr);
    align-items: end;
    margin-bottom: 16px;
    gap: 12px;
}

.asset-dropdown {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.asset-dropdown:disabled {
    color: #e2e8f0;
    opacity: 1;
    cursor: default;
}

.chart-asset-select {
    min-width: 0;
    max-width: 112px;
    border: none;
    background: transparent;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    outline: none;
    cursor: pointer;
}

.chart-asset-select option {
    color: #0f172a;
}

.current-price {
    text-align: right;
    flex: 1;
}

.current-price span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.price {
    font-size: 20px;
    font-weight: 700;
}

.price-change {
    font-size: 12px;
    margin-top: 2px;
}

.price-change.positive {
    color: #00aae4;
}

.price-change.negative {
    color: #ef4444;
}

.expiration-selector,
.amount-selector {
    margin-bottom: 0;
}

.expiration-selector {
    position: relative;
    min-width: 0;
}

.expiration-selector label,
.amount-selector label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

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

.expiration-toggle {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.expiration-toggle i {
    color: #38bdf8;
    font-size: 15px;
}

.expiration-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 112px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    background: rgba(7, 11, 18, 0.98);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.expiration-menu.is-open {
    display: flex;
}

.expiration-buttons {
    display: flex;
    gap: 8px;
}

.exp-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.exp-btn.active {
    background: #00aae4;
    color: #fff;
    border-color: #00aae4;
}

.expiration-menu .exp-btn {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    text-align: center;
}

.amount-input-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.amount-stepper {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: stretch;
    gap: 8px;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn.active {
    background: #16c784;
    color: #fff;
    border-color: #16c784;
}

#customAmount {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    outline: none;
}

.amount-value-wrap {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(15, 23, 42, 0.92);
}

.amount-value-wrap span {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
}

.amount-step-btn {
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 360px) {
    .trade-panel-top {
        grid-template-columns: 1fr;
    }
}

.amount-step-btn:active {
    transform: scale(0.97);
    background: rgba(56, 189, 248, 0.14);
}

.trade-risk-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 12px;
}

.trade-risk-preview p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 9px 10px;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

.trade-risk-preview-card {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.trade-risk-preview-card.buy {
    border-left: 3px solid #16c784;
}

.trade-risk-preview-card.sell {
    border-left: 3px solid #ef4444;
}

.trade-risk-preview-card > strong {
    display: block;
    margin-bottom: 7px;
    color: #f8fafc;
    font-size: 11px;
    font-weight: 800;
}

.trade-risk-preview-card span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 20px;
    font-size: 10px;
    color: #94a3b8;
}

.trade-risk-preview-card b,
.trade-risk-preview-card em {
    min-width: 0;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.trade-risk-preview-card b {
    color: #cbd5e1;
    font-weight: 700;
}

.trade-risk-preview-card em {
    font-weight: 800;
    text-align: right;
}

.trade-risk-preview-card em.win {
    color: #16c784;
}

.trade-risk-preview-card em.loss {
    color: #ef4444;
}

@media (max-width: 430px) {
    .trade-risk-preview {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 980px) {
    .trading-body {
        overflow: hidden;
        background: #050913;
    }

    .trading-page.app,
    .trading-body .trading-page.app {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-rows: 56px minmax(0, 1fr);
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        padding-bottom: 0;
        overflow: hidden;
        background: #050913;
    }

    .trading-header {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 56px;
        padding: 8px 18px;
        background: #080d18;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .trading-header-back {
        width: 42px;
        height: 42px;
        background: rgba(15, 23, 42, 0.92);
        border: 1px solid rgba(148, 163, 184, 0.18);
    }

    .trading-header-balance {
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        color: #e5f4ff;
        font-size: 13px;
        font-weight: 800;
    }

    .trading-chart-zone {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: #050913;
        border-right: 1px dashed rgba(148, 163, 184, 0.2);
        border-bottom: none;
    }

    .chart-container {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        background:
            linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
            #050913;
        background-size: 112px 112px, 112px 112px, auto;
    }

    .chart-topbar {
        top: 14px;
        left: 18px;
        right: 18px;
    }

    .current-price {
        max-width: 180px;
    }

    .market-title,
    .market-spread {
        background: rgba(8, 13, 24, 0.82);
        border-color: rgba(148, 163, 184, 0.2);
    }

    .active-positions {
        flex: 0 0 auto;
    }

    .trading-controls {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        height: 100%;
        padding: 20px 18px;
        overflow-y: auto;
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(5, 9, 19, 0.98)),
            #080d18;
        border-top: none;
        border-left: 1px solid rgba(56, 189, 248, 0.12);
        box-shadow: -22px 0 44px rgba(0, 0, 0, 0.22);
    }

    .trading-controls .trading-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0;
        margin: 2px 0 18px;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .trading-controls .trade-btn {
        min-height: 48px;
        border-radius: 7px;
        box-shadow: none;
    }

    .trading-controls .sell-btn {
        background: rgba(15, 23, 42, 0.88);
        border: 1px solid rgba(148, 163, 184, 0.16);
        color: #94a3b8;
    }

    .trading-controls .sell-btn:hover {
        color: #fecaca;
        background: rgba(239, 68, 68, 0.12);
    }

    .trade-panel-top {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .trade-risk-grid,
    .trade-risk-preview {
        grid-template-columns: 1fr;
    }

    .expiration-toggle,
    .amount-value-wrap,
    .trade-risk-grid input {
        min-height: 56px;
        background: rgba(15, 23, 42, 0.82);
    }

    .trade-cost-row {
        align-items: stretch;
        flex-direction: column;
        margin-top: 14px;
    }

    .trader-status-btn {
        justify-content: center;
        min-height: 38px;
    }

    .trading-transactions-link {
        position: static;
        align-self: flex-start;
        z-index: 6;
        width: auto;
        min-width: 176px;
        margin: 10px 18px 14px;
        background: rgba(8, 13, 24, 0.84);
        backdrop-filter: blur(10px);
    }

    .trading-quick-links {
        display: flex;
        gap: 10px;
        margin: 10px 18px 14px;
    }

    .trading-quick-links .trading-transactions-link {
        margin: 0;
    }
}

.chart-container {
    position: relative;
    height: clamp(260px, 46vh, 430px);
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.12), transparent 34%),
        linear-gradient(180deg, #08111f 0%, #070b12 100%);
    overflow: hidden;
}

#tradingChart {
    width: 100%;
    height: 100%;
}

.chart-topbar {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
}

.market-title,
.market-spread {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 6px;
    background: rgba(7, 11, 18, 0.74);
    backdrop-filter: blur(10px);
}

.market-title {
    pointer-events: auto;
}

.market-title strong,
.market-spread strong {
    display: block;
    font-size: 12px;
    color: #f8fafc;
    line-height: 1.2;
}

.market-title small,
.market-spread span {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    line-height: 1.2;
}

.market-spread {
    display: block;
    text-align: right;
}

.market-spread strong {
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
}

.market-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(22, 199, 132, 0.12);
}

.market-pulse.up {
    background: #16c784;
    box-shadow: 0 0 0 4px rgba(22, 199, 132, 0.12), 0 0 16px rgba(22, 199, 132, 0.8);
}

.market-pulse.down {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12), 0 0 16px rgba(239, 68, 68, 0.75);
}

.chart-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.chart-marker {
    position: absolute;
    right: 14px;
    top: 62px;
    min-width: 70px;
    min-height: 36px;
    border-radius: 7px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    animation: pulse 1.1s infinite;
    backdrop-filter: blur(8px);
}

.chart-marker strong {
    font-size: 13px;
    margin-top: 2px;
}

.chart-marker.buy {
    background: rgba(22, 199, 132, 0.18);
    border: 1px solid #16c784;
    color: #bbf7d0;
}

.chart-marker.sell {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid #ef4444;
    color: #fecaca;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.active-positions {
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.active-positions h3 {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
}

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

.position-item {
    background: rgba(15, 23, 42, 0.72);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.position-item.buy {
    border-left-color: #16c784;
}

.position-item.sell {
    border-left-color: #ef4444;
}

.position-info {
    flex: 1;
}

.position-type {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.position-type.buy {
    color: #16c784;
}

.position-type.sell {
    color: #ef4444;
}

.position-details {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.position-details-full {
    display: none;
}

.position-progress {
    height: 3px;
    margin-top: 8px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.position-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #16c784);
}

.position-live,
.position-result {
    min-width: 58px;
    text-align: right;
}

.position-live strong,
.position-result strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
}

.position-live span,
.position-result span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
}

.position-live.win strong {
    color: #16c784;
}

.position-live.loss strong {
    color: #ef4444;
}

.position-result {
    font-size: 14px;
    font-weight: 600;
}

.position-result.win {
    color: #16c784;
}

.position-result.loss {
    color: #ef4444;
}

.positions-empty {
    padding: 18px 12px;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.trading-actions {
    display: flex;
    gap: 10px;
    padding: 10px 0 14px;
    background: #0b0e11;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 15;
    flex-shrink: 0;
}

.trade-btn {
    flex: 1;
    border: none;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: none;
    letter-spacing: 0.02em;
    min-height: 58px;
}

.trade-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.trade-btn:active {
    transform: scale(0.98);
    opacity: 0.92;
}

.trade-btn i {
    font-size: 20px;
    line-height: 1;
}

.buy-btn {
    background: #16c784;
    color: #fff;
}

.sell-btn {
    background: #ef4444;
    color: #fff;
}

.trade-notification {
    position: fixed;
    top: 52px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    max-width: 300px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid;
}

.trade-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.trade-notification.win {
    border-color: #00aae4;
    background: linear-gradient(135deg, rgba(0, 170, 228, 0.2), rgba(0, 119, 182, 0.1));
}

.trade-notification.loss {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
}

.notification-icon {
    font-size: 32px;
}

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

.notification-text strong {
    font-size: 16px;
    font-weight: 700;
}

.trade-notification.win .notification-text strong {
    color: #00aae4;
}

.trade-notification.loss .notification-text strong {
    color: #ef4444;
}

.notification-text span {
    font-size: 18px;
    font-weight: 600;
}

.trade-notification.win .notification-text span {
    color: #00aae4;
}

.trade-notification.loss .notification-text span {
    color: #ef4444;
}

.trading-intro {
    position: fixed;
    inset: 0;
    z-index: 16000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.trading-intro.is-open {
    opacity: 1;
    visibility: visible;
}

body.trading-intro-open {
    overflow: hidden;
}

.trading-intro-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(6px);
}

.trading-intro-panel {
    position: relative;
    width: min(100%, 350px);
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.38);
    background: linear-gradient(180deg, #111827 0%, #070b12 100%);
    padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.22s ease;
}

.trading-intro.is-open .trading-intro-panel {
    transform: translateY(0) scale(1);
}

.trading-intro-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    font-size: 26px;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
}

.trading-intro-panel h2 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

.trading-intro-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.trading-intro-points {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    text-align: left;
}

.trading-intro-points span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

.trading-intro-points i {
    color: #16c784;
    font-size: 15px;
}

.trading-intro-panel button {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    background: #00aae4;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

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

/* Trading visual refresh */
.trading-body {
    background: #050913;
}

.trading-page.app {
    position: relative;
    background:
        radial-gradient(circle at 16% -4%, rgba(0, 170, 228, 0.18), transparent 34%),
        radial-gradient(circle at 88% 22%, rgba(22, 199, 132, 0.12), transparent 28%),
        linear-gradient(180deg, #08111f 0%, #050913 52%, #070b12 100%);
}

.trading-page.app::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 58%);
    opacity: 0.45;
}

.trading-header {
    position: relative;
    justify-content: space-between;
    min-height: 54px;
    padding: 8px 14px;
    padding-top: max(8px, env(safe-area-inset-top));
    background: rgba(5, 9, 19, 0.76);
    border-bottom: 1px solid rgba(56, 189, 248, 0.11);
    backdrop-filter: blur(16px);
}

.trading-header-fill {
    flex: 1 1 auto;
    min-width: 0;
}

.trading-header-balance {
    flex: 0 0 auto;
    margin-left: auto;
}

.trading-header-back {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.trading-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: 8px;
    padding: 3px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    background: rgba(8, 14, 26, 0.88);
}

.trading-mode-btn {
    min-height: 30px;
    padding: 0 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.trading-mode-btn.active {
    background: rgba(56, 189, 248, 0.18);
    color: #e0f2fe;
}

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

.trading-header-balance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 12px;
    border: 1px solid rgba(0, 170, 228, 0.24);
    border-radius: 999px;
    background: rgba(0, 170, 228, 0.1);
    font-weight: 800;
    font-size: 12px;
    color: #38bdf8;
}

.trading-chart-zone {
    position: relative;
    z-index: 1;
    background: transparent;
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.chart-container {
    height: clamp(300px, 52vh, 460px);
    margin: 0;
    border: none;
    border-radius: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.18), transparent 35%),
        radial-gradient(circle at 100% 75%, rgba(22, 199, 132, 0.1), transparent 32%),
        linear-gradient(180deg, #071020 0%, #050913 100%);
    box-shadow: none;
}

body.trading-has-open-positions .chart-container {
    height: clamp(260px, 44vh, 420px);
}

.chart-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent 18%, transparent 82%, rgba(22, 199, 132, 0.06)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 20%);
}

.chart-tools {
    position: absolute;
    left: 12px;
    top: 64px;
    z-index: 7;
}

.chart-tools-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    background: rgba(5, 9, 19, 0.78);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.chart-tools-toggle[aria-expanded="true"] {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.52);
}

.chart-tools-menu {
    position: absolute;
    top: 46px;
    left: 0;
    width: 190px;
    display: none;
    padding: 10px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    background: rgba(5, 9, 19, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.chart-tools-menu.is-open {
    display: grid;
    gap: 8px;
}

.chart-tools-title {
    color: #8da3bd;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chart-tools-menu label {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

.chart-tools-menu input {
    accent-color: #38bdf8;
}

.chart-timeframe {
    position: absolute;
    left: 12px;
    top: 108px;
    z-index: 7;
}

.chart-timeframe-toggle {
    min-width: 52px;
    height: 38px;
    padding: 0 9px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    background: rgba(5, 9, 19, 0.78);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.chart-timeframe-toggle i {
    font-size: 15px;
}

.chart-timeframe-toggle[aria-expanded="true"] {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.52);
}

.chart-timeframe-menu {
    position: absolute;
    top: 46px;
    left: 0;
    width: 86px;
    display: none;
    padding: 7px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    background: rgba(5, 9, 19, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.chart-timeframe-menu.is-open {
    display: grid;
    gap: 6px;
}

.chart-timeframe-option {
    min-height: 30px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.chart-timeframe-option.active {
    border-color: rgba(56, 189, 248, 0.56);
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
}

.chart-topbar {
    align-items: stretch;
    gap: 6px;
}

.market-title,
.market-spread,
.current-price {
    min-height: 34px;
    padding: 5px 7px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(5, 9, 19, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.market-title {
    flex: 0 1 126px;
    min-width: 0;
}

.market-spread {
    flex: 0 1 82px;
}

.current-price {
    width: 74px;
    flex: 0 0 auto;
    min-width: 0;
    text-align: center;
}

.current-price span {
    display: block;
    margin-bottom: 2px;
    color: #8da3bd;
    font-size: 7px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.current-price .price {
    display: block;
    color: #f8fafc;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.12;
    font-variant-numeric: tabular-nums;
}

.current-price .price-change {
    display: block;
    margin-top: 3px;
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
}

.market-spread span {
    font-size: 7px;
}

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

.trading-actions {
    padding: 10px 0 14px;
    background: transparent;
    border-top: none;
}

.trade-btn {
    min-height: 58px;
    padding: 13px 14px;
    font-size: 15px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.buy-btn {
    background: linear-gradient(180deg, #22c98f 0%, #0d9f69 100%);
}

.sell-btn {
    background: linear-gradient(180deg, #ff5a5f 0%, #d9383f 100%);
}

.trading-body .trading-page.app {
    min-height: 100dvh;
    height: auto;
    max-height: none;
    overflow: visible;
}

.trading-chart-zone {
    flex: 0 0 auto;
}

.trading-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 12px 10px;
}

.trading-transactions-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    min-height: 40px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: #d7e8ff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.trading-live-link {
    border-color: rgba(34, 197, 148, 0.24);
    background: rgba(20, 83, 45, 0.24);
    color: #bbf7d0;
}

.trading-controls {
    padding: 14px 14px 16px;
    background: linear-gradient(180deg, rgba(7, 11, 18, 0.96), rgba(5, 9, 19, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    position: relative;
    z-index: 4;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.expiration-selector label,
.amount-selector label {
    color: #a7b5c8;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.expiration-toggle,
.amount-value-wrap {
    border-color: rgba(56, 189, 248, 0.22);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 14, 26, 0.96));
}

.amount-step-btn {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.trade-risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 10px;
}

.trade-risk-grid label {
    min-width: 0;
}

.trade-risk-grid span,
.trade-cost-preview {
    display: block;
    margin-bottom: 6px;
    color: #8da3bd;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.trade-risk-grid input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    background: rgba(8, 14, 26, 0.96);
    color: #e5f4ff;
    padding: 0 10px;
    outline: none;
}

.trade-cost-preview {
    margin: 9px 0 0;
    text-transform: none;
}

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

.trade-cost-row .trade-cost-preview {
    margin: 0;
    min-width: 0;
    line-height: 1.35;
}

.trader-status-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.86);
    color: #d7e8ff;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 900;
}

.trader-status-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
}

.trader-status-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 16, 0.72);
}

.trader-status-panel {
    position: relative;
    width: min(420px, 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    background: #08101d;
    color: #d7e8ff;
    padding: 16px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.trader-status-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #e5f4ff;
}

.trader-status-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 34px;
}

.trader-status-title i {
    color: #38bdf8;
    font-size: 22px;
}

.trader-status-title span {
    display: block;
    color: #8da3bd;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.trader-status-title strong {
    display: block;
    margin-top: 2px;
    font-size: 20px;
}

.trader-status-copy,
.trader-status-next {
    margin: 12px 0 0;
    color: #9fb3ca;
    font-size: 12px;
    line-height: 1.45;
}

.trader-status-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.trader-status-stats span {
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    padding: 9px;
    font-size: 13px;
    font-weight: 900;
}

.trader-status-stats b {
    display: block;
    margin-bottom: 4px;
    color: #8da3bd;
    font-size: 9px;
    text-transform: uppercase;
}

.trader-tier-list {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.trader-tier-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 8px;
    color: #b9c8da;
    font-size: 11px;
}

.trader-tier-row.active {
    border-color: rgba(56, 189, 248, 0.46);
    color: #f8fbff;
}

.trader-tier-row strong {
    color: #38bdf8;
}

.trader-tier-row em {
    color: #8da3bd;
    font-style: normal;
}

.active-positions {
    padding: 14px;
    max-height: 220px;
}

.active-positions h3 {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.position-item {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 14, 26, 0.9));
    border-top-color: rgba(255, 255, 255, 0.07);
    border-right-color: rgba(255, 255, 255, 0.07);
    border-bottom-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.positions-empty {
    border-color: rgba(56, 189, 248, 0.2);
    color: #8da3bd;
}

.trading-chart-zone .active-positions {
    flex-shrink: 0;
    max-height: 96px;
    padding: 0 12px 8px;
    overflow-y: auto;
    background: rgba(5, 9, 19, 0.92);
}

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

.trading-chart-zone .active-positions h3 {
    margin: 0 0 5px;
    color: #8da3bd;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.trading-chart-zone .positions-list {
    gap: 5px;
}

.trading-chart-zone .position-item {
    min-height: 38px;
    padding: 5px 8px;
    border-radius: 0;
    border-left-width: 2px;
    background: rgba(9, 16, 29, 0.96);
    box-shadow: none;
}

.trading-chart-zone .position-type {
    margin-bottom: 1px;
    font-size: 10px;
    line-height: 1.1;
}

.trading-chart-zone .position-details {
    font-size: 9px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trading-chart-zone .position-progress {
    height: 2px;
    margin-top: 4px;
    border-radius: 0;
}

.trading-chart-zone .position-live {
    min-width: 66px;
}

.trading-chart-zone .position-live strong {
    font-size: 13px;
}

.trading-chart-zone .position-live span {
    margin-top: 0;
    font-size: 8px;
}

.position-live button {
    display: block;
    margin-top: 3px;
    border: none;
    border-radius: 5px;
    padding: 4px 7px;
    background: rgba(56, 189, 248, 0.18);
    color: #d7e8ff;
    font-size: 9px;
    font-weight: 800;
}

.trading-transactions-wrap {
    padding: 14px;
    overflow-y: auto;
}

.trade-transaction-card {
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 8px;
    background: rgba(9, 16, 29, 0.96);
    margin-bottom: 10px;
    overflow: hidden;
}

.trade-transaction-head {
    width: 100%;
    border: none;
    background: transparent;
    color: #e5f4ff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.trade-transaction-head span,
.trade-transaction-detail span {
    display: grid;
    gap: 3px;
}

.trade-transaction-head small,
.trade-transaction-detail b {
    color: #8da3bd;
    font-size: 11px;
}

.trade-transaction-head em.win { color: #16c784; }
.trade-transaction-head em.loss { color: #ef4444; }

.trade-transaction-detail {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 12px;
    color: #d7e8ff;
    font-size: 12px;
}

.trade-transaction-card.is-open .trade-transaction-detail {
    display: grid;
}

@media (max-width: 390px) {
    .chart-container {
        height: clamp(245px, 42vh, 320px);
    }

    body.trading-has-open-positions .chart-container {
        height: clamp(220px, 36vh, 290px);
    }

    .trading-actions {
        padding-bottom: 8px;
    }

    .trading-transactions-link {
        min-height: 36px;
        margin-bottom: 8px;
    }

    .trading-controls {
        padding-top: 10px;
    }

    .trade-panel-top {
        gap: 8px;
        margin-bottom: 8px;
    }

    .trade-risk-grid {
        gap: 8px;
        padding-top: 8px;
    }

    .current-price {
        width: 62px;
        padding-inline: 5px;
    }

    .current-price .price {
        font-size: 8px;
    }

    .current-price span {
        font-size: 6px;
    }

    .market-spread {
        display: none;
    }
}

/* Auth (login / cadastro) */
.auth-page {
    padding-bottom: 24px;
    background: #070b14;
}

.auth-main {
    padding: 16px 16px 28px;
    max-width: 100%;
}

.auth-hero {
    min-height: 216px;
}

.auth-hero .banner-image::after {
    background: linear-gradient(
        180deg,
        rgba(7, 11, 20, 0.34) 0%,
        rgba(7, 11, 20, 0.72) 58%,
        #070b14 100%
    );
}

.auth-hero .memecoin-header-inner {
    min-height: 216px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 16px 22px;
}

.auth-hero .header-top {
    margin-bottom: 22px;
    position: relative;
    z-index: 30;
}

.auth-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 310px;
}

.auth-hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.38);
    background: rgba(7, 11, 20, 0.58);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-hero-copy h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.auth-hero-copy p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    font-size: 13px;
    line-height: 1.45;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f3f4f6;
}

.auth-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(7, 11, 20, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 5px;
    padding: 0 14px;
    min-height: 48px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap:focus-within {
    border-color: rgba(0, 170, 228, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 170, 228, 0.12);
}

.auth-input-wrap > i {
    font-size: 18px;
    color: #00aae4;
    flex-shrink: 0;
    opacity: 0.9;
}

.auth-input-wrap input,
.auth-input-wrap select {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 14px 0;
    outline: none;
}

.auth-input-wrap input::placeholder {
    color: #6b7280;
}

.auth-input-wrap select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

.auth-input-wrap select option {
    background: #1a1f2e;
    color: #fff;
}

.auth-row-split {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.auth-row-split .auth-field {
    flex: 1;
    min-width: 0;
}

.auth-row-split .auth-field-country {
    flex: 0 0 120px;
}

.auth-submit {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 5px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #00aae4, #0077b6);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 170, 228, 0.35);
    transition: transform 0.15s, box-shadow 0.2s;
}

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

.auth-link-button {
    width: 100%;
    margin: 12px 0 0;
    min-height: 40px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 5px;
    background: rgba(7, 11, 20, 0.45);
    color: #bae6fd;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.auth-link-button:hover {
    border-color: rgba(56, 189, 248, 0.62);
    background: rgba(14, 116, 144, 0.15);
    color: #f8fafc;
}

.auth-recovery {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(150deg, rgba(8, 47, 73, 0.46) 0%, rgba(7, 11, 20, 0.84) 56%),
        rgba(7, 11, 20, 0.72);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

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

.auth-recovery-head strong {
    font-size: 15px;
    font-weight: 800;
}

.auth-recovery-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
    cursor: pointer;
}

.auth-recovery-text {
    margin: 0 0 12px;
    color: #9fb2cc;
    font-size: 12px;
    line-height: 1.45;
}

.auth-recovery-btn {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 5px;
    background: rgba(8, 145, 178, 0.18);
    color: #e0f2fe;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.auth-recovery-btn:disabled,
.auth-recovery-confirm:disabled {
    opacity: 0.68;
    cursor: wait;
}

.auth-recovery-code {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-recovery-confirm {
    margin-top: 0;
}

.auth-recovery-ok {
    margin: 10px 0 0;
    color: #86efac;
    font-size: 12px;
    line-height: 1.4;
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #9ca3af;
}

.auth-switch a {
    color: #00aae4;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-header-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 5px;
    background: rgba(7, 11, 20, 0.52);
    font-size: 13px;
    font-weight: 800;
    color: #e0f2fe;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.auth-header-link:hover {
    text-decoration: none;
    border-color: rgba(56, 189, 248, 0.72);
}

.hidden {
    display: none !important;
}

.header-icons a.icon-btn {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inv-meta {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.3;
}

.empty-msg {
    text-align: center;
    padding: 24px 16px;
    color: #9ca3af;
    font-size: 14px;
}

.empty-msg.muted {
    opacity: 0.85;
}

.empty-msg code {
    font-size: 11px;
    color: #00aae4;
    word-break: break-all;
}

.sheet-error {
    color: #f87171;
    font-size: 13px;
    min-height: 1.2em;
    margin: 8px 0 0;
}

/* Bottom sheet — subscrição */
.sheet-error-link {
    color: #00aae4;
    font-weight: 700;
    text-decoration: none;
}

.sheet-error-link:hover {
    text-decoration: underline;
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.sheet.is-open .sheet-backdrop {
    opacity: 1;
}

.sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1e2433 0%, #151a26 100%);
    border-radius: 20px 20px 0 0;
    padding: 8px 20px 28px;
    transform: translateY(110%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.sub-sheet-panel {
    background: #0b0e11;
    border-color: rgba(255, 255, 255, 0.06);
    padding: 6px 18px 22px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.sub-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
    padding-right: 2px;
}

.sub-sheet-title {
    font-size: 17px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0 0 6px;
    line-height: 1.3;
}

.sub-sheet-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

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

.sub-sheet-deposit {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #00aae4;
    border-radius: 6px;
    color: #00aae4;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sub-sheet-deposit:hover {
    background: rgba(0, 170, 228, 0.1);
}

.sub-sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sub-sheet-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.sub-sheet-balance {
    margin-bottom: 20px;
}

.sub-sheet-balance-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.sub-sheet-balance-val {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

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

.sub-sheet-field-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.sub-sheet-rules {
    border: none;
    background: none;
    color: #00aae4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.sub-sheet-input-wrap {
    display: flex;
    align-items: center;
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 14px;
    min-height: 52px;
}

.sub-sheet-input-wrap:focus-within {
    border-color: rgba(0, 170, 228, 0.45);
    box-shadow: 0 0 0 2px rgba(0, 170, 228, 0.12);
}

.sub-sheet-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    padding: 12px 0;
    outline: none;
}

.sub-sheet-input-suffix {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 8px;
}

.sub-sheet-input-suffix--icon {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.sub-sheet-input-suffix--icon .usdt-icon {
    width: 22px;
    height: 22px;
}

.sub-sheet-balance-val.amount-with-usdt {
    gap: 8px;
}

.sub-sheet-summary dd.amount-with-usdt {
    justify-content: flex-end;
}

.sub-sheet-limits {
    font-size: 11px;
    color: #6b7280;
    margin: 8px 0 0;
}

.sub-sheet .sheet-error {
    font-size: 12px;
    margin-top: 8px;
    min-height: 1em;
}

.sub-sheet-summary {
    margin: 0 0 20px;
    padding: 0;
}

.sub-sheet-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-sheet-summary-row dt {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}

.sub-sheet-summary-row dd {
    margin: 0;
    font-size: 13px;
    color: #d1d5db;
    text-align: right;
}

.sub-sheet-summary-total {
    border-bottom: none;
    padding-top: 12px;
}

.sub-sheet-summary-total dt,
.sub-sheet-summary-total dd {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.sub-sheet-ok {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 15px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #00aae4;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.sub-sheet-ok:hover:not(:disabled) {
    background: #0088c2;
}

.sub-sheet-ok:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sub-sheet-cancel {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.sub-sheet-cancel:hover {
    color: #e5e7eb;
}

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

.sub-sheet-term-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.sub-sheet-term-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
}

.sub-sheet-term-tab {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    border: 1px solid #2a3548;
    border-radius: 8px;
    background: #0a0f1a;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.sub-sheet-term-tab.active {
    border-color: #00aae4;
    color: #00aae4;
    background: rgba(0, 170, 228, 0.1);
}

.sub-sheet-term-hint {
    margin: 10px 0 0;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

.sub-sheet-term-reinvest-note {
    display: inline;
    margin-left: 5px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.3;
    color: #00aae4;
    vertical-align: baseline;
}

.sub-sheet-return-preview {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
    color: #22c55e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.sub-sheet-return-preview i {
    font-size: 13px;
    line-height: 1;
}

.sub-sheet-return-preview.hidden {
    display: none;
}

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

.trader-card-head-end {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.trader-prazo {
    text-align: right;
}

.trader-prazo-days {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.2;
    white-space: nowrap;
}

.trader-prazo-label {
    display: block;
    font-size: 10px;
    color: #9ca3af;
}

.trader-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.trader-stat-col {
    padding: 0 10px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.trader-stat-col:first-child {
    padding-left: 0;
}

.trader-stat-col:last-child {
    border-right: none;
    padding-right: 0;
}

.trader-stat-val {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 6px;
    line-height: 1.2;
}

.trader-stat-val--green,
.trader-stat-val--accent {
    color: #00aae4;
}

.trader-stat-lbl {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.35;
    padding: 0 2px;
}

.sheet.is-open .sheet-panel {
    transform: translateY(0);
}

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

.sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.sheet-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 6px;
    padding-right: 40px;
    color: #f3f4f6;
}

.sheet-hint {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.45;
    margin-bottom: 16px;
}

.sheet-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
}

.sheet-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 16px;
    outline: none;
}

.sheet-input:focus {
    border-color: rgba(0, 170, 228, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 170, 228, 0.12);
}

.sheet-confirm {
    margin-top: 16px;
}

/* Páginas carteira / extrato */
.page-wrap {
    padding: 16px 16px 118px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-lead {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wallet-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.wallet-tab {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.wallet-tab.active {
    background: rgba(0, 170, 228, 0.2);
    border-color: #00aae4;
    color: #fff;
}

.carteira-balance-card {
    background: rgba(0, 170, 228, 0.12);
    border: 1px solid rgba(0, 170, 228, 0.35);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carteira-balance-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.carteira-balance-val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.carteira-extrato-link {
    font-size: 13px;
    color: #00aae4;
    text-decoration: none;
    margin-top: 4px;
}

.carteira-extrato-link:hover {
    text-decoration: underline;
}

.carteira-main-tabs {
    margin-bottom: 16px;
}

.carteira-app .carteira-main {
    padding: 12px 16px 118px;
}

.wallet-tier-strip {
    width: 100%;
    margin: 0 0 8px;
}

.wallet-tier-row {
    display: grid;
    grid-template-columns: auto 1fr 26px;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.wallet-tier-name {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.wallet-tier-name.is-vip {
    color: #facc15;
}

.wallet-tier-meta {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.wallet-tier-help {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #2a3548;
    border-radius: 50%;
    background: #0a0f1a;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.wallet-tier-help:hover {
    border-color: #00aae4;
    color: #fff;
}

.wallet-tier-progress {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #172033;
}

.wallet-tier-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00aae4, #22c55e);
    transition: width 0.35s ease;
}

.wallet-tier-progress span.is-vip {
    background: linear-gradient(90deg, #facc15, #22c55e);
}

.carteira-app .carteira-wallet-tabs {
    width: 100%;
    padding: 12px 0;
    margin-bottom: 4px;
    box-sizing: border-box;
}

.carteira-app .carteira-subtabs {
    width: 100%;
    padding: 0 0 12px;
    box-sizing: border-box;
}

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

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

.carteira-field label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.carteira-input {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #2a3548;
    border-radius: 5px;
    background: #0a0f1a;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.carteira-input:focus {
    outline: none;
    border-color: #00aae4;
    background: #0d1420;
}

.carteira-input::placeholder {
    color: #6b7280;
}

.carteira-btn {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #00aae4;
    border-radius: 5px;
    background: rgba(0, 170, 228, 0.12);
    color: #00aae4;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.carteira-btn:hover {
    background: rgba(0, 170, 228, 0.2);
    color: #fff;
}

.carteira-btn--ghost {
    border-color: #2a3548;
    background: #0a0f1a;
    color: #f8fafc;
}

.carteira-btn--ghost:hover {
    border-color: #3d4d66;
    background: #0d1420;
    color: #fff;
}

.carteira-hint {
    font-size: 13px;
    line-height: 1.5;
    color: #9ca3af;
    margin: 0 0 12px;
}

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

.carteira-hint--sm {
    font-size: 12px;
    margin-bottom: 8px;
}

.deposit-amount-hint {
    font-size: 12px;
    line-height: 1.4;
    color: #94a3b8;
    margin: 8px 0 0;
}

.deposit-amount-hint.is-error {
    color: #f87171;
}

.deposit-amount-hint.hidden {
    display: none;
}

.carteira-saved {
    font-size: 12px;
    color: #d1d5db;
    padding: 10px 12px;
    border: 1px solid #2a3548;
    border-radius: 5px;
    background: #0a0f1a;
    margin: 0;
}

.carteira-link-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: none;
    background: transparent;
    color: #00aae4;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.carteira-link-btn:hover {
    text-decoration: underline;
}

.carteira-panel {
    margin-bottom: 16px;
    padding: 0;
    border: none;
    background: transparent;
}

.carteira-panel .carteira-form {
    margin-top: 4px;
}

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

.carteira-extrato {
    margin-top: 8px;
}

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

.carteira-extrato-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.carteira-extrato-refresh {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carteira-extrato-refresh:hover {
    color: #fff;
    border-color: rgba(0, 170, 228, 0.5);
}

.carteira-extrato-list .movement-item {
    margin-bottom: 8px;
}

.carteira-app #inlineResult {
    display: none;
}

.carteira-page #inlineResult {
    display: none;
}

.wallet-subtabs .wallet-tab {
    font-size: 12px;
    padding: 8px 10px;
}

.pix-inline-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 12px;
    font-size: 11px;
    word-break: break-all;
    color: #d1d5db;
    margin-top: 12px;
    max-height: 120px;
    overflow-y: auto;
}

.movement-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.movement-item .m-label {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}

.movement-item .m-date {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.movement-item .m-amt {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.movement-item .m-amt.pos {
    color: #00aae4;
}

.movement-item .m-amt.neg {
    color: #f87171;
}

.ref-box {
    background: rgba(0, 170, 228, 0.1);
    border: 1px dashed rgba(0, 170, 228, 0.35);
    border-radius: 12px;
    padding: 14px;
    margin: 16px 0;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    word-break: break-all;
    color: #e5e7eb;
}

/* Rodapé — redes (acima da navegação fixa) */
.site-footer-social {
    max-width: 480px;
    margin: 0 auto;
    padding: 14px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.footer-social-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social {
    color: #9ca3af;
    font-size: 1.35rem;
    line-height: 1;
    transition: color 0.2s;
}

.footer-social:hover {
    color: #00aae4;
}

.app.auth-page .site-footer-social {
    margin-top: auto;
}

.auth-main + .site-footer-social {
    margin-top: 12px;
}

/* Modais (alert / confirm) */
.zhox-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.zhox-modal.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

body.zhox-modal-open {
    overflow: hidden;
}

.zhox-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.zhox-modal-panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: linear-gradient(165deg, #1e2433 0%, #151a26 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    text-align: center;
    transform: scale(0.92) translateY(8px);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.zhox-modal.is-open .zhox-modal-panel {
    transform: scale(1) translateY(0);
}

.zhox-modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.zhox-modal-icon--success {
    background: rgba(0, 170, 228, 0.15);
    color: #38bdf8;
}

.zhox-modal-icon--error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.zhox-modal-icon--warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.zhox-modal-icon--info {
    background: rgba(0, 170, 228, 0.15);
    color: #00aae4;
}

.zhox-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0 0 8px;
}

.zhox-modal-msg {
    font-size: 14px;
    line-height: 1.5;
    color: #9ca3af;
    margin: 0 0 20px;
}

.zhox-modal-msg-text {
    margin: 0 0 14px;
}

.zhox-modal-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    font-size: 13px;
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
}

.zhox-modal-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #00aae4;
    cursor: pointer;
}

.zhox-modal-btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.zhox-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.zhox-modal-btn {
    flex: 1;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.zhox-modal-btn:active {
    transform: scale(0.97);
}

.zhox-modal-btn--primary {
    background: #00aae4;
    color: #fff;
}

.zhox-modal-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.zhox-modal-btn--full {
    flex: none;
    width: 100%;
}

/* Modal de pagamento (carteira) */
body.zhox-pay-open {
    overflow: hidden;
}

.zhox-pay-loading {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.zhox-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    max-width: 480px;
    margin: 0 auto;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.zhox-pay-loading.is-open,
.zhox-pay-modal.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

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

.zhox-pay-loading-card {
    position: relative;
    z-index: 1;
    width: min(300px, 100%);
    padding: 28px 24px;
    border-radius: 20px;
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(0, 170, 228, 0.25);
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.zhox-pay-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 3px solid rgba(0, 170, 228, 0.2);
    border-top-color: #00aae4;
    animation: zhox-pay-spin 0.85s linear infinite;
}

@keyframes zhox-pay-spin {
    to { transform: rotate(360deg); }
}

.zhox-pay-loading-title {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.zhox-pay-loading-sub {
    font-size: 13px;
    color: #94a3b8;
}

.zhox-pay-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(92vh, 720px);
    overflow-y: auto;
    padding: 6px 18px max(22px, env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: #0b0e11;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    text-align: center;
    transform: translateY(0);
    animation: zhox-pay-slide-up 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.zhox-pay-modal-panel::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 6px auto 14px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

@keyframes zhox-pay-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.zhox-pay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
}

.zhox-pay-title {
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
    margin: 4px 0 6px;
    padding-right: 32px;
}

.zhox-pay-amount {
    font-size: 14px;
    color: #00aae4;
    font-weight: 600;
    margin-bottom: 14px;
}

.zhox-pay-qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.zhox-pay-qr-mount {
    width: min(280px, calc(100vw - 72px));
    height: min(280px, calc(100vw - 72px));
    max-width: 100%;
    aspect-ratio: 1;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.zhox-pay-qr-mount img,
.zhox-pay-qr-mount canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.zhox-pay-hint {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 10px;
}

.zhox-pay-copy-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    text-align: left;
}

.zhox-pay-copy-row.hidden {
    display: none;
}

.zhox-pay-copy-input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 11px;
}

.zhox-pay-copy-btn {
    flex-shrink: 0;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: #00aae4;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.zhox-pay-status {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.4;
}

.zhox-pay-done-btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    background: #00aae4;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.zhox-pay-done-btn:active {
    opacity: 0.9;
}

/* ——— Página Perfil ——— */
.perfil-app {
    background: #070b14;
    padding-bottom: 88px;
}

.perfil-header .memecoin-header-inner {
    padding-bottom: 12px;
}

.perfil-balance-header {
    justify-content: flex-start;
}

.perfil-header .balance-amount,
.perfil-header .balance {
    color: #ffffff;
}

.perfil-identity {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.perfil-identity-body {
    flex: 1;
    min-width: 0;
}

.perfil-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 14px 24px;
}

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

.perfil-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #00aae4, #0066aa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(0, 170, 228, 0.6);
}

.perfil-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 12px;
    color: #94a3b8;
}

.perfil-copy-btn {
    border: none;
    background: transparent;
    color: #00aae4;
    padding: 2px;
    cursor: pointer;
    font-size: 14px;
}

.perfil-plan {
    margin: 0 0 6px;
    font-size: 12px;
    color: #00aae4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.perfil-since {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.perfil-since i {
    color: #00aae4;
}

.perfil-panel {
    background: #121a2a;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 0 8px;
    margin-bottom: 16px;
}

.perfil-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px 8px;
    margin: 0;
}

.perfil-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.perfil-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: left;
}

.perfil-menu-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 170, 228, 0.1);
    color: #00aae4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.perfil-menu-chevron {
    margin-left: auto;
    color: #475569;
    font-size: 14px;
}

.perfil-menu-danger {
    color: #f87171;
}

.perfil-menu-danger .perfil-menu-ico {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.perfil-referral-card {
    border-radius: 14px;
    border: 1px solid rgba(0, 170, 228, 0.35);
    background: linear-gradient(135deg, #0a1810 0%, #0c1520 100%);
    overflow: hidden;
}

.perfil-referral-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.perfil-referral-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #38bdf8;
}

.perfil-referral-desc {
    margin: 0 0 12px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 220px;
}

.perfil-referral-field {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.perfil-referral-field input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #070b14;
    color: #cbd5e1;
    font-size: 11px;
}

.perfil-referral-copy {
    width: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 228, 0.4);
    background: rgba(0, 170, 228, 0.1);
    color: #38bdf8;
    cursor: pointer;
}

.perfil-referral-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #00aae4;
    background: transparent;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.perfil-referral-gift {
    font-size: 48px;
    color: #00aae4;
    opacity: 0.85;
    filter: drop-shadow(0 0 12px rgba(0, 170, 228, 0.5));
    flex-shrink: 0;
}

.bottom-nav--labeled .nav-item {
    font-size: 11px;
    gap: 4px;
}

.bottom-nav--labeled .nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.bottom-nav--labeled .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: #00aae4;
    border-radius: 0 0 3px 3px;
}

.bottom-nav--labeled .nav-item {
    position: relative;
    opacity: 0.45;
}

.bottom-nav--labeled .nav-item i {
    font-size: 22px;
}

body.zhox-sheet-open {
    overflow: hidden;
}

.zhox-full-sheet {
    position: fixed;
    inset: 0;
    z-index: 15000;
    max-width: 480px;
    margin: 0 auto;
    background: #0b0e11;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0.28s;
}

.zhox-full-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.zhox-full-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0b0e11;
}

.zhox-full-sheet-back {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zhox-full-sheet-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.zhox-full-sheet-spacer {
    width: 40px;
    flex-shrink: 0;
}

.zhox-full-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px max(28px, env(safe-area-inset-bottom));
}

.zhox-full-sheet-body label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin: 14px 0 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.zhox-full-sheet-body .sub-sheet-ok {
    margin-top: 24px;
}

.perfil-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #070b14;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
}

/* Bottom nav — 5 itens */
.bottom-nav--5 {
    padding: 12px 6px calc(12px + env(safe-area-inset-bottom, 0));
}

.bottom-nav--5 .nav-item {
    font-size: 24px;
    min-width: 0;
    flex: 1;
    gap: 3px;
}

.bottom-nav--5 .nav-item i {
    font-size: 24px;
}

.bottom-nav--labeled.bottom-nav--5 .nav-item {
    font-size: 11px;
    gap: 4px;
}

.bottom-nav--labeled.bottom-nav--5 .nav-item i {
    font-size: 24px;
}

.bottom-nav--labeled.bottom-nav--5 .nav-item span {
    font-size: 10px;
}

.perfil-menu-item[href*="voucher"] .perfil-menu-ico {
    color: #e8c547;
}

/* Página voucher */
.voucher-app {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 11, 20, 0.42) 0%, rgba(7, 11, 20, 0.82) 54%, #0a0e1a 100%),
        url('/assets/img/banner.png') center top / cover no-repeat,
        #0a0e1a;
    min-height: 100vh;
    padding-bottom: 88px;
}

.voucher-app::before,
.voucher-app::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

.voucher-app::before {
    top: 86px;
    right: -90px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(0, 170, 228, 0.34) 0%, transparent 68%);
    animation: voucherGlowDrift 7s ease-in-out infinite alternate;
}

.voucher-app::after {
    left: -80px;
    bottom: 80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(232, 197, 71, 0.22) 0%, transparent 70%);
    animation: voucherGlowDrift 8s ease-in-out infinite alternate-reverse;
}

.voucher-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(10, 14, 26, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 20;
}

.voucher-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.voucher-topbar-title {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: #f8fafc;
}

.voucher-topbar .header-icons {
    min-width: 42px;
    justify-content: flex-end;
}

.voucher-topbar .header-icons .icon-btn {
    font-size: 24px;
    width: 42px;
    height: 42px;
}

.voucher-main {
    position: relative;
    z-index: 1;
    padding: 14px 12px 24px;
    max-width: 480px;
    margin: 0 auto;
}

.voucher-hero {
    position: relative;
    text-align: center;
    padding: 28px 16px 24px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(0, 170, 228, 0.18) 0%, rgba(10, 14, 26, 0.9) 55%);
    border: 1px solid rgba(0, 170, 228, 0.25);
    overflow: hidden;
}

.voucher-hero.hidden {
    display: none;
}

.voucher-hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 170, 228, 0.45) 0%, transparent 70%);
    pointer-events: none;
}

.voucher-hero-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #e8c547;
    background: rgba(232, 197, 71, 0.18);
    box-shadow: 0 0 24px rgba(232, 197, 71, 0.4);
}

.voucher-hero-title {
    position: relative;
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.voucher-hero-lead {
    position: relative;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.85);
}

.voucher-card {
    background: rgba(18, 24, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.voucher-card.hidden {
    display: none;
}

.voucher-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.82);
    margin-bottom: 8px;
}

.voucher-redeem-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 8px;
    align-items: stretch;
}

.voucher-input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.voucher-input {
    flex: 1;
    min-width: 0;
    padding: 12px 13px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 7px;
    border: 1px solid rgba(0, 170, 228, 0.35);
    background: #070b14;
    color: #fff;
}

.voucher-input:focus {
    outline: none;
    border-color: #00aae4;
    box-shadow: 0 0 0 3px rgba(0, 170, 228, 0.2);
}

.voucher-paste {
    width: 44px;
    flex-shrink: 0;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #00aae4;
    font-size: 18px;
    cursor: pointer;
}

.voucher-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 13px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, #00aae4 0%, #0284c7 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 170, 228, 0.35);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.voucher-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(0, 170, 228, 0.42);
}

.voucher-submit.is-loading {
    animation: voucherPulse 900ms ease-in-out infinite;
}

.voucher-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.voucher-submit--ghost {
    background: transparent;
    border: 1px solid rgba(0, 170, 228, 0.5);
    box-shadow: none;
    color: #38bdf8;
    margin-bottom: 12px;
}

.voucher-submit i {
    font-size: 22px;
}

.voucher-tips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 2px;
}

.voucher-tips.hidden {
    display: none;
}

.voucher-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.74);
}

.voucher-tips li i {
    color: #00aae4;
    margin-top: 2px;
}

.voucher-success {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 34px 18px 24px;
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.22) 0%, rgba(18, 24, 42, 0.82) 48%);
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    animation: voucherSuccessIn 520ms cubic-bezier(.2, .9, .2, 1.1) both;
}

.voucher-success.hidden {
    display: none;
}

.voucher-success-icon {
    font-size: 56px;
    color: #22c55e;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.5));
    animation: voucherCheckPop 760ms cubic-bezier(.2, .9, .2, 1.25) both;
}

.voucher-success--gold {
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 197, 71, 0.36) 0%, transparent 46%),
        linear-gradient(160deg, rgba(232, 197, 71, 0.2) 0%, rgba(18, 24, 42, 0.86) 52%);
    border-color: rgba(232, 197, 71, 0.58);
    box-shadow: 0 20px 56px rgba(232, 197, 71, 0.18), 0 18px 44px rgba(0, 0, 0, 0.34);
}

.voucher-success--gold .voucher-success-icon {
    color: #e8c547;
    filter: drop-shadow(0 0 18px rgba(232, 197, 71, 0.7));
    animation: voucherGoldPop 900ms cubic-bezier(.2, .9, .2, 1.25) both;
}

.voucher-success--gold .voucher-success-amount {
    color: #f8d86a;
    text-shadow: 0 0 18px rgba(232, 197, 71, 0.35);
}

.voucher-success h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #fff;
}

.voucher-success-amount {
    font-size: 28px;
    font-weight: 800;
    color: #4ade80;
    margin: 0 0 8px;
}

.voucher-success-bal {
    margin: 0 0 20px;
    font-size: 14px;
}

.voucher-link-wallet {
    display: inline-block;
    color: #00aae4;
    font-weight: 600;
    font-size: 14px;
}

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

.voucher-burst span {
    --spin: 0deg;
    position: absolute;
    left: 50%;
    top: 42px;
    width: 8px;
    height: 18px;
    border-radius: 2px;
    background: #e8c547;
    opacity: 0;
    transform-origin: center 92px;
    transform: rotate(var(--spin));
    animation: voucherConfetti 920ms ease-out both;
}

.voucher-burst span:nth-child(2) { --spin: 58deg; background: #38bdf8; animation-delay: 40ms; }
.voucher-burst span:nth-child(3) { --spin: 116deg; background: #22c55e; animation-delay: 80ms; }
.voucher-burst span:nth-child(4) { --spin: 174deg; background: #f97316; animation-delay: 120ms; }
.voucher-burst span:nth-child(5) { --spin: 232deg; background: #a78bfa; animation-delay: 160ms; }
.voucher-burst span:nth-child(6) { --spin: 290deg; background: #f43f5e; animation-delay: 200ms; }

.voucher-success--gold .voucher-burst span {
    width: 10px;
    height: 22px;
    background: linear-gradient(180deg, #fff4a8, #e8c547);
    box-shadow: 0 0 14px rgba(232, 197, 71, 0.5);
    animation-name: voucherGoldConfetti;
}

.voucher-success--gold .voucher-burst span:nth-child(2),
.voucher-success--gold .voucher-burst span:nth-child(4),
.voucher-success--gold .voucher-burst span:nth-child(6) {
    background: linear-gradient(180deg, #38bdf8, #e8c547);
}

@keyframes voucherGlowDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-18px, 22px, 0) scale(1.08); }
}

@keyframes voucherPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 8px 24px rgba(0, 170, 228, 0.35); }
    50% { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0, 170, 228, 0.5); }
}

@keyframes voucherSuccessIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes voucherCheckPop {
    0% { opacity: 0; transform: scale(0.35) rotate(-18deg); }
    58% { opacity: 1; transform: scale(1.14) rotate(4deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes voucherGoldPop {
    0% { opacity: 0; transform: scale(0.28) rotate(-22deg); }
    45% { opacity: 1; transform: scale(1.18) rotate(8deg); }
    70% { transform: scale(0.96) rotate(-4deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes voucherConfetti {
    0% { opacity: 0; transform: rotate(var(--spin)) translateY(0) scale(0.4); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--spin)) translateY(-86px) scale(1); }
}

@keyframes voucherGoldConfetti {
    0% { opacity: 0; transform: rotate(var(--spin)) translateY(0) scale(0.35); }
    16% { opacity: 1; }
    62% { opacity: 1; transform: rotate(calc(var(--spin) + 18deg)) translateY(-78px) scale(1.12); }
    100% { opacity: 0; transform: rotate(calc(var(--spin) + 34deg)) translateY(-118px) scale(0.7); }
}

@media (max-width: 390px) {
    .voucher-redeem-row {
        grid-template-columns: minmax(0, 1fr) 104px;
    }

    .voucher-submit-text {
        display: none;
    }
}

/* Barra instalar PWA */
.pwa-install-bar {
    position: fixed;
    left: 50%;
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
    transform: translateX(-50%);
    z-index: 12000;
    width: calc(100% - 24px);
    max-width: 456px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #12182a 0%, #0a0e1a 100%);
    border: 1px solid rgba(0, 170, 228, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    animation: pwa-install-in 0.35s ease;
}

@keyframes pwa-install-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.pwa-install-bar__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
}

.pwa-install-bar__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-install-bar__text strong {
    font-size: 14px;
    color: #f8fafc;
}

.pwa-install-bar__text span {
    font-size: 11px;
    color: #94a3b8;
}

.pwa-install-bar__btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: #00aae4;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pwa-install-bar__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:has(.pwa-install-bar) .bottom-nav {
    /* espaço visual quando a barra está visível */
}

@media (display-mode: standalone) {
    .pwa-install-bar {
        display: none !important;
    }
}

/* Modal boas-vindas / grupo oficial */
.zhox-welcome {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.zhox-welcome.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

body.zhox-welcome-open {
    overflow: hidden;
}

.zhox-welcome-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
}

.zhox-welcome-panel {
    position: relative;
    width: 100%;
    max-width: 350px;
    min-height: 360px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(7, 11, 18, 0.99) 100%);
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-radius: 10px;
    padding: 18px 18px 20px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 170, 228, 0.15), 0 24px 64px rgba(0, 0, 0, 0.62);
    transform: scale(0.94);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.zhox-welcome.is-open .zhox-welcome-panel {
    transform: scale(1);
}

.zhox-welcome-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 170, 228, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.zhox-welcome-market {
    position: relative;
    height: 78px;
    margin: -2px -4px 12px;
    padding-right: 44px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background:
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.07) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, #08111f 0%, #070b12 100%);
    overflow: hidden;
    z-index: 1;
}

.zhox-welcome-market::after {
    content: 'LIVE MARKET';
    position: absolute;
    top: 8px;
    left: 10px;
    color: #38bdf8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.zhox-welcome-candle {
    position: absolute;
    bottom: 14px;
    width: 10px;
    height: 34px;
    border-radius: 2px;
}

.zhox-welcome-candle::before {
    content: '';
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: currentColor;
}

.zhox-welcome-candle:nth-child(1) {
    left: 54%;
}

.zhox-welcome-candle:nth-child(2) {
    left: 66%;
    height: 28px;
}

.zhox-welcome-candle:nth-child(3) {
    left: 72%;
}

.zhox-welcome-candle--up {
    color: #16c784;
    background: #16c784;
}

.zhox-welcome-candle--down {
    color: #ef4444;
    background: #ef4444;
}

.zhox-welcome-candle.is-tall {
    height: 46px;
}

.zhox-welcome-line {
    position: absolute;
    left: 10px;
    right: 12px;
    bottom: 22px;
    height: 34px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.75);
    border-radius: 60% 45% 40% 30%;
    transform: rotate(-8deg);
}

.zhox-welcome-badge {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 170, 228, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00aae4;
    background: rgba(0, 170, 228, 0.1);
}

.zhox-welcome-title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.zhox-welcome-lead {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
}

.zhox-welcome-lead strong {
    color: #4ade80;
}

.zhox-welcome-code {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(232, 197, 71, 0.5);
    background: rgba(232, 197, 71, 0.12);
    color: #e8c547;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.zhox-welcome-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0 12px;
}

.zhox-welcome-features span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.045);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.zhox-welcome-features i {
    color: #16c784;
    font-size: 17px;
}

.zhox-welcome-sub {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #94a3b8;
}

.zhox-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zhox-welcome-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
}

.zhox-welcome-btn--primary {
    background: linear-gradient(135deg, #00aae4 0%, #0284c7 100%);
    color: #fff;
    border-color: #00aae4;
}

.zhox-welcome-btn--ghost {
    background: transparent;
    color: #38bdf8;
    border-color: rgba(0, 170, 228, 0.45);
}

.zhox-welcome-dontshow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}

.zhox-welcome-dontshow input {
    width: 16px;
    height: 16px;
    accent-color: #00aae4;
    cursor: pointer;
}

@media (min-width: 980px) {
    .trading-body {
        overflow: hidden;
        background: #050913;
    }

    .trading-page.app,
    .trading-body .trading-page.app {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-rows: 56px minmax(0, 1fr);
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        padding-bottom: 0;
        overflow: hidden;
        background: #050913;
    }

    .trading-header {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 56px;
        padding: 8px 18px;
        background: #080d18;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .trading-header-back {
        width: 42px;
        height: 42px;
        background: rgba(15, 23, 42, 0.92);
        border: 1px solid rgba(148, 163, 184, 0.18);
    }

    .trading-header-balance {
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        color: #e5f4ff;
        font-size: 13px;
        font-weight: 800;
    }

    .trading-chart-zone {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: #050913;
        border-right: 1px dashed rgba(148, 163, 184, 0.2);
        border-bottom: none;
    }

    .chart-container {
        flex: 1 1 calc(100% - 190px);
        min-height: 0;
        max-height: calc(100% - 190px);
        height: auto;
        margin: 0;
        background:
            linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
            #050913;
        background-size: 112px 112px, 112px 112px, auto;
    }

    .chart-topbar {
        top: 14px;
        left: 18px;
        right: 18px;
    }

    .current-price {
        max-width: 180px;
    }

    .market-title,
    .market-spread {
        background: rgba(8, 13, 24, 0.82);
        border-color: rgba(148, 163, 184, 0.2);
    }

    .trading-chart-zone .active-positions {
        display: block;
        flex: 0 0 190px;
        max-height: 190px;
        padding: 12px 18px 14px;
        overflow-y: auto;
        background: #080d18;
        border-top: 1px solid rgba(148, 163, 184, 0.12);
    }

    .trading-chart-zone .active-positions.is-empty {
        display: block;
        flex-basis: 72px;
        max-height: 72px;
    }

    .trading-chart-zone .active-positions h3 {
        margin: 0 0 10px;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .trading-chart-zone .positions-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 10px;
    }

    .trading-chart-zone .position-item {
        align-items: stretch;
        min-height: 116px;
        padding: 12px 14px;
    }

    .trading-chart-zone .position-details {
        margin-bottom: 8px;
    }

    .position-details-full {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px 10px;
    }

    .position-details-full span {
        min-width: 0;
        color: #e5f4ff;
        font-size: 11px;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .position-details-full b {
        display: block;
        margin-bottom: 2px;
        color: #718096;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .trading-chart-zone .position-live {
        min-width: 132px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .trading-chart-zone .position-live button {
        min-height: 34px;
        margin-top: 8px;
    }

    .trading-controls {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        height: 100%;
        padding: 20px 18px;
        overflow-y: auto;
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(5, 9, 19, 0.98)),
            #080d18;
        border-top: none;
        border-left: 1px solid rgba(56, 189, 248, 0.12);
        box-shadow: -22px 0 44px rgba(0, 0, 0, 0.22);
    }

    .trading-controls .trading-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0;
        margin: 4px 0 20px;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .trading-controls .trade-btn {
        min-height: 52px;
        border-radius: 7px;
        font-size: 14px;
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
    }

    .trading-controls .buy-btn {
        background: linear-gradient(180deg, #20d495 0%, #0cad73 100%);
        border: 1px solid rgba(34, 197, 148, 0.42);
        color: #ffffff;
    }

    .trading-controls .sell-btn {
        background: linear-gradient(180deg, #ff5f67 0%, #d93b43 100%);
        border: 1px solid rgba(248, 113, 113, 0.44);
        color: #ffffff;
    }

    .trading-controls .sell-btn:hover {
        color: #ffffff;
        background: linear-gradient(180deg, #ff6b72 0%, #e1434b 100%);
    }

    .trade-panel-top {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
        padding: 14px;
        border: 1px solid rgba(56, 189, 248, 0.13);
        border-radius: 8px;
        background: rgba(8, 14, 26, 0.56);
    }

    .trade-risk-grid,
    .trade-risk-preview {
        grid-template-columns: 1fr;
    }

    .expiration-toggle,
    .amount-value-wrap,
    .trade-risk-grid input {
        min-height: 56px;
        border-color: rgba(56, 189, 248, 0.24);
        background: rgba(11, 18, 32, 0.92);
    }

    .amount-step-btn {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(148, 163, 184, 0.2);
    }

    .trade-risk-grid {
        padding: 14px;
        border: 1px solid rgba(56, 189, 248, 0.13);
        border-radius: 8px;
        background: rgba(8, 14, 26, 0.42);
    }

    .trade-cost-row {
        align-items: stretch;
        flex-direction: column;
        margin-top: 14px;
    }

    .trader-status-btn {
        justify-content: center;
        min-height: 38px;
    }

    .trading-transactions-link {
        position: static;
        align-self: flex-start;
        z-index: 6;
        width: auto;
        min-width: 176px;
        margin: 10px 18px 14px;
        background: rgba(8, 13, 24, 0.84);
        backdrop-filter: blur(10px);
    }

    .trading-quick-links {
        display: flex;
        gap: 10px;
        margin: 10px 18px 14px;
    }

    .trading-quick-links .trading-transactions-link {
        margin: 0;
    }

    .trading-body .pwa-install-bar {
        display: none;
    }
}

.live-traders-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 197, 148, 0.12), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.1), transparent 34%),
        #050913;
}

.trading-header-balance {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.live-traders-wrap {
    padding: 16px;
}

.ranking-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    animation: rankingIntroGone 2.65s ease forwards;
}

.ranking-intro-fire {
    position: absolute;
    width: min(62vw, 440px);
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.95) 0 5%, transparent 6%),
        radial-gradient(circle at 44% 48%, rgba(255, 72, 0, 0.95) 0 12%, transparent 34%),
        radial-gradient(circle at 62% 58%, rgba(239, 68, 68, 0.92) 0 16%, transparent 38%),
        conic-gradient(from 220deg, transparent, rgba(255, 34, 0, 0.9), rgba(251, 191, 36, 0.75), rgba(239, 68, 68, 0.95), transparent);
    filter: blur(10px) saturate(1.3);
    opacity: 0;
    transform: scale(0.08) rotate(-18deg);
    animation: rankingIntroFire 2.15s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.ranking-intro-badge {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(74vw, 360px);
    min-height: 168px;
    place-items: center;
    padding: 24px 22px;
    border: 1px solid rgba(250, 204, 21, 0.58);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(250, 204, 21, 0.24), rgba(15, 23, 42, 0.9) 40%, rgba(8, 14, 26, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 45%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 28px rgba(239, 68, 68, 0.48),
        0 24px 44px rgba(0, 0, 0, 0.46);
    opacity: 0;
    animation: rankingIntroBadge 2.5s cubic-bezier(0.16, 0.92, 0.18, 1) forwards;
}

.ranking-intro-badge i {
    color: #facc15;
    font-size: 48px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(250, 204, 21, 0.75);
}

.ranking-intro-badge span,
.ranking-intro-badge strong {
    color: #fff7ed;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28), 0 0 18px rgba(250, 204, 21, 0.36);
}

.ranking-intro-badge span {
    font-size: 44px;
    font-weight: 950;
}

.ranking-intro-badge strong {
    color: #fde68a;
    font-size: 18px;
    font-weight: 950;
}

.ranking-intro-sparks {
    position: absolute;
    inset: 50%;
    z-index: 3;
}

.ranking-intro-sparks span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #fef3c7;
    box-shadow:
        0 0 10px #fef3c7,
        0 0 22px rgba(239, 68, 68, 0.9),
        0 0 34px rgba(251, 191, 36, 0.65);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
    animation: rankingIntroSpark 1.35s ease-out forwards;
    animation-delay: calc(820ms + var(--d));
}

@keyframes rankingIntroBadge {
    0% {
        opacity: 0;
        transform: scale(0.05) translateY(28px) rotate(-8deg);
    }
    18% {
        opacity: 1;
        transform: scale(1.08) translateY(0) rotate(1deg);
    }
    30% {
        opacity: 1;
        transform: scale(0.98) rotate(0);
    }
    74% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.18) translateY(-20px);
    }
}

@keyframes rankingIntroFire {
    0% {
        opacity: 0;
        transform: scale(0.08) rotate(-18deg);
    }
    24% {
        opacity: 0.95;
        transform: scale(1.02) rotate(8deg);
    }
    68% {
        opacity: 0.78;
        transform: scale(1.1) rotate(18deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.42) rotate(32deg);
    }
}

@keyframes rankingIntroSpark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.1);
    }
    16% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.05);
    }
}

@keyframes rankingIntroGone {
    0%,
    92% {
        visibility: visible;
    }
    100% {
        visibility: hidden;
    }
}

.top-rank-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
    animation: topRankModalFade 180ms ease both;
}

.top-rank-modal.closing {
    animation: topRankModalFade 180ms ease reverse both;
}

.top-rank-modal-card {
    position: relative;
    width: min(100%, 430px);
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% -15%, rgba(250, 204, 21, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(5, 9, 19, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    color: #f8fafc;
    text-align: center;
    animation: topRankModalPop 220ms cubic-bezier(0.2, 0.9, 0.2, 1.15) both;
}

.top-rank-modal-card::before {
    content: "";
    position: absolute;
    inset: -80px auto auto 50%;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    filter: blur(28px);
    transform: translateX(-50%);
}

.top-rank-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
}

.top-rank-modal-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    place-items: center;
    border: 1px solid rgba(250, 204, 21, 0.42);
    border-radius: 16px;
    background: rgba(250, 204, 21, 0.13);
    color: #facc15;
    font-size: 32px;
    box-shadow: 0 0 28px rgba(250, 204, 21, 0.18);
}

.top-rank-modal-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(22, 199, 132, 0.13);
    color: #86efac;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.top-rank-modal-card h2 {
    position: relative;
    z-index: 1;
    margin: 12px 0 8px;
    font-size: 23px;
    line-height: 1.08;
}

.top-rank-modal-card p {
    position: relative;
    z-index: 1;
    color: #aab9ce;
    font-size: 13px;
    line-height: 1.45;
}

.top-rank-modal-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 14px;
}

.top-rank-modal-stats span {
    padding: 11px 8px;
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 9px;
    background: rgba(8, 14, 26, 0.64);
    color: #7f93ad;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.top-rank-modal-stats b {
    display: block;
    margin-bottom: 3px;
    color: #e5f4ff;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.top-rank-modal-check {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 14px;
    color: #9fb1c8;
    font-size: 12px;
    font-weight: 800;
}

.top-rank-modal-check input {
    width: 16px;
    height: 16px;
    accent-color: #16c784;
}

.top-rank-modal-action {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #16c784, #0ea5e9);
    color: #fff;
    font-size: 14px;
    font-weight: 950;
}

@keyframes topRankModalFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes topRankModalPop {
    from {
        transform: translateY(18px) scale(0.96);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

.live-traders-campaign {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 10px 0 18px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(22, 199, 132, 0.2), rgba(14, 165, 233, 0.11) 48%, rgba(15, 23, 42, 0.94)),
        rgba(8, 14, 26, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.live-traders-campaign::after {
    content: "R$";
    position: absolute;
    right: -10px;
    bottom: -24px;
    color: rgba(255, 255, 255, 0.045);
    font-size: 66px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.live-traders-campaign-copy,
.live-traders-campaign-rule {
    position: relative;
    z-index: 1;
}

.live-traders-campaign-copy span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(250, 204, 21, 0.16);
    color: #fde68a;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.live-traders-campaign-copy h2 {
    margin: 12px 0 7px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

.live-traders-campaign-copy p {
    max-width: 680px;
    color: #b9c8dc;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 750;
}

.live-traders-campaign-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 8px;
    background: rgba(2, 8, 23, 0.35);
    color: #e5f4ff;
}

.live-traders-campaign-rule i {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: rgba(22, 199, 132, 0.16);
    color: #86efac;
    font-size: 16px;
}

.live-traders-campaign-rule strong {
    font-size: 12px;
    line-height: 1.35;
}

.live-traders-hero {
    padding: 16px 0 18px;
}

.live-traders-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(22, 199, 132, 0.14);
    color: #86efac;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.live-traders-hero h1 {
    margin: 12px 0 6px;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1.05;
}

.live-traders-hero p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.45;
}

.live-traders-list {
    display: grid;
    gap: 10px;
}

.live-trader-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
    border-radius: 8px;
    background: rgba(8, 14, 26, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.live-trader-card.buy {
    border-left: 3px solid #16c784;
}

.live-trader-card.sell {
    border-left: 3px solid #ef4444;
}

.live-trader-rank {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    gap: 1px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: #e5f4ff;
    font-weight: 900;
}

.live-trader-rank i {
    font-size: 17px;
    line-height: 1;
}

.live-trader-rank span {
    font-size: 10px;
    line-height: 1;
}

.live-trader-rank.top-1 {
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.28), rgba(15, 23, 42, 0.92));
    border-color: rgba(250, 204, 21, 0.58);
    color: #fde68a;
}

.live-trader-rank.top-2 {
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.24), rgba(15, 23, 42, 0.92));
    border-color: rgba(203, 213, 225, 0.5);
    color: #e2e8f0;
}

.live-trader-rank.top-3 {
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.24), rgba(15, 23, 42, 0.92));
    border-color: rgba(251, 146, 60, 0.52);
    color: #fed7aa;
}

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

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

.live-trader-head strong {
    min-width: 0;
    color: #f8fafc;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-trader-head span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.live-trader-head span.buy {
    background: rgba(22, 199, 132, 0.14);
    color: #86efac;
}

.live-trader-head span.sell {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

.live-trader-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 12px 0 10px;
}

.live-trader-stats span {
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    color: #8da3bd;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.live-trader-stats b {
    display: block;
    margin-bottom: 2px;
    color: #e5f4ff;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.live-trader-sides {
    display: flex;
    gap: 5px;
    height: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.12);
}

.live-trader-sides span {
    display: block;
    width: var(--w);
    border-radius: inherit;
}

.live-trader-sides .buy {
    background: #16c784;
}

.live-trader-sides .sell {
    background: #ef4444;
}

.live-trader-card small {
    display: block;
    margin-top: 7px;
    color: #718096;
    font-size: 9px;
    font-weight: 800;
}

@media (min-width: 980px) {
    .live-traders-page,
    .trading-body .live-traders-page {
        display: flex;
        flex-direction: column;
        max-width: none;
        min-height: 100vh;
        height: auto;
        max-height: none;
        padding-bottom: 0;
        overflow: visible;
    }

    .live-traders-wrap {
        max-width: 1180px;
        margin: 0 auto;
        padding: 28px 28px 42px;
    }

    .live-traders-campaign {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
        align-items: center;
        margin: 0 0 22px;
        padding: 22px 24px;
    }

    .live-traders-campaign::after {
        right: 318px;
        bottom: -38px;
        font-size: 112px;
    }

    .live-traders-campaign-copy h2 {
        font-size: 40px;
    }

    .live-traders-campaign-copy p {
        font-size: 13px;
    }

    .live-traders-campaign-rule {
        min-height: 92px;
        padding: 16px;
    }

    .live-traders-campaign-rule strong {
        font-size: 13px;
    }

    .live-traders-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 18px;
    }

    .live-traders-hero h1 {
        font-size: 42px;
    }

    .live-traders-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .live-trader-card:first-child {
        grid-column: 1 / -1;
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 18px;
        background:
            linear-gradient(135deg, rgba(22, 199, 132, 0.12), rgba(8, 14, 26, 0.9)),
            rgba(8, 14, 26, 0.9);
    }

    .live-trader-card:first-child .live-trader-rank {
        width: 58px;
        height: 58px;
    }

    .live-trader-card:first-child .live-trader-rank i {
        font-size: 24px;
    }

    .live-trader-card:first-child .live-trader-rank span {
        font-size: 12px;
    }
}
