/* Variáveis de Tema (Branco e Laranja) */
:root {
    --bg-body: #F4F6F8; /* Fundo suave */
    --bg-card: #FFFFFF;
    --primary-color: #0047AB; /* Azul mais escuro Brasil Bitcoin */
    --primary-hover: #003380;
    --primary-light: rgba(0, 71, 171, 0.1);
    
    --text-main: #0F172A; /* Escuro profundo */
    --text-muted: #64748B; /* Cinza médio */
    
    --border-color: #E2E8F0;
    
    --success-color: #10B981;
    --danger-color: #EF4444;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-dropdown: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* Tema Noturno */
body.dark-theme {
    --bg-body: #010A15; /* Azul marinho muito escuro */
    --bg-card: #041222; /* Fundo dos cards ligeiramente mais claro */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --border-color: var(--text-main);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
    --shadow-dropdown: 0 20px 25px -5px rgba(0,0,0,0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    padding: 16px;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.logo-icon {
    font-size: 1.5rem;
}
.logo-text .highlight {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 24px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
}
.nav-item:hover, .nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}
.nav-item i {
    font-size: 1.1rem;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: var(--bg-body);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.2s;
}
.icon-btn:hover {
    background: var(--border-color);
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-body);
    padding: 6px 12px 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.profile-btn:hover {
    background: var(--border-color);
}
.profile-avatar {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* LAYOUT PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Mantém a proporção */
    gap: 16px; /* Gap menor para ficarem mais próximas */
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* CARD PATRIMÔNIO */
.card-patrimonio {
    padding: 24px; /* Padding menor para ficar 'mais fino' na altura */
}
.patrimonio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.badges {
    display: flex;
    gap: 8px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 50px;
}
.badge {
    padding: 2px 8px; /* Mais fino */
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    cursor: pointer;
}
.badge i {
    font-size: 1rem;
}
.badge-active {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}
.badge-primary {
    background: var(--primary-color);
    color: white;
}

.patrimonio-valor {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.patrimonio-variacao {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 24px;
}
.patrimonio-variacao.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s;
}
.link-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.card-actions {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 2;
}
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}
.btn-primary:hover {
    background: var(--primary-hover);
}
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-light);
}

/* Efeito de luz laranja no card */
.light-effect {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(255,107,0,0.4) 0%, rgba(255,107,0,0) 70%);
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
}

/* BANNER */
.card-banner {
    background: linear-gradient(135deg, #0047AB 0%, #002255 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 40px;
}
.banner-content h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
}
.banner-content p {
    opacity: 0.9;
    font-weight: 500;
}
.banner-img {
    height: 250px;
    object-fit: contain;
    transform: translateY(10px);
}

/* SEARCH BAR */
.search-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 8px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
}
.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--bg-body);
    border-radius: 50px;
    padding: 4px 8px;
}
.search-icon-left {
    padding: 0 12px;
}
.ai-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #00D4FF);
    box-shadow: 0 0 10px rgba(255,107,0,0.5);
}
.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
}
.search-bar input::placeholder {
    color: var(--text-muted);
}
.search-actions {
    display: flex;
    gap: 8px;
}

/* LISTAS INFERIORES */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.list-card {
    padding: 24px;
}
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.list-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-main);
}
.select-filter {
    border: none;
    background: var(--bg-body);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}
.list-item:hover {
    background: #fafafa;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
}
.list-item:last-child {
    border-bottom: none;
}
.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 16px;
}
.bg-blue { background: var(--primary-color); }
.bg-btc { background: #F7931A; }
.bg-green { background: #10B981; }
.bg-teal { background: #14B8A6; }
.bg-blue { background: #3B82F6; }

.item-info {
    flex: 1;
}
.item-info h4 {
    font-size: 1rem;
    color: var(--text-main);
}
.item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.item-price {
    text-align: right;
}
.item-price h4 {
    font-size: 1rem;
}
.positive {
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 600;
}

/* MODAIS DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: 70px; /* Será recalculado no JS */
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dropdown);
    padding: 8px;
    width: 320px;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
}
.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: var(--bg-body);
}
.dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
}
.dropdown-text h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
}
.badge-em-breve, .badge-beta {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #DBEAFE;
    color: #1D4ED8;
    font-weight: 700;
    text-transform: uppercase;
}

.dropdown-grid {
    width: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.dropdown-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 99;
    display: none;
}
.overlay.show {
    display: block;
}

/* Responsividade Básica */
@media (max-width: 992px) {
    .top-section, .bottom-section {
        grid-template-columns: 1fr;
    }
    .card-banner {
        padding: 40px;
        flex-direction: column-reverse;
        text-align: center;
    }
    .banner-img {
        transform: none;
        margin-bottom: 20px;
}

/* ---------------------------------------------------
   ESTILOS DA TELA DE NEGOCIAÇÃO (TRADE)
   --------------------------------------------------- */
.trade-container {
    max-width: 1400px;
}

.trade-header {
    margin-bottom: 24px;
}
.trade-search {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.trade-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-muted);
}
.ai-icon-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #FF3366);
}

.trade-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Lado Esquerdo */
.pair-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 20px 24px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: 1px solid var(--border-color);
}
.pair-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pair-title h2 {
    font-size: 1.2rem;
    color: var(--text-main);
}
.pair-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.pair-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}
.pair-price {
    text-align: right;
}
.pair-price h2 {
    font-size: 1.2rem;
}

