:root {
  --primary-blue: #2563EB;
  --accent-green: #10B981;
  --highlight-red: #F43F5E;
  --dark-bg: #1E293B;
  --darker-bg: #0F172A;
  --text-light: #F8FAFC;
  --text-muted: #94A3B8;
  --bg-primary: #0a0f1a;
  --bg-secondary: #1a243f;
  --bg-glass: rgba(16, 32, 64, 0.6);
  --bg-glass-light: rgba(32, 64, 128, 0.3);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent-day: linear-gradient(135deg, #ffb347, #ffcc33);
  --accent-night: linear-gradient(135deg, #4f8a8b, #3a7bd5);
  --accent-dawn: linear-gradient(135deg, #ff7e5f, #feb47b);
  --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
  --light-accent-1: #ff6b6b;
  --light-accent-2: #4ecdc4;
  --light-accent-3: #45b7d1;
  --light-accent-4: #96ceb4;
  --light-accent-5: #feca57;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #f8f8f8;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
  background-image: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, .1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, .05) 0%, transparent 50%);
  font-size: 14px;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
}

.clock-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 1px;
  text-align: center;
}

.clock-container {
  display: flex;
  justify-content: center;
  gap: 5px;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  overflow: hidden;
}

.digit {
  position: relative;
  width: 60px;
  height: 100px;
  flex-shrink: 0;
}

.segment {
  position: absolute;
  background-color: #eee;
  transition: all 0.2s ease-out;
}

.segment.active {
  background-color: #333;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.segment-a, .segment-d, .segment-g {
  height: 10px;
  width: 46px;
  left: 7px;
  border-radius: 5px;
}

.segment-a {
  top: 0;
}

.segment-g {
  top: 45px;
}

.segment-d {
  bottom: 0;
}

.segment-b, .segment-c, .segment-e, .segment-f {
  height: 42px;
  width: 10px;
  border-radius: 5px;
}

.segment-b {
  top: 7px;
  right: 0;
}

.segment-c {
  bottom: 7px;
  right: 0;
}

.segment-f {
  top: 7px;
  left: 0;
}

.segment-e {
  bottom: 7px;
  left: 0;
}

.colon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100px;
  width: 12px;
  gap: 22px;
  flex-shrink: 0;
}

.colon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #eee;
  transition: all 0.2s ease-out;
}

.colon-dot.active {
  background-color: #333;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.date-info {
  text-align: center;
  background-color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 18px;
  color: #333;
  width: 100%;
  max-width: 100%;
}

.location-info {
  text-align: center;
  background-color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #666;
  width: 100%;
  max-width: 100%;
}

.location-row {
  display: flex;
  margin: 8px 0;
  line-height: 1.5;
  justify-content: center;
}

.location-label {
  width: auto;
  font-weight: bold;
  color: #444;
  text-align: right;
  padding-right: 10px;
  min-width: 120px;
}

.location-value {
  text-align: left;
  min-width: 150px;
}

.time-sync-info {
  text-align: center;
  background-color: #f8f8f8;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  width: 100%;
  max-width: 100%;
}

.add-city-btn, .worldtime_fullscreen-btn {
  width: 100%;
  padding: 8px;
  background: var(--bg-glass);
  border: 2px dashed rgba(255, 255, 255, .3);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
  margin-bottom: 5px;
  font-size: 12px;
}

.add-city-btn:hover, .worldtime_fullscreen-btn:hover {
  border-color: #667eea;
  color: var(--text-primary);
}

.city-flag, .worldtime_city-flag {
  width: auto;
  height: 14px;
  border-radius: 1px;
  margin-right: 1px;
  margin-bottom: 4px;
  vertical-align: middle;
}

.city-flag-marker {
  width: 12px;
  height: 9px;
  border-radius: 1px;
}

