/* AXN Exchange - Modern Dark Mode Platform CSS */
/* Designed for Gen Z/Millennial demographic with tasteful neon accents */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Dark Mode Base Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #141829;
    --bg-tertiary: #1a1f3a;
    --bg-elevated: #1f2541;

    /* Neon Accent Colors (Tasteful) */
    --neon-cyan: #00f0ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-green: #10b981;

    /* AXN Brand Colors (Premium Gold with Neon Twist) */
    --axn-primary: #fbbf24; /* Warm gold */
    --axn-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --axn-glow: 0 0 20px rgba(251, 191, 36, 0.3);
    --axn-neon: linear-gradient(135deg, #fbbf24 0%, #00f0ff 100%);

    /* UI Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;

    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Trading Colors */
    --buy-green: #10b981;
    --sell-red: #ef4444;

    /* Borders & Dividers */
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-medium: rgba(148, 163, 184, 0.2);
    --border-strong: rgba(148, 163, 184, 0.3);

    /* Glass Effects */
    --glass-bg: rgba(26, 31, 58, 0.7);
    --glass-border: rgba(248, 250, 252, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;

    /* Subtle animated background gradient */
    background: linear-gradient(135deg,
        #0a0e27 0%,
        #141829 50%,
        #0f1323 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ==================== PROMOTIONAL BANNER ==================== */

.promo-banner {
    background: var(--axn-gradient);
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promo-icon {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.promo-text {
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 500;
}

.promo-text strong {
    font-weight: 700;
}

.btn-promo {
    background: var(--bg-primary);
    color: var(--axn-primary);
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-banner {
    position: absolute;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--bg-primary);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.close-banner:hover {
    opacity: 1;
}

/* ==================== NAVIGATION BAR ==================== */

.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: var(--axn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: -4px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.15);
}

.nav-link.axn-link {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(0, 240, 255, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--axn-primary);
}

.nav-link.axn-link:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(0, 240, 255, 0.2));
    box-shadow: var(--axn-glow);
}

.premium-badge {
    color: var(--axn-primary);
    font-size: 12px;
}

/* AXN Price Ticker */
.axn-price-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.ticker-label {
    font-weight: 600;
    color: var(--axn-primary);
    font-size: 12px;
}

.ticker-price {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.ticker-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.ticker-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.ticker-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    width: 240px;
    font-size: 14px;
    transition: all var(--transition-normal);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

#username-display {
    font-weight: 600;
    font-size: 14px;
}

.vip-badge {
    font-size: 11px;
    background: var(--axn-gradient);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

/* ==================== MAIN CONTAINER ==================== */

.main-container {
    padding: 24px;
    max-width: 1920px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* ==================== TRADING LAYOUT ==================== */

.trading-layout {
    display: grid;
    grid-template-columns: 320px 1fr 380px;
    gap: 20px;
    margin-bottom: 20px;
}

/* ==================== LEFT SIDEBAR ==================== */

.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Featured Token Card */
.featured-token-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(0, 240, 255, 0.15));
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--axn-primary), var(--neon-cyan)) 1;
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.featured-token-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.featured-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.featured-icon {
    font-size: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.featured-title {
    font-weight: 700;
    font-size: 14px;
    background: var(--axn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.featured-price {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

.featured-change {
    font-size: 16px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-md);
}

.featured-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.2);
}

.featured-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.btn-featured {
    flex: 1;
    background: var(--axn-gradient);
    color: var(--bg-primary);
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-featured:hover {
    transform: translateY(-2px);
    box-shadow: var(--axn-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-featured-secondary {
    background: transparent;
    border: 2px solid var(--axn-primary);
    color: var(--axn-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-featured-secondary:hover {
    background: rgba(251, 191, 36, 0.1);
}

/* Market Tabs */
.market-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.market-tab {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.market-tab:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.market-tab.active {
    background: var(--bg-elevated);
    border-color: var(--neon-cyan);
    color: var(--text-primary);
}

.market-tab.axn-tab {
    border-color: var(--axn-primary);
}

.market-tab.axn-tab.active {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--axn-primary);
    color: var(--axn-primary);
    box-shadow: var(--axn-glow);
}

/* Pairs List */
.pairs-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pairs-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Scrollbar */
.pairs-list::-webkit-scrollbar {
    width: 6px;
}

.pairs-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.pairs-list::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.pairs-list::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

.pair-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr;
    padding: 12px 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-subtle);
}

.pair-item:last-child {
    border-bottom: none;
}

.pair-item:hover {
    background: var(--bg-tertiary);
}

.pair-item.featured-pair {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.05), transparent);
    border-left: 3px solid var(--axn-primary);
}

.pair-item.axn-pair {
    border-left: 2px solid rgba(251, 191, 36, 0.3);
}

.pair-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.pair-base {
    font-size: 14px;
}

.pair-quote {
    font-size: 13px;
    color: var(--text-secondary);
}

.axn-highlight {
    color: var(--axn-primary) !important;
}

.featured-star {
    color: var(--axn-primary);
    font-size: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.pair-price {
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.pair-change {
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.pair-change.positive {
    color: var(--success);
}

.pair-change.negative {
    color: var(--danger);
}

.pair-divider {
    height: 1px;
    background: var(--border-medium);
    margin: 8px 0;
}

/* AXN Benefits Widget */
.axn-benefits-widget {
    background: var(--bg-secondary);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.axn-benefits-widget h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--axn-primary);
}

.axn-benefits-widget ul {
    list-style: none;
    margin-bottom: 12px;
}

.axn-benefits-widget li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 4px;
}

.btn-widget {
    width: 100%;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--axn-primary);
    color: var(--axn-primary);
    padding: 8px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-widget:hover {
    background: rgba(251, 191, 36, 0.2);
    box-shadow: var(--axn-glow);
}

/* ==================== CENTER PANEL ==================== */

.main-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Pair Header */
.pair-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.pair-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pair-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.axn-pair-title {
    background: var(--axn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-badge {
    background: var(--axn-gradient);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
}

.btn-favorite {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-favorite:hover {
    border-color: var(--axn-primary);
    color: var(--axn-primary);
}

.pair-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-value.positive {
    color: var(--success);
}

.stat-value.negative {
    color: var(--danger);
}

/* Trading Incentive Banner */
.trading-incentive {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(0, 240, 255, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.btn-enable-axn-fee {
    background: var(--axn-gradient);
    color: var(--bg-primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-enable-axn-fee:hover {
    transform: translateY(-2px);
    box-shadow: var(--axn-glow);
}

/* Chart Container */
.chart-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    height: 400px; /* Fix: Limit chart height */
}

#trading-chart {
    max-height: 350px; /* Canvas max height */
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.timeframe-buttons,
.chart-types {
    display: flex;
    gap: 4px;
}

.btn-timeframe,
.btn-chart-type {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-timeframe:hover,
.btn-chart-type:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-timeframe.active,
.btn-chart-type.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    color: white;
}

#trading-chart {
    height: 400px;
    width: 100%;
}

.current-price-display {
    position: absolute;
    top: 60px;
    left: 20px;
    background: var(--bg-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
}

.price-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-right: 8px;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--axn-primary);
}

/* Trading Forms */
.trading-forms {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.form-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.form-tab {
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.form-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-tab.active[data-side="buy"] {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.form-tab.active[data-side="sell"] {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.order-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.order-type-btn {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.order-type-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-medium);
}

.order-type-btn.active {
    background: var(--bg-elevated);
    border-color: var(--neon-cyan);
    color: var(--text-primary);
}

.trade-form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.balance-display {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.axn-text {
    color: var(--axn-primary);
    font-weight: 600;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.form-group input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-group input:read-only {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-market-price,
.btn-max {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-market-price:hover,
.btn-max:hover {
    background: var(--bg-elevated);
    border-color: var(--neon-cyan);
}

.percentage-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.btn-percent {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-percent:hover {
    background: var(--bg-tertiary);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

/* AXN Fee Payment Option */
.fee-payment-option {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--axn-primary);
    cursor: pointer;
}

.fee-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.fee-crossed {
    color: var(--text-muted);
    text-decoration: line-through;
}

.fee-discounted {
    color: var(--axn-primary);
    font-weight: 700;
}

/* Action Buttons */
.btn-large {
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.btn-buy {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-buy:hover {
    background: #0ea472;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.axn-buy-btn {
    background: var(--axn-gradient);
    color: var(--bg-primary);
    box-shadow: var(--axn-glow);
}

.axn-buy-btn:hover {
    box-shadow: var(--axn-glow), 0 6px 20px rgba(251, 191, 36, 0.4);
}

.btn-sell {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-sell:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.axn-bonus-notice {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(0, 240, 255, 0.1));
    border: 1px dashed var(--axn-primary);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--axn-primary);
}

/* ==================== RIGHT SIDEBAR ==================== */

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-book-tabs {
    display: flex;
    gap: 4px;
}

.ob-tab {
    flex: 1;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.ob-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.ob-tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom: 2px solid var(--neon-cyan);
}

.order-book {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.ob-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.sell-orders,
.buy-orders {
    max-height: 250px;
    overflow-y: auto;
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
}

.spread-indicator {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 700;
}

#spread-price {
    color: var(--neon-cyan);
}

.spread-label {
    color: var(--text-tertiary);
    font-size: 11px;
}

.recent-trades-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.recent-trades-section h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.trades-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trades-list {
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

/* ==================== BOTTOM PANEL ==================== */

.bottom-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.panel-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    padding: 4px;
}

.panel-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.panel-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.panel-tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.panel-content {
    padding: 20px;
    min-height: 200px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead th {
    text-align: left;
    padding: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
}

.orders-table tbody td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-subtle);
}

.empty-state td {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

/* ==================== AXN EARN SECTION ==================== */

.axn-earn-hero {
    text-align: center;
    margin-bottom: 40px;
}

.axn-earn-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    background: var(--axn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.earn-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.earn-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.earn-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
}

.axn-card {
    border-color: rgba(251, 191, 36, 0.3);
}

.axn-card:hover {
    box-shadow: var(--axn-glow), var(--glass-shadow);
}

.premium-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(0, 240, 255, 0.1));
    border: 2px solid var(--axn-primary);
}

.premium-badge-large {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--axn-gradient);
    color: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
}

.earn-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.earn-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.earn-apy {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--axn-primary);
    margin-bottom: 16px;
}

.earn-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.earn-benefits {
    list-style: none;
    margin-bottom: 20px;
}

.earn-benefits li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 4px;
}

.btn-premium {
    width: 100%;
    background: var(--axn-gradient);
    color: var(--bg-primary);
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--axn-glow);
}

/* VIP Tiers Section */
.vip-tiers-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.vip-tiers-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.vip-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.vip-table thead th {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-medium);
}

.vip-table thead th.vip-1 {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.vip-table thead th.vip-2 {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.vip-table thead th.vip-3 {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.vip-table thead th.vip-4 {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--axn-primary);
}

.vip-table tbody td {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid var(--border-subtle);
}

.vip-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== MODALS ==================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-large {
    max-width: 800px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.auth-tab:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.referral-code-input {
    position: relative;
}

.referral-bonus {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    background: var(--axn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Benefits Modal */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.benefit-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1600px) {
    .trading-layout {
        grid-template-columns: 280px 1fr 340px;
    }
}

@media (max-width: 1200px) {
    .trading-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-container {
        padding: 16px;
    }

    .pair-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .earn-options-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== UTILITY CLASSES ==================== */

.positive {
    color: var(--success) !important;
}

.negative {
    color: var(--danger) !important;
}

.axn-highlight-subtle {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.2) !important;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}
