/* CSS Variables - Light Mode (Default) */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #34a853;
    --background-dark: #0f172a;
    --background-light: #f1f5f9;
    --background-white: #ffffff;
    --background-body: #f1f5f9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
    --border-color: #e2e8f0;
    --chart-grid: rgba(0, 0, 0, 0.05);
    --tooltip-bg: rgba(15, 23, 42, 0.9);

    /* Stablecoin brand colors */
    --usdt-color: #26a17b;
    --usdc-color: #2775ca;
    --dai-color: #f5ac37;
    --fdusd-color: #0052ff;
    --usde-color: #8b5cf6;
    --frax-color: #000000;
    --tusd-color: #002868;
    --usdd-color: #216cff;
    --pyusd-color: #003087;
    --lusd-color: #745ddf;

    /* Status colors */
    --positive-color: #10b981;
    --negative-color: #ef4444;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --background-dark: #0f172a;
    --background-light: #1e293b;
    --background-white: #0f172a;
    --background-body: #020617;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
    --border-color: #334155;
    --chart-grid: rgba(255, 255, 255, 0.1);
    --tooltip-bg: rgba(30, 41, 59, 0.95);
    --positive-color: #34d399;
    --negative-color: #f87171;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-body);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--text-white);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0741AD 0%, #0a5dd4 100%);
    color: var(--text-white);
    padding: 26px 20px;
    margin: 0 -20px 30px;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 400;
}

/* Card Base Styles */
.card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

[data-theme="dark"] .card {
    border-color: var(--border-color);
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    padding: 24px;
    text-align: center;
}

.card-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-value.positive {
    color: var(--positive-color);
}

.card-value.negative {
    color: var(--negative-color);
}

/* Change Card with Period Selector */
.change-card {
    position: relative;
}

.card-label-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.card-label-row .card-label {
    margin-bottom: 0;
}

.change-period-select {
    padding: 4px 8px;
    border: 1px solid var(--background-light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--background-white);
    cursor: pointer;
    outline: none;
}

.change-period-select:hover {
    border-color: var(--primary-color);
}

.change-period-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Date Range Wrapper */
.date-range-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Custom Date Dropdown */
.custom-date-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 280px;
    z-index: 100;
}

.custom-date-dropdown.visible {
    display: block;
}

.dropdown-row {
    margin-bottom: 16px;
}

.dropdown-row label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}

.dropdown-row .date-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    background: var(--background-white);
    outline: none;
}

.dropdown-row .date-input:focus {
    border-color: var(--primary-color);
}

.dropdown-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--background-light);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
}

/* Controls Panel */
.controls-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.button-group {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--background-white);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* Date Range Display */
.date-range-display {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-left: 8px;
}

/* Coin Selection Panel */
.coin-selection-panel {
    margin-top: -15px;
}

.coin-selection-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.coin-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.selection-actions {
    display: flex;
    gap: 8px;
}

.selection-actions .btn.active {
    background: var(--primary-color);
    color: white;
}

.coin-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.coin-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.coin-checkbox:hover {
    background: #e2e8f0;
}

.coin-checkbox.selected {
    background: var(--coin-color, var(--primary-color));
    color: white;
}

.coin-checkbox input {
    display: none;
}

.coin-checkbox-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.coin-checkbox.selected .coin-checkbox-color {
    background: white !important;
}

.coin-checkbox-label {
    font-size: 0.8rem;
    font-weight: 500;
}

.coin-checkbox-rank {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: 2px;
}

.coin-checkbox.selected .coin-checkbox-rank {
    color: rgba(255, 255, 255, 0.7);
}

/* Chart Section */
.chart-section {
    margin-bottom: 30px;
}

.chart-card {
    padding: 24px;
}

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

.chart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.legend-item:hover {
    color: var(--text-dark);
}

.legend-item.hidden {
    opacity: 0.4;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.chart-container {
    position: relative;
    height: 450px;
}

#circulationChart {
    width: 100% !important;
    height: 100% !important;
}

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    z-index: 10;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--background-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

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

/* Market Dominance Section */
.dominance-section {
    margin-bottom: 30px;
}

.dominance-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.dominance-header-row .section-title {
    margin-bottom: 0;
}

.dominance-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dominance-date-buttons {
    display: flex;
    gap: 4px;
}

.dominance-date-buttons .btn {
    padding: 6px 10px;
    font-size: 0.7rem;
}

.dominance-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: stretch;
}

.dominance-chart-card {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dominance-chart-container {
    position: relative;
    width: 100%;
    height: 320px;
    max-width: 320px;
}

#dominanceChart {
    width: 100% !important;
    height: 100% !important;
}

.dominance-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-white);
    z-index: 5;
}

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

.dominance-stats-card {
    padding: 24px;
}

.dominance-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.dominance-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
}