.city-label {
  font-size: 10px;
  fill: var(--text-primary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
  font-weight: 600;
}

.city-marker {
  pointer-events: none;
}

.city-marker-group {
  cursor: pointer;
}

.city-marker-group:hover .city-label {
  fill: #fff;
}

.city-marker-group:hover .city-flag-marker {
  filter: brightness(1.2);
}

.city-tooltip, .tooltip {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  padding: .8rem;
  color: var(--text-primary);
  z-index: 1000;
  box-shadow: var(--shadow-deep);
  min-width: 180px;
  pointer-events: none;
  opacity: 0;
  transition: all .3s ease;
}

.city-tooltip {
  pointer-events: auto;
  z-index: 1001;
  opacity: 1;
}

.city-tooltip-date {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.city-tooltip-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  margin-right: 8px;
}

.city-tooltip-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.city-tooltip-name {
  font-size: 1rem;
  font-weight: 600;
}

.city-tooltip-time {
  font-size: 1.2rem;
  font-family: 'Courier New', monospace;
  margin-bottom: 5px;
}

.city-tooltip-weather {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .9rem;
  color: var(--text-secondary);
}

.tooltip-city {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .2rem;
}

.tooltip-time {
  font-size: 1.1rem;
  font-family: 'Courier New', monospace;
  margin-bottom: .2rem;
}

.tooltip-weather {
  display: flex;
  align-items: center;
  gap: .2rem;
  color: var(--text-secondary);
}

.clock-card, .worldtime_modal-card {
  background: var(--bg-glass-light);
  padding: .5rem;
  border-radius: 8px;
  border-left: 3px solid;
  position: relative;
  overflow: hidden;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clock-card::before, .worldtime_modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.clock-card.day, .worldtime_modal-card.day {
  border-left-color: #ffb347;
  background: linear-gradient(135deg, var(--bg-glass-light), rgb(255 179 71 / 34%));
}

.clock-card.night, .worldtime_modal-card.night {
  border-left-color: #4f8a8b;
  background: linear-gradient(135deg, var(--bg-glass-light), rgb(79 138 139 / 57%));
}

.clock-card.dawn, .worldtime_modal-card.dawn {
  border-left-color: #ff7e5f;
  background: linear-gradient(135deg, var(--bg-glass-light), rgb(255 126 95 / 30%));
}

.clock-date, .worldtime_modal-date {
  font-size: 11px;
  color: var(--text-secondary);
  margin: .2rem 0;
}

.worldtime_modal-date {
  color: #fff;
}

.clock-header, .worldtime_modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .1rem;
}

.worldtime_modal-header-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}

.worldtime_modal-header-content img {
  flex-shrink: 0;
}

.worldtime_modal-header-content strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: -1px;
  font-size: 18px;
}

.clock-time {
  font-size: 17px;
  line-height: 10px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  margin: .3rem 0;
}

.worldtime_modal-time {
  font-size: 32px;
  line-height: 10px;
  font-weight: 600;
  font-family: 'Roboto', 'Courier New', monospace;
  margin: .1rem 0;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.clock-weather, .worldtime_modal-weather {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-size: 13px;
  margin: .2rem 0;
  color: var(--text-secondary);
}

.worldtime_modal-weather {
  color: #fff;
}

.worldtime_modal-date-weather {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #fff;
  margin: .2rem 0;
}

.clocks-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 350px;
  overflow-y: auto;
  padding-right: .1rem;
  min-height: 30px;
}

.clocks-container::-webkit-scrollbar {
  width: 6px;
}

.clocks-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .05);
  border-radius: 3px;
}

.clocks-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
  border-radius: 3px;
}

.clocks-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .3);
}

.control-bar {
  display: flex;
  gap: .6rem;
  margin-bottom: .1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 1024px) {
  .control-bar {
    flex-direction: column;
  }
}

@media (min-width: 1025px) {
  .control-bar {
    justify-content: space-between;
  }
}

@media (max-width: 767px), (min-width: 768px) and (max-width: 1024px) {
  .control-bar {
    display: none;
  }
}

.control-btn {
  padding: .3rem .5rem;
  border: none;
  border-radius: 12px;
  background: rgba(32, 64, 128, .3);
  color: var(--text-primary);
  cursor: pointer;
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: .8rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
  text-decoration: none;
  display: inline-block;
}

