/* Myriad Markets - Match flows page design exactly */

/* Enable scrolling on the main content */
html, body {
    overflow: auto !important;
    height: auto !important;
}

.main-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100vh;
    position: relative;
}

.main {
    min-height: auto;
    padding-bottom: 40px; /* Add bottom padding for scrolling */
    overflow: visible;
}

/* CSS Variables */
:root {
    --maxw: 1280px;
    --gutter: 24px;
    --header-h: 88px;
    --header-pad: 16px;
}

/* Reusable container for ALL page sections */
.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    box-sizing: border-box;
    overflow: visible;
}

/* Full-bleed header background */
.site-header {
    background: linear-gradient(180deg, #0e1520 0%, #0b121a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    /* center content to the same grid as cards */
    padding-inline: max(calc((100vw - var(--maxw)) / 2), var(--gutter));
    padding-block: var(--header-pad);
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    width: 100%;
}

/* Make sure nothing nudges the row */
.site-header > * {
    margin: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    gap: 16px;
}

/* Time Period Selector - Left aligned */
.time-period-selector {
    display: flex;
    align-items: center;
    margin: 0;
}

.time-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
}

/* Avoid device notch pushing content unevenly */
@supports (padding: max(0px)) {
    .header { 
        padding-top: max(var(--header-pad), env(safe-area-inset-top)); 
    }
}

.page-title {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-100);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(52, 214, 255, 0.3);
    margin: 0;
    white-space: nowrap;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: 36px;
    padding: 0 14px;
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-400);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Orbitron", system-ui, sans-serif;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0;
}

.tab-button:first-child {
    margin-left: 0 !important;
}

.tab-button:hover {
    background: var(--card-800);
    border-color: var(--cyan);
    color: var(--text-100);
}

.tab-button.active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
    box-shadow: 0 0 20px rgba(122, 92, 255, 0.3);
    /* Do not change height/padding/border on active */
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.overview-card {
    background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(0,0,0,.1)),
                var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.overview-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(52, 214, 255, 0.1);
    transform: translateY(-2px);
}

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

.overview-card-header h3 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.overview-icon {
    font-size: 16px;
    opacity: 0.7;
}

.overview-card-value {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-100);
    margin-bottom: 6px;
}

.overview-card-change {
    font-size: 12px;
    font-weight: 600;
    font-family: "Orbitron", system-ui, sans-serif;
}

.overview-card-change.positive {
    color: var(--green);
}

.overview-card-change.negative {
    color: var(--red);
}

.overview-card-change.neutral {
    color: var(--text-400);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.chart-container {
    background: var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

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

.chart-header h3 {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-100);
    margin: 0;
}

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

.chart-type-btn {
    background: var(--bg-800);
    border: 1px solid var(--line);
    color: var(--text-400);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-type-btn:hover {
    background: var(--card-800);
    border-color: var(--cyan);
    color: var(--text-100);
}

.chart-type-btn.active {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

.chart-wrapper {
    height: 300px;
    position: relative;
    max-height: 300px;
    overflow: hidden;
}

/* Override any conflicting styles to match main site */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    color: #e2e8f0;
}

/* Stats Grid - Match main site style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* Content Sections - Match main site style */
.content-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
    font-family: "Orbitron", system-ui, sans-serif;
}

.timezone-info {
    margin: 0;
    font-size: 0.875rem;
    color: #93A0B4;
    font-weight: 400;
    opacity: 0.8;
    font-family: "Exo 2", system-ui, sans-serif;
}

/* Filter Controls - Match main site style */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.whale-mode-toggle {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: var(--bg-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-400);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-input:checked + .toggle-slider {
    background: var(--purple);
    border-color: var(--purple);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(26px);
    background: white;
}

.toggle-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-100);
    font-family: "Orbitron", system-ui, sans-serif;
}

.filter-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.filter-controls select option {
    background: #1a202c;
    color: #ffffff;
}

/* Transactions Table - Match main site style */
.transactions-table-container {
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.transactions-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #a0aec0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.transactions-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
    color: #e2e8f0;
}

.transactions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transaction-row {
    transition: background-color 0.2s ease;
}

/* Table Cell Styling - Match main site style */
.timestamp {
    min-width: 120px;
}