.chart-container {
    background: var(--bg-card);
    height: 450px;
    padding: 16px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.stats-card, .history-card {
    padding: 24px;
    margin-bottom: 24px;
}
.stats-card h3, .history-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.stat-box h4 {
    font-size: 1.1rem;
}
.range-bar {
    background: #E2E8F0;
    height: 6px;
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}
.range-fill {
    background: var(--success-color);
    height: 100%;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}
.history-table th {
    text-align: left;
    padding: 12px 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}
.history-table td {
    padding: 16px 8px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}
.history-table tr:last-child td {
    border-bottom: none;
}
.badge-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-status.concluido {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* Lado Direito - Converter Widget */
.converter-widget {
    padding: 24px;
}
.converter-section {
    background: var(--bg-body);
    border-radius: var(--border-radius-md);
    padding: 16px;
}
.converter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.converter-input-group {
    display: flex;
    gap: 16px;
    align-items: center;
}
.currency-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px 8px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}
.converter-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    text-align: right;
    outline: none;
    color: var(--text-main);
    width: 100%;
}
.percentage-slider {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    gap: 8px;
}
.pct-btn {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 0;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.pct-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.swap-container {
    display: flex;
    justify-content: center;
    margin: -12px 0;
    position: relative;
    z-index: 2;
}
.swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    transition: all 0.2s;
}
.swap-btn:hover {
    transform: rotate(180deg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.converter-footer {
    margin-top: 24px;
}
.quote-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.btn-block {
    width: 100%;
}

@media (max-width: 992px) {
    .trade-layout {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------
   NEGOCIAÇÃO AVANÇADA (EXCHANGE)
   --------------------------------------------------- */
.bg-gray {
    background-color: #F1F5F9;
}
.advanced-ticker-bar {
    background: var(--bg-card);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.adv-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}
.adv-pair h2 {
    font-size: 1.1rem;
    margin: 0;
}
.adv-ticker-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.adv-ticker-item .label {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.adv-ticker-item .value {
    font-weight: 600;
}
.score-badge {
    background: rgba(14, 165, 233, 0.1);
    color: #0EA5E9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.force-score {
    margin-left: auto;
}

.advanced-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    height: calc(100vh - 150px);
    background: #F1F5F9;
    padding: 16px;
    gap: 16px;
}

/* Coluna Comum */
.adv-col {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ORDERBOOK */
.orderbook-header {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}
.ob-filters button {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
}
.ob-filters button.active {
    background: rgba(0,0,0,0.05);
}
.ob-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}
.ob-table th {
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 12px;
    text-align: left;
}
.ob-table th.text-right, .ob-table td.text-right {
    text-align: right;
}
.ob-list {
    flex: 1;
    overflow-y: hidden; /* Simulado, num real seria scroll */
    font-size: 0.85rem;
    font-family: monospace;
}
.ob-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 12px;
    cursor: pointer;
    position: relative;
}
.ob-row:hover {
    background: rgba(0,0,0,0.02);
}
.ob-row .bg-fill {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}
.ob-row span {
    z-index: 1;
}
.ob-row.ask .price { color: var(--danger-color); }
.ob-row.ask .bg-fill { background-color: var(--danger-color); }
.ob-row.bid .price { color: var(--success-color); }
.ob-row.bid .bg-fill { background-color: var(--success-color); }

.ob-mid {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ob-mid h3 { margin:0; font-size: 1.2rem; }
.ob-mid .label { font-size: 0.75rem; color: var(--text-muted); }
.mid-spread { text-align: right; font-size: 0.85rem; }

/* CENTRAL: Gráfico e Boleta */
.adv-chart-panel {
    height: 55%;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.chart-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.chart-tabs button {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}
.chart-tabs button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.adv-order-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.order-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    align-items: center;
}
.order-tabs button {
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}
.order-tabs button.active {
    color: var(--text-main);
    border-bottom: 2px solid var(--text-main);
}
.maker-taker-fee {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-forms {
    display: flex;
    padding: 24px;
    gap: 32px;
    height: 100%;
}
.order-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: flex;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    align-items: center;
}
.form-row .label {
    width: 60px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    text-align: right;
    font-size: 0.95rem;
    outline: none;
    font-weight: 600;
}
.input-group .suffix {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}
.suffix-click {
    color: var(--primary-color) !important;
    cursor: pointer;
}
.steppers {
    display: flex;
    flex-direction: column;
}
.steppers button {
    background: transparent;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 2px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.slider-track {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}
.slider-thumb {
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
}

.form-check {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.balance-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
}
.balance-row strong {
    color: var(--text-main);
}

.btn-buy {
    background: var(--success-color);
}
.btn-buy:hover {
    background: #0ea171;
}
.btn-sell {
    background: var(--danger-color);
}
.btn-sell:hover {
    background: #db2748;
}

/* DIREITA: Pares e Trades */
.assets-panel {
    flex: 1;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
}
.assets-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}
.assets-table th {
    padding: 8px 16px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.assets-table td {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
.assets-table tr:hover {
    background: #F8FAFC;
}
.assets-table tr.active {
    background: rgba(249, 115, 22, 0.05);
}
.asset-name {
    display: flex;
    align-items: center;
    gap: 8px;
}
.asset-name .icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.recent-trades-panel {
    height: 35%;
    display: flex;
    flex-direction: column;
}
.recent-trades-panel h4 {
    padding: 12px 16px;
    margin: 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}
.recent-table {
    width: 100%;
    font-size: 0.8rem;
    font-family: monospace;
}
.recent-table th {
    padding: 8px 16px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
}
.recent-table td {
    padding: 4px 16px;
}

/* BOTTOM PANEL */
.adv-bottom-panel {
    background: var(--bg-card);
    margin: 0 16px 16px 16px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    min-height: 250px;
}
.bottom-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}
.bottom-tabs button {
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}
.bottom-tabs button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
.tab-options {
    margin-left: auto;
    padding-right: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.orders-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}
.orders-table th {
    text-align: left;
    padding: 12px 24px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}
.orders-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}
