/**
 * AXIOM Pro Pulse - Exact Design Match
 * Trading Interface Theme Consistency
 */

:root {
  /* AXIOM Pro Theme Variables - Matching trading interface */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-hover: #141414;
  --bg-active: #1a1a1a;

  /* Borders */
  --border-primary: #1a1a1a;
  --border-secondary: #222222;
  --border-active: #333333;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --text-muted: #666666;
  --text-disabled: #444444;

  /* Trading Colors */
  --color-buy: #00ff88;
  --color-sell: #ff3366;
  --color-profit: #00ff88;
  --color-loss: #ff3366;

  /* Accent Colors */
  --color-accent: #3861fb;
  --color-warning: #ffaa00;
  --color-info: #00aaff;

  /* Live Indicators */
  --color-live: #ff3366;
  --color-live-glow: rgba(255, 51, 102, 0.3);
}

.stream-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.stream-preview-container {
    width: 90%;
    max-width: 800px;
    height: 70vh;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.stream-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.stream-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stream-token-symbol {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.stream-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg-active);
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.live-indicator {
    width: 6px;
    height: 6px;
    color: var(--color-live);
    animation: pulse 2s infinite;
}

.stream-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.stream-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.stream-video-container {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.stream-video-container.audio-muted video {
    filter: blur(4px) brightness(0.8);
}

.audio-prompt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease;
}

.audio-prompt:hover {
    background: rgba(0, 0, 0, 0.5);
}

.audio-prompt-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-secondary);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audio-prompt:hover .audio-prompt-content {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: var(--border-active);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.audio-text {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.audio-prompt:hover .audio-text {
    color: var(--text-primary);
}

.muted-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    z-index: 101;
    animation: fadeIn 0.3s ease;
}

.muted-indicator svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stream-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.stream-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-secondary);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Base Layout */
body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.main-content {
    background: var(--bg-secondary) !important;
    min-height: calc(100vh - 48px - 32px) !important; /* 48px header + 32px footer */
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0 16px 0 16px; /* no bottom padding */
    margin: 0; /* remove any margin */
    overflow: hidden; /* desktop default */
}

/* Desktop specific - ensure proper scrolling */
@media (min-width: 769px) {
    .main-content {
        overflow: hidden !important;
        height: calc(100vh - 48px - 32px) !important;
        margin-bottom: 0 !important; /* No margin on desktop */
    }

    .cards-container {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* Three Column Layout */
.token-section {
    flex: 1;
    border-right: 1px solid #1a1b20;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.token-section:last-child {
    border-right: none;
}

/* Section Headers */
.section-header {
    padding: 10px 16px 8px;
    background: #0a0b0d;
    border-bottom: 1px solid #1a1b20;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.section-count {
    color: var(--text-muted);
    font-size: 11px;
    background: var(--bg-active);
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

/* Cards Container */
.cards-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

/* AXIOM Card - Compact Trading Design */
.axiom-card {
    background: var(--bg-card);
    border: none;
    border-bottom: 1px solid var(--border-primary);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 95px;
}

.axiom-card:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Card Top Row */
.card-top-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
    position: relative;
}

/* Live Thumbnail Container */
.thumbnail-container {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 14px; /* Space for percentage badge */
}

.live-thumbnail {
    width: 80px;
    height: 55px;
    border-radius: 6px;
    background: var(--bg-active);
    object-fit: cover;
    border: 2px solid var(--border-secondary);
    transition: all 0.3s ease;
    margin: 0;
    position: relative;
    display: block;
}

.live-thumbnail.streamable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-container.streamable:hover .live-thumbnail {
    filter: blur(3px) brightness(0.7);
}

.stream-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 50;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.thumbnail-container.streamable:hover .stream-play-icon {
    opacity: 1;
    transform: translate(-45%, -50%);
}

.thumbnail-container.streamable {
    position: relative;
}

/* Single Progress Track - Colored portion + Grey remainder */
.thumbnail-container.has-progress::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 8px;
    background: conic-gradient(
        from 0deg,
        var(--progress-color, #666) 0deg,
        var(--progress-color, #666) var(--progress-angle, 0deg),
        rgba(255, 255, 255, 0.15) var(--progress-angle, 0deg),
        rgba(255, 255, 255, 0.15) 360deg
    );
    z-index: 1;
}

/* Ensure thumbnail content is on top */
.thumbnail-container.has-progress .live-thumbnail {
    position: relative;
    z-index: 3;
    border: none;
    box-shadow: none;
}

/* Bonding Percentage Badge - True 50/50 floating */
.thumbnail-container .progress-badge {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--progress-color, #666);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    z-index: 5;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 18px;
    line-height: 12px;
}

.thumbnail-container.has-progress .progress-badge {
    opacity: 1;
}


/* Remove old live styles */
.live-thumbnail.live {
    border-color: var(--border-secondary);
}

/* Token Status Badges */
.token-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--bg-active);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    opacity: 0.9;
    z-index: 10;
}

.token-status-badge.hot {
    background: var(--color-sell);
    color: white;
    border-color: var(--color-sell);
    animation: badgePulse 2s ease-in-out infinite;
}

.token-status-badge.new {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.token-status-badge.pumping {
    background: var(--color-buy);
    color: var(--bg-primary);
    border-color: var(--color-buy);
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Token Logo */
.token-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-active);
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--border-secondary);
    transition: all 0.2s ease;
}

