:root {
    --accent-color: #00ff9d;
    --accent-hover: #00cc7d;
    --text-primary: white;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --bg-dark: #000;
    --bg-overlay: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(0, 0, 0, 0.3);
}

/* Main Layout */
.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.25rem;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem;
}

/* Dashboard Section - Base Container */
.dashboard-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-icon {
    font-size: 0.9rem;
}

.section-header h2 {
    font-size: 0.9rem;
}

.last-updated {
    font-size: 0.7rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.positive-change {
    color: var(--accent-color);
}

.negative-change {
    color: #ff4d4d;
}

/* Charts Section */
.charts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
}

.chart-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* TGI (Touch Grass Index) Section */
.tgi-container {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tgi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tgi-value {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 600;
}

/* Market Health Section */
.market-health {
    margin-bottom: 2rem;
}

.health-content {
    position: relative;
    z-index: 3004;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem;
}

.score-display {
    position: relative;
    z-index: 3005;
    text-align: center;
    padding: 0.75rem;
    margin: 0.25rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.health-level, .risk-level {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.score-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
}

.health-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.metric-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.metric-title {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.metric-weight {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.metric-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Wallet Overview Section */
.wallet-overview .wallet-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.wallet-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.copy-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-button:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.wallet-balance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: var(--bg-overlay);
    padding: 1rem;
    border-radius: 8px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.balance-value {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Market Health Section */
.market-health .health-content,
.touch-grass-index .tgi-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Contract Analysis Section */
.contract-analysis {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 500px;
    max-height: 800px;
}

.analysis-content {
    padding: 1rem 0;
}

.feature-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list {
    display: grid;
    gap: 1rem;
}

.feature-preview h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--accent-color);
}

.telegram-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.telegram-btn {
    background: #0088cc;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    opacity: 0.6;
    cursor: not-allowed;
}

.telegram-btn i {
    font-size: 1.2rem;
}

/* Wallet Overview Styles */
.wallet-overview {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.wallet-overview:hover {
    transform: translateY(-2px);
}

.wallet-rank {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-rank.diamond { 
    background: linear-gradient(135deg, #B6B6B6, #FFFFFF);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.wallet-rank.platinum { 
    background: linear-gradient(135deg, #E5E4E2, #B8B8B8);
    color: #000;
}

.wallet-rank.gold { 
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.wallet-rank.silver { 
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    color: #000;
}

.wallet-rank.bronze { 
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #fff;
}

.wallet-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-status.active_holder { 
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--bg-dark);
}

.wallet-status.active { 
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.wallet-status.holder { 
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.wallet-status.inactive { 
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.balance-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.balance-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.token-balance {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: 'Roboto Mono', monospace;
}

.balance-usd {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
}

.activity-score {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.score-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    transition: width 0.6s ease;
}

.transaction-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

.last-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.last-active .label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.last-active .value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Market Statistics Styles */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.market-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.market-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    white-space: nowrap;
}

.market-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Add styles for zero values */
.market-value[data-value='0'],
.market-value[data-value='0.000000'] {
    color: var(--text-secondary);
    font-style: italic;
}

/* Touch Grass Index Styles */
.touch-grass-index {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    margin-bottom: 1.5rem;
}

.tgi-content {
    padding: 0.5rem;
}

.tgi-message {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Market Stats Section */
.market-overview {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-primary);
    line-height: 1.2;
}

.price-change {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.price-change.positive {
    color: var(--success-color);
}

.price-change.negative {
    color: var(--danger-color);
}

/* Connect Wallet Container */
.connect-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0.25rem;
    }

    .dashboard-grid {
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .dashboard-section {
        padding: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .section-header {
        padding: 0.2rem;
    }

    .header-icon {
        font-size: 0.8rem;
    }

    .wallet-stats {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .health-content {
        padding: 1rem;
    }

    .score-display {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

    .score-value {
        font-size: 3.5rem;
    }

    .health-level, .risk-level {
        font-size: 1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .metric-box {
        padding: 0.875rem;
    }

    .metric-title {
        font-size: 0.9rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .terminal-container {
        height: 180px;
    }

    #terminal-output {
        font-size: 0.8rem;
    }

    .market-stats .stats-grid {
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0.15rem;
    }

    .dashboard-grid {
        gap: 0.3rem;
        padding: 0.15rem;
    }

    .dashboard-section {
        padding: 0.3rem;
        margin-bottom: 0.3rem;
    }

    .section-header {
        margin-bottom: 0.3rem;
    }

    .header-icon {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 0.8rem;
    }

    .last-updated {
        font-size: 0.65rem;
    }

    .wallet-primary {
        flex-direction: column;
        align-items: stretch;
    }

    .wallet-address {
        font-size: 0.9rem;
    }

    .metric-box {
        padding: 0.75rem;
    }

    .feature-list li {
        font-size: 0.9rem;
    }

    .market-grid {
        grid-template-columns: 1fr;
    }

    .health-content {
        padding: 0.75rem;
    }

    .score-display {
        padding: 1.25rem 0.75rem;
        margin: 0.25rem;
    }

    .score-value {
        font-size: 3rem;
    }

    .health-level, .risk-level {
        font-size: 0.9rem;
    }

    .metric-box {
        padding: 0.75rem;
    }

    .metric-title {
        font-size: 0.85rem;
    }

    .metric-value {
        font-size: 1.1rem;
    }

    .metric-weight {
        font-size: 0.8rem;
    }

    .metric-progress {
        height: 4px;
    }

    .terminal-container {
        height: 150px;
    }

    .stat-item {
        padding: 0.3rem;
    }

    .market-stats .stats-grid {
        gap: 0.25rem;
    }
}

/* Touch Interactions */
@media (hover: none) {
    .dashboard-section {
        touch-action: manipulation;
    }

    .metric-box {
        touch-action: manipulation;
    }

    .health-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.updating {
    animation: pulse 1.5s infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional Mobile Optimizations */
@media (max-width: 380px) {
    .dashboard-section {
        margin-bottom: 1rem;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .wallet-stats,
    .metrics-grid {
        gap: 0.75rem;
    }
}

/* Terminal Styles */
.terminal-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 450px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    overflow: hidden;
    margin: 0.25rem;
    touch-action: manipulation !important;
    -webkit-overflow-scrolling: touch;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
#terminal-output::-webkit-scrollbar {
    width: 8px;
}

#terminal-output::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

#terminal-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#terminal-output::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Terminal Line Styles */
.terminal-line {
    padding: 2px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-line.system {
    color: #00ff9d;
}

.terminal-line.info {
    color: #7cb7ff;
}

.terminal-line.error {
    color: #ff6b6b;
}

.terminal-input-container {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    outline: none;
    margin-left: 0.5rem;
    width: calc(100% - 1rem);
    -webkit-appearance: none;
    user-select: text !important;
    -webkit-user-select: text !important;
    touch-action: manipulation !important;
    -webkit-touch-callout: default !important;
    cursor: text !important;
    pointer-events: auto !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .terminal-container {
        min-height: 300px;
        margin: 0.15rem;
    }

    #terminal-output {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    #terminal-input {
        font-size: 0.85rem;
    }

    .terminal-prompt {
        font-size: 0.85rem;
    }

    #terminal-input {
        padding: 8px 0;
    }
    
    .terminal-input-container {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .terminal-container {
        min-height: 250px;
    }

    #terminal-output {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    #terminal-input {
        font-size: 0.8rem;
    }

    .terminal-prompt {
        font-size: 0.8rem;
    }

    .terminal-input-container {
        padding: 0.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    #terminal-input {
        -webkit-appearance: none;
        user-select: text !important;
        -webkit-user-select: text !important;
        -webkit-touch-callout: default !important;
        touch-action: manipulation !important;
        pointer-events: auto !important;
    }

    .terminal-container {
        touch-action: manipulation !important;
    }

    /* Ensure input is always selectable */
    #terminal-input[data-mobile-paste="true"] {
        -webkit-user-select: text !important;
        user-select: text !important;
        -webkit-touch-callout: default !important;
    }
}

/* Remove these styles */
.coming-soon-tag {
    display: none !important;
}

/* Remove any overlay styles if they exist */
.contract-analysis::before,
.contract-analysis::after {
    display: none !important;
}

/* Touch Grass Index specific styles */
.touch-grass-index .score-display {
    position: relative;
    z-index: 3010;  /* Higher z-index */
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 157, 0.25);
    margin: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.touch-grass-index .score-value {
    font-size: 5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 3011;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    margin: 1rem 0;
}

.touch-grass-index .tgi-content {
    position: relative;
    z-index: 3009;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
}

.touch-grass-index .risk-level {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    z-index: 3011;
    position: relative;
}

/* Terminal Analysis Results */
.analysis-result {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-family: 'Roboto Mono', monospace;
}

.result-header {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-section {
    margin-bottom: 0.75rem;
}

.section-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.8rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    color: var(--text-primary);
}

#loading-message {
    color: var(--accent-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .info-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Market Stats Grid */
.market-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    padding: 0.4rem;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .market-stats .stats-grid {
        gap: 0.3rem;
        padding: 0.3rem;
    }

    .stat-item {
        padding: 0.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .market-stats .stats-grid {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .stat-item {
        padding: 0.35rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-value {
        font-size: 0.75rem;
    }
}