/* RESET & BASE file style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-darker: #0a0a0a;
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --bg-sidebar: #161616;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --border: #2a2a2a;
    --primary: #6c5ce7;
    --success: #00b894;
    --danger: #e17055;
    --warning: #fdcb6e;
}

body.dark {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: var(--bg-sidebar);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.logo-icon {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(108, 92, 231, 0.15);
    color: white;
}

.chain-selector h4 {
    padding: 0 20px 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.chains {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
}

.chain {
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
}

.chain.active {
    background: var(--primary);
    color: white;
}

.watchlist-empty {
    padding: 0 20px;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.user-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.user-section .connect-wallet {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* MAIN DASHBOARD AREA */
.dashboard-main {
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TOP BAR */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 8px 16px;
    width: 320px;
}

.search-container i {
    color: var(--text-muted);
    margin-right: 8px;
}

.search-container input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 1rem;
}

.top-tokens {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.get-app-btn {
    background: #ff9206;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* CHART LAYOUT */
.chart-layout {
    display: flex;
    flex: 1;
    height: 500px;
    padding: 20px;
    gap: 20px;
    min-height: 700px;
    overflow: hidden;
}

.center-canvas {
    flex: 1;
    background: var(--bg-card);
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    min-width: 0; /* Important for flexbox containment */
}

/* RIGHT PANEL - CONTAINMENT FIXES */
.right-panel {
    width: 320px;
    min-width: 320px;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: 0px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* RIGHT PANEL - TOKEN HEADER */
.token-header {
    padding: 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

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

.token-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.token-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-pool-btn {
    margin-top: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* TOKEN BANNER */
.token-banner {
    width: 100%;
    height: 120px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    margin: 12px 0;
    border-radius: 4px;
    overflow: hidden;
}

.token-banner img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

/* SOCIAL TABS */
.social-tabs-section {
    padding: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.social-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.social-tab {
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    flex: 1;
    min-width: calc(50% - 4px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-tab.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary);
}

.social-placeholder {
    padding: 8px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* STATS GRID - CONTAINMENT FIXES */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    width: 100%;
}

.stat-box {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* TIMEFRAMES */
.timeframes {
    padding: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeframe-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

/* PERFORMANCE METRICS - CONTAINMENT FIXES */
.performance-metrics {
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: 8px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
}

.metric-row span:first-child {
    color: color: #797979;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    margin-right: 8px;
}

.metric-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    text-align: right;
}

/* TRANSACTION STATS - CONTAINMENT FIXES */
.txn-stats {
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: 8px;
}

.txn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
}

.txn-row span:first-child {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    margin-right: 8px;
}

.txn-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    text-align: right;
}

/* VOLUME BARS - CONTAINMENT FIXES */
.volume-bars {
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: 8px;
}

.volume-labels,
.volume-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.volume-labels span, 
.volume-values span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: center;
}

.volume-bar-container {
    display: flex;
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.volume-bar.buy-bar {
    background: var(--success);
}

.volume-bar.sell-bar {
    background: var(--danger);
}

/* ACTION BUTTONS - CONTAINMENT FIXES */
.action-buttons {
    padding: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-watchlist,
.btn-alerts,
.btn-buy,
.btn-sell {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.btn-watchlist {
    background: var(--bg-secondary);
}

.btn-alerts {
    background: rgba(255,215,0,0.1);
    color: #ffd700;
}

.btn-buy {
    background: #ff9206;
    color: black;
}

.btn-sell {
    background: var(--danger);
    color: white;
}

/* === ADD LIQUIDITY SECTION === */

.range-controls-panel {
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: 0;
}

.range-controls-panel h3,
.range-controls-panel h4 {
    font-size: 0.95rem;
    margin: 12px 0 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.range-presets,
.asymmetric-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.range-presets button,
.asymmetric-buttons button {
    flex: 1;
    min-width: 80px;
    padding: 6px 10px;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.range-presets button:hover,
.asymmetric-buttons button:hover {
    background: rgba(108, 92, 231, 0.15);
    color: white;
}

.range-presets button.active {
    background: var(--primary);
    color: white;
}

.asymmetric-buttons button {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.asymmetric-buttons button:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.custom-range-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.custom-range-inputs label {
    flex: 1;
    min-width: 120px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
}

.custom-range-inputs input {
    width: 100%;
    padding: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.custom-range-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* "Create Position" Button */
#createPositionBtn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--success);
    color: black;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#createPositionBtn:hover {
    opacity: 0.9;
}

/* AD SECTION */
.ad-section {
    padding: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    text-align: center;
}

.ad-container {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
}

.ad-container img {
    width: 280px;
    height: auto;
    border-radius: 4px;
    max-width: 100%;
}

/* TABLE LAYOUT (for discovery/launches) */
.table-layout {
    padding: 20px;
    flex: 1;
}

/* DISCOVERY HEADER */
.discovery-header {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

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

.stat-box strong {
    color: white;
    font-weight: 600;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.time-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.time-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.time-btn.active,
.time-btn:hover {
    background: var(--primary);
    color: white;
}

.sort-options {
    display: flex;
    gap: 8px;
}

.sort-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.sort-btn:hover {
    background: rgba(108,92,231,0.2);
    color: white;
}

.rank-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.rank-filter i {
    margin: 0 4px;
}

.filter-btn, .settings-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-btn:hover, .settings-btn:hover {
    background: rgba(108,92,231,0.2);
    color: white;
}

/* NETWORK SELECTOR (for discovery top form) */
.network-selector {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.single-pool-lookup {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* BUTTONS */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    background: var(--primary);
    color: white;
    font-weight: 100;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* DEXSCREENER TABLE - EXACT MATCH TO IMAGE */
.table-container {
    overflow-x: auto;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-card);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.dexscreener-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 0.85rem;
    color: var(--text-secondary);
    table-layout: fixed;
}

.dexscreener-table th,
.dexscreener-table td {
    padding: 10px 8px;
    text-align: left;
    border: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 100;
}

.dexscreener-table th {
    background: #353535;
    color: var(--text-primary);
    font-weight: 100;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 10;
    border: 1px solid var(--border);
}

.dexscreener-table tr:hover {
    background: rgba(255,255,255,0.03);
}

/* TOKEN COLUMN */
.dexscreener-table .token-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 200px;
}

.dexscreener-table .token-cell img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.dexscreener-table .token-cell strong {
    color: white;
    font-weight: 100;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dexscreener-table .token-cell small {
    display: none;
}

.dexscreener-table .badge-trending {
    background: linear-gradient(135deg, #ff9206, #ff5e00);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

/* PRICE COLUMN */
.dexscreener-table .price-cell {
    color: white;
    font-weight: 100;
    font-size: 0.85rem;
    min-width: 100px;
    text-align: right;
}

/* AGE, TXNS, VOLUME, MAKERS */
.dexscreener-table td:nth-child(4),
.dexscreener-table td:nth-child(5),
.dexscreener-table td:nth-child(6),
.dexscreener-table td:nth-child(7) {
    min-width: 70px;
    text-align: center;
}

/* PERCENTAGE COLUMNS (5M, 1H, 6H, 24H) */
.dexscreener-table td:nth-child(8),
.dexscreener-table td:nth-child(9),
.dexscreener-table td:nth-child(10),
.dexscreener-table td:nth-child(11) {
    min-width: 70px;
    text-align: center;
    font-weight: 100;
}

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

.dexscreener-table .negative {
    color: var(--danger);
}

/* LIQUIDITY & MCAP */
.dexscreener-table td:nth-child(12),
.dexscreener-table td:nth-child(13) {
    min-width: 100px;
    text-align: right;
    font-weight: 100;
}

/* ACTIONS COLUMN (if present) */
.dexscreener-table td:last-child {
    min-width: 80px;
    text-align: center;
}

/* TAB NAVIGATION */
.tabs-navigation {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-weight: 100;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(108, 92, 231, 0.15);
    color: white;
}

.tab-btn.active {
    font-weight: 600;
}

/* TAB CONTENT */
.tab-content {
    margin-top: 16px;
}

/* ADDRESS CELL */
.address-cell {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ADDRESS GROUP STYLING - CONTAINMENT FIXES */
.address-group {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border);
}

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

.address-label {
    font-size: 0.85rem;
    color: #797979;
    min-width: 60px;
    white-space: nowrap;
    flex-shrink: 0;
}

.address-cell {
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--bg-secondary);
    color: white;
}

/* AD BANNER */
.ad-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 90;
}

.ad-banner img {
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ENHANCED FILTER BAR (NEW - does not affect table) */
.filter-bar-enhanced {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: lighter;
    white-space: nowrap;
}

.filter-group input,
.filter-group select {
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: lighter;
    min-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

#applyFilters,
#resetFilters {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 100;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

#applyFilters {
    background: var(--primary);
    color: white;
    border: none;
}

#resetFilters {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

#applyFilters:hover,
#resetFilters:hover {
    opacity: 0.9;
}

/* RANGE CONTROLS PANEL */
.range-controls-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.range-controls-panel h3,
.range-controls-panel h4 {
    font-size: 0.95rem;
    margin: 12px 0 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.range-presets,
.asymmetric-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.custom-range-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.custom-range-inputs label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.custom-range-inputs input {
    padding: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 0.85rem;
    width: 100px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* === TOP BAR LAYOUT === */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    gap: 20px;
    position: relative;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Centered ticker takes remaining space */
.ticker-feed {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    height: 32px;
    margin: 0 24px;
    position: relative;
}

.ticker-content {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-block;
    padding: 0 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 1px solid var(--border);
    line-height: 32px;
    white-space: nowrap;
}

.ticker-item:first-child {
    border-left: none;
}

.ticker-pair {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 6px;
    white-space: nowrap;
}

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

.ticker-change.negative {
    color: var(--danger);
}

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

/* === LAUNCHPAD STYLES === */

.launchpad-container {
    padding: 24px;
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
}

.launch-header h1 {
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin-bottom: 8px;
}

.launch-header .benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.btn.btn-token {
    width: 100%;
    padding: 16px;
    background: #6b5ce7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 100;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 24px;
}

.chain-selector-section h3 {
    text-align: center;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.chain-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.chain-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chain-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chain-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.token-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    gap: 24px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    white-space: nowrap;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.media-upload-section {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.upload-box {
    flex: 1;
}

.upload-box label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    white-space: nowrap;
}

.upload-area {
    position: relative;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.upload-area:hover {
    background: rgba(255,255,255,0.05);
}

.upload-area i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.upload-area span {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.links-section h4 {
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.link-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.link-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-btn:hover {
    background: rgba(108,92,231,0.15);
    color: white;
}

.terms-section {
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-section input[type="checkbox"] {
    accent-color: var(--primary);
}

.terms-section label {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.terms-section a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-connect-wallet {
    width: 100%;
    padding: 16px;
    background: #ff9206;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-connect-wallet:hover {
    opacity: 0.9;
}

/* bonding page */

.bonding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 16px;
    padding: 12px 0;
}

.bonding-card {
    background-color: rgba(30, 30, 46, 0.3);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.bonding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.token-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #1e1e2e;
}

.token-info h4 {
    font-size: 1rem;
    margin: 0 0 4px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-info p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-stats .stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.stat-label { font-weight: 100; color: #797979; }
.stat-value { font-weight: 500; color: #f1f5f9; }

.progress-bar-container {
    height: 6px;
    background: #334155;
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fdcb6e, #e17055);
    border-radius: 3px;
}

.action-buttons {
  /*  display: flex; */
    gap: 8px;
    margin-top: 8px;
}

.action-buttons .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 4px 8px;
    text-align: center;
}

.token-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: #333; /* Prevent white flash */
    display: inline-block;
}
.token-logo::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url('/images/token-placeholder.png') center/cover no-repeat;
}

/* FIXED LAYOUT UPDATES */
body.dark {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* MAIN DASHBOARD AREA - FIXED LAYOUT */
.dashboard-main {
    margin-left: 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* TOP BAR - FIXED HEIGHT */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    gap: 20px;
    position: relative;
    flex-shrink: 0;
    height: 72px;
    min-height: 72px;
}

/* CHART LAYOUT - FLEXIBLE SCROLLING CONTENT */
.chart-layout {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
    min-height: 0;
}

/* CENTER CANVAS - SCROLLABLE CONTENT */
.center-canvas {
    flex: 1;
    background: var(--bg-card);
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* RESIZABLE CONTAINER - FLEXIBLE HEIGHT */
#resizable-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* CHART AREA - FLEXIBLE */
#chart-area {
    flex: 3;
    min-height: 200px;
    background: var(--bg-card);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

/* TABLE AREA - SCROLLABLE BUT HIDDEN SCROLLBAR */
#table-area {
    flex: 2;
    min-height: 200px;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: 0;
}

/* RIGHT PANEL - INDEPENDENT SCROLLING WITH HIDDEN SCROLLBAR */
.right-panel {
    width: 320px;
    min-width: 320px;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: 0px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* TABLE LAYOUT MODE - SCROLLABLE CONTENT WITH HIDDEN SCROLLBAR */
.table-layout {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* HIDE ALL SCROLLBARS */
.right-panel::-webkit-scrollbar,
#table-area::-webkit-scrollbar,
.table-layout::-webkit-scrollbar,
.tab-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.right-panel,
#table-area,
.table-layout,
.tab-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* FIX FOR RESIZER */
#resizer {
    height: 8px;
    background: var(--border);
    cursor: ns-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .bonding-grid { grid-template-columns: 1fr; }
    .card-content { flex-direction: column; }
    .token-logo { width: 48px; height: 48px; }
}

/* Responsive: hide ticker on small screens */
@media (max-width: 1100px) {
    .ticker-feed {
        display: none;
    }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .chart-layout {
        flex-direction: column;
        height: auto;
    }
    .right-panel {
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    .sidebar {
        width: 70px;
    }
    .logo-text, .nav-menu a span, .chain, .top-tokens {
        display: none;
    }
    .nav-menu a {
        justify-content: center;
        gap: 0;
    }
    .dashboard-main {
        margin-left: 70px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-stats {
        flex-direction: column;
        gap: 8px;
    }

    .dexscreener-table .token-cell {
        min-width: 150px;
    }

    .dexscreener-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
}