.axiom-card:hover .token-logo {
    border-color: var(--border-primary);
}

.axiom-card:hover .token-symbol {
    color: var(--color-accent);
}

.axiom-card:hover .token-name {
    opacity: 1;
}

.token-info {
    flex: 1;
    min-width: 0;
    padding-left: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2px;
}

.token-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.token-symbol {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.token-name {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.8;
}

.token-age {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    background: var(--bg-active);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid var(--border-primary);
    font-variant-numeric: tabular-nums;
}

.token-emoji {
    font-size: 13px;
}

/* Token Address Container - Modern Design */
.token-address-container {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(26, 27, 32, 0.4);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 3px 6px 3px 8px;
    margin-top: 2px;
    transition: all 0.2s ease;
    max-width: 140px;
}

.token-address-container:hover {
    background: rgba(26, 27, 32, 0.6);
    border-color: var(--border-secondary);
}

.token-address {
    color: var(--text-muted);
    font-size: 10px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.3px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}

/* Copy Button */
.copy-btn {
    background: transparent;
    border: none;
    padding: 2px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.copy-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

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

.copy-icon {
    width: 10px !important;
    height: 10px !important;
    color: var(--text-muted) !important;
    stroke-width: 2.5 !important;
}

.copy-btn:hover .copy-icon {
    color: var(--text-secondary) !important;
}

/* Copy Success State */
.copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
}

.copy-btn.copied .copy-icon {
    color: #10b981 !important;
}

/* Social Links Row - Minimal Design */
.social-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.social-link-icon {
    width: 13px !important;
    height: 13px !important;
    stroke-width: 2.5 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease !important;
}

.x-icon {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Platform-specific hover effects with gradients */
.social-link.twitter-link:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

.social-link.twitter-link:hover .x-icon {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.1);
}

.social-link.telegram-link:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2) 0%, rgba(0, 136, 204, 0.1) 100%) !important;
    border-color: rgba(0, 136, 204, 0.5) !important;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3), 0 0 0 1px rgba(0, 136, 204, 0.4) !important;
}

.social-link.telegram-link:hover .social-link-icon {
    color: #0088cc !important;
    filter: drop-shadow(0 0 6px rgba(0, 136, 204, 0.6));
    transform: scale(1.1);
}

.social-link.website-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(0, 212, 170, 0.1) 100%) !important;
    border-color: rgba(0, 212, 170, 0.5) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.3), 0 0 0 1px rgba(0, 212, 170, 0.4) !important;
}

.social-link.website-link:hover .social-link-icon {
    color: #00d4aa !important;
    filter: drop-shadow(0 0 6px rgba(0, 212, 170, 0.6));
    transform: scale(1.1);
}

/* Simplified AXIOM Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 15, 0.98) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.loading-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.loading-content {
    position: relative;
}

.loading-header {
    margin-bottom: 24px;
}

.axiom-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(0, 212, 170, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo-pro {
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 212, 170, 1) 0%, rgba(59, 130, 246, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 2px 6px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 4px;
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.spinner-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top: 2px solid rgba(0, 212, 170, 0.8);
    border-right: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-inner {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border: 2px solid transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
}

.loading-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.loading-subtitle {
    font-size: 13px;
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.loading-progress {
    margin-top: 16px;
}

.loading-progress .progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 6px;
}

.loading-progress .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        rgba(0, 212, 170, 0.8) 0%,
        rgba(0, 212, 170, 0.6) 100%);
    border-radius: 1px;
    animation: progressLoad 3s ease-out forwards;
}

.progress-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progressLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes progressPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes rotateAroundBox {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
        filter: hue-rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

/* Loading overlay hide animation */
.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

/* Show More Button - AXIOM Theme */
.show-more-container {
    display: flex;
    justify-content: center;
    margin: 16px 0 8px 0;
    grid-column: 1 / -1; /* Span all columns in grid */
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 140px;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95);
}

.show-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.show-more-text {
    font-weight: 500;
}

.show-more-icon {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2 !important;
    transition: transform 0.2s ease;
}

.show-more-btn:hover .show-more-icon {
    transform: translateY(1px);
}

