.hero-compact {
    min-height: 50vh !important;
    padding: 100px 0 60px !important;
}

.hero-odometer-container {
    margin: 0 0 20px;
    text-align: center;
}

.hero-odometer-container .tracker-stat-value {
    font-size: 5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title-container {
    text-align: center;
    margin-bottom: 20px;
}

.hero-title-container h1 {
    font-size: 2rem;
    margin: 0;
}

.tracker-stat-value {
    font-size: 4rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin: 20px 0 15px;
    color: var(--text-color);
}

.tracker-stat-change {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.countdown-timer {
    margin-top: 15px;
    font-size: 1.3rem;
    color: #ffd93d;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.odometer {
    font-family: 'Courier New', monospace !important;
}

.odometer-digit {
    display: inline-block;
}

.odometer-formatting-mark {
    display: inline-block;
}

.odometer.odometer-animating-up .odometer-ribbon-inner,
.odometer.odometer-animating-down.odometer-animating .odometer-ribbon-inner {
    transition-duration: 400ms !important;
}

.tracker-map-container {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-top: 40px;
    height: 500px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .tracker-map-container {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tracker-map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 999;
}

#map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.tracker-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.country-item {
    padding: 15px 18px;
    background-color: var(--section-alt-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.country-name {
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
    font-size: 0.95rem;
}

.country-count {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: bold;
    white-space: nowrap;
}

.tracker-data-list {
    margin: 15px 0 15px 20px;
    line-height: 1.9;
    text-align: left;
}

.tracker-data-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.tracker-data-list li strong {
    color: var(--primary);
}

/* Countdown timer now uses standard card-description styling */

/* Button container styling moved to inline since class was removed */

.tracker-connection-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

/* Improve contrast for historical buttons in light mode */
html[data-theme="light"] .historical-button {
    background-color: #f0f0f0;
    color: #333;
    border: 2px solid #ccc;
}

html[data-theme="light"] .historical-button:hover {
    background-color: #e0e0e0;
    color: var(--text-color);
    border-color: #999;
}

/* Button styling removed - now using inline styles and global cta-button class */


@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero-compact {
        min-height: 60vh !important;
        padding: 80px 0 40px !important;
    }

    .hero-odometer-container .tracker-stat-value {
        font-size: 3rem;
    }

    .hero-title-container h1 {
        font-size: 1.5rem;
    }

    .tracker-stat-value {
        font-size: 3rem;
    }

    .tracker-map-container {
        height: 350px;
    }

    .tracker-country-grid {
        grid-template-columns: 1fr;
    }

    .tracker-countdown-timer {
        font-size: 1.5rem;
    }
}

@media (min-width: 600px) and (max-width: 968px) {
    .tracker-country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .tracker-country-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}