.control-btn:hover {
  border-color: #667eea;
  color: var(--text-primary);
}

.control-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 3px 8px rgba(102, 126, 234, .4);
}

.control-buttons {
  display: flex;
  gap: .6rem;
}

@media (max-width: 1024px) {
  .control-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .control-buttons {
    order: 3;
    margin-left: auto;
  }
}

.country {
  fill: #3a6ca0;
  stroke: #b1cbe4;
  stroke-width: 0.6px;
  transition: all .3s ease;
}

.country.highlighted {
  fill: #8ba8c9 !important;
  stroke: #fff;
  stroke-width: 2px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .5));
}

.country.watched-country {
  stroke: #ffd700;
  stroke-width: 1.5px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, .6));
}

.dropdown-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .8rem;
}

.earth-rotation {
  animation: rotateEarth 120s linear infinite;
}

@keyframes rotateEarth {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.empty-list {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  color: var(--text-secondary);
  font-style: italic;
  font-size: .85rem;
}

.flag-small {
  width: auto;
  height: 12px;
  border-radius: 2px;
  vertical-align: middle;
}

.globe-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 550px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .globe-container {
    max-width: 100%;
    height: 500px;
    padding: 0 10px;
  }
}

@media (max-width: 767px) {
  .globe-container {
    height: 400px;
    padding: 0 5px;
  }
}

@media (max-width: 480px) {
  .globe-container {
    height: 200px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .globe-container {
    height: 450px;
  }
}

#globeSVG {
  width: 100%;
  height: 100%;
  cursor: grab;
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
}

#globeSVG:active {
  cursor: grabbing;
}

.globe-section {
  background: transparent;
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  padding: .1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .globe-section {
    padding: 0;
    margin: 1px auto;
    width: 95%;
  }
}

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #667eea;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.main-container {
  width: 100%;
  margin: 0 auto;
  padding: .1rem 0 .1rem 0;
  height: auto;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1px;
}

@media (max-width: 767px) {
  .main-container {
    min-height: calc(100vh - 80px);
  }
}

@media (max-width: 480px) {
  .main-container {
    margin-top: 3px;
  }
}

@media (max-width: 430px) {
  .main-container {
    margin-top: 3px;
  }
}

@media (max-width: 375px) {
  .main-container {
    margin-top: 3px;
  }
}

@media (max-width: 414px) {
  .main-container {
    margin-top: 3px;
  }
}

@media (max-width: 344px) {
  .main-container {
    margin-top: 3px;
  }
}

@media (max-width: 300px) {
  .main-container {
    margin-top: 3px;
  }
}

