/* ========================================
   Murakame Bubble - Meme Coin Analytics
   Professional Crypto Bubble Chart Dashboard
   ======================================== */

/* CSS Variables - Design System */
:root {
    /* Mainpage Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Original Bubble Colors */
    --bg-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --container-bg: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(118, 75, 162, 0.2);
    --text-color: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --header-color: #1a252f;
    --border-color: #e8ecf0;
    --table-header-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --table-row-hover: rgba(99, 102, 241, 0.05);
    --table-row-even: #fafbfc;
    --positive-color: #10b981;
    --negative-color: #ef4444;
    --neutral-color: #64748b;
    --tab-active-color: #6366f1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --positive-bg-light: rgba(16, 185, 129, 0.08);
    --positive-bg-dark: rgba(16, 185, 129, 0.12);
    --negative-bg-light: rgba(239, 68, 68, 0.08);
    --negative-bg-dark: rgba(239, 68, 68, 0.12);
    --footer-bg: #f8fafc;
    --footer-text: #64748b;
    --scroll-top-bg: rgba(99, 102, 241, 0.8);
    --scroll-top-hover: rgba(99, 102, 241, 1);
    --dialog-bg: #ffffff;
    --dialog-header: #f8fafc;
    --dialog-overlay: rgba(0, 0, 0, 0.6);
    --dialog-button: #6366f1;
    --dialog-button-hover: #5b21b6;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --nav-bg: rgba(10, 10, 10, 0.8);
    --bg-color: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --container-bg: rgba(30, 41, 59, 0.1);
    --glass-bg: rgba(30, 41, 59, 0.15);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #e2e8f0;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --header-color: #f1f5f9;
    --border-color: rgba(71, 85, 105, 0.3);
    --table-header-bg: linear-gradient(135deg, rgba(51, 65, 85, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
    --table-row-hover: rgba(99, 102, 241, 0.1);
    --table-row-even: rgba(51, 65, 85, 0.3);
    --positive-color: #34d399;
    --negative-color: #f87171;
    --neutral-color: #94a3b8;
    --tab-active-color: #8b5cf6;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --positive-bg-light: rgba(52, 211, 153, 0.1);
    --positive-bg-dark: rgba(52, 211, 153, 0.15);
    --negative-bg-light: rgba(248, 113, 113, 0.1);
    --negative-bg-dark: rgba(248, 113, 113, 0.15);
    --footer-bg: rgba(51, 65, 85, 0.5);
    --footer-text: #94a3b8;
    --scroll-top-bg: rgba(139, 92, 246, 0.8);
    --scroll-top-hover: rgba(139, 92, 246, 1);
    --dialog-bg: rgba(30, 41, 59, 0.98);
    --dialog-header: rgba(51, 65, 85, 0.8);
    --dialog-overlay: rgba(0, 0, 0, 0.8);
    --dialog-button: #8b5cf6;
    --dialog-button-hover: #7c3aed;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Montserrat', 'Noto Sans JP', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 20px;
    background: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    line-height: 1.6;
}

/* Gradient Overlay from mainpage */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        transparent 0%, 
        rgba(10, 10, 10, 0.4) 40%, 
        rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

[data-theme="light"] .gradient-overlay {
    background: radial-gradient(ellipse at center, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 40%, 
        rgba(255, 255, 255, 0.3) 100%);
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 119, 198, 0.3), transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 119, 198, 0.1), transparent 50%);
    opacity: 0.5;
}

[data-theme="light"] .gradient-overlay::before {
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 119, 198, 0.1), transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 119, 198, 0.05), transparent 50%);
    opacity: 0.3;
}