.timestamp .time {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.timestamp .date {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 2px;
}

.tx-hash {
    min-width: 120px;
}

.tx-link {
    color: #667eea;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.tx-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.action {
    min-width: 100px;
}

.action-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-buy {
    background: rgba(46, 230, 160, 0.2);
    color: #2ee6a0;
    border: 1px solid rgba(46, 230, 160, 0.3);
}

.action-sell {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.action-claimWinnings {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.action-addLiquidity {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.action-removeLiquidity {
    background: rgba(147, 51, 234, 0.2);
    color: #9333ea;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.action-createMarket {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-resolveMarketOutcome {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.market-id {
    min-width: 80px;
}

.market-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.market-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.outcome-id {
    min-width: 80px;
    text-align: center;
    color: #a0aec0;
}

.token {
    min-width: 80px;
}

.token-symbol {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

/* Token-specific colors */
.token-symbol.usdc {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.token-symbol.pts {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.4);
    color: #9333ea;
}

.token-symbol.pengu {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.amount {
    min-width: 120px;
    text-align: right;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

.user {
    min-width: 120px;
}

.user-link {
    color: #667eea;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.user-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Pagination Controls - Match main site style */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.pagination-info {
    color: #a0aec0;
    font-size: 0.9rem;
    font-family: "Exo 2", system-ui, sans-serif;
}

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

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    margin: 0 1rem;
}

.page-number {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

.page-number.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    color: #ffffff;
}

.page-number.ellipsis {
    cursor: default;
    background: transparent;
    border: none;
}

.page-number.ellipsis:hover {
    background: transparent;
    border: none;
}

/* Analytics Grid - Match main site style */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.analytics-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
}

/* Volume Stats */
.volume-stats, .transaction-stats, .market-stats, .impact-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.volume-item, .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-item:last-child, .stat-item:last-child {
    border-bottom: none;
}

.volume-label, .stat-label {
    font-size: 0.9rem;
    color: #a0aec0;
    font-weight: 500;
    font-family: "Exo 2", system-ui, sans-serif;
}

.volume-value, .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

.volume-value.buy, .stat-value.buy {
    color: #2ee6a0;
}

.volume-value.sell, .stat-value.sell {
    color: #ff6b6b;
}

.volume-value.claim, .stat-value.claim {
    color: #f59e0b;
}

/* Chart Containers */
.volume-chart, .transaction-chart, .market-chart, .impact-chart {
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.volume-chart::before, .transaction-chart::before, .market-chart::before, .impact-chart::before {
    content: 'Chart visualization will be implemented';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0.7;
}

/* Loading and Error States - Match main site style */
.loading, .error, .no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: #a0aec0;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

.error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ff6b6b;
}

.error-message {
    font-size: 1rem;
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0 !important;
        width: 100vw !important;
    }
    
    .container {
        padding-inline: 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .time-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 60px;
    }
    
    .page-title {
        margin-top: 16px;
        font-size: 1.1rem;
    }
    
    .overview-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 16px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .content-section {
        padding: 16px;
    }
    
    .transactions-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 8px 4px;
        min-width: 80px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-info {
        text-align: center;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .whale-mode-toggle {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: auto;
        padding-block: 12px;
        gap: 12px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin: 0;
    }
    
    .page-title {
        margin-top: 16px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .overview-card {
        padding: 16px;
    }
    
    .overview-card-header h3 {
        font-size: 12px;
    }
    
    .overview-card-value {
        font-size: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 16px;
    }
    
    .chart-wrapper {
        height: 200px;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: space-between;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .filter-controls select {
        flex: 1;
        width: 100%;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .transactions-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 0.5rem 0.4rem;
        min-width: 70px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-numbers {
        margin: 0 0.5rem;
    }
    
    .time-period-selector {
        justify-content: center;
        width: 100%;
        margin: 0;
    }
    
    .time-tabs {
        gap: 6px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tab-button {
        height: 36px;
        line-height: 36px;
        padding: 0 12px;
        font-size: 11px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: 12px;
    }
    
    .header-content {
        gap: 0.8rem;
    }
    
    .page-title {
        font-size: 0.9rem;
    }
    
    .time-tabs {
        gap: 4px;
    }
    
    .site-header {
        padding-block: 8px;
        gap: 8px;
    }
    
    .tab-button {
        height: 32px;
        line-height: 32px;
        padding: 0 10px;
        font-size: 10px;
        min-width: 50px;
    }
    
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .overview-card {
        padding: 12px;
    }
    
    .overview-card-header h3 {
        font-size: 11px;
    }
    
    .overview-card-value {
        font-size: 18px;
    }
    
    .chart-container {
        padding: 12px;
    }
    
    .chart-wrapper {
        height: 180px;
    }
    
    .content-section {
        padding: 12px;
    }
    
    .transactions-table {
        font-size: 0.7rem;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 4px 2px;
        min-width: 60px;
    }
    
    .filter-controls select {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .pagination-controls {
        gap: 8px;
    }
    
    .pagination-info {
        font-size: 0.7rem;
    }
    
    .whale-mode-toggle {
        flex-direction: column;
        gap: 6px;
    }
    
    .whale-mode-toggle span {
        font-size: 0.7rem;
    }
}

/* Volume Analytics and Recent Transactions - Match overview cards */
.content-section {
    background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(0,0,0,.1)),
                var(--card-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    margin-bottom: 2rem;
}

.content-section:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(52, 214, 255, 0.1);
    transform: translateY(-2px);
}

/* Recent Transactions - Match chart styling */
.transactions-table-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    table-layout: auto;
}

.transactions-table th {
    background: var(--bg-800);
    color: var(--text-400);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-family: "Orbitron", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.transactions-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(34, 48, 68, 0.3);
    color: var(--text-100);
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transactions-table tr:hover {
    background: rgba(52, 214, 255, 0.05);
}

.transaction-hash, .user-address {
    color: var(--cyan);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.transaction-hash:hover, .user-address:hover {
    color: var(--text-100);
    text-decoration: underline;
}



.token-symbol {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.token-symbol.usdc {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.token-symbol.pts {
    background: rgba(122, 92, 255, 0.2);
    color: var(--purple);
}

.action-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-badge.buy {
    background: rgba(46, 230, 160, 0.2);
    color: var(--green);
}

.action-badge.sell {
    background: rgba(255, 107, 107, 0.2);
    color: var(--red);
}

.action-badge.claim {
    background: rgba(245, 158, 11, 0.2);
    color: var(--yellow);
}

.amount {
    font-family: "Orbitron", system-ui, sans-serif;
    font-weight: 600;
    color: var(--text-100);
    white-space: nowrap;
    text-align: right;
    min-width: 0;
}

.timestamp {
    color: var(--text-400);
    font-size: 0.8rem;
}
