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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2d3748;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.header {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.main-layout {
    display: flex;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.clocks-section {
    flex: 1;
    min-width: 0;
}

.ads-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ad-container {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px dashed #cbd5e0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 0.875rem;
}

.ad-container.top-ad {
    min-height: 600px;
}

.orbital-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.orbital-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding-bottom: 3rem;
    transform-style: preserve-3d;
}

.orbital-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
}

.city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.city-name {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d3748;
}

.flag {
    font-size: 1.5rem;
}

.time-diff {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
}

.orbital-ring-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.orbital-ring {
    width: 100%;
    height: 100%;
    position: relative;
}

.ring-base {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e2e8f0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.business-hours {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 180deg, transparent 0deg, transparent 135deg, rgba(102, 126, 234, 0.2) 135deg, rgba(102, 126, 234, 0.2) 225deg, transparent 225deg, transparent 360deg);
}

.celestial-body {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform-origin: center;
    transition: all 0.5s ease;
    box-shadow: 0 0 14px currentColor;
    z-index: 10;
}

.sun {
    background: linear-gradient(45deg, #f6d365 0%, #fda085 100%);
    color: #f6d365;
    box-shadow: 0 0 14px rgba(246, 211, 101, 0.6);
}

.moon {
    background: linear-gradient(45deg, #a8b5c5 0%, #d4e0ec 100%);
    color: #a8b5c5;
    box-shadow: 0 0 14px rgba(168, 181, 197, 0.6);
}

.time-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.digital-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    font-variant-numeric: tabular-nums;
}

.date-display {
    font-size: 0.7rem;
    color: #718096;
    margin-top: 0.25rem;
}

.status-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-working {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
    border: 2px solid #48bb78;
}

.status-sleeping {
    background: rgba(159, 122, 234, 0.15);
    color: #9f7aea;
    border: 2px solid #9f7aea;
}

.status-evening {
    background: rgba(237, 137, 54, 0.15);
    color: #ed8936;
    border: 2px solid #ed8936;
}

.time-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.marker {
    position: absolute;
    width: 1.5px;
    height: 6px;
    background: #a0aec0;
    top: 3px;
    left: 50%;
    transform-origin: 50% 70px;
}

.marker.major {
    height: 10px;
    background: #4a5568;
    width: 2px;
}

.marker-label {
    position: absolute;
    font-size: 0.6rem;
    color: #718096;
    font-weight: 600;
    transform: translate(-50%, -50%);
}

.seconds-hand {
    position: absolute;
    width: 1.5px;
    height: 65px;
    background: #e53e3e;
    top: 50%;
    left: 50%;
    transform-origin: center bottom;
    margin-left: -0.75px;
    margin-top: -65px;
    border-radius: 2px;
    z-index: 8;
    box-shadow: 0 0 6px rgba(229, 62, 62, 0.4);
    transition: transform 0.1s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.seconds-hand::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #e53e3e;
    border-radius: 50%;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.comparison-view {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comparison-view.active {
    display: grid;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
    cursor: pointer;
}

.comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.comparison-ring-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
}

.comparison-ring {
    width: 100%;
    height: 100%;
    position: relative;
}

.comparison-ring .ring-base {
    background: #e2e8f0;
}

.comparison-ring .seconds-hand {
    height: 65px;
    margin-top: -65px;
    width: 1.5px;
}

.comparison-ring .seconds-hand::after {
    width: 6px;
    height: 6px;
}

.comparison-ring .celestial-body {
    width: 12px;
    height: 12px;
}

.comparison-ring .time-markers .marker {
    height: 6px;
    transform-origin: 50% 70px;
}

.comparison-ring .time-markers .marker.major {
    height: 10px;
}

.comparison-city {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.comparison-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.comparison-date {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.comparison-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-search {
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-search input:focus {
    border-color: #667eea;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 1rem 0;
}

.timezone-group {
    margin-bottom: 0.5rem;
}

.timezone-header {
    padding: 0.75rem 2rem;
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.city-item {
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-item:hover {
    background: #f0f4ff;
}

.city-item-info {
    display: flex;
    flex-direction: column;
}

.city-item-name {
    font-weight: 500;
    color: #2d3748;
}

.city-item-country {
    font-size: 0.75rem;
    color: #718096;
}

.city-item-flag {
    font-size: 1.5rem;
}

.modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clock-count {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}

.clock-count span {
    color: #667eea;
    font-weight: 700;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.article-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    color: #4a5568;
    line-height: 1.7;
}

.article-section h2 {
    color: #2d3748;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.article-section h3 {
    color: #4a5568;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-section p {
    margin-bottom: 1rem;
}

.article-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-section li {
    margin-bottom: 0.5rem;
}

.article-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.article-section a:hover {
    text-decoration: underline;
}

.ad-container-inline {
    max-width: 728px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border: 2px dashed #cbd5e0;
    text-align: center;
    color: #718096;
    font-size: 0.875rem;
    border-radius: 12px;
    font-weight: 500;
}

.site-footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.875rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #667eea;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.warning {
    border-left-color: #ed8936;
}

/* --- CITY DETAIL MODAL STYLES --- */
.city-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.city-detail-modal.active {
    display: flex;
}

.city-detail-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.city-detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.city-detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.city-detail-header h2 {
    font-size: 2rem;
    margin: 0;
}

.city-detail-time {
    margin-top: 1rem;
}

.city-detail-time .digital-time {
    color: white;
    font-size: 3rem;
    font-variant-numeric: tabular-nums;
}

.city-detail-time .date-display {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.city-detail-time .status-indicator {
    position: static;
    transform: none;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-block;
}

.city-detail-map-container {
    height: 300px;
    width: 100%;
    background: #e2e8f0;
    position: relative;
}

#detailMap {
    height: 100%;
    width: 100%;
}

.city-detail-info {
    padding: 2rem;
    text-align: center;
}

.city-detail-info h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.city-detail-info p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.wiki-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2d3748;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.wiki-link:hover {
    background: #1a202c;
    transform: translateY(-2px);
}

/* --- MAP VIEW STYLES --- */
.map-view {
    display: none;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.map-view.active {
    display: block;
}

#worldMap {
    height: 500px;
    width: 100%;
    background: #f8fafc;
}

.time-travel-container {
    background: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.time-travel-label {
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.time-travel-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #9f7aea, #667eea, #48bb78, #ed8936, #9f7aea);
    outline: none;
}

.time-travel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.time-travel-value {
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
    text-align: right;
    font-size: 1.1rem;
}

.custom-pin {
    background: transparent;
    border: none;
}

.pin-core {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 1;
}

.pin-working .pin-core {
    background: #48bb78;
}

.pin-working .pin-pulse {
    background: #48bb78;
}

.pin-sleeping .pin-core {
    background: #9f7aea;
}

.pin-sleeping .pin-pulse {
    background: #9f7aea;
}

.pin-evening .pin-core {
    background: #ed8936;
}

.pin-evening .pin-pulse {
    background: #ed8936;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 180px;
}

.popup-content {
    padding: 1rem;
    text-align: center;
}

.popup-city {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.popup-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    font-variant-numeric: tabular-nums;
}

.popup-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.5rem;
}

@media (max-width: 1200px) {
    .main-layout {
        flex-direction: column;
    }

    .ads-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ad-container {
        flex: 1;
        min-height: 150px;
    }

    .ad-container.top-ad {
        min-height: 150px;
    }

    .orbital-grid,
    .comparison-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .main-layout {
        padding: 1rem;
    }

    .orbital-grid,
    .comparison-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .orbital-ring-container {
        width: 120px;
        height: 120px;
    }

    .seconds-hand {
        height: 52px;
        margin-top: -52px;
    }

    .marker {
        transform-origin: 50% 56px;
    }

    .digital-time {
        font-size: 1.25rem;
    }

    .city-name {
        font-size: 1rem;
    }

    .orbital-card {
        padding: 1rem;
        padding-bottom: 2.5rem;
    }

    .ads-sidebar {
        flex-direction: column;
    }

    .ad-container {
        min-height: 250px;
    }

    .controls {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .modal {
        max-height: 90vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-search {
        padding: 0.75rem 1.5rem;
    }

    .city-item {
        padding: 0.75rem 1.5rem;
    }

    .timezone-header {
        padding: 0.75rem 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
    }

    .article-section {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    #worldMap {
        height: 350px;
    }

    .time-travel-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .time-travel-value {
        text-align: center;
    }

    .city-detail-time .digital-time {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {

    .orbital-grid,
    .comparison-view {
        grid-template-columns: 1fr;
    }

    .orbital-ring-container {
        width: 150px;
        height: 150px;
    }

    .seconds-hand {
        height: 65px;
        margin-top: -65px;
    }

    .marker {
        transform-origin: 50% 70px;
    }

    .comparison-ring-container {
        width: 150px;
        height: 150px;
    }

    .comparison-ring .seconds-hand {
        height: 65px;
        margin-top: -65px;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.celestial-body {
    animation: pulse 2s infinite;
}


.timal-orbit-widget {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.25rem;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    box-sizing: border-box;
}

.tow-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tow-flag {
    font-size: 1.5rem;
}

.tow-city {
    font-size: 1.1rem;
    font-weight: 700;
}

.tow-time {
    font-size: 1.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 0.5rem 0;
    letter-spacing: 1px;
}

.tow-date {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.tow-status {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.tow-branding {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.75rem;
    font-size: 0.65rem;
    opacity: 0.8;
}

.tow-branding a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tow-branding a:hover {
    opacity: 0.7;
    text-decoration: underline;
}