@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Orbitron:wght@400;500;600;700&display=swap');

/* ============================================================================
   CSS CUSTOM PROPERTIES & GLOBAL STYLES
   ============================================================================ */

:root {
    /* Common spacing */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --padding-btn: 6px 12px;
    --padding-section: 20px;
    
    /* Common colors */
    --color-primary: #00FF88;
    --color-danger: #FF4444;
    --color-warning: #F0B90B;
    --color-text-primary: #EAECEF;
    --color-text-secondary: #B7BDC6;
    --color-bg-dark: #0A0D0F;
    --color-bg-section: #161D26;
    --color-border: #2A3035;
    --color-border-active: rgba(0, 255, 136, 0.3);
    
    /* Font families */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-display: 'Orbitron', monospace;
}

/* Utility Classes for Common Inline Styles */
.hidden {
    display: none;
}

.warning-box {
    background: var(--color-danger);
    color: white;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.info-box {
    background: #FFF3CD;
    color: #856404;
    padding: 12px;
    margin: 16px 0;
    border-radius: var(--border-radius-md);
}

.success-box {
    background: #D1ECF1;
    color: #0C5460;
    padding: 12px;
    margin: 16px 0;
    border-radius: var(--border-radius-md);
}

.small-text {
    font-size: 12px;
}

.center-text {
    text-align: center;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    background: #12171C;
    height: 100%;
    /* Safe area insets for devices with notches */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
    font-family: var(--font-primary);
    background: #12171C;
    color: #E8F4F8;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 48px 0 0 0; /* Exact ticker height */
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    position: relative;
    width: 100%;
    max-width: 100vw;
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, #00FF8810 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, #00FF8808 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, #00FF8805 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Fee display styles */
.fee-display {
    color: #00FF88;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.fee-tooltip {
    width: 12px;
    height: 12px;
    font-size: 9px;
    margin-left: 4px;
}

.radio-item label {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

/* Hyperlink styles for crypto theme */
a {
    color: #00FF88;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #00FF88;
    text-decoration: underline;
}

a:visited {
    color: #00CC6A;
}

a:active {
    color: #00B359;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: #12171C;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    position: relative;
    border: 1px solid #20262A;
    overflow-x: hidden;
    margin-top: 0; /* Ensure no extra margin that could cause overlap */
}

/* Mobile-specific fixes */
@supports (-webkit-touch-callout: none) {
    .container {
        min-height: -webkit-fill-available;
    }
}

/* Header Styles */
.header {
    background: #161C20;
    border-bottom: 1px solid #20262A;
    color: #E8F4F8;
    padding: 10px 32px;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    z-index: 10;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #EAECEF;
}

.header p {
    font-size: 14px;
    color: #B7BDC6;
    font-weight: 400;
}

.main-logo {
    max-height: 80px;
    width: auto;
    margin: 0;
    display: block;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.chart-header .mascot {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    overflow: visible;
    opacity: 1;
}

.chart-header .mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.mascot.bull {
    animation: bullCelebrate 2s ease-in-out infinite;
}

.mascot.bear {
    animation: bearCelebrate 2s ease-in-out infinite;
}

@keyframes bullCelebrate {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        transform: scale(1.2) rotate(-10deg); 
    }
    50% { 
        transform: scale(1.3) rotate(0deg) translateY(-5px); 
    }
    75% { 
        transform: scale(1.2) rotate(10deg); 
    }
}

@keyframes bearCelebrate {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        transform: scale(1.1) rotate(8deg); 
    }
    50% { 
        transform: scale(1.2) rotate(0deg) translateY(-3px); 
    }
    75% { 
        transform: scale(1.1) rotate(-8deg); 
    }
}


/* Main Layout */
.main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: calc(100vh - 100px);
}

.left-panel {
    background: #161C20;
    padding: 32px;
    border-right: 1px solid #20262A;
    border-bottom: 1px solid #20262A;
}

.center-panel {
    background: #161C20;
    padding: 32px;
    border-bottom: 1px solid #20262A;
}

.right-panel {
    display: none; /* Temporarily hidden - will be moved below chart */
    background: #161C20;
    padding: 32px;
    border-bottom: 1px solid #20262A;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #00FF88;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Button Base Styles */
.btn-base {
    padding: var(--padding-btn);
    border-radius: var(--border-radius-lg);
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

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

/* Import/Export Controls */
.import-export-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.import-export-btn {
    background: var(--color-bg-section);
    border-color: var(--color-border);
    color: #E8F4F8;
}

.import-export-btn:hover {
    background: rgba(71, 77, 87, 0.9);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Chat Controls Container */
.chat-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Chat Control Buttons */
.chat-control-btn {
    padding: var(--padding-btn);
    background: rgba(43, 49, 57, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--border-radius-lg);
    color: #E0F2FE;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
    white-space: nowrap;
}

.chat-control-btn:hover {
    background: rgba(71, 77, 87, 0.9);
    border-color: #00FF88;
    color: #00FF88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

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

/* Input Styles */
.input-group {
    margin-bottom: 20px;
}


.label-with-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.input-group label {
    color: #C1C7CD;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

input, select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 14px;
    background: #161D26;
    border: 1px solid #2A3035;
    border-radius: var(--border-radius-lg);
    color: #E8F4F8;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus, select:focus {
    outline: none;
    border-color: #00FF88;
    background: rgba(43, 49, 57, 0.8);
}

/* Hide number input spinners */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input:focus, select:focus {
    outline: none;
    border-color: #00FF88;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

/* Remove focus styles from range sliders */
input[type="range"]:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.price-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.coin-select {
    min-width: 120px;
}

.live-price {
    flex: 1;
    padding: 12px 14px;
    background: #161D26;
    border: 1px solid #2A3035;
    border-radius: var(--border-radius-lg);
    color: #00FF88;
    font-weight: 600;
    font-size: 14px;
    cursor: default;
    transition: all 0.2s ease;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #00FF88;
}

.radio-item label {
    margin: 0;
    font-size: 13px;
    cursor: pointer;
}

.bnb-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #161D26;
    border: 1px solid #2A3035;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.bnb-toggle:hover {
    background: #20262B;
}

.bnb-toggle.active {
    border-color: #00FF88;
    background: rgba(0, 255, 136, 0.2);
}

.toggle-switch {
    width: 36px;
    height: 18px;
    background: #2A3035;
    border-radius: 9px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: #00FF88;
}

.toggle-slider {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(18px);
}

.bnb-text {
    color: #00FF88;
    font-weight: 600;
    font-size: 13px;
}

/* Chart Styles */
.chart-section {
    background: #20262B;
    border: 1px solid #2A3035;
    border-radius: var(--border-radius-lg);
    padding: 16px 16px 32px 16px;
    margin-bottom: 24px;
    height: 520px;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}


.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #EAECEF;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.chart-control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.control-label {
    font-size: 10px;
    font-weight: 500;
    color: #B7BDC6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Timeframe Selector */
.timeframe-selector {
    display: flex;
    gap: 4px;
    align-items: center;
}

.timeframe-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    background: #2A3035;
    border: 1px solid #2A3035;
    border-radius: 4px;
    color: #C1C7CD;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.timeframe-btn:hover {
    background: #20262B;
    border-color: #0099FF;
    color: #0099FF;
}

.timeframe-btn.active {
    background: #0099FF;
    border-color: #0099FF;
    color: #141A1F;
    font-weight: 600;
}

/* Moving Average Selector */
.ma-selector {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ma-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    background: #2A3035;
    border: 1px solid #2A3035;
    border-radius: 4px;
    color: #C1C7CD;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.ma-btn:hover {
    background: #20262B;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.ma-btn.active[data-ma="20"] {
    background: #FFA500;
    border-color: #FFA500;
    color: #141A1F;
    font-weight: 600;
}

.ma-btn.active[data-ma="50"] {
    background: #00BFFF;
    border-color: #00BFFF;
    color: #141A1F;
    font-weight: 600;
}

.ma-btn.active[data-ma="100"] {
    background: #FF69B4;
    border-color: #FF69B4;
    color: #141A1F;
    font-weight: 600;
}

.ma-btn.active[data-ma="200"] {
    background: #9370DB;
    border-color: #9370DB;
    color: #141A1F;
    font-weight: 600;
}

.chart-period {
    font-size: 12px;
    color: #C1C7CD;
    background: #2A3035;
    padding: 4px 8px;
    border-radius: 4px;
}

.chart-canvas {
    width: 100% !important;
    height: 460px !important;
    max-height: 460px !important;
    margin-bottom: 8px;
}

/* Chart controls removed - no longer used */

/* Results Styles */
.results-section {
    background: #20262B;
    border: 1px solid #2A3035;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    overflow: visible;
    max-width: 60%;
    margin: 0 auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(0, 255, 136, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 12px 8px;
    margin: 0 -8px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
    position: relative;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-label {
    color: #E8F4F8;
    font-size: 14px;
    font-weight: 500;
}

.info-button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2A3035;
    border: none;
    color: #C1C7CD;
    font-size: 10px;
    font-weight: 600;
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.info-button:hover {
    background: #00FF88;
    color: #1E2026;
}

.tooltip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #161D26;
    color: #E8F4F8;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 300px;
    min-width: 200px;
    white-space: normal;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    border: 1px solid #00FF88;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #00FF88;
}

.info-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.result-value {
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    letter-spacing: 0.5px;
}

.result-category {
    background: #2A3035;
    color: #00FF88;
    padding: var(--padding-btn);
    margin: 12px -20px 8px -20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.positive { color: #00FF88; }
.negative { color: #FF0055; }
.neutral { color: #00FF88; }
.info { color: #EAECEF; }
.liquidation { color: #FF8C00; }

/* Footer Styles */
.footer {
    background: #0A0D0F;
    border-top: 1px solid #262B32;
    padding: 40px 32px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #00FF88;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section a {
    display: block;
    color: #B7BDC6;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #00FF88;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #262B32;
    margin-top: 20px;
}

.footer-copyright p {
    color: #B7BDC6;
    font-size: 12px;
    margin: 4px 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1E2026;
    margin: 5% auto;
    border: 1px solid #262B32;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #262B32;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #00FF88;
    font-size: 20px;
    margin: 0;
}

.close {
    color: #B7BDC6;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #00FF88;
}

.modal-body {
    padding: 30px;
    color: #EAECEF;
    line-height: 1.6;
}

.modal-body h3 {
    color: #00FF88;
    margin-top: 25px;
    margin-bottom: 15px;
}

.modal-body p {
    margin-bottom: 15px;
}

/* Chat Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Citation and URL link styles */
.citation-link {
    color: #0099FF !important;
    text-decoration: none;
    font-weight: 600;
    background: rgba(0, 153, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 153, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
    line-height: 1.3;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    margin: 2px 4px;
    vertical-align: middle;
    height: auto;
}

.citation-link:hover {
    background: rgba(0, 153, 255, 0.2);
    border-color: rgba(0, 153, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.4);
    max-width: 300px;
    white-space: normal;
    z-index: 100;
}

.citation-link:after {
    content: "↗";
    font-size: 10px;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: 2px;
}

.raw-url-link {
    color: #00FF88 !important;
    text-decoration: none;
    font-weight: 500;
    background: rgba(0, 255, 136, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(14, 203, 129, 0.3);
    transition: all 0.2s ease;
    font-size: 12px;
    line-height: 1.3;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    margin: 2px 4px;
    vertical-align: middle;
}

.raw-url-link:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.6);
    text-decoration: underline;
    max-width: 250px;
    white-space: normal;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 203, 129, 0.4);
    z-index: 100;
}

/* Funding Fee Styles */
.funding-rate-display {
    background: rgba(43, 49, 57, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 12px 16px;
    margin: 8px 0 16px 0;
}

.funding-rate-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.funding-rate-label {
    color: #B7BDC6;
    font-size: 13px;
    font-weight: 500;
}

.funding-rate-value {
    color: #F0B90B;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.funding-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.funding-input-group label {
    color: #B7BDC6;
    font-size: 13px;
    font-weight: 500;
}

.funding-input-group input {
    padding: 10px 12px;
    font-size: 14px;
    background: rgba(43, 49, 57, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: #E0F2FE;
    transition: all 0.3s ease;
}

.funding-input-group input:focus {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
    outline: none;
}

.funding-input-group input::placeholder {
    color: #6B7280;
    font-size: 13px;
}

.funding-helper {
    margin-top: 4px;
}

.funding-helper small {
    color: #6B7280;
    font-size: 11px;
}

/* Legal Disclaimer Banner */
.legal-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: linear-gradient(135deg, #FF4444 0%, #CC3333 100%);
    border-bottom: 2px solid #FF0000;
    padding: 8px 16px;
    box-shadow: 0 2px 12px rgba(255, 0, 0, 0.3);
    display: none; /* Hidden by default, shown by JavaScript if not dismissed */
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.legal-banner.show {
    display: flex;
}

.legal-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.legal-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.disclaimer-icon {
    font-size: 16px;
    color: #FFFFFF;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.disclaimer-text {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.disclaimer-link {
    color: #FFFF00;
    text-decoration: underline;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.2s ease;
}

.disclaimer-link:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.banner-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.banner-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

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

/* Mobile responsive adjustments for legal banner */
@media (max-width: 768px) {
    .legal-banner {
        padding: var(--padding-btn);
        min-height: 32px;
    }
    
    .disclaimer-text {
        font-size: 11px;
    }
    
    .disclaimer-link {
        font-size: 11px;
    }
    
    .disclaimer-icon {
        font-size: 14px;
    }
    
    .banner-close-btn {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* Update body padding to account for legal banner */
body {
    font-family: var(--font-primary);
    background: #12171C;
    color: #E8F4F8;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 84px 0 0 0; /* 36px legal banner + 48px ticker */
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    position: relative;
    width: 100%;
    max-width: 100vw;
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cryptocurrency Ticker Banner */
.crypto-ticker-banner {
    position: fixed;
    top: 36px; /* Position below legal banner */
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0A0D0F 0%, #12171C 50%, #1A1F26 100%);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: 48px;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    height: 100%;
    align-items: center;
    max-width: 100%;
}

.ticker-section {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.ticker-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: rgba(43, 49, 57, 0.8);
    height: 100%;
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 96px;
}

.ticker-title {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 600;
    color: #F0B90B;
    letter-spacing: 0.4px;
}

.ticker-scroll {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    /* No CSS animation - controlled by JavaScript */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0); /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    height: 48px;
    white-space: nowrap;
    border-right: 1px solid rgba(43, 49, 57, 0.6);
    transition: background-color 0.3s ease;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    vertical-align: top;
}

/* Removed hover effect to keep animation continuous */

.ticker-item.loading {
    justify-content: center;
    min-width: 200px;
}

.loading-text {
    color: #B7BDC6;
    font-size: 12px;
    font-style: italic;
}

.coin-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.coin-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.coin-symbol {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #E0F2FE;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.coin-name {
    font-size: 8px;
    color: #B7BDC6;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.coin-data {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-price {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 500;
    color: #E0F2FE;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.coin-change {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 2px;
    min-width: 48px;
    text-align: center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.coin-change.positive {
    color: #00FF88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.coin-change.negative {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.ticker-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 136, 0.4), transparent);
    flex-shrink: 0;
}

/* Continuous scrolling marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Animation runs continuously without pause */

/* Ticker spacing handled in main body rule above */

/* Mobile Responsive Ticker */
@media (max-width: 768px) {
    body {
        padding-top: 40px;
    }
    
    .crypto-ticker-banner {
        height: 40px;
    }
    
    .ticker-label {
        min-width: 64px;
        padding: 0 10px;
    }
    
    .ticker-title {
        font-size: 8px;
    }
    
    .ticker-item {
        padding: 0 12px;
        height: 40px;
    }
    
    .coin-symbol {
        font-size: 10px;
    }
    
    .coin-name {
        font-size: 7px;
    }
    
    .coin-price {
        font-size: 9px;
    }
    
    .coin-change {
        font-size: 8px;
        min-width: 40px;
        padding: 1px 3px;
    }
    
    .ticker-content {
        animation: marquee 40s linear infinite;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }
    
    body.ticker-hidden {
        padding-top: 0 !important;
    }
    
    .crypto-ticker-banner {
        height: 80px;
    }
    
    .ticker-container {
        flex-direction: column;
        height: auto;
    }
    
    .ticker-section {
        height: 40px;
    }
    
    .ticker-item {
        height: 40px;
        padding: 0 8px; /* Reduced padding for mobile */
        min-width: 120px; /* Ensure minimum width for content */
    }

    /* Mobile coin layout adjustments */
    .coin-info {
        gap: 0px; /* Remove gap between header and data */
    }

    .coin-header {
        gap: 4px; /* Reduced gap between symbol and name */
    }

    .coin-data {
        gap: 6px; /* Reduced gap between price and change */
    }

    /* Mobile typography optimizations */
    .coin-symbol {
        font-size: 9px; /* Smaller symbol text */
    }

    .coin-name {
        font-size: 6px; /* Smaller name text */
        max-width: 40px; /* Limit name width */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .coin-price {
        font-size: 8px; /* Smaller price text */
        min-width: 35px; /* Ensure price has minimum space */
    }

    .coin-change {
        font-size: 7px; /* Smaller change text */
        min-width: 35px; /* Smaller minimum width */
        padding: 1px 2px; /* Reduced padding */
        line-height: 1.2; /* Tighter line height */
    }

    /* Ensure ticker scroll works smoothly on mobile */
    .ticker-scroll {
        height: 40px;
        overflow: hidden;
    }

    /* Mobile ticker label adjustments */
    .ticker-label {
        min-width: 50px; /* Smaller label area */
        padding: 0 6px; /* Reduced padding */
    }

    .ticker-title {
        font-size: 6px; /* Even smaller title for mobile */
        writing-mode: horizontal-tb; /* Ensure horizontal text on mobile */
    }

    /* Optimize animation for mobile portrait */
    .ticker-content {
        animation-duration: 50s; /* Balanced speed for mobile */
    }
    
    .ticker-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0, 255, 136, 0.4), transparent);
    }
}

/* Leverage Slider Styles */
.leverage-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.leverage-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    order: 1;
}

.leverage-input {
    padding: 12px 14px;
    background: #161D26;
    border: 1px solid #2A3035;
    border-radius: 6px;
    color: #E8F4F8;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    transition: all 0.2s ease;
    width: 80px;
}

.leverage-input:focus {
    outline: none;
    border-color: #00FF88;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
}

.leverage-suffix {
    color: #00FF88;
    font-weight: 600;
    font-size: 14px;
}

.leverage-quick-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0;
    order: 2;
}

.quick-leverage-btn {
    padding: var(--padding-btn);
    background: #161D26;
    border: 1px solid #2A3035;
    border-radius: var(--border-radius-lg);
    color: #E8F4F8;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 35px;
}

.quick-leverage-btn:hover {
    background: rgba(71, 77, 87, 0.9);
    border-color: #00FF88;
    color: #00FF88;
    transform: translateY(-2px);
}

.quick-leverage-btn.active {
    background: #00FF88;
    border-color: #00FF88;
    color: #0A1B14;
    font-weight: 600;
}

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

.leverage-slider {
    width: 100%;
    height: 2px;
    border-radius: 0;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    order: 3;
    margin: 12px 0;
    padding: 8px 0;
}

.leverage-slider:focus {
    outline: none;
    box-shadow: none;
}

/* Create the track as a line, not a box */
.leverage-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right,
        #0066FF 0%,     /* Cold blue at 0x */
        #0099FF 15%,    /* Medium blue */
        #00CCFF 30%,    /* Light blue */
        #CCCCCC 40%,    /* Cool gray at 5x */
        #FFFF00 40.1%,  /* Sharp transition to yellow at 6x */
        #FF8800 60%,    /* Orange */
        #FF4400 80%,    /* Red orange */
        #CC0000 100%    /* Hot dark red at maximum */
    ) !important;
    border-radius: 1px;
    transform: translateY(-50%);
    pointer-events: none;
}

.leverage-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--thumb-color, #0066FF);
    cursor: pointer;
    border: 2px solid #1E2026;
    box-shadow: 0 2px 8px rgba(var(--thumb-shadow-rgb, 0, 102, 255), 0.4);
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    margin-top: -8px; /* Center on 2px track: (18px - 2px) / 2 = 8px */
}

.leverage-slider::-webkit-slider-thumb:hover {
    background: var(--thumb-color, #0066FF);
    box-shadow: 0 0 10px rgba(var(--thumb-shadow-rgb, 0, 102, 255), 0.5);
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(var(--thumb-shadow-rgb, 0, 102, 255), 0.6);
}

.leverage-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--thumb-color, #0066FF);
    cursor: pointer;
    border: 2px solid #1E2026;
    box-shadow: 0 2px 8px rgba(var(--thumb-shadow-rgb, 0, 102, 255), 0.4);
    transition: all 0.2s ease;
    -moz-appearance: none;
}

.leverage-slider::-moz-range-thumb:hover {
    background: var(--thumb-color, #0066FF);
    box-shadow: 0 0 10px rgba(var(--thumb-shadow-rgb, 0, 102, 255), 0.5);
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(var(--thumb-shadow-rgb, 0, 102, 255), 0.6);
}

.leverage-slider::-webkit-slider-track {
    height: 2px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

.leverage-slider::-moz-range-track {
    height: 2px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

/* Progress fill for lower track (Chrome/Safari) */
.leverage-slider::-webkit-slider-runnable-track {
    height: 2px;
    background: linear-gradient(to right,
        #0066FF 0%,     /* Cold blue at 0x */
        #0099FF 15%,    /* Medium blue */
        #00CCFF 30%,    /* Light blue */
        #CCCCCC 40%,    /* Cool gray at 5x */
        #FFFF00 40.1%,  /* Sharp transition to yellow at 6x */
        #FF8800 60%,    /* Orange */
        #FF4400 80%,    /* Red orange */
        #CC0000 100%    /* Hot dark red at maximum */
    ) !important;
    border: none;
    border-radius: 1px;
}

/* Progress fill for Firefox */
.leverage-slider::-moz-range-progress {
    height: 2px;
    background: linear-gradient(to right,
        #0066FF 0%,     /* Cold blue at 0x */
        #0099FF 15%,    /* Medium blue */
        #00CCFF 30%,    /* Light blue */
        #CCCCCC 40%,    /* Cool gray at 5x */
        #FFFF00 40.1%,  /* Sharp transition to yellow at 6x */
        #FF8800 60%,    /* Orange */
        #FF4400 80%,    /* Red orange */
        #CC0000 100%    /* Hot dark red at maximum */
    ) !important;
    border: none;
    border-radius: 1px;
}


/* Temperature-based thumb colors */
.leverage-slider[data-temp="cold-blue"]::-webkit-slider-thumb {
    background: #0066FF !important;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4) !important;
}

.leverage-slider[data-temp="medium-blue"]::-webkit-slider-thumb {
    background: #0099FF !important;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.4) !important;
}

.leverage-slider[data-temp="light-blue"]::-webkit-slider-thumb {
    background: #00CCFF !important;
    box-shadow: 0 2px 8px rgba(0, 204, 255, 0.4) !important;
}

.leverage-slider[data-temp="cool-gray"]::-webkit-slider-thumb {
    background: #CCCCCC !important;
    box-shadow: 0 2px 8px rgba(204, 204, 204, 0.4) !important;
}

.leverage-slider[data-temp="yellow"]::-webkit-slider-thumb {
    background: #FFFF00 !important;
    box-shadow: 0 2px 8px rgba(255, 255, 0, 0.4) !important;
}

.leverage-slider[data-temp="orange"]::-webkit-slider-thumb {
    background: #FF8800 !important;
    box-shadow: 0 2px 8px rgba(255, 136, 0, 0.4) !important;
}

.leverage-slider[data-temp="red-orange"]::-webkit-slider-thumb {
    background: #FF4400 !important;
    box-shadow: 0 2px 8px rgba(255, 68, 0, 0.4) !important;
}

.leverage-slider[data-temp="dark-red"]::-webkit-slider-thumb {
    background: #CC0000 !important;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.4) !important;
}

/* Firefox versions */
.leverage-slider[data-temp="cold-blue"]::-moz-range-thumb {
    background: #0066FF !important;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4) !important;
}

.leverage-slider[data-temp="medium-blue"]::-moz-range-thumb {
    background: #0099FF !important;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.4) !important;
}

.leverage-slider[data-temp="light-blue"]::-moz-range-thumb {
    background: #00CCFF !important;
    box-shadow: 0 2px 8px rgba(0, 204, 255, 0.4) !important;
}

.leverage-slider[data-temp="cool-gray"]::-moz-range-thumb {
    background: #CCCCCC !important;
    box-shadow: 0 2px 8px rgba(204, 204, 204, 0.4) !important;
}

.leverage-slider[data-temp="yellow"]::-moz-range-thumb {
    background: #FFFF00 !important;
    box-shadow: 0 2px 8px rgba(255, 255, 0, 0.4) !important;
}

.leverage-slider[data-temp="orange"]::-moz-range-thumb {
    background: #FF8800 !important;
    box-shadow: 0 2px 8px rgba(255, 136, 0, 0.4) !important;
}

.leverage-slider[data-temp="red-orange"]::-moz-range-thumb {
    background: #FF4400 !important;
    box-shadow: 0 2px 8px rgba(255, 68, 0, 0.4) !important;
}

.leverage-slider[data-temp="dark-red"]::-moz-range-thumb {
    background: #CC0000 !important;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.4) !important;
}

/* Temperature-based input colors */
.leverage-input[data-temp="cold-blue"] {
    border-color: #0066FF !important;
    color: #0066FF !important;
    box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.2) !important;
}

.leverage-input[data-temp="medium-blue"] {
    border-color: #0099FF !important;
    color: #0099FF !important;
    box-shadow: 0 0 0 1px rgba(0, 153, 255, 0.2) !important;
}

.leverage-input[data-temp="light-blue"] {
    border-color: #00CCFF !important;
    color: #00CCFF !important;
    box-shadow: 0 0 0 1px rgba(0, 204, 255, 0.2) !important;
}

.leverage-input[data-temp="cool-gray"] {
    border-color: #CCCCCC !important;
    color: #CCCCCC !important;
    box-shadow: 0 0 0 1px rgba(204, 204, 204, 0.2) !important;
}

.leverage-input[data-temp="yellow"] {
    border-color: #FFFF00 !important;
    color: #FFFF00 !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 0, 0.2) !important;
}

.leverage-input[data-temp="orange"] {
    border-color: #FF8800 !important;
    color: #FF8800 !important;
    box-shadow: 0 0 0 1px rgba(255, 136, 0, 0.2) !important;
}

.leverage-input[data-temp="red-orange"] {
    border-color: #FF4400 !important;
    color: #FF4400 !important;
    box-shadow: 0 0 0 1px rgba(255, 68, 0, 0.2) !important;
}

.leverage-input[data-temp="dark-red"] {
    border-color: #CC0000 !important;
    color: #CC0000 !important;
    box-shadow: 0 0 0 1px rgba(204, 0, 0, 0.2) !important;
}

/* Enhanced spacing for chat message links */
.message-content .citation-link,
.message-content .raw-url-link {
    margin: 2px 4px;
    vertical-align: middle;
}

/* Ensure links have proper breathing room in chat */
.message-content {
    line-height: 1.6;
    overflow: visible;
}

/* Add extra space around links in messages */
.message-content a {
    display: inline-block;
    margin: 2px 4px;
}

/* Prevent links from breaking out of message bubbles */
.message.assistant .message-content {
    overflow: visible;
    position: relative;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #262B32;
}

.chat-title {
    display: flex;
    align-items: center;
}

.chat-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* API status styles removed - not used */

.chat-messages {
    flex: 1;
    background: #20262B;
    border-radius: var(--border-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    overflow-y: auto;
    max-height: 600px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.6) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.6);
    border-radius: 3px;
    border: none;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.8);
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.user .message-content {
    background: #00FF88;
    color: #1E2026;
    border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 179, 89, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #E0F2FE;
    border-bottom-left-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.message.assistant .message-content .disclaimer {
    font-size: 8px;
    opacity: 0.7;
    margin-top: 8px;
    display: block;
}

.message-timestamp {
    font-size: 11px;
    color: #B7BDC6;
    margin: 0 4px;
}

/* Formatted content styles for markdown elements in chat messages */
.message-content h1, 
.message-content h2, 
.message-content h3 {
    margin: 6px 0 4px 0;
    font-weight: 600;
    line-height: 1.2;
}

.message-content h1 {
    font-size: 16px;
    color: #00FF88;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 2px;
}

.message-content h2 {
    font-size: 15px;
    color: #0ECB81;
}

.message-content h3 {
    font-size: 14px;
    color: #00FF88;
}

.message-content ul,
.message-content ol {
    margin: 4px 0;
    padding-left: 18px;
}

.message-content li {
    margin: 2px 0;
    line-height: 1.3;
}

.message-content ul li {
    list-style-type: disc;
}

.message-content ol li {
    list-style-type: decimal;
}

.message-content code {
    background: rgba(0, 255, 136, 0.15);
    color: #00FF88;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.message-content pre {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    padding: 8px;
    margin: 6px 0;
    overflow-x: auto;
    max-width: 100%;
}

.message-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 10px;
    color: #E0F2FE;
    white-space: pre;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #B7BDC6;
    font-size: 13px;
    margin-bottom: 12px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #00FF88;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    30% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input-section {
    display: block;
}

.chat-input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.chat-input {
    flex: 1;
    max-width: 100%;
    min-width: 0;
    padding: 16px 20px;
    background: #161D26;
    border: 1px solid #2A3035;
    border-radius: 15px;
    color: #E8F4F8;
    font-size: 13px;
    resize: none;
    min-height: 85px;
    max-height: 145px;
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(71, 77, 87, 0.6) transparent;
    box-sizing: border-box;
}

.chat-input::-webkit-scrollbar {
    width: 4px;
}

.chat-input::-webkit-scrollbar-track {
    background: transparent;
}

.chat-input::-webkit-scrollbar-thumb {
    background: rgba(71, 77, 87, 0.6);
    border-radius: 2px;
    border: none;
}

.chat-input::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 185, 11, 0.8);
}

.chat-input:focus {
    outline: none;
    border-color: #00FF88;
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.1);
}

.chat-input::placeholder {
    color: #B7BDC6;
}


.send-button {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    padding: 0;
    background: #00FF88;
    color: #1E2026;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-button:disabled {
    background: #474D57;
    color: #B7BDC6;
    cursor: not-allowed;
}

.send-button:not(:disabled):hover {
    background: #00FF88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transform: scale(1.05);
}

.send-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Clear button styles */
.clear-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    color: #FF4444;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #FF4444;
    color: #FF4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
    transform: scale(1.05);
}

.clear-icon {
    font-size: 16px;
}


.quick-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 20px 0;
}

@media (max-width: 1200px) {
    .quick-questions {
        grid-template-columns: 1fr;
    }
}

.quick-question {
    padding: 10px 12px;
    background: rgba(43, 49, 57, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #E0F2FE;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.3;
    font-weight: 500;
}

.quick-question:hover {
    background: rgba(71, 77, 87, 0.9);
    border-color: #00FF88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
    color: #00FF88;
}

.chat-controls {
    display: flex;
    gap: 8px;
}

/* Duplicate chat-control-btn styles removed - consolidated above */

/* Conversation Menu Dropdown */
.conversation-menu {
    position: relative;
    display: inline-block;
}

.conversation-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #262B32;
    border: 1px solid #474D57;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 180px;
}

.conversation-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #E0F2FE;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.dropdown-item:first-child {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.dropdown-item:hover {
    background: #374151;
    color: #00FF88;
}

.dropdown-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.empty-chat {
    text-align: center;
    color: #B7BDC6;
    font-size: 14px;
    padding: 40px 20px;
}

.empty-chat-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ============================================================================
   FLOATING CHAT WIDGET
   ============================================================================ */

/* Floating Chat Button */
.chat-widget-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00FF88 0%, #00CC6F 100%);
    border: none;
    color: #0A0D0F;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    animation: chatButtonPulse 2s ease-in-out infinite;
}

.chat-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.6);
}

.chat-widget-button svg {
    width: 28px;
    height: 28px;
}

@keyframes chatButtonPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 255, 136, 0.7);
    }
}

