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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 520px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.main-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.analog-clock {
    width: 200px;
    height: 200px;
    margin-bottom: 25px;
}

.clock-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
}

.hour-hand {
    width: 6px;
    height: 50px;
    background: linear-gradient(to top, #00d9ff, #00ff88);
    margin-left: -3px;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.minute-hand {
    width: 4px;
    height: 70px;
    background: #fff;
    margin-left: -2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.second-hand {
    width: 2px;
    height: 80px;
    background: #ff4757;
    margin-left: -1px;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.center-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    z-index: 10;
}

.markers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.marker {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
}

.marker:nth-child(1) { top: 10px; left: 50%; transform: translateX(-50%); }
.marker:nth-child(2) { right: 15px; top: 50%; transform: translateY(-50%); }
.marker:nth-child(3) { bottom: 10px; left: 50%; transform: translateX(-50%); }
.marker:nth-child(4) { left: 15px; top: 50%; transform: translateY(-50%); }

.digital-clock {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.digital-clock span:not(.separator):not(.ampm) {
    min-width: 60px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 5px;
    border-radius: 10px;
}

.separator {
    color: #00d9ff;
    animation: blink 1s infinite;
}

.ampm {
    font-size: 16px;
    color: #00ff88;
    margin-left: 10px;
    padding: 4px 8px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.date-display {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-top: 15px;
}

.timezone-info {
    color: #00d9ff;
    font-size: 14px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 20px;
}

.toggle-row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.toggle-label input:checked + .toggle-slider {
    background: linear-gradient(135deg, #00d9ff, #00ff88);
}

.toggle-label input:checked + .toggle-slider::after {
    left: 27px;
}

.toggle-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.utc-section {
    margin-bottom: 25px;
}

.utc-clock {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.utc-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.utc-time {
    font-family: 'Consolas', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.world-clocks h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.world-clock-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.world-clock-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.world-clock-item .city {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
}

.world-clock-item .country {
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    margin-bottom: 4px;
}

.world-clock-item .time {
    color: #fff;
    font-family: 'Consolas', monospace;
    font-size: 16px;
    font-weight: 600;
}

.world-clock-item .date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    margin-top: 2px;
}

.world-clock-item .offset {
    color: #00d9ff;
    font-size: 9px;
    margin-top: 3px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #00d9ff;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

@media (max-width: 480px) {
    .card {
        padding: 25px;
    }
    
    .digital-clock {
        font-size: 32px;
    }
    
    .digital-clock span:not(.separator):not(.ampm) {
        min-width: 40px;
    }
    
    .analog-clock {
        width: 160px;
        height: 160px;
    }
    
    .hour-hand { height: 40px; }
    .minute-hand { height: 55px; }
    .second-hand { height: 65px; }
    
    .world-clock-grid {
        grid-template-columns: 1fr;
    }
}