/* Base Styles & Variables */
:root {
    --bg-primary: #0f1014;
    --bg-secondary: #1a1c23;
    --bg-card: #232429;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --accent-primary: #22c55e;
    --accent-secondary: #3b82f6;
    --positive: #22c55e;
    --negative: #ef4444;
    --warning: #eab308;
    --border-color: #374151;
    --header-height: 60px;
    --footer-height: 50px;
    --card-radius: 8px;
    --banner-bg: rgba(234, 179, 8, 0.2);
    --banner-text: #eab308;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: var(--footer-height);
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
}

ul, ol {
    list-style: none;
}

/* Header Styles */
.header {
    background-color: var(--bg-secondary);
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.logo img {
    margin-right: 0.5rem;
    height: 70px;
    width: 70px;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
}

.search-box {
    position: relative;
    width: 300px;
    margin: 0 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
}

.search-box .shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-box .shortcut:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.search-box .shortcut.active,
.mobile-search-btn.active {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Search Dropdown Styles */
.search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 200;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
}

.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.result-token-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 70%;
}

.result-token-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-token-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.result-token-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.result-token-full-name {
    color: var(--text-secondary);
    font-size: 0.75rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-token-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-chain-badge {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
}

.result-token-address {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    font-family: monospace;
}

.result-token-price {
    text-align: right;
}

.result-price {
    font-weight: 600;
    font-size: 0.85rem;
}

.result-price-change {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.result-price-change.positive {
    color: var(--positive);
}

.result-price-change.negative {
    color: var(--negative);
}

.search-loading {
    padding: 15px;
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.no-results {
    color: var(--text-tertiary);
    text-align: center;
    font-style: italic;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Search */
.mobile-search-container {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 98;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search-container.show {
    transform: translateY(0);
    display: block;
}

.mobile-search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.mobile-search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Mobile Search Dropdown */
.mobile-search-box {
    position: relative;
}

.mobile-search-box .search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    z-index: 201;
}

/* This is for the search icon inside the search box, not the toggle */
.mobile-search-box > i {
    position: absolute;
    left: 1rem;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
}

.close-search {
    position: absolute;
    right: 1rem;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
}

.close-search i {
    position: static;
    font-size: 1rem;
    line-height: 1;
    display: block;
}

/* Mobile search button */
.mobile-search-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    z-index: 5;
}

.mobile-search-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Currency Selector */
.currency-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

/* Currency Dropdown */
.currency-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 120px;
    display: none;
}

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

.currency-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.currency-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.currency-option img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.mobile-currency-selector {
    display: none;
}

@media (max-width: 768px) {
    .mobile-currency-selector {
        display: flex;
        align-items: center;
    }
    
    .currency-selector {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        cursor: pointer;
    }
    
    /* Hide the currency selector in the header on mobile */
    .user-controls .currency-selector {
        display: none;
    }
}

/* Theme Toggle and Mobile Search Icons */
.theme-toggle,
.mobile-search-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    position: relative;
}

.theme-toggle:hover,
.mobile-search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle i,
.mobile-search-toggle i {
    font-size: 1.25rem;
    color: var(--text-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    line-height: 1;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
    z-index: 101;
}

/* Alert Banner */
.alert-banner {
    background-color: var(--banner-bg);
    color: var(--banner-text);
    padding: 0.75rem;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent; /* For Firefox */
    -webkit-overflow-scrolling: touch;
}

.alert-content::-webkit-scrollbar {
    width: 6px;
}

.alert-content::-webkit-scrollbar-track {
    background: transparent;
}

.alert-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.alert-banner i {
    color: var(--warning);
    flex-shrink: 0;
}

.alert-banner span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-banner {
    margin-left: 1rem;
    color: var(--banner-text);
    position: absolute;
    right: 0;
    padding-left: 0.5rem;
    flex-shrink: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 1.5rem 0;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Mobile Tab Selector */
.mobile-tab-selector {
    display: none;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent; /* For Firefox */
}

/* Show mobile tab selector on mobile devices */
@media (max-width: 768px) {
    .mobile-tab-selector {
        display: flex;
    }
}

.mobile-tab-selector::-webkit-scrollbar {
    width: 6px;
}

.mobile-tab-selector::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-tab-selector::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.tab-button {
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 500;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button.active {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Token Grid */
.token-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent; /* For Firefox */
}

.token-grid::-webkit-scrollbar {
    width: 6px;
}

.token-grid::-webkit-scrollbar-track {
    background: transparent;
}

.token-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

/* Token Lists Layout */
.token-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.token-list {
    background-color: var(--bg-secondary);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent; /* For Firefox */
}

.token-list::-webkit-scrollbar {
    width: 6px;
}

.token-list::-webkit-scrollbar-track {
    background: transparent;
}

.token-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Token Card Styles - Consistent across desktop and mobile */
.token-card {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: auto;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.token-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    padding: 0.6rem;
    align-items: center;
    border-bottom: none; /* Remove border between header and body */
}

.token-avatar {
    position: relative;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.token-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.status-indicator.online {
    background-color: var(--positive);
}

.token-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.token-name-container {
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.token-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.2rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-full-name {
    color: var(--text-secondary);
    font-size: 0.8rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet {
    display: inline-flex;
    align-items: center;
}

.copy-address {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.1rem;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
}

.copy-address:hover {
    color: var(--text-primary);
}

.card-body {
    padding: 0.6rem;
    padding-top: 0; /* Remove top padding to make it more compact */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.token-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.price {
    font-weight: 600;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.price-change {
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.price-change.positive {
    color: var(--positive);
    background-color: rgba(34, 197, 94, 0.1);
}

.price-change.negative {
    color: var(--negative);
    background-color: rgba(239, 68, 68, 0.1);
}

.mc {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.buy-btn {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.buy-btn:hover {
    background-color: var(--accent-primary);
}

.token-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.tx {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.token-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.percent {
    font-weight: 600;
}

.percent.positive {
    color: var(--positive);
}

.percent.negative {
    color: var(--negative);
}

.direction {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.status {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--positive);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.holders {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.value {
    text-align: right;
}

.price {
    font-weight: 600;
}

.mc {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* Footer Status */
.footer-status {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 0;
    height: var(--footer-height);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

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

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.crypto-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--text-primary);
}

.crypto-price {
    font-weight: 500;
}

/* Wallet Connect Button */
.btn-wallet-connect {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-wallet-connect:hover {
    background-color: #1dab50; /* Darker shade of the accent color */
    transform: translateY(-1px);
}

.btn-wallet-connect.connected {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

/* Hide "Connect" text on mobile */
.btn-wallet-connect .desktop-text {
    display: inline;
}

.btn-wallet-connect .mobile-text {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .token-lists {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .search-box {
        width: 200px;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Token Lists Layout */
    .token-lists {
        grid-template-columns: 1fr;
        gap: 1rem;
        height: auto;
        min-height: auto;
    }
    
    /* Remove outer container styling */
    .token-list {
        background-color: transparent;
        border-radius: 0;
        border: none;
        overflow: visible;
        height: auto;
    }
    
    .list-header {
        display: none;
    }
    
    .token-grid {
        padding: 0;
        max-height: none;
        overflow-y: visible;
    }
    
    /* Hide all token lists by default on mobile */
    .token-list {
        display: none;
    }
    
    /* Only show the active token list */
    .token-list.active {
        display: block;
    }
    
    /* Make cards more prominent */
    .token-card {
        margin-bottom: 0.5rem;
        height: auto;
    }
    
    .token-name-container {
        position: relative;
        padding-right: 1.5rem;
        margin-bottom: 0.1rem;
        gap: 0.15rem;
    }
    
    .token-name {
        font-size: 0.85rem;
        margin-right: 0.2rem;
    }
    
    .token-full-name {
        font-size: 0.75rem;
    }
    
    .copy-address {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7rem;
        padding: 0.1rem;
    }
    
    .card-header {
        padding: 0.6rem;
        position: relative;
    }
    
    .card-body {
        padding: 0.6rem;
        flex-wrap: wrap;
    }
    
    .token-value {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    
    .price, .mc {
        max-width: none;
        font-size: 0.8rem;
    }
    
    .buy-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        margin-left: 0.5rem;
    }
    
    .token-info {
        width: 100%;
    }
    
    .price-change {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
    
    .user-controls {
        gap: 0.5rem;
    }
    
    .status-left {
        gap: 0.5rem;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
     .status-right {
        gap: 2rem;
    }
    
    .btn-wallet-connect .desktop-text {
        display: none;
    }
    
    .btn-wallet-connect .mobile-text {
        display: inline;
    }
    
    .btn-wallet-connect {
        padding: 0.5rem 0.75rem;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .btn-wallet-connect.connected {
        padding: 0.5rem 0.5rem;
        max-width: 100px;
        font-size: 0.85rem;
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .alert-content {
        flex-direction: row;
        text-align: left;
        padding-right: 2rem;
    }
    
    .close-banner {
        position: absolute;
        margin-left: 0;
        margin-top: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .card-header {
        flex-wrap: wrap;
    }

    .header-container {
        padding: 0 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: -1;
        position: absolute;
        left: 0.5rem;
        z-index: 101;
    }
    
    /* Hide main navigation and search box on mobile */
    .main-nav {
        display: none;
    }
    
    .main-nav.show {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 99;
    }
    
    .main-nav.show ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        display: none;
    }
    
    /* Make footer fixed at bottom on mobile */
    .footer-status {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
    }
    
    /* Add padding to body to account for fixed footer */
    body {
        padding-bottom: var(--footer-height);
    }
    
    .logo-container {
        position: absolute;
        left: 22%;
        transform: translateX(-50%);
        z-index: 90;
    }
    
    .logo img {
        margin-left: 0;
        height: 60px;
        width: 60px;
    }
    
    .user-controls {
        margin-left: auto;
        z-index: 100;
    }
    
    /* Ensure wallet connect button doesn't push other elements */
    .btn-wallet-connect {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-wallet-connect {
        padding: 0.5rem 0.75rem;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .btn-wallet-connect.connected {
        padding: 0.5rem 0.5rem;
        max-width: 100px;
        font-size: 0.85rem;
    }
    
    .btn-wallet-connect .desktop-text {
        display: none;
    }
    
    .btn-wallet-connect .mobile-text {
        display: inline;
    }

    .token-meta {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    .wallet {
        display: inline-flex;
        align-items: center;
    }
    
    .copy-address {
        font-size: 0.7rem;
        padding: 0.1rem;
        margin-left: 0;
        position: static;
        transform: none;
    }
    
    /* Loading indicator style */
    .loading-indicator {
        text-align: center;
        padding: 1rem;
        color: var(--text-secondary);
    }
    
    .error-message {
        text-align: center;
        padding: 1rem;
        color: var(--negative);
    }
} 

/* Desktop-specific styles */
@media (min-width: 769px) {
    .token-grid {
        flex: 1;
        overflow-y: auto;
    }
    
    .token-lists {
        height: calc(100vh - 220px);
        min-height: 400px;
    }
} 