/* Geometric Shapes Animation */
.geometric-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 2px solid;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    border-color: rgba(102, 126, 234, 0.5);
    transform: rotate(45deg);
    animation-duration: 25s;
    box-shadow: 0 0 50px rgba(102, 126, 234, 0.3);
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    border-color: rgba(255, 119, 198, 0.5);
    border-radius: 50%;
    animation-duration: 30s;
    animation-delay: -5s;
    box-shadow: 0 0 50px rgba(255, 119, 198, 0.3);
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 20%;
    border-color: rgba(139, 92, 246, 0.5);
    transform: rotate(30deg);
    animation-duration: 35s;
    animation-delay: -10s;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 20%;
    border-color: rgba(167, 139, 250, 0.5);
    border-radius: 30%;
    animation-duration: 40s;
    animation-delay: -15s;
    box-shadow: 0 0 60px rgba(167, 139, 250, 0.3);
}

.shape-5 {
    width: 100px;
    height: 100px;
    top: 70%;
    left: 10%;
    border-color: rgba(196, 181, 253, 0.5);
    transform: rotate(60deg);
    animation-duration: 28s;
    animation-delay: -8s;
    box-shadow: 0 0 30px rgba(196, 181, 253, 0.3);
}

.shape-6 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    right: 30%;
    border-color: rgba(165, 180, 252, 0.5);
    border-radius: 20%;
    animation-duration: 32s;
    animation-delay: -20s;
    box-shadow: 0 0 45px rgba(165, 180, 252, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(20px) translateX(-30px) rotate(180deg) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-20px) translateX(30px) rotate(270deg) scale(1.05);
        opacity: 0.25;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Main Container - Glass Morphism */
.container {
    max-width: 1400px;
    margin: 80px auto 0;
    background: var(--container-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 32px;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.5s ease-out;
    z-index: 10;
}

.container:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* Header Styles */
h1 {
    color: var(--header-color);
    margin: 0 0 32px 0;
    font-weight: 800;
    font-size: 2.5rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
}

h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.6;
}

/* Theme Toggle Button in Nav */
.nav .theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    padding: 8px;
    position: relative;
}

.theme-icon {
    display: inline-block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px currentColor);
}

[data-theme="dark"] .theme-icon {
    color: #764ba2;
}

[data-theme="light"] .theme-icon {
    color: #764ba2;
    filter: drop-shadow(0 0 8px rgba(118, 75, 162, 0.5));
}

.theme-toggle:hover .theme-icon {
    transform: scale(1.2) rotate(20deg);
    filter: drop-shadow(0 0 12px currentColor);
}


/* Status Bar Styles - Glass Morphism */
.status-bar {
    background: var(--gradient-primary);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border: 1px solid var(--glass-border);
}