.mobile-cities-panel {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cities-panel {
    display: block !important;
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: var(--shadow-deep);
    margin: 1px 10px;
    padding: 10px;
    width: calc(100% - 20px);
  }
  .mobile-cities-panel .clocks-container {
    max-height: none;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-cities-panel .clocks-container::-webkit-scrollbar {
    display: none;
  }
  .mobile-cities-panel .clock-card {
    min-height: 80px;
    padding: .6rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .mobile-cities-panel {
    display: block !important;
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: var(--shadow-deep);
    margin: 1px 10px;
    padding: 10px;
    width: calc(100% - 20px);
  }
  .mobile-cities-panel .clocks-container {
    max-height: none;
    overflow-y: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mobile-cities-panel .clocks-container::-webkit-scrollbar {
    display: none;
  }
  .mobile-cities-panel .clock-card {
    min-height: 90px;
    padding: .7rem;
  }
}

@media (min-width: 769px) {
  .mobile-cities-panel {
    display: none;
  }
}

.search-box {
  width: 100%;
  padding: .3rem .5rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(32, 64, 128, .3);
  color: var(--text-primary);
  font-size: .8rem;
  backdrop-filter: blur(20px);
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1);
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.search-box:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 0 10px rgba(102, 126, 234, .3);
}

.search-container {
  position: relative;
  width: 200px;
}

@media (max-width: 1024px) {
  .search-container {
    width: 100%;
  }
}

@media (min-width: 1025px) {
  .search-container {
    order: 1;
    margin-right: auto;
  }
}

.search-loading {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  z-index: 1000;
}

.searching .add-city-btn-text::after {
  content: "Searching";
}

.searching .fa-plus-circle {
  animation: spin 1s linear infinite;
}

.time-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.time-sector {
  transition: all .5s ease;
  cursor: pointer;
  pointer-events: all;
}

.time-sector:hover {
  filter: brightness(1.3);
  transform: scale(1.05);
}

.time-sector text {
  font-size: 9px;
  font-weight: 600;
  fill: var(--text-primary);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.timezone-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  margin: 0 1rem;
  flex: 1;
  max-width: 400px;
}

@media (max-width: 767px), (min-width: 768px) and (max-width: 1024px) {
  .timezone-bar {
    display: none;
  }
}

@media (min-width: 1025px) {
  .timezone-bar {
    order: 2;
  }
}

.timezone-item {
  padding: .3rem .6rem;
  background: rgba(32, 64, 128, .3);
  border-radius: 8px;
  font-size: .75rem;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: all .3s ease;
  cursor: default;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.timezone-item:hover {
  background: rgba(32, 64, 128, .5);
  transform: none;
}

.timezone-item.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 2px 6px rgba(102, 126, 234, .4);
}

.visitor-info-bar {
  background: rgba(173, 216, 230, .3);
  backdrop-filter: blur(20px);
  padding: .3rem;
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  z-index: 998;
  line-height: 3px;
}

@media (max-width: 450px) {
  .visitor-info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    line-height: normal;
    padding: 10px;
    font-size: .7rem;
    white-space: nowrap;
    overflow: hidden;
  }
  .visitor-info-bar .visitor-info-item {
    flex: 1 1 auto;
    justify-content: flex-start;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .visitor-info-bar .visitor-info-item:nth-child(1) {
    order: 1;
    grid-column: 1;
  }
  .visitor-info-bar .visitor-info-item:nth-child(6) {
    order: 2;
    grid-column: 2;
  }
  .visitor-info-bar .visitor-info-item:nth-child(3) {
    order: 3;
    grid-column: 1;
  }
  .visitor-info-bar .visitor-info-item:nth-child(2) {
    order: 4;
    grid-column: 2;
  }
  .visitor-info-bar .visitor-info-item:nth-child(5) {
    order: 5;
    grid-column: 1;
  }
  .visitor-info-bar .visitor-info-item:nth-child(4) {
    order: 6;
    grid-column: 2;
  }
  .visitor-info-bar .visitor-info-item strong {
    font-size: .7rem;
  }
  .visitor-info-bar .visitor-info-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
  .visitor-info-bar .visitor-info-item img {
    margin-right: 1px;
  }
}

@media (min-width: 451px) and (max-width: 820px) {
  .visitor-info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    line-height: normal;
    padding: 10px;
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
  }
  .visitor-info-bar .visitor-info-item {
    flex: 1 1 auto;
    justify-content: flex-start;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .visitor-info-bar .visitor-info-item:nth-child(1) {
    order: 1;
    grid-column: 1;
  }
  .visitor-info-bar .visitor-info-item:nth-child(4) {
    order: 2;
    grid-column: 2;
  }
  .visitor-info-bar .visitor-info-item:nth-child(6) {
    order: 3;
    grid-column: 3;
  }
  .visitor-info-bar .visitor-info-item:nth-child(3) {
    order: 4;
    grid-column: 1;
  }
  .visitor-info-bar .visitor-info-item:nth-child(2) {
    order: 5;
    grid-column: 2;
  }
  .visitor-info-bar .visitor-info-item:nth-child(5) {
    order: 6;
    grid-column: 3;
  }
  .visitor-info-bar .visitor-info-item strong {
    font-size: .75rem;
  }
  .visitor-info-bar .visitor-info-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
  .visitor-info-bar .visitor-info-item img {
    margin-right: 1px;
  }
}

@media (max-width: 480px) {
  .visitor-info-bar {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px;
  }
  .visitor-info-bar .visitor-info-item {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .visitor-info-bar {
    gap: .1rem;
    font-size: 12px;
    padding: .2rem;
  }
}

.visitor-info-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

@media (max-width: 767px) {
  .visitor-info-item {
    flex: 0 0 calc(50% - 10px);
    text-align: left;
    justify-content: flex-start;
  }
}

.watched-cities-dropdown {
  background: var(--bg-glass);
  margin-top: 3px;
  backdrop-filter: blur(40px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: var(--shadow-deep);
  padding: .8rem;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  width: 330px;
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 1024px) {
  .watched-cities-dropdown {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
  }
}

.watched-cities-dropdown.expanded {
  max-height: 400px;
  padding: .2rem;
  opacity: 1;
  visibility: visible;
}

.watched-cities-dropdown .clock-time {
  font-family: 'Roboto', 'Courier New', monospace !important;
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/fa-brands-400.woff2") format("woff2"), url("/assets/fonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/fa-regular-400.woff2") format("woff2"), url("/assets/fonts/fa-regular-400.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/assets/fonts/fa-solid-900.woff2") format("woff2"), url("/assets/fonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/fa-v4compatibility.woff2") format("woff2"), url("/assets/fonts/fa-v4compatibility.ttf") format("truetype");
}

.footer-wtp-footer {
  background-color: #1E293B;
  color: #F8FAFC;
  padding: 1.5rem 0 1rem;
  font-family: 'Inter', sans-serif;
  margin-top: 0;
}

.footer-wtp-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.footer-wtp-brand {
  text-align: center;
}

.footer-wtp-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

.footer-wtp-logo-meta {
  margin-top: 0.5rem;
}

.footer-wtp-description {
  color: #94A3B8;
  line-height: 1.3;
  font-size: 0.8125rem;
  margin: 0 0 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.footer-wtp-social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.footer-wtp-social-links a {
  color: #E2E8F0;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-wtp-social-links a:hover {
  color: #38BDF8;
}

.footer-wtp-social-links img {
  width: 16px;
  height: 16px;
  filter: invert(89%) sepia(8%) saturate(300%) hue-rotate(176deg) brightness(98%) contrast(89%);
  transition: filter 0.3s;
}

.footer-wtp-social-links a:hover img {
  filter: invert(72%) sepia(67%) saturate(619%) hue-rotate(166deg) brightness(99%) contrast(93%);
}

.footer-wtp-links-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-wtp-quick-links, .footer-wtp-partners-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-wtp-quick-links a, .footer-wtp-partners-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.footer-wtp-quick-links a:hover, .footer-wtp-partners-links a:hover {
  color: #38BDF8;
}

.footer-wtp-separator {
  color: #64748B;
  user-select: none;
}

.footer-wtp-partners-label {
  color: #E2E8F0;
  font-weight: 500;
}

.footer-wtp-copyright {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
  color: #64748B;
  font-size: 0.75rem;
}

.footer-wtp-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  display: inline-block;
}

.footer-wtp-logo-main {
  background: linear-gradient(90deg, #2563EB 0%, #10B981 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.2rem;
}

.footer-wtp-logo-pro {
  background: #F43F5E;
  color: white;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  margin-left: 0.2rem;
  font-size: 0.6em;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
  box-shadow: 0 2px 4px rgba(244, 63, 94, 0.3);
}

@media (max-width: 768px) {
  .footer-wtp-container {
    padding: 0 1rem;
    gap: 1.25rem;
  }
  .footer-wtp-logo {
    font-size: 1.3rem;
  }
  .footer-wtp-description {
    font-size: 0.75rem;
  }
  .footer-wtp-social-links {
    gap: 0.6rem;
  }
  .footer-wtp-quick-links, .footer-wtp-partners-links {
    font-size: 0.8125rem;
    gap: 0.3rem;
  }
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--darker-bg);
  z-index: 1001;
  transition: none;
  overflow-y: auto;
  padding-top: 50px;
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .mobile-sidebar {
    top: 50px;
    height: calc(100vh - 50px);
    padding-top: 0;
    width: 140px;
    left: -140px;
    transition: none;
  }
  .mobile-sidebar.active {
    left: 0;
  }
}

.worldtime_buttons-container {
  display: flex;
  gap: 5px;
  width: 100%;
  margin-bottom: 5px;
}

.worldtime_fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.worldtime_fullscreen-modal.active {
  display: flex;
  animation: worldtime_modalZoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.worldtime_modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.worldtime_modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.worldtime_modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
}

.worldtime_modal-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 20px;
  transition: transform .5s ease;
  justify-content: flex-start;
}

@media (min-width: 1201px) {
  .worldtime_modal-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .worldtime_modal-cards-container::-webkit-scrollbar {
    width: 8px;
  }
  .worldtime_modal-cards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .1);
    border-radius: 4px;
  }
  .worldtime_modal-cards-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
    border-radius: 4px;
  }
  .worldtime_modal-cards-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .5);
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .worldtime_modal-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    align-items: start;
    justify-items: center;
  }
}