/* Chat Widget Container */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 420px;
    height: 600px;
    background: #161C20;
    border: 2px solid #00FF88;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Widget Header */
.chat-widget-header {
    background: linear-gradient(135deg, #1E2529 0%, #161C20 100%);
    border-bottom: 1px solid #2A3035;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.chat-widget-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #00FF88;
    margin: 0;
}

.chat-widget-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Widget Body */
.chat-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px;
}

.chat-widget .chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 8px;
}

.chat-widget .quick-questions {
    margin-bottom: 12px;
    gap: 6px;
}

.chat-widget .quick-question {
    padding: 8px 12px;
    font-size: 13px;
}

.chat-widget .chat-input-container {
    margin-top: auto;
    gap: 8px;
}

.chat-widget .chat-input {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 42px;
    max-height: 100px;
}

.chat-widget .send-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto auto;
    }
    .left-panel, .center-panel, .right-panel { 
        border-right: none; 
        border-bottom: 1px solid #171A1E; 
    }
    .right-panel { border-bottom: none; }
    .price-row { flex-direction: column; gap: 8px; }
    .coin-select { min-width: auto; }
    .header h1 { font-size: 20px; }
    .header p { font-size: 12px; }
    .input-group { margin-bottom: 16px; }
    .chat-messages { max-height: 80vh; }
    
    /* Adjust chart for tablet */
    .chart-section {
        height: 450px;
        padding: 16px 16px 28px 16px;
    }
    .chart-canvas {
        height: 380px !important;
        max-height: 380px !important;
    }
    .results-section {
        max-width: 75%;
    }
}

