.nuonat-weather-card,
.nuonat-weather-card * {
  box-sizing: border-box;
}

.nuonat-weather-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(89,112,255,0.10);
  border-radius: 18px;
  padding: 16px 14px 14px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(29,41,57,0.08);
}

.nuonat-weather-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(79,124,255,0.12), transparent 70%);
  pointer-events: none;
}

.nuonat-weather-card-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.nuonat-weather-head-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f7cff, #42d77d);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(79,124,255,0.22);
}

.nuonat-weather-head-text {
  min-width: 0;
  overflow: visible;
}

.nuonat-weather-kicker,
.nwp-filter-kicker {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #7d8aa2;
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: normal;
}

.nuonat-weather-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.nuonat-weather-subtitle {
  margin-top: 5px;
  color: #7d8aa2;
  font-size: 12px;
  line-height: 1.35;
}

.nwp-page {
  position: relative;
  z-index: 1;
  margin: 0;
}

.nwp-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #4f7cff, #42d77d);
  box-shadow: 0 8px 24px rgba(29,41,57,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.nwp-hero::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.32), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.14), transparent 35%);
  pointer-events: none;
}

.nwp-hero > * {
  position: relative;
  z-index: 2;
}

.nwp-kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

.nwp-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  color: #ffffff;
}

.nwp-hero p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  opacity: .96;
}

.nwp-current {
  text-align: center;
  min-width: 120px;
}

.nwp-icon {
  font-size: 64px;
  line-height: 1;
}

.nwp-temp {
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 4px 14px rgba(0,0,0,.20);
}

.nwp-filter-wrapper,
.nwp-advice,
.nwp-day,
.nwp-loading {
  position: relative;
  background: linear-gradient(135deg, rgba(79,124,255,0.055), rgba(66,215,125,0.045));
  border: 1px solid rgba(79,124,255,0.08);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}

.nwp-filter-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.nwp-filter-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #4f7cff;
  font-size: 17px;
  box-shadow: 0 5px 14px rgba(15,23,42,0.08);
}

.nwp-filter-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.nwp-filter-subtitle {
  margin-top: 5px;
  color: #7d8aa2;
  font-size: 12px;
  line-height: 1.35;
}

.nwp-search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nwp-action-btn,
.nwp-city-btn {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f7cff, #42d77d);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(79,124,255,0.20);
  transition: all .18s ease;
}

.nwp-action-btn:hover,
.nwp-city-btn:hover {
  opacity: .94;
  transform: translateY(-1px);
}

.nwp-city-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
}

.nwp-city-box input {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(79,124,255,0.14);
  font-weight: 700;
  color: #26324a;
  background: #ffffff;
  box-shadow: none;
}

.nwp-advice {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.nwp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.nwp-stats > div {
  position: relative;
  min-height: 96px;
  padding: 14px 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79,124,255,0.055), rgba(66,215,125,0.045));
  border: 1px solid rgba(79,124,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nwp-stats span {
  display: block;
  font-size: 12px;
  color: #7d8aa2;
  font-weight: 800;
  margin-bottom: 7px;
}

.nwp-stats strong {
  font-size: 20px;
  color: #26324a;
  font-weight: 950;
  line-height: 1;
}

.nwp-section-title {
  margin: 20px 0 12px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.nwp-forecast {
  display: grid;
  gap: 12px;
}

.nwp-day {
  margin-bottom: 0;
}

.nwp-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nwp-day-name {
  font-weight: 900;
  font-size: 16px;
  color: #26324a;
  line-height: 1.2;
}

.nwp-day-summary {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.nwp-day-temp {
  font-weight: 950;
  color: #26324a;
  white-space: nowrap;
  font-size: 15px;
}

.nwp-hours {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.nwp-hour {
  background: #ffffff;
  border: 1px solid rgba(79,124,255,0.08);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.nwp-hour-time {
  font-size: 12px;
  color: #7d8aa2;
  font-weight: 800;
}

.nwp-hour-icon {
  font-size: 24px;
  margin: 5px 0;
}

.nwp-hour-temp {
  font-size: 17px;
  font-weight: 950;
  color: #26324a;
}

.nwp-hour-desc {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
  font-weight: 700;
}

.nwp-loading {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

body.night-mode .nuonat-weather-card,
body.dark-mode .nuonat-weather-card {
  background: #1f2933;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

body.night-mode .nuonat-weather-title,
body.dark-mode .nuonat-weather-title,
body.night-mode .nwp-filter-title,
body.dark-mode .nwp-filter-title,
body.night-mode .nwp-section-title,
body.dark-mode .nwp-section-title,
body.night-mode .nwp-stats strong,
body.dark-mode .nwp-stats strong,
body.night-mode .nwp-day-name,
body.dark-mode .nwp-day-name,
body.night-mode .nwp-day-temp,
body.dark-mode .nwp-day-temp,
body.night-mode .nwp-hour-temp,
body.dark-mode .nwp-hour-temp {
  color: #ffffff;
}

body.night-mode .nuonat-weather-kicker,
body.dark-mode .nuonat-weather-kicker,
body.night-mode .nuonat-weather-subtitle,
body.dark-mode .nuonat-weather-subtitle,
body.night-mode .nwp-filter-kicker,
body.dark-mode .nwp-filter-kicker,
body.night-mode .nwp-filter-subtitle,
body.dark-mode .nwp-filter-subtitle,
body.night-mode .nwp-advice,
body.dark-mode .nwp-advice,
body.night-mode .nwp-stats span,
body.dark-mode .nwp-stats span,
body.night-mode .nwp-day-summary,
body.dark-mode .nwp-day-summary,
body.night-mode .nwp-hour-time,
body.dark-mode .nwp-hour-time,
body.night-mode .nwp-hour-desc,
body.dark-mode .nwp-hour-desc,
body.night-mode .nwp-loading,
body.dark-mode .nwp-loading {
  color: rgba(255,255,255,0.62);
}

body.night-mode .nwp-filter-wrapper,
body.dark-mode .nwp-filter-wrapper,
body.night-mode .nwp-advice,
body.dark-mode .nwp-advice,
body.night-mode .nwp-stats > div,
body.dark-mode .nwp-stats > div,
body.night-mode .nwp-day,
body.dark-mode .nwp-day,
body.night-mode .nwp-loading,
body.dark-mode .nwp-loading {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.07);
}

body.night-mode .nwp-hour,
body.dark-mode .nwp-hour {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.07);
}

body.night-mode .nwp-filter-icon,
body.dark-mode .nwp-filter-icon {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  box-shadow: none;
}

@media(max-width: 768px) {
  .nuonat-weather-card {
    border-radius: 16px;
    padding: 16px 12px 12px;
  }

  .nwp-hero {
    align-items: flex-start;
    padding: 20px;
  }

  .nwp-hero h1 {
    font-size: 24px;
  }

  .nwp-icon {
    font-size: 52px;
  }

  .nwp-temp {
    font-size: 34px;
  }

  .nwp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nwp-hours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nwp-search {
    grid-template-columns: 1fr;
  }

  .nwp-city-box {
    grid-column: auto;
  }
}

@media(max-width: 480px) {
  .nwp-hero {
    flex-direction: column;
  }

  .nwp-current {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}