.worldtime_modal-card {
  width: 100%;
  max-width: 300px;
  margin: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 1201px) {
  .worldtime_modal-card {
    width: 100%;
    max-width: none;
  }
}

.worldtime_modal-close {
  position: absolute;
  bottom: 1px;
  left: 1px;
  background: none;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0.8;
  cursor: default;
}

.worldtime_modal-close:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.worldtime_modal-close img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.worldtime_modal-pagination {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  pointer-events: none;
  z-index: 100;
}

.worldtime_modal-prev, .worldtime_modal-next {
  pointer-events: all;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 15px;
  transition: all 0.3s ease;
  opacity: 0.7;
  cursor: default;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.worldtime_modal-prev:hover, .worldtime_modal-next:hover {
  opacity: 1;
  transform: scale(1.1);
  cursor: pointer;
}

.worldtime_modal-prev img, .worldtime_modal-next img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

@media (min-width: 1025px) {
  .worldtime_fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    background: rgba(0, 0, 0, 0.9);
  }
  .worldtime_fullscreen-modal.active {
    display: flex;
  }
  .worldtime_modal-pagination {
    display: flex;
  }
}

@keyframes worldtime_modalZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/webfonts/roboto/Roboto-Bold.ttf') format('truetype');
}

.space-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #000428, #004e92);
  overflow: hidden;
}