.status {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.status-bar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.last-updated {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: none;
    margin-left: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filter Controls */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-control {
    display: flex;
    flex-direction: column;
}

.filter-control label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    letter-spacing: 0.02em;
}

.filter-control select,
.filter-control input {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.filter-control select:hover,
.filter-control input:hover {
    border-color: var(--tab-active-color);
}

.filter-control select:focus,
.filter-control input:focus {
    border-color: var(--tab-active-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Chart Section Headers */
.chart-header {
    margin-bottom: 20px;
    padding: 16px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.chart-header p {
    font-size: 0.9rem;
    color: var(--neutral-color);
    margin: 4px 0;
    line-height: 1.6;
}

.chart-header a {
    color: var(--tab-active-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.chart-header a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Chart Container - Glass Morphism */
.chart-container {
    position: relative;
    height: 70vh;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid var(--glass-border);
    /* Chrome optimization */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

[data-theme="light"] .chart-container {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

/* Canvas specific optimization */
#chart {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Table Styles */
.coin-table-container {
    margin-top: 30px;
    margin-bottom: 30px;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .coin-table-container {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.coin-table-header {
    margin-bottom: 20px;
    padding: 16px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.coin-table-header p {
    font-size: 0.9rem;
    color: var(--neutral-color);
    margin: 4px 0;
}

.coin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background-color: transparent;
}

.coin-table th {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-weight: 600;
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

[data-theme="light"] .coin-table th {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.coin-table th,
.coin-table td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.coin-table th:first-child,
.coin-table td:first-child,
.coin-table th:nth-child(2),
.coin-table td:nth-child(2) {
    text-align: left;
}

.coin-table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: tableRowFadeIn 0.3s ease forwards;
}

.coin-table tbody tr:hover {
    background-color: var(--table-row-hover);
    transform: translateY(-1px);
}

.coin-table tbody tr:nth-child(even) {
    background-color: var(--table-row-even);
}

/* Coin Info Styles */
.coin-name-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-table td img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.coin-symbol {
    display: block;
    font-size: 0.85rem;
    color: var(--neutral-color);
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Price Change Colors */
.positive-change {
    color: var(--positive-color);
    font-weight: 600;
}

.negative-change {
    color: var(--negative-color);
    font-weight: 600;
}

/* Link Styles */
.binance-link,
.coinmarketcap-link {
    text-align: center;
}

.binance-link a,
.coinmarketcap-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.2s ease;
}

.binance-link a:hover,
.coinmarketcap-link a:hover {
    background: var(--gradient-primary);
    transform: scale(1.05);
}

.binance-link img,
.coinmarketcap-link img {
    width: 24px;
    height: 24px;
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
    padding-right: 24px;
}

.sortable::after {
    content: '↕';
    position: absolute;
    right: 8px;
    color: var(--neutral-color);
    font-size: 0.8em;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.sortable:hover::after {
    opacity: 1;
}

.sortable.asc::after {
    content: '↑';
    color: var(--tab-active-color);
    opacity: 1;
}

.sortable.desc::after {
    content: '↓';
    color: var(--tab-active-color);
    opacity: 1;
}

/* Timer Display */
.timer-container {
    text-align: center;
    margin-top: 30px;
}

.timer {
    display: inline-block;
    font-size: 0.9rem;
    color: white;
    background: var(--gradient-primary);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.02em;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--footer-text);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tableRowFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes highlight {
    0% {
        background-color: rgba(99, 102, 241, 0.3);
    }
    100% {
        background-color: transparent;
    }
}

.highlight {
    animation: highlight 2s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
}

/* Mobile Shape Adjustments */
@media (max-width: 768px) {
    .shape {
        opacity: 0.05;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
        top: -100px;
        left: -100px;
    }
    
    .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-3 {
        width: 100px;
        height: 100px;
    }
    
    .shape-4 {
        width: 180px;
        height: 180px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 20px;
        border-radius: 16px;
        margin-top: 60px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 15px;
        right: 15px;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 12px 16px;
    }
    
    .filters {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-container {
        height: 50vh;
        padding: 15px;
    }
    
    .coin-table th,
    .coin-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* Sticky columns for mobile */
    .coin-table th:first-child,
    .coin-table td:first-child,
    .coin-table th:nth-child(2),
    .coin-table td:nth-child(2) {
        position: sticky;
        background-color: var(--container-bg);
        z-index: 21;
    }
    
    .coin-table th:first-child,
    .coin-table td:first-child {
        left: 0;
        border-right: 1px solid var(--border-color);
    }
    
    .coin-table th:nth-child(2),
    .coin-table td:nth-child(2) {
        left: 50px;
        border-right: 1px solid var(--border-color);
    }
    
    .coin-table th:first-child,
    .coin-table th:nth-child(2) {
        background: var(--table-header-bg);
        z-index: 22;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin: 5px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .chart-container {
        height: 40vh;
        padding: 10px;
    }
    
    .coin-table th,
    .coin-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .timer {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Professional Features */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: pulse-hot 2s infinite;
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

@keyframes pulse-hot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Light mode specific adjustments */
[data-theme="light"] .filter-control select,
[data-theme="light"] .filter-control input {
    color: #1a1a1a !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(118, 75, 162, 0.3) !important;
}

[data-theme="light"] .filter-control select option {
    background-color: white;
    color: #1a1a1a;
}

[data-theme="light"] .nav-link {
    color: #4a5568;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #1a1a1a;
}

[data-theme="light"] .chart-header p,
[data-theme="light"] .coin-table-header p {
    color: #4a5568;
}

[data-theme="light"] .coin-table th {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
}

[data-theme="light"] .coin-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .status-bar {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip.show {
    opacity: 1;
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.loading-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    border-top-color: var(--tab-active-color);
    animation: spin 1s linear infinite;
}