* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #000;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 32px;
}

.toggle-container {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #F5F5F5;
  border-radius: 30px;
  padding: 4px;
  width: fit-content;
}

.share-btn {
  position: absolute;
  right: 0;
  padding: 10px 20px;
  background: #FFF;
  border: 2px solid #E0E0E0;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  color: #333;
}

.share-btn:hover {
  background: #000;
  color: #FFF;
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toggle-btn {
  padding: 10px 24px;
  background: transparent;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #666;
}

.toggle-btn:hover:not(.active) {
  color: #333;
}

.toggle-btn.active {
  background: #E8FF00;
  color: #000;
  box-shadow: 0 2px 8px rgba(232, 255, 0, 0.4);
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  background: #FFF;
  border-radius: 30px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.tab-btn {
  padding: 12px 28px;
  background: transparent;
  color: #666;
  border: none;
  border-radius: 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover:not(.active) {
  color: #333;
  background: rgba(0,0,0,0.04);
}

.tab-btn.active {
  background: #000;
  color: #FFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.market-card {
  background: #FFF;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #E0E0E0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.market-card.highlight {
  border: 2px solid #E8FF00;
}

.timeline-container {
  background: #FFF;
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.holiday-card {
  padding: 16px;
  background: #FAFAFA;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #E0E0E0;
  transition: all 0.2s ease;
}

.holiday-card:hover {
  background: #F5F5F5;
  transform: translateX(4px);
}

.holiday-card.soon {
  border: 2px solid #E8FF00;
}

.country-filter-btn {
  padding: 8px 16px;
  background: #F5F5F5;
  color: #666;
  border: 2px solid #E0E0E0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.country-filter-btn:hover {
  background: #E8E8E8;
  transform: translateY(-1px);
}

.country-filter-btn.active {
  background: #000;
  color: #FFF;
  border-color: #000;
}

.info-box {
  background: linear-gradient(135deg, #FFFEF0 0%, #FFF9C4 100%);
  border: 2px solid #E8FF00;
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(232, 255, 0, 0.15);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: #E8FF00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}

.info-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.digital-clock-container {
  padding: 40px 20px;
  margin-bottom: 32px;
  text-align: center;
}

.analog-clock-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.analog-clock-outer {
  background: #000;
  border-radius: 50%;
  width: 420px;
  height: 420px;
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  position: relative;
}

.analog-clock-face {
  background: #FFF;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
  .main-container { 
    padding: 20px 12px; 
  }
  
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .share-btn {
    position: static;
    width: fit-content;
  }
  
  .analog-clock-outer { 
    width: 300px; 
    height: 300px; 
    padding: 8px;
  }
  
  .toggle-container { 
    width: 100%; 
    max-width: 280px; 
  }
  
  .toggle-btn { 
    padding: 8px 18px; 
    font-size: 13px; 
  }
  
  .tabs-container { 
    width: calc(100% - 24px); 
    gap: 2px; 
    flex-wrap: wrap;
  }
  
  .tab-btn { 
    flex: 1; 
    min-width: 90px;
    padding: 10px 12px; 
    font-size: 13px; 
  }
  
  .digital-clock-container { 
    padding: 20px 10px; 
  }
  
  .market-card {
    padding: 16px;
  }
  
  .info-box {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }
  
  .timeline-container {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .analog-clock-outer { 
    width: 260px; 
    height: 260px; 
  }
  
  .toggle-btn { 
    padding: 8px 16px; 
    font-size: 12px; 
  }
  
  .tab-btn { 
    padding: 8px 10px; 
    font-size: 12px; 
  }
  
  .share-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .tabs-container {
    padding: 3px;
  }
  
  .tab-btn {
    padding: 8px;
    font-size: 11px;
  }
  
  .market-card h3 {
    font-size: 16px;
  }
  
  .analog-clock-outer {
    width: 240px;
    height: 240px;
  }
}