/* Card Stats - Top Right Corner - Enhanced */
.card-stats {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    background: var(--bg-active);
    border: 1px solid var(--border-secondary);
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 20px;
    font-size: 11px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* 3D raised effect for highlighted stat items */
.stat-item:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 1px solid #1d4ed8;
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(59, 130, 246, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-item.high-count {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 1px solid #1d4ed8;
    transform: translateY(-1px);
    box-shadow:
        0 3px 8px rgba(59, 130, 246, 0.25),
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* White icons for 3D highlighted states */
.stat-item:hover .stat-icon,
.stat-item:hover svg.stat-icon,
.stat-item.high-count .stat-icon,
.stat-item.high-count svg.stat-icon {
    color: white !important;
    opacity: 1 !important;
}

/* Default icon styling */
.card-stats .stat-icon,
.card-stats svg.stat-icon {
    width: 11px !important;
    height: 11px !important;
    stroke-width: 2 !important;
    flex-shrink: 0 !important;
    display: block !important;
    opacity: 0.6 !important;
    visibility: visible !important;
    vertical-align: middle !important;
    color: var(--text-muted) !important;
    transition: all 0.2s ease;
}

/* Text values styling */
.view-count,
.comment-count {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

/* White text for highlighted states */
.stat-item:hover .view-count,
.stat-item:hover .comment-count,
.stat-item.high-count .view-count,
.stat-item.high-count .comment-count {
    color: white;
}


/* MC to ATH Progress Row */
.mc-ath-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.mc-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 60px;
}

.mc-label {
    color: #6b7280;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-value {
    color: #00d4ff;
    font-size: 11px;
    font-weight: 600;
}

/* Progress Bar - Connecting MC to ATH */
.mc-ath-progress-row .progress-bar {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #1a1b20 0%, #2a2b30 50%, #1a1b20 100%);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
}

.mc-ath-progress-row .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #0ea5e9 50%, #10b981 100%);
    border-radius: 1px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
}

.ath-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 60px;
}

.ath-label {
    color: #6b7280;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ath-value {
    color: #10b981;
    font-size: 11px;
    font-weight: 600;
}



/* Action Button */
.action-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    z-index: 10;
}

.action-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 11, 13, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-state {
    text-align: center;
    color: #9ca3af;
}

.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 2px solid #1a1b20;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay.hidden {
    display: none;
}

/* Top Navigation Fixes */
.top-nav {
    background: #0a0b0d;
    border-bottom: 1px solid #1a1b20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 48px;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    color: #9ca3af;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-item:hover {
    color: #ffffff;
    background: #1a1b20;
}

.nav-item.active {
    color: #ffffff;
    background: #1a1b20;
}

.logo {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #6b7280;
    font-weight: 400;
}

/* Navigation Search */
.nav-search {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 20px;
}

