/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #14F195;
    --primary-dark: #10b981;
    --secondary: #ffffff;
    --background: #000000;
    --surface: #09090b;
    --surface-hover: #18181b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --border: #27272a;
    --success: #14F195;
    --error: #ef4444;
    --buy-green: #14F195;
    --sell-red: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #27272a transparent;
}

.container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 2rem;
}

.connect-wallet {
    margin-left: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.connect-wallet {
    background: var(--primary);
    color: #000000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

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

/* Main Layout */
.main-content {
    flex: 1;
    height: calc(100vh - 64px);
    display: flex;
    overflow: hidden;
}

.trade-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 320px 1fr 360px;
    height: 100%;
    overflow: hidden;
}

/* Left Column - Markets */
.markets-sidebar {
    background: var(--background);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.markets-search {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.markets-search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.markets-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(20, 241, 149, 0.1);
    background: var(--surface-hover);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.sidebar-tabs {
    display: flex;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.sidebar-tab {
    padding: 0.875rem 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-tab:hover {
    color: var(--text-primary);
}

.sidebar-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.markets-list-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.markets-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.market-list-item {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.market-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.market-list-item.active {
    background: linear-gradient(90deg, rgba(20, 241, 149, 0.08) 0%, transparent 100%);
    border-left: 2px solid var(--primary);
}

.market-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.market-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.market-item-prices {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    font-family: 'Inter', monospace;
}

.price-yes { 
    color: var(--primary); 
    background: rgba(20, 241, 149, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.price-no { 
    color: var(--sell-red); 
    background: rgba(239, 68, 68, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Center Column - Chart */
.trade-center {
    background: var(--background);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.market-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, var(--surface), var(--background));
}

.market-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 2rem;
}

.market-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.timeframe-selector {
    display: flex;
    background: var(--surface);
    padding: 2px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.timeframe-btn {
    padding: 0.35rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.timeframe-btn:hover {
    color: var(--text-primary);
}

.timeframe-btn.active {
    background: var(--surface-hover);
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.market-meta {
    display: flex;
    gap: 2.5rem;
    font-size: 0.875rem;
    padding-top: 0.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label { 
    color: var(--text-tertiary); 
    font-size: 0.7rem; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value { 
    font-weight: 600; 
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.chart-area {
    flex: 1;
    position: relative;
    background: var(--background);
    padding: 1.5rem;
    min-height: 0;
}

.bottom-tabs {
    height: 300px;
    min-height: 60px;
    max-height: 60vh;
    border-top: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.resize-handle {
    height: 12px;
    background: var(--surface);
    cursor: ns-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.resize-handle::after {
    content: '';
    width: 32px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: background 0.2s;
}

.resize-handle:hover {
    background: var(--surface-hover);
}

.resize-handle:hover::after {
    background: var(--primary);
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    background: var(--surface);
    gap: 1.5rem;
}

.tab-btn {
    padding: 1rem 0;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 -2px 8px rgba(20, 241, 149, 0.4);
}

.tab-content {
    padding: 1rem;
    color: var(--text-tertiary);
    text-align: center;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--background);
}

/* Positions Styles - Clean Design */
.positions-container {
    padding: 0;
    text-align: left;
    display: grid;
    gap: 0.75rem;
}

.position-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.position-item:hover {
    border-color: var(--border);
    background: var(--surface-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.position-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}

.position-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.position-market {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.position-outcome {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-outcome.yes {
    background: rgba(20, 241, 149, 0.15);
    color: #14F195;
    border: 1px solid rgba(20, 241, 149, 0.3);
}

.position-outcome.no {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.position-details {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.8rem;
}

.position-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.position-stat-label {
    color: var(--text-tertiary);
}

.position-stat-value {
    color: var(--text-secondary);
    font-family: 'Inter', monospace;
}

.position-pnl {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.position-pnl.profit .position-pnl-value { color: #14F195; }
.position-pnl.loss .position-pnl-value { color: #ef4444; }

.sell-position-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sell-position-btn:hover {
    background: var(--sell-red);
    border-color: var(--sell-red);
    color: white;
}

/* Order Book Styles - Compact */
.orderbook-panel {
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: var(--surface);
    max-height: 30vh; /* Limit height */
    overflow: hidden;
}

.orderbook-header-title {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
}

.orderbook-panel .orderbook-container {
    display: flex;
    gap: 1px;
    background: var(--border);
    padding-bottom: 1px;
    overflow-y: auto; /* Allow internal scrolling if needed */
}

.orderbook-panel .orderbook-column {
    flex: 1;
    padding: 0.25rem 0;
    background: var(--surface);
}

.orderbook-panel .orderbook-side-header {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0 0.5rem 0.25rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
}

.orderbook-panel .orderbook-side-header.yes-side { color: var(--buy-green); }
.orderbook-panel .orderbook-side-header.no-side { color: var(--sell-red); }

.orderbook-panel .orderbook-row {
    display: flex;
    justify-content: space-between;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    position: relative;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.orderbook-panel .orderbook-row .price {
    font-weight: 600;
    z-index: 1;
}

.orderbook-panel .orderbook-row .size {
    color: var(--text-tertiary);
    z-index: 1;
    font-size: 0.65rem;
}

.orderbook-panel .orderbook-row .bar {
    position: absolute;
    top: 1px;
    bottom: 1px;
    right: 0;
    opacity: 0.15;
    border-radius: 2px 0 0 2px;
    transition: width 0.3s ease;
}

.orderbook-panel .orderbook-row.yes-row .bar { background: var(--buy-green); }
.orderbook-panel .orderbook-row.no-row .bar { background: var(--sell-red); }

/* Trading Panel - Compact */
.trading-panel {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    background: var(--background);
    flex: 1;
    min-height: 0;
    overflow-y: auto; /* Only scroll internal panel if absolutely necessary */
}

.buy-sell-tabs {
    display: flex;
    background: var(--surface);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border);
    min-height: 36px;
}

.bs-tab {
    flex: 1;
    padding: 0.4rem;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-tab:hover {
    color: var(--text-primary);
}

.bs-tab.active.buy {
    background: var(--buy-green);
    color: #000000;
    box-shadow: 0 2px 8px rgba(20, 241, 149, 0.3);
}

.bs-tab.active.sell {
    background: var(--sell-red);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.outcome-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.outcome-btn {
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    transition: all 0.2s;
}

/* Fix for visibility */
.outcome-btn span {
    color: var(--text-secondary); /* Default visible color */
}

.outcome-btn span:first-child {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.outcome-btn span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary); /* Price always bright */
}

.outcome-btn.yes {
    border-color: rgba(20, 241, 149, 0.3);
}

.outcome-btn.yes:hover { 
    background: rgba(20, 241, 149, 0.05);
    border-color: var(--buy-green); 
}

.outcome-btn.yes.selected {
    background: rgba(20, 241, 149, 0.15);
    border-color: var(--buy-green);
}

.outcome-btn.yes.selected span {
    color: var(--buy-green);
}

.outcome-btn.no {
    border-color: rgba(239, 68, 68, 0.3);
}

.outcome-btn.no:hover { 
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--sell-red); 
}

.outcome-btn.no.selected {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--sell-red);
}

.outcome-btn.no.selected span {
    color: var(--sell-red);
}

.trade-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.input-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.trade-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 0;
}

.trade-input:focus {
    border-color: var(--primary);
    background: var(--surface-hover);
    box-shadow: 0 0 0 2px rgba(20, 241, 149, 0.1);
    outline: none;
}

.presets {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.preset-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.3rem;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: var(--surface);
}

.summary-stats {
    background: var(--surface);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--border);
    margin-top: auto; /* Push to bottom if space permits */
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    line-height: 1;
}

.stat-row span:first-child { color: var(--text-tertiary); }
.stat-row span:last-child { font-weight: 600; color: var(--text-primary); }

.place-order-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--buy-green);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(20, 241, 149, 0.2);
    margin-top: 0.5rem;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 241, 149, 0.3);
}

.place-order-btn.sell-mode {
    background: var(--sell-red);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.place-order-btn.sell-mode:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

/* Toast Styles */
.toast {
    font-family: 'Inter', sans-serif;
}

.toast-close:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
    .trade-layout {
        grid-template-columns: 280px 1fr 320px;
    }
}

@media (max-width: 1024px) {
    .trade-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .main-content {
        overflow-y: auto;
    }
    .markets-sidebar, .trade-right {
        display: none; /* Mobile view would need refactoring */
    }
}

/* ========================================
   DISCOVER PAGE SPECIFIC STYLES
   ======================================== */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 0 5rem;
    display: flex;
    justify-content: center;
    overflow: visible;
    min-height: auto;
}

.hero-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(20, 241, 149, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px; /* Matched to markets grid width */
    width: 100%;
    padding: 0 2rem;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-text h1 {
    font-size: 7rem; /* Larger to fit the page */
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    padding: 0;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-left: -6px; /* Optical alignment for larger font */
}

.hero-text p {
    font-size: 1.5rem; /* Larger tagline */
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
    height: 400px; /* Fixed height for slider area */
    align-items: center;
}

/* Slider Container */
.hero-card-slider {
    width: 400px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg) rotateZ(-2deg);
    transition: transform 0.4s ease;
}

.hero-card-slider:hover {
    transform: rotateY(0) rotateX(0) rotateZ(0) scale(1.02);
}

.hero-card-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Card in Slider */
.hero-slider-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* White background like the screenshot */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5), 
        0 0 0 1px rgba(255,255,255,0.1),
        0 0 100px rgba(20, 241, 149, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(50px) scale(0.9);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-slider-card .mock-title {
    color: #000000; /* Dark text for white card */
    font-size: 1.75rem; /* Larger title like screenshot */
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-slider-card .mock-vol {
    color: #71717a; /* Darker grey for vol */
}

/* Specific styling for the buttons on white card */
.hero-slider-card .mock-btn.yes {
    background: linear-gradient(135deg, #86efac, #4ade80);
    color: #052e16;
    border: none;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.hero-slider-card .mock-btn.no {
    background: #fee2e2;
    color: #ef4444;
    border: none;
}

.hero-slider-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.hero-slider-card.exit {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
    z-index: 0;
}

/* Mock Card Internal Styles (adapted for dark theme) */
.mock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mock-logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mock-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.mock-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.mock-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mock-vol {
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.875rem;
}

.mock-chart-area {
    flex: 1;
    position: relative;
    margin: 1rem 0;
}

.mock-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.mock-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
}

.mock-btn.yes {
    background: rgba(20, 241, 149, 0.15);
    color: var(--buy-green);
    border: 1px solid rgba(20, 241, 149, 0.3);
}

.mock-btn.no {
    background: rgba(239, 68, 68, 0.15);
    color: var(--sell-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .hero-visual {
        justify-content: center;
        height: auto;
        width: 100%;
    }
    
    .hero-card-slider {
        transform: none; /* Remove 3D effect on mobile */
        width: 100%;
        max-width: 400px;
    }
    
    .hero-card-slider:hover {
        transform: none;
    }
}

/* Main Content for Discover */
.discover-main-content {
    flex: 1;
    padding: 2rem;
    padding-right: 0;
    width: 100%;
    overflow-y: auto;
    height: calc(100vh - 64px);
}

.discover-main-content > * {
    max-width: 1400px;
    margin: 0 auto;
    padding-right: 2rem;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.1);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000000;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

/* Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.market-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.2s;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.market-card:hover::before {
    opacity: 1;
}

.market-header-discover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.market-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

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

.market-volume {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.market-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(20, 241, 149, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.market-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.market-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.market-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(20, 241, 149, 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #14F195;
}

.price-value.no-value {
    color: #ef4444;
}

.market-chart-container {
    flex: 1;
    min-height: 100px;
    position: relative;
}

.market-mini-chart {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.market-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.market-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.market-stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.market-stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.error-state svg {
    color: var(--error);
    margin-bottom: 1rem;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.retry-btn:hover {
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state svg {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ========================================
   AI PAGE SPECIFIC STYLES
   ======================================== */

.ai-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 100%;
    overflow: hidden;
}

.ai-chat-container {
    background: var(--background);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ai-chat-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.ai-chat-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ai-chat-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.disclaimer-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 165, 2, 0.1);
    border: 1px solid rgba(255, 165, 2, 0.3);
    border-radius: 6px;
    color: var(--warning);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.ai-welcome-message svg {
    margin-bottom: 1.5rem;
}

.ai-welcome-message h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.ai-welcome-message ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
}

.ai-welcome-message li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ai-welcome-message li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.ai-message {
    display: flex;
    margin-bottom: 1rem;
}

.ai-message-user {
    justify-content: flex-end;
}

.ai-message-assistant {
    justify-content: flex-start;
}

.ai-message-content {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
}

.ai-message-user .ai-message-content {
    background: var(--primary);
    color: #000000;
    font-weight: 500;
}

.ai-message-assistant .ai-message-content {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.ai-message-assistant .ai-message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.ai-message-assistant .ai-message-content li {
    margin: 0.25rem 0;
}

.ai-chat-input-container {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    background: var(--surface);
}

.ai-chat-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

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

.ai-chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-send-button {
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: #000000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-send-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.ai-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   JUPITER TRADING STYLES
   ======================================== */

/* Connected wallet button */
.connect-wallet.connected {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.connect-wallet.connected:hover {
    background: var(--surface-hover);
}

/* Disabled button state */
.place-order-btn.disabled {
    background: var(--surface) !important;
    color: var(--text-tertiary) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.place-order-btn.disabled:hover {
    transform: none;
}

/* Sell tab styling */
.bs-tab.sell.active {
    background: var(--sell-red);
    color: white;
}

/* Position rows in tab content */
.position-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.position-row:last-child {
    border-bottom: none;
}

/* Jupiter badge */
.jupiter-badge a {
    text-decoration: none;
    transition: opacity 0.2s;
}

.jupiter-badge a:hover {
    opacity: 0.8;
}

/* Preset buttons enhancement */
.preset-btn {
    flex: 1;
}

/* Trade input improvements */
.trade-input:focus {
    border-color: var(--primary);
    outline: none;
}

.trade-input::placeholder {
    color: var(--text-tertiary);
}

/* Tradeable badge in market list */
.tradeable-badge {
    font-size: 0.9rem;
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

/* Jupiter tag in market list */
.jupiter-tag {
    font-size: 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000000;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Market list item improvements */
.market-list-item {
    cursor: pointer;
}

.market-list-item:hover .tradeable-badge {
    text-shadow: 0 0 12px var(--secondary);
}

/* ========================================
   PORTFOLIO PAGE STYLES
   ======================================== */

.portfolio-main {
    padding: 2rem;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

/* Connect Wallet Prompt */
.connect-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.connect-prompt-content {
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.connect-prompt-content svg {
    margin-bottom: 1.5rem;
}

.connect-prompt-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.connect-prompt-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.connect-wallet-large {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.connect-wallet-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 241, 149, 0.3);
}

/* Portfolio Content */
.portfolio-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Portfolio Summary */
.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-card.main-value {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.1), rgba(20, 241, 149, 0.1));
    border-color: var(--primary);
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-value.pnl.positive {
    color: var(--buy-green);
}

.summary-value.pnl.negative {
    color: var(--sell-red);
}

.summary-value.claimable {
    color: var(--secondary);
}

.summary-percent {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.summary-percent.positive {
    color: var(--buy-green);
}

.summary-percent.negative {
    color: var(--sell-red);
}

/* Category Breakdown */
.category-breakdown {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
}

.category-name {
    color: var(--text-secondary);
}

.category-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Portfolio Tabs */
.portfolio-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.portfolio-tab {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.portfolio-tab:hover {
    color: var(--text-primary);
    background: var(--surface);
}

.portfolio-tab.active {
    color: var(--primary);
    background: rgba(20, 241, 149, 0.1);
}

/* Positions Loading */
.positions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-tertiary);
}

.positions-loading p {
    margin-top: 1rem;
}

/* Positions Grid */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

/* Position Card */
.position-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s, transform 0.2s;
}

.position-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.position-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.position-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.position-titles {
    flex: 1;
    min-width: 0;
}

.position-event {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.position-market {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.position-side {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.position-side.yes {
    background: rgba(20, 241, 149, 0.15);
    color: var(--buy-green);
}

.position-side.no {
    background: rgba(255, 77, 77, 0.15);
    color: var(--sell-red);
}

.position-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.position-pnl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.position-pnl.positive {
    background: rgba(20, 241, 149, 0.1);
}

.position-pnl.negative {
    background: rgba(255, 77, 77, 0.1);
}

.pnl-amount {
    font-size: 1.125rem;
    font-weight: 700;
}

.position-pnl.positive .pnl-amount {
    color: var(--buy-green);
}

.position-pnl.negative .pnl-amount {
    color: var(--sell-red);
}

.pnl-percent {
    font-size: 0.875rem;
}

.position-pnl.positive .pnl-percent {
    color: var(--buy-green);
}

.position-pnl.negative .pnl-percent {
    color: var(--sell-red);
}

.position-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.settlement-info, .potential-payout {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settlement-label, .payout-label {
    color: var(--text-tertiary);
}

.settlement-date {
    color: var(--text-secondary);
}

.payout-value {
    color: var(--secondary);
    font-weight: 600;
}

.position-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.625rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.claim-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000000;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.claim-btn:hover {
    transform: scale(1.02);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}

.empty-state svg {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.trade-now-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.trade-now-btn:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .position-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fixes and Enhancements */
.trade-right {
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 2rem;
}

.markets-sidebar {
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2); /* Stronger shadow for outline feel */
    position: relative;
    z-index: 2;
}


/* Show More Button */
.show-more-btn {
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background: var(--primary);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(20, 241, 149, 0.3);
}


/* ========================================
   $EVERLY TOKEN PAGE STYLES (PREMIUM)
   ======================================== */

.everly-main {
    padding: 0;
    height: calc(100vh - 64px);
    overflow-y: auto;
    background: #000000;
}

/* Token Hero */
.token-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 6rem;
    overflow: hidden;
    background: radial-gradient(circle at 70% 50%, rgba(20, 241, 149, 0.08) 0%, rgba(0,0,0,0) 60%);
}

.token-hero-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(20, 241, 149, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    pointer-events: none;
}

.token-hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.token-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(20, 241, 149, 0.1);
    border: 1px solid rgba(20, 241, 149, 0.2);
    color: #14F195;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.token-title {
    font-size: 7rem;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.token-subtitle {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #a1a1aa;
    margin-bottom: 3rem;
    font-weight: 400;
}

.token-hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid #27272a;
    padding-top: 2rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-stat .label {
    font-size: 0.875rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-stat .value.highlight {
    color: #14F195;
}

/* Token Visual (3D Coin) */
.token-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.coin-container {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: coinFloat 6s ease-in-out infinite;
}

@keyframes coinFloat {
    0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(10deg); }
    50% { transform: translateY(-20px) rotateY(-5deg) rotateX(5deg); }
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(59, 239, 187, 0.4);
    background: #3befbb;
    border: none;
}

.coin-face.front {
    transform: translateZ(20px);
}

.coin-face img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    opacity: 1;
}

.coin-shadow {
    position: absolute;
    bottom: 50px;
    width: 200px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    filter: blur(20px);
    animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(0.8); opacity: 0.3; }
}

/* Utility Section */
.token-utility {
    padding: 6rem 2rem;
    background: #09090b;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-header p {
    font-size: 1.25rem;
    color: #a1a1aa;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.utility-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.utility-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    background: transparent;
}

.card-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(20, 241, 149, 0.2); /* Green */
    line-height: 1;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* Add a small accent line */
.card-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.utility-card h3 {
    font-size: 1.75rem; /* Larger heading */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.utility-card p {
    font-size: 1.1rem;
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 90%; /* Improve readability */
}

/* Partners */
.token-partners {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid #27272a;
    border-bottom: 1px solid #27272a;
    background: #000000;
}

.partners-label {
    font-size: 0.875rem;
    color: #71717a;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.partner-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* CTA Section */
.token-cta {
    padding: 8rem 2rem;
    background: radial-gradient(circle at 50% 50%, rgba(20, 241, 149, 0.05) 0%, #000000 70%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.1;
}

.cta-content p {
    font-size: 1.5rem;
    color: #a1a1aa;
    margin-bottom: 3rem;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.primary-btn {
    padding: 1rem 2.5rem;
    background: #14F195;
    color: #000000;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.primary-btn:hover {
    background: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(20, 241, 149, 0.2);
}

.secondary-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid #27272a;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .token-hero {
        flex-direction: column;
        padding: 4rem 2rem;
        text-align: center;
    }
    
    .token-hero-content {
        margin-bottom: 4rem;
    }
    
    .token-hero-stats {
        justify-content: center;
    }
    
    .token-title {
        font-size: 4rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
}