@media (max-width: 768px) {
    .header { 
        padding: 8px 16px; 
        min-height: 60px;
    }
    .left-panel, .center-panel, .right-panel { 
        padding: 16px; 
        margin: 0;
    }
    .mascot-container { display: none; }
    .version-badge { display: none; }
    
    /* Make chat messages taller on mobile */
    .chat-messages { 
        max-height: 70vh;
        min-height: 50vh;
    }
    
    /* Ensure chat container can expand */
    .chat-container {
        min-height: 60vh;
        flex: 1;
    }
    
    /* Ensure right panel takes more space on mobile */
    .right-panel {
        min-height: 70vh;
    }
    
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix input overflow */
    input, select, textarea {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    
    /* Fix chat input specifically */
    .chat-input {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Adjust chart for mobile */
    .chart-section {
        height: 350px;
        padding: 12px 12px 24px 12px;
    }
    .chart-canvas {
        height: 280px !important;
        max-height: 280px !important;
    }
    .results-section {
        max-width: 100%;
    }
    .chart-controls {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    .chart-control-group {
        gap: 4px;
        width: 100%;
    }
    .control-label {
        font-size: 9px;
    }
    .chart-header .mascot {
        width: 36px;
        height: 36px;
    }
    .timeframe-selector {
        gap: 2px;
        flex: 1;
    }
    .timeframe-btn {
        padding: 3px 6px;
        font-size: 10px;
    }
    .ma-selector {
        gap: 2px;
        flex: 1;
    }
    .ma-btn {
        padding: 3px 6px;
        font-size: 10px;
    }

    /* Chat Widget Mobile */
    .chat-widget {
        bottom: 0;
        right: 0;
        left: 0;
        top: 80px;
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 0;
        border: none;
        border-top: 2px solid #00FF88;
    }

    .chat-widget-header {
        padding: 12px 16px;
        border-radius: 0;
    }

    .chat-widget-body {
        padding: 12px;
        height: calc(100vh - 140px);
        max-height: none;
        display: flex;
        flex-direction: column;
    }

    .chat-widget .chat-messages {
        flex: 1;
        min-height: 200px;
        max-height: calc(100vh - 340px);
        margin-bottom: 12px;
        overflow-y: auto;
    }

    .chat-widget .quick-questions {
        flex-shrink: 0;
        margin-bottom: 12px;
    }

    .chat-widget .chat-input-container {
        flex-shrink: 0;
        margin-top: 0;
    }

    .chat-widget .chat-input {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 48px;
        max-height: 100px;
    }

    .chat-widget .send-button {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .chat-widget-button {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
        z-index: 1000;
    }

    .chat-widget-button svg {
        width: 24px;
        height: 24px;
    }

    /* Chart hint styles removed - no longer used */
}

/* Ticker Toggle Button (Hamburger Menu - Eyelash Style) */
.ticker-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 16px;
    background: linear-gradient(135deg, #0A0D0F 0%, #12171C 50%, #1A1F26 100%);
    border-left: 1px solid rgba(0, 255, 136, 0.2);
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 0 0 4px 4px;
    border-top: none;
    cursor: pointer;
    position: fixed;
    top: 84px; /* 36px legal banner + 48px ticker banner */
    right: 60px;
    z-index: 1002;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line {
    display: block;
    width: 10px;
    height: 1px;
    background: #00FF88;
    border-radius: 0.5px;
    transform-origin: center;
    margin: 1px 0;
}

/* Hamburger lines remain unchanged when active */
.ticker-toggle-btn.active .hamburger-line:nth-child(1) {
    /* Keep hamburger lines unchanged */
}

.ticker-toggle-btn.active .hamburger-line:nth-child(2) {
    /* Keep hamburger lines unchanged */
}

.ticker-toggle-btn.active .hamburger-line:nth-child(3) {
    /* Keep hamburger lines unchanged */
}

/* Ticker banner collapse animation */
.crypto-ticker-banner {
    height: 48px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapse ticker banner by moving it up, not changing height */
.crypto-ticker-banner.hidden {
    transform: translateY(-48px);
}

/* Move button with ticker during collapse animation */
body.ticker-hidden .ticker-toggle-btn {
    top: 36px; /* Move to legal banner bottom when ticker collapsed */
}

/* Adjust body padding when ticker is collapsed */
body.ticker-hidden {
    padding-top: 52px !important; /* 36px legal banner + 16px button height */
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Legal banner dismissed state - no inline styles needed */
body.legal-banner-dismissed {
    padding-top: 48px; /* Only ticker height */
}

body.legal-banner-dismissed .crypto-ticker-banner {
    top: 0px; /* Move ticker to top when banner dismissed */
}

body.legal-banner-dismissed .ticker-toggle-btn {
    top: 48px; /* Position button at bottom of ticker */
}

/* When both legal banner is dismissed AND ticker is hidden */
body.legal-banner-dismissed.ticker-hidden {
    padding-top: 0px !important; /* No banners visible */
}

body.legal-banner-dismissed.ticker-hidden .ticker-toggle-btn {
    top: 0px; /* Move button to very top when both are hidden */
}


/* Mobile responsive adjustments for ticker toggle */
@media (max-width: 480px) {
    .ticker-toggle-btn {
        width: 28px;
        height: 28px;
        margin-left: 12px;
        padding: 5px;
    }
    
    .hamburger-line {
        width: 14px;
        height: 1.5px;
        margin: 1.5px 0;
    }
    
    .ticker-toggle-btn.active .hamburger-line:nth-child(1) {
        /* Keep hamburger lines unchanged on mobile */
    }
    
    .ticker-toggle-btn.active .hamburger-line:nth-child(3) {
        /* Keep hamburger lines unchanged on mobile */
    }

    /* Mobile responsive for legal banner dismissed state */
    body.legal-banner-dismissed {
        padding-top: 80px; /* Mobile ticker height */
    }

    body.legal-banner-dismissed .ticker-toggle-btn {
        top: 80px; /* Position at bottom of mobile ticker */
    }

    body.legal-banner-dismissed.ticker-hidden {
        padding-top: 0px !important; /* No banners on mobile */
    }

    body.legal-banner-dismissed.ticker-hidden .ticker-toggle-btn {
        top: 0px; /* Move to top on mobile when both hidden */
    }
}

/* Extra small mobile devices (under 360px) */
@media (max-width: 360px) {
    .ticker-item {
        padding: 0 6px; /* Even less padding for very small screens */
        min-width: 100px; /* Smaller minimum width */
    }

    .coin-symbol {
        font-size: 8px; /* Even smaller symbol */
    }

    .coin-name {
        font-size: 5px; /* Tiny name text */
        max-width: 30px; /* Very limited name width */
    }

    .coin-price {
        font-size: 7px; /* Smaller price */
        min-width: 30px;
    }

    .coin-change {
        font-size: 6px; /* Smallest change text */
        min-width: 30px;
        padding: 1px;
    }

    .coin-data {
        gap: 4px; /* Minimal gap between elements */
    }

    .coin-header {
        gap: 2px; /* Minimal gap in header */
    }
}

/* Orientation-specific optimizations for mobile */
@media screen and (max-width: 480px) and (orientation: portrait) {
    /* Hide ticker banner completely on mobile portrait - higher specificity */
    html .crypto-ticker-banner,
    body .crypto-ticker-banner,
    .crypto-ticker-banner {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Hide ticker toggle button on mobile portrait - higher specificity */
    html .ticker-toggle-btn,
    body .ticker-toggle-btn,
    .ticker-toggle-btn {
        display: none !important;
        visibility: hidden !important;
    }

    /* Adjust body layout when ticker is hidden - higher specificity */
    html body,
    body {
        padding-top: 36px !important; /* Only legal banner height */
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    /* Landscape mode - can handle slightly slower animation */
    .ticker-content {
        animation-duration: 55s; /* Slightly slower in landscape */
    }
}

/* Donation Component Styles */
.donation-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 100;
}

.donation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    min-width: auto;
}

.donation-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-1px);
}

.donation-btn:active {
    transform: scale(0.98);
}


.donation-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: #00FF88;
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.donation-btn:hover .donation-text {
    color: #00FF88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
    transform: scale(1.05);
}

/* Heart animations removed - using simple text styling */

.donation-dropdown {
    position: fixed;
    top: 110px;
    right: 20px;
    width: 350px;
    background: #0E1013;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 136, 0.2);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.donation-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.donation-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
}

.donation-header h3 {
    color: #00FF88;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.donation-header p {
    color: #B7BDC6;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.crypto-tabs {
    display: flex;
    padding: 16px 20px 0;
    gap: 4px;
}

.crypto-tab {
    flex: 1;
    padding: 8px 12px;
    background: rgba(43, 49, 57, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    color: #B7BDC6;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.crypto-tab:hover {
    background: rgba(71, 77, 87, 0.8);
    border-color: rgba(0, 255, 136, 0.4);
    color: #E0F2FE;
}

.crypto-tab.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    border-color: #00FF88;
    color: #00FF88;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.donation-content {
    padding: 20px;
}

.crypto-section {
    display: none;
    text-align: center;
}

.crypto-section.active {
    display: block;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(43, 49, 57, 0.4);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.qr-container canvas {
    border-radius: 4px;
}

.address-container {
    margin-top: 16px;
}

.address-container label {
    display: block;
    color: #B7BDC6;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
}

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

.address-input-group input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(43, 49, 57, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: #E0F2FE;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.address-input-group input:focus {
    outline: none;
    border-color: #00FF88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.copy-btn {
    padding: 10px 14px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    color: #00FF88;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00FF88;
    color: #00FF88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

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

.copy-btn.copied {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00FF88;
    color: #00FF88;
}

.donation-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
}

.donation-footer p {
    color: #00FF88;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* Mobile responsiveness for donation component */
@media (max-width: 768px) {
    .donation-dropdown {
        width: calc(100vw - 20px);
        max-width: 350px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
        max-height: calc(100vh - 80px);
    }
    
    .donation-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
}