.dominance-stat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dominance-stat-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.dominance-stat-symbol {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.dominance-stat-right {
    text-align: right;
}

.dominance-stat-percent {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.dominance-stat-value {
    font-size: 0.75rem;
    color: var(--text-light);
}

.dominance-stat-change {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

.dominance-stat-change.positive {
    color: var(--positive-color);
}

.dominance-stat-change.negative {
    color: var(--negative-color);
}

/* Market Movers Section */
.movers-section {
    margin-bottom: 30px;
}

.movers-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.movers-header-row .section-title {
    margin-bottom: 0;
}

.movers-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.movers-date-buttons {
    display: flex;
    gap: 4px;
}

.movers-date-buttons .btn {
    padding: 6px 10px;
    font-size: 0.7rem;
}

.movers-sort-toggle {
    display: flex;
    gap: 2px;
    background: var(--background-light);
    padding: 3px;
    border-radius: var(--border-radius-sm);
}

.movers-sort-toggle .btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    background: var(--background-white);
    color: var(--text-dark);
}

.movers-sort-toggle .btn.active {
    background: var(--primary-color);
    color: white;
}

.movers-sort-toggle .btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.movers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.movers-card {
    padding: 20px;
}

.movers-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--background-light);
}

.movers-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.gainers-card .movers-card-header h3 {
    color: var(--positive-color);
}

.losers-card .movers-card-header h3 {
    color: var(--negative-color);
}

.movers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.mover-item:not(:last-child) {
    border-bottom: 1px solid var(--background-light);
}

.mover-rank {
    width: 24px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

.mover-symbol {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 55px;
}

.mover-change {
    margin-left: auto;
    text-align: right;
}

.mover-percent {
    font-weight: 600;
    font-size: 0.9rem;
}

.mover-value {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

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

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

.no-movers {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 20px 0;
}

/* Breakdown Section */
.breakdown-section {
    margin-bottom: 40px;
}

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

.breakdown-header .section-title {
    margin-bottom: 0;
}

.breakdown-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Toggle Switch */
.chain-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    background: var(--background-white);
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.chain-toggle:hover {
    background: rgba(26, 115, 232, 0.05);
}

.chain-toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--background-light);
    border-radius: 12px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--background-white);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

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

.chain-toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Export Button */
.breakdown-controls .btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breakdown-controls .btn svg {
    flex-shrink: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-title span {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.9em;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.stablecoin-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stablecoin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--coin-color, var(--primary-color));
}

.coin-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.coin-symbol {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.coin-name {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-circulation {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

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

.market-share {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--positive-color);
}

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

/* Chain Breakdown */
.coin-chains {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: none;
}

.coin-chains.visible {
    display: block;
}

.chain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.chain-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--background-light);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light);
}

.chain-tag.primary {
    background: var(--primary-color);
    color: white;
}

.chain-tag-more {
    cursor: pointer;
    transition: var(--transition);
}

.chain-tag-more:hover {
    background: var(--primary-color);
    color: white;
}

/* Expanded chains container */
.chain-expanded {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.chain-expanded.visible {
    display: block;
}

.chain-expanded .chain-tag {
    margin-bottom: 4px;
}

/* Loading States */
.loading-placeholder {
    display: block;
    height: 24px;
    background: linear-gradient(90deg, var(--background-light) 25%, var(--border-color) 50%, var(--background-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.loading-card .loading-placeholder {
    height: 80px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

.stablecoin-card {
    animation: fadeIn 0.3s ease forwards;
}

.mover-item {
    animation: fadeIn 0.2s ease forwards;
}

.dominance-stat {
    animation: fadeIn 0.2s ease forwards;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

.last-updated {
    margin-top: 8px;
    font-size: 0.75rem;
}

/* Error State */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--negative-color);
}

.error-message h3 {
    margin-bottom: 8px;
}

.error-message button {
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
}

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

@media (max-width: 900px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-container {
        height: 350px;
    }
}

@media (max-width: 900px) {
    .dominance-grid {
        grid-template-columns: 1fr;
    }

    .dominance-chart-container {
        height: 280px;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.75rem;
    }

    .header .subtitle {
        font-size: 0.9rem;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .card-value {
        font-size: 1.5rem;
    }

    .controls-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .btn {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .breakdown-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .breakdown-controls {
        width: 100%;
        justify-content: space-between;
    }

    .movers-grid {
        grid-template-columns: 1fr;
    }

    .movers-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dominance-grid {
        grid-template-columns: 1fr;
    }

    .dominance-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dominance-chart-container {
        height: 240px;
        max-width: 240px;
    }

    .chart-container {
        height: 300px;
    }

    .chart-header {
        flex-direction: column;
    }

    .coin-selection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .selection-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .date-range-display {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }
}
