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

.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: 18px;
    cursor: pointer;
    opacity: 0.8;
}

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-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 55s 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-value {
    color: #00aae4;
    font-weight: 700;
    font-size: 13px;
}

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

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

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

.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) */
.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(34, 197, 94, 0.12);
    border-color: #22c55e;
    color: #22c55e;
}

.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: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

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

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

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

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

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

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

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

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

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

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

.sub-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

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

.trader-card {
    background: rgba(30, 35, 48, 0.6);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.trader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00aae4, #0077b6);
}

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

.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: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center center;
    border: 2px solid rgba(0, 170, 228, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

.trader-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e5e7eb;
}

.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: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.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%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.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-top,
.auth-page .header-top {
    justify-content: flex-end;
}

.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-page {
    background: #0a0e1a;
}

.trading-controls {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.asset-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

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

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

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

.price-change.positive {
    color: #10b981;
}

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

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

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

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

.amount-input-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    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: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

#customAmount {
    grid-column: span 3;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 0;
    background: #0a0e1a;
    overflow: hidden;
    border-top: 1px solid rgba(0, 170, 228, 0.2);
    border-bottom: 1px solid rgba(0, 170, 228, 0.2);
}

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

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

.chart-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: pulse 1s infinite;
}

.chart-marker.buy {
    background: rgba(0, 170, 228, 0.3);
    border: 2px solid #00aae4;
    color: #00aae4;
}

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

@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(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid;
}

.position-item.buy {
    border-left-color: #00aae4;
}

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

.position-info {
    flex: 1;
}

.position-type {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.position-type.buy {
    color: #00aae4;
}

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

.position-details {
    font-size: 11px;
    color: #6b7280;
}

.position-timer {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
}

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

.position-result.win {
    color: #00aae4;
}

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

.trading-actions {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    display: flex;
    gap: 16px;
    padding: 0 16px;
    z-index: 50;
}

.trade-btn {
    flex: 1;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.trade-btn i {
    font-size: 24px;
}

.buy-btn {
    background: linear-gradient(135deg, #00aae4, #0077b6);
    color: #fff;
}

.sell-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.balance-mini {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.trade-notification {
    position: fixed;
    top: 80px;
    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;
}

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

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

.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: 18px;
}

.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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 14px;
    min-height: 50px;
    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: 12px;
    padding: 16px;
    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-switch {
    text-align: center;
    margin-top: 28px;
    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 {
    font-size: 13px;
    font-weight: 600;
    color: #00aae4;
    text-decoration: none;
}

.auth-header-link:hover {
    text-decoration: underline;
}

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

.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-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(34, 197, 94, 0.15);
    color: #4ade80;
}

.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-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,
.zhox-pay-modal {
    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-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: min(340px, 100%);
    max-height: min(92vh, 640px);
    overflow-y: auto;
    padding: 20px 18px 18px;
    border-radius: 20px;
    background: linear-gradient(165deg, #1a2332 0%, #0f172a 100%);
    border: 1px solid rgba(0, 170, 228, 0.3);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.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: 240px;
    height: 240px;
    max-width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    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: 12px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}