.nav-search input {
    width: 100%;
    background: var(--bg-active);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    padding: 10px 40px 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.nav-search input:focus {
    border-color: var(--color-accent);
    background: var(--bg-hover);
    box-shadow: 0 0 0 2px rgba(56, 97, 251, 0.1);
}

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

.nav-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

/* Lucide Icon Styling */
i[data-lucide] {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Override for nav-search icon */
.nav-search i[data-lucide] {
    width: 16px !important;
    height: 16px !important;
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-muted) !important;
    pointer-events: none !important;
}

.icon-btn i[data-lucide] {
    width: 14px;
    height: 14px;
}

.action-btn i[data-lucide] {
    width: 12px;
    height: 12px;
}

.status-item i[data-lucide] {
    width: 12px;
    height: 12px;
}

.grid-btn i[data-lucide] {
    width: 10px;
    height: 10px;
}

.stat-label i[data-lucide] {
    width: 10px;
    height: 10px;
}

.social-icon i[data-lucide] {
    width: 11px;
    height: 11px;
}

.toggle-btn i[data-lucide] {
    width: 11px;
    height: 11px;
}

.view-options i[data-lucide] {
    width: 11px;
    height: 11px;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.deposit-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.deposit-btn:hover {
    background: #2563eb;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.icon-btn:hover {
    color: #ffffff;
    background: #1a1b20;
}

.wallet-btn {
    background: #1a1b20;
    border: 1px solid #2a2b30;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.wallet-btn:hover {
    background: #2a2b30;
    border-color: #3a3b40;
}

.user-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-btn:hover {
    color: #ffffff;
}

/* Sub Navigation */
.sub-nav {
    background: #0a0b0d;
    border-bottom: 1px solid #1a1b20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 44px;
}

.sub-nav-left {
    display: flex;
    gap: 1px;
}

.sub-nav-item {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 6px;
}

.sub-nav-item:hover {
    color: #ffffff;
    background: #1a1b20;
}

.sub-nav-item.active {
    color: #ffffff;
    background: #1a1b20;
}

/* Empty State - Professional Design */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px 20px;
}

.empty-state-content {
    text-align: center;
    max-width: 280px;
}

.empty-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state-icon {
    width: 32px !important;
    height: 32px !important;
    color: var(--text-muted) !important;
    stroke-width: 1.5 !important;
}

.empty-title {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.empty-description {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

/* Show More Button */
.show-more {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #141518;
}

.show-more-btn {
    background: #1a1b20;
    color: #6b7280;
    border: none;
    padding: 6px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background: #2a2b30;
    color: #ffffff;
}

/* Scrollbar Styling */
.cards-container::-webkit-scrollbar {
    width: 3px;
}

.cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.cards-container::-webkit-scrollbar-thumb {
    background: #1a1b20;
    border-radius: 2px;
}

.cards-container::-webkit-scrollbar-thumb:hover {
    background: #2a2b30;
}

/* Hidden sections */
.token-section.hidden {
    display: none;
}

/* Bottom Status Bar */
.bottom-bar {
    background: #0a0b0d;
    border-top: 1px solid #1a1b20;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.status-item i {
    font-size: 12px;
}

.text-success {
    color: #10b981;
}

.grid-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 6px;
    margin: 0 2px;
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.2s;
}

.grid-btn:hover {
    color: #ffffff;
    background: #1a1b20;
}

.status-center {
    display: flex;
    align-items: center;
}

.pnl-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.pnl-value {
    color: #ffffff;
    font-weight: 600;
}

.pnl-value.positive {
    color: #10b981;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.global-btn:hover {
    background: #2563eb;
}

/* Removed conflicting height rule - handled by mobile responsive section */

/* Sub Navigation Right - AXIOM Pro Match */
.sub-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-group {
    display: flex;
    background: #1a1b20;
    border-radius: 6px;
    padding: 3px;
    border: 1px solid #2a2b30;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.toggle-btn:hover:not(.active) {
    color: #ffffff;
    background: #2a2b30;
}

.display-btn {
    background: #1a1b20;
    border: 1px solid #2a2b30;
    color: #6b7280;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.display-btn:hover {
    color: #ffffff;
    background: #2a2b30;
    border-color: #3a3b40;
}

.view-options {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    background: #1a1b20;
    border: 1px solid #2a2b30;
    border-radius: 6px;
    padding: 6px 10px;
    height: 32px;
}

.view-options span {
    padding: 0 3px;
    cursor: pointer;
    transition: color 0.2s;
}

.view-options span:hover {
    color: #ffffff;
}

.quick-buy {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    padding: 8px 12px;
    background: #1a1b20;
    border: 1px solid #2a2b30;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    height: 32px;
    display: flex;
    align-items: center;
}

.quick-buy:hover {
    color: #ffffff;
    background: #2a2b30;
    border-color: #3a3b40;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: calc(100vh - 48px - 38px - 32px) !important; /* 48px header + 38px mobile tabs + 32px footer */
        height: calc(100vh - 48px - 38px - 32px) !important;
        max-height: calc(100vh - 48px - 38px - 32px) !important;
        padding-bottom: 0 !important;
    }

    .token-section {
        border-right: none;
        border-bottom: 1px solid #1a1b20;
        min-height: 0 !important; /* Remove fixed min-height */
        flex: 1 !important;
    }

    .token-section.mobile-active {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: calc(100vh - 48px - 38px - 32px) !important;
        max-height: calc(100vh - 48px - 38px - 32px) !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .cards-container {
        flex: 1;
        overflow-y: auto;
    }

    .social-stats {
        padding-left: 25px;
        gap: 8px;
    }

    .status-left,
    .status-right {
        gap: 8px;
    }

    .status-item {
        font-size: 11px;
    }
}

/* KOL Traders Section */
.kol-traders {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 0;
    transition: opacity 0.3s;
}

.kol-icon {
    width: 16px;
    height: 16px;
    color: #ff8844;
    flex-shrink: 0;
}

.kol-avatars {
    display: flex;
    margin-left: -4px;
}

.kol-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    margin-left: -8px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    object-fit: cover;
}

.kol-avatar:first-child {
    margin-left: 0;
}

.kol-avatar:hover {
    transform: scale(1.15) translateY(-2px);
    z-index: 10;
    border-color: var(--color-buy);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.kol-count {
    font-size: 11px;
    color: var(--color-buy);
    font-weight: 600;
    margin-left: 4px;
    white-space: nowrap;
}

.kol-avatar-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
}

.kol-avatar:hover .kol-avatar-tooltip {
    opacity: 1;
}

.kol-trader-name {
    color: var(--text-primary);
    font-weight: 600;
}

.kol-trader-amount {
    color: var(--color-buy);
    margin-left: 4px;
}

/* Removed duplicate mobile responsive section - consolidated above */