.delete-city-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: .2rem;
}

.worldtime_modal-card {
  height: 240px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .worldtime_modal-card {
    height: 220px;
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .worldtime_modal-card {
    height: 230px;
    min-height: 230px;
    padding: 15px;
  }
}

.worldtime_modal-header {
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.worldtime_modal-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.worldtime_modal-time {
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
  position: relative;
  z-index: 2;
  font-family: 'Roboto', 'Courier New', monospace;
  letter-spacing: 1px;
}

.worldtime_modal-date-weather {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  position: relative;
  z-index: 2;
}

.worldtime_modal-date-weather span:first-child {
  font-size: 1rem;
  opacity: .9;
  color: #e0e0e0;
  font-weight: 500;
}

.worldtime_modal-date-weather span:last-child {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.worldtime_modal-card.day, .worldtime_modal-card.night, .worldtime_modal-card.dawn {
  background: rgba(0, 0, 0, .37);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  position: relative;
}

.worldtime_modal-card.day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 179, 71, .1), rgba(255, 204, 51, .05));
  z-index: 1;
  pointer-events: none;
}

.worldtime_modal-card.night::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 138, 139, .1), rgba(58, 123, 213, .05));
  z-index: 1;
  pointer-events: none;
}

.worldtime_modal-card.dawn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 126, 95, .1), rgba(254, 180, 123, .05));
  z-index: 1;
  pointer-events: none;
}

.worldtime_modal-card>* {
  position: relative;
  z-index: 2;
}

@media (max-width: 480px) {
  .worldtime_modal-card {
    height: 200px;
    min-height: 200px;
    padding: 12px;
  }
  .worldtime_modal-time {
    font-size: 2rem;
    margin: 10px 0;
  }
  .worldtime_modal-header-content strong {
    font-size: 16px;
  }
  .worldtime_modal-date-weather span:first-child {
    font-size: .9rem;
  }
  .worldtime_modal-date-weather span:last-child {
    font-size: 1rem;
  }
}

@media (max-width: 375px) {
  .worldtime_modal-card {
    height: 180px;
    min-height: 180px;
    padding: 10px;
  }
  .worldtime_modal-time {
    font-size: 1.8rem;
  }
  .worldtime_modal-header-content strong {
    font-size: 14px;
  }
}

.clock-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
  transition: all .3s ease;
}

.worldtime_modal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .5);
  transition: all .3s ease;
}

.delete-city-btn:hover {
  color: var(--highlight-red);
  transform: scale(1.1);
  transition: all .2s ease;
}

.search-box::placeholder {
  color: rgba(255, 255, 255, .5);
  font-size: .8rem;
}

.control-btn i {
  margin-right: 4px;
}

@media (max-width: 767px) {
  .visitor-info-item {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 5px;
  }
  .visitor-info-item strong {
    font-size: .7rem;
  }
}

@media (max-width: 480px) {
  .visitor-info-bar {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px;
  }
  .visitor-info-item {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

.country:hover {
  fill: #5a8bc5 !important;
  stroke: #d1e3f5;
  stroke-width: 1px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .3));
  cursor: pointer;
}

.ocean {
  fill: #8bafee;
  stroke: none;
}

.city-marker-group {
  transition: all .3s ease;
}

.city-marker-group:hover {
  transform: scale(1.2);
}

.worldtime_modal-cards-container::-webkit-scrollbar {
  width: 8px;
}

.worldtime_modal-cards-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
}

.worldtime_modal-cards-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .3);
  border-radius: 4px;
}

.worldtime_modal-cards-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .5);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.loading.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

.error-state {
  background: rgba(244, 63, 94, .1);
  border: 1px solid rgba(244, 63, 94, .3);
  color: var(--highlight-red);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin: 10px 0;
}

.success-state {
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  color: var(--accent-green);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin: 10px 0;
}

.city-tooltip::after, .tooltip::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--bg-glass);
}

@media (max-width: 767px) {
  .clock-card, .worldtime_modal-card {
    -webkit-tap-highlight-color: transparent;
  }
  .control-btn, .add-city-btn, .worldtime_fullscreen-btn {
    -webkit-tap-highlight-color: rgba(255, 255, 255, .1);
  }
}

@media (prefers-contrast: high) {
  :root {
    --text-primary: #fff;
    --text-secondary: #ccc;
    --bg-glass: rgba(0, 0, 0, .8);
    --bg-glass-light: rgba(0, 0, 0, .6);
  }
  .clock-card, .worldtime_modal-card {
    border: 2px solid currentColor;
  }
  .control-btn {
    border: 2px solid currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .clock-card:hover, .worldtime_modal-card:hover {
    transform: none;
  }
}

@media print {
  .space-background, .control-bar, .visitor-info-bar, .footer-wtp-footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .clock-card, .worldtime_modal-card {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

@media (min-width: 1400px) {
  .worldtime_modal-cards-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1600px) {
  .worldtime_modal-cards-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

.worldtime_modal-pagination-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.worldtime_modal-pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transition: all .3s ease;
  cursor: pointer;
}

.worldtime_modal-pagination-dot.active {
  background: rgba(255, 255, 255, .8);
  transform: scale(1.2);
}

.clock-time, .worldtime_modal-time {
  font-family: 'Roboto', 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.space-background {
  z-index: -1;
}

.visitor-info-bar {
  z-index: 998;
}

.watched-cities-dropdown {
  z-index: 999;
}

.city-tooltip {
  z-index: 1001;
}

.tooltip {
  z-index: 1000;
}

.worldtime_fullscreen-modal {
  z-index: 9999;
}