:root {
  color-scheme: dark;
  background: #10121a;
  color: #e8edf8;
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, #2d3a55 0%, #10121a 60%);
}

.container {
  width: min(100%, 980px);
  display: grid;
  gap: 24px;
}

h1,
h2 {
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.7;
  color: #c6d0ff;
}

.card {
  background: rgba(14, 18, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
}

.note ul {
  margin: 0;
  padding-left: 20px;
}

.note li {
  margin-bottom: 10px;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.location-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.right-angle-button {
  border-radius: 8px;
  min-width: 120px;
  padding: 14px 18px;
}

.square-icon-button {
  width: 70px;
  min-width: 70px;
  height: 70px;
  padding: 0;
  border-radius: 18px;
  font-size: 1.5rem;
}

.location-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

#location-input {
  min-width: 0;
}

.square-icon-button.active {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.search-results {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.selected-location {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dbe3ff;
  font-size: 0.95rem;
}

.search-result {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.12);
}

#map {
  width: 100%;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-card {
  margin-top: 18px;
}

#map {
  width: 100%;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-hint {
  margin: 10px 0 0;
  color: #c1c9ff;
  font-size: 0.95rem;
}

label {
  font-size: 0.9rem;
  color: #a2adff;
}

input,
select,
button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  background: rgba(13, 17, 29, 0.95);
  color: #f8fbff;
  font-size: 1rem;
}

#toggle-map-button {
  background: linear-gradient(135deg, #52c7ff, #4f7bff);
}

#toggle-map-button:hover {
  opacity: 0.94;
}

button {
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #5f7bff, #3bc1ff);
  color: #08102f;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.square-button {
  width: 70px;
  min-width: 70px;
  height: 70px;
  padding: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.hidden {
  display: none;
}

.summary,
.probabilities,
.table-wrapper {
  margin-bottom: 18px;
}

.summary strong,
.probabilities strong {
  display: block;
  margin-bottom: 6px;
  color: #dbe3ff;
}

.probability-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.probability-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.probability-card span {
  display: block;
  font-size: 1.4rem;
  margin-top: 8px;
  font-weight: 700;
}

.verification-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.verification-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.verification a {
  color: #7fc1ff;
  text-decoration: underline;
}

.verification a:hover {
  opacity: 0.9;
}
.verification-card.match {
  border-color: #1d8f3c;
  background: rgba(29, 143, 60, 0.08);
}

.verification-card.mismatch {
  border-color: #c42a2a;
  background: rgba(196, 42, 42, 0.08);
}

.verification-card div {
  margin-bottom: 0.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.05);
  color: #aab8ff;
}

tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.status.sunny-bright {
  background: rgba(255, 210, 50, 0.22);
  color: #ffd84a;
}

.status.sunny {
  background: rgba(255, 189, 32, 0.16);
  color: #ffcf6f;
}

.status.sunny-mostly {
  background: rgba(255, 200, 60, 0.14);
  color: #ffe49a;
}

.status.partly-cloudy {
  background: rgba(255, 220, 100, 0.12);
  color: #ffe08a;
}

.status.mostly-cloudy {
  background: rgba(190, 190, 210, 0.15);
  color: #d0d2e2;
}

.status.cloudy {
  background: rgba(162, 166, 187, 0.16);
  color: #d5d8e7;
}

.status.cloudy-heavy {
  background: rgba(130, 135, 160, 0.2);
  color: #b8bbd0;
}

.status.mist {
  background: rgba(180, 180, 200, 0.14);
  color: #c8c8d8;
}

.status.drizzle-light {
  background: rgba(130, 190, 255, 0.1);
  color: #c0dfff;
}

.status.drizzle {
  background: rgba(100, 170, 255, 0.12);
  color: #b0d4ff;
}

.status.drizzle-heavy {
  background: rgba(80, 150, 240, 0.15);
  color: #a0c8ff;
}

.status.rainy-light {
  background: rgba(90, 160, 255, 0.13);
  color: #a8d0ff;
}

.status.rainy {
  background: rgba(69, 150, 255, 0.16);
  color: #9cccff;
}

.status.rainy-heavy {
  background: rgba(30, 100, 220, 0.2);
  color: #7eb8ff;
}

.status.rainy-extreme {
  background: rgba(20, 70, 190, 0.25);
  color: #6aa8ff;
}

.status.snowy {
  background: rgba(194, 240, 255, 0.18);
  color: #d9f3ff;
}

.status.snowy-heavy {
  background: rgba(170, 220, 250, 0.22);
  color: #c5e8ff;
}

.status.thunder {
  background: rgba(180, 155, 255, 0.16);
  color: #d7caff;
}

.status.thunder-heavy {
  background: rgba(150, 120, 240, 0.22);
  color: #c4b2ff;
}

.status.night {
  background: rgba(40, 50, 80, 0.3);
  color: #8892b0;
}

.status.unknown {
  background: rgba(120, 120, 140, 0.12);
  color: #aaa;
}

.error {
  color: #ff7f7f;
}

.weather-details {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.weather-periods {
  display: grid;
  gap: 4px;
}

.period {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.period-label {
  color: #a2adff;
  font-weight: 600;
  min-width: 70px;
}

.weather-source {
  color: #a2adff;
  font-size: 0.85rem;
}

.source-link {
  color: #7fc1ff;
  text-decoration: underline;
  font-size: 0.9rem;
}

.source-link:hover {
  opacity: 0.9;
}

@media (min-width: 680px) {
  .container {
    gap: 32px;
  }

  form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  form > button {
    grid-column: span 2;
  }
}

.hidden {
  display: none;
}

.weather-cell {
  position: relative;
}

.expand-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #e8edf8;
  cursor: pointer;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expand-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sub-periods {
  margin-left: 20px;
  margin-top: 4px;
}

.sub-period {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 13px;
}

/* Uitgebreide info sectie */
.detail-section {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.detail-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #a2adff;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 6px 12px;
  width: auto;
  transition: background-color 0.15s ease;
}

.detail-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.detail-content {
  margin-top: 10px;
  gap: 12px;
}

.detail-content:not(.hidden) {
  display: grid;
}

.detail-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.detail-header {
  font-weight: 600;
  color: #a2adff;
  font-size: 0.82rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 16px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 3px 0;
}

.detail-label {
  color: #8892b0;
}

.detail-item span:last-child {
  color: #e8edf8;
  font-weight: 500;
}

.detail-stations {
  font-size: 0.82rem;
  color: #8892b0;
  line-height: 1.5;
}

.weather-score-card {
  border-width: 2px;
  border-style: solid;
}

.ranking-nr {
  color: #8892b0;
  font-size: 0.75rem;
  margin-right: 2px;
}

/* === Auth & Account === */
.auth-bar {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.lang-selector {
  display: flex;
  align-items: center;
  z-index: 1;
}

.lang-select {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 110px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c6d0ff;
  text-align: center;
  text-align-last: center;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.lang-select:hover,
.lang-select:focus {
  border-color: rgba(95, 123, 255, 0.5);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.auth-user-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  z-index: 1;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, border-color 0.2s;
}

.auth-user-wrap:hover {
  background: rgba(162, 173, 255, 0.12);
  border-color: rgba(162, 173, 255, 0.3);
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.auth-user {
  color: #e8edf8;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Online status dot (green pulsing) */
.online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.3);
  animation: pulse-online 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-online {
  0%, 100% { box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.3); }
  50%       { box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.08); }
}

/* Small online dot used in admin table */
.online-dot-sm {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  margin-right: 5px;
  flex-shrink: 0;
  vertical-align: middle;
}

.auth-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(135deg, #5f7bff, #3bc1ff);
  color: #08102f;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.auth-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c8d0e8;
  font-weight: 500;
}

.auth-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
  opacity: 1;
}

.save-fav-btn {
  margin-top: 10px;
  width: 100%;
}

/* Modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-modal {
  background: #1a1d2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.auth-modal h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: #e8edf8;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #8892b0;
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-modal-close:hover {
  color: #e8edf8;
}

.auth-error {
  color: #ff7f7f;
  font-size: 0.85rem;
  margin: 8px 0;
}

.auth-switch {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #8892b0;
  text-align: center;
}

.auth-switch a {
  color: #a2adff;
  text-decoration: underline;
  cursor: pointer;
}

/* Account panel */
.account-panel {
  max-height: 60vh;
  overflow-y: auto;
}

.panel-section {
  margin-bottom: 20px;
}

.panel-section h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: #a2adff;
}

.panel-empty {
  color: #8892b0;
  font-size: 0.85rem;
  font-style: italic;
}

.panel-list {
  display: grid;
  gap: 8px;
}

.panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.panel-item-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.panel-item-info strong {
  font-size: 0.9rem;
  color: #e8edf8;
}

.panel-item-info span {
  font-size: 0.78rem;
  color: #8892b0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-note-text {
  font-style: italic;
  color: #a0a8c4 !important;
}

.panel-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.panel-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e8edf8;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 4px 8px;
}

.panel-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.panel-btn-load {
  color: #a2adff;
  border-color: rgba(162, 173, 255, 0.3);
}

.panel-btn-delete {
  color: #ff7f7f;
  border-color: rgba(255, 127, 127, 0.3);
}

/* Toast */
.wz-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2e42;
  color: #e8edf8;
  border: 1px solid rgba(162, 173, 255, 0.3);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  z-index: 2000;
  animation: toast-in 0.3s ease;
}

.wz-toast-error {
  border-color: rgba(255, 127, 127, 0.4);
  color: #ff7f7f;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Textarea in modal */
.auth-modal textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e8edf8;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.auth-modal textarea:focus {
  outline: none;
  border-color: #a2adff;
}

/* === Admin Dashboard === */
.admin-dashboard {
  max-width: 1200px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.dash-stat {
  background: rgba(162, 173, 255, 0.08);
  border: 1px solid rgba(162, 173, 255, 0.15);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #a2adff;
  line-height: 1.2;
}

.dash-stat-label {
  font-size: 0.78rem;
  color: #8892b0;
}

.dash-stat-sub {
  font-size: 0.72rem;
  color: #6b7394;
}

.dash-section {
  margin-bottom: 18px;
}

.dash-section h3 {
  font-size: 0.9rem;
  color: #a2adff;
  margin: 0 0 8px;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Admin users table */
.dash-users-table {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  overflow-x: auto;
}

.dash-users-header,
.dash-users-row {
  display: grid;
  grid-template-columns: 1.8fr 2.2fr 0.7fr 0.9fr 1.1fr 1.2fr 2fr 0.6fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  min-width: 800px;
}

.dash-users-header {
  background: rgba(162, 173, 255, 0.12);
  color: #a2adff;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dash-users-row {
  background: rgba(255, 255, 255, 0.03);
  color: #c8d0e8;
  transition: background 0.15s ease;
}

.dash-users-row:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dash-users-admin {
  border-left: 3px solid #a2adff;
  background: rgba(162, 173, 255, 0.06);
}

.dash-users-name {
  font-weight: 600;
  color: #e8edf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-users-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8892b0;
}

.dash-users-date {
  color: #6b7394;
  font-size: 0.85rem;
}

.dash-users-lastseen {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-users-signup {
  font-size: 0.8rem;
  line-height: 1.4;
}

.dash-signup-info {
  color: #8892b0;
}

.dash-ref-tip {
  color: #6b7394;
  font-style: italic;
}

.online-dot-sm {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.dash-online {
  color: #4ade80;
  font-weight: 600;
}

/* Collapsible dashboard sections */
.dash-collapse-toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-collapse-toggle:hover {
  opacity: 0.8;
}
.dash-collapse-arrow {
  font-size: 0.7em;
  transition: transform 0.25s ease;
}
.dash-collapsed .dash-collapse-arrow {
  transform: rotate(-90deg);
}
.dash-collapse-body {
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
}
.dash-collapsed .dash-collapse-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Admin recent searches table */
.dash-searches-table {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
}

.dash-searches-header,
.dash-searches-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.6fr 0.5fr 1.2fr 1.2fr;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 500px;
}

.dash-searches-header {
  background: rgba(162, 173, 255, 0.08);
  color: #a2adff;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.dash-searches-row {
  background: rgba(255, 255, 255, 0.03);
  color: #c8d0e8;
}

.dash-searches-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dash-searches-loc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #e8edf8;
}

.dash-searches-time {
  color: #6b7394;
  font-size: 0.75rem;
}

/* Tabs for day/week toggle */
.dash-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.dash-tab {
  all: unset;
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7394;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, color 0.15s;
}
.dash-tab.active {
  background: linear-gradient(135deg, #5f7bff, #3bc1ff);
  color: #fff;
  border-color: transparent;
}
.dash-tab:hover:not(.active) {
  color: #c8d0e8;
  background: rgba(255,255,255,0.08);
}

/* Country-per-period breakdown */
.dash-country-periods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-snap-type: y proximity;
}
.dash-cp-period {
  scroll-snap-align: start;
}
.dash-cp-period {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.dash-cp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  background: rgba(162,173,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dash-cp-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #a2adff;
}
.dash-cp-total {
  font-size: 0.75rem;
  color: #6b7394;
}
.dash-cp-rows {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.dash-cp-row {
  display: grid;
  grid-template-columns: 22px 1fr auto 36px;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #c8d0e8;
}
.dash-cp-country {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-cp-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.dash-cp-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5f7bff, #3bc1ff);
  border-radius: 4px;
  min-width: 4px;
}
.dash-cp-count {
  text-align: right;
  font-weight: 600;
  color: #e8edf8;
  font-size: 0.8rem;
}

@media (max-width: 500px) {
  .dash-row {
    grid-template-columns: 1fr;
  }
}

/* Bar chart */
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding-bottom: 4px;
}

.dash-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.dash-bar-wrap {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dash-bar {
  width: 70%;
  max-width: 30px;
  min-height: 3px;
  background: linear-gradient(180deg, #5f7bff, #3bc1ff);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}

.dash-bar-label {
  font-size: 0.62rem;
  color: #6b7394;
  white-space: nowrap;
}

.dash-bar-value {
  font-size: 0.68rem;
  color: #8892b0;
  font-weight: 600;
}

/* Dashboard table */
.dash-table {
  display: grid;
  gap: 4px;
}
.dash-table-scroll {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.dash-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #c8d0e8;
}

.dash-flag {
  flex-shrink: 0;
  width: 24px;
  font-size: 1rem;
  line-height: 1;
}

.dash-table-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.dash-table-count {
  color: #a2adff;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
}

/* === Timeline === */
.timeline-section h2 {
  margin-bottom: 16px;
}

.tl-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tl-form input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf8;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.tl-form input:focus {
  border-color: rgba(95, 123, 255, 0.5);
}

.tl-submit {
  flex-shrink: 0;
  height: 42px;
  padding: 0 22px;
}

.tl-login-prompt {
  text-align: center;
  color: #6b7394;
  font-size: 0.88rem;
  padding: 10px 0;
  margin-bottom: 12px;
}

#timeline-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}

.tl-comment {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
  transition: background 0.2s;
}

.tl-comment:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tl-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tl-username {
  color: #a2adff;
  font-size: 0.85rem;
}

.tl-time {
  color: #5a6280;
  font-size: 0.75rem;
  margin-left: auto;
}

.tl-delete {
  all: unset;
  cursor: pointer;
  color: #5a6280;
  font-size: 1.1rem;
  padding: 0 4px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.tl-delete:hover {
  color: #ff5f5f;
}

.tl-message {
  margin: 0;
  color: #c6d0ff;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.tl-empty {
  text-align: center;
  color: #5a6280;
  font-size: 0.88rem;
  padding: 20px 0;
}

.timeline-load-more {
  margin-top: 14px;
  width: 100%;
}

/* ====================== */
/* === MOBILE RESPONSIVE === */
/* ====================== */

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    gap: 16px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }

  /* Auth bar: stack vertically */
  .auth-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    position: static;
  }

  .auth-buttons {
    position: static;
    transform: none;
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .lang-selector {
    order: 1;
  }

  .auth-user {
    order: 3;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .auth-btn {
    height: 36px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .lang-select {
    height: 36px;
    min-width: 90px;
    font-size: 0.8rem;
  }

  /* Form inputs */
  input,
  select,
  button {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Table horizontal scroll */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper table {
    min-width: 600px;
  }

  th, td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  /* Probability cards */
  .probability-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .probability-card {
    padding: 10px;
  }

  .probability-card span {
    font-size: 1.1rem;
  }

  /* Detail grid */
  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Map */
  #map {
    min-height: 250px;
  }

  /* Timeline */
  .tl-form {
    flex-direction: column;
  }

  .tl-submit {
    width: 100%;
  }

  #timeline-comments {
    max-height: 350px;
  }

  /* Modal */
  .auth-modal {
    padding: 20px;
    width: 95%;
  }

  /* Admin dashboard */
  .admin-dashboard {
    width: 98%;
    padding: 16px;
    max-width: 100%;
  }

  .dash-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-users-table {
    font-size: 0.75rem;
  }

  .dash-users-header,
  .dash-users-row {
    grid-template-columns: 1.2fr 1.8fr 0.6fr 0.7fr 1fr 1fr 1.5fr 0.5fr;
    gap: 6px;
    padding: 8px 6px;
    min-width: 700px;
  }

  /* Search results */
  .search-results {
    max-height: 200px;
  }

  /* Weather details */
  .period {
    flex-wrap: wrap;
    gap: 4px;
  }

  .period-label {
    min-width: 60px;
  }

  /* Status badges */
  .status {
    font-size: 0.78rem;
    padding: 4px 8px;
  }
}

@media (max-width: 400px) {
  body {
    padding: 6px;
  }

  h1 {
    font-size: 1.1rem;
  }

  .card {
    padding: 12px;
    border-radius: 14px;
  }

  .auth-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 0.75rem;
  }

  .probability-list {
    grid-template-columns: 1fr;
  }

  .dash-cards {
    grid-template-columns: 1fr;
  }

  .tl-comment {
    padding: 10px 12px;
  }
}

/* ====== Rich content sections ====== */
.intro-extra {
  margin-top: 8px;
  line-height: 1.8;
  color: #b8c4e8;
  font-size: 0.95rem;
}

.content-section h2 {
  margin-bottom: 16px;
  color: #dbe3ff;
}

.content-section p {
  line-height: 1.8;
  margin-bottom: 12px;
}

/* Use cases grid */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.use-case-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
}

.use-case-item h3 {
  color: #a8b8ff;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.use-case-item p {
  color: #b8c4e8;
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 0;
}

/* Data list */
.data-list {
  margin: 12px 0;
  padding-left: 20px;
}

.data-list li {
  margin-bottom: 12px;
  color: #b8c4e8;
  line-height: 1.7;
}

/* FAQ section */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  color: #dbe3ff;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary::before {
  content: '▸';
  transition: transform 0.2s ease;
  color: #7f9bff;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 20px 16px;
  color: #b8c4e8;
  line-height: 1.8;
  font-size: 0.93rem;
  margin: 0;
}

/* Weather insight analysis section */
.weather-insight h2 {
  margin-bottom: 14px;
  color: #dbe3ff;
}

.insight-text {
  display: grid;
  gap: 8px;
}

.insight-text p {
  color: #c6d0ff;
  line-height: 1.7;
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 3px solid #5f7bff;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========== Locations hub page ========== */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.loc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  text-align: center;
}

.loc-card:hover {
  background: rgba(95,123,255,0.12);
  border-color: rgba(95,123,255,0.35);
  transform: translateY(-2px);
}

.loc-flag {
  font-size: 1.5rem;
  line-height: 1;
}

.loc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8edf8;
}

.loc-sub {
  font-size: 0.74rem;
  color: #6b7394;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-section h3 {
  color: #a8b8ff;
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.footer-section p {
  color: #8e9ac0;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 8px;
}

.footer-section a {
  color: #7fc1ff;
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  color: #6b7699;
  font-size: 0.82rem;
  margin: 0;
}

@media (max-width: 500px) {
  .use-cases {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* === Decision list section === */

/* === Site tips grid & decision sections reuse .use-cases / .use-case-item from above === */

/* Footer quick links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #7fc1ff;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* === Changelog page === */
.changelog-header {
  text-align: center;
  padding: 20px 0 8px;
}

.changelog-header h1 {
  font-size: 2rem;
  color: #dbe3ff;
  margin-bottom: 10px;
}

.changelog-header p {
  color: #8e9ac0;
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7fc1ff;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.back-link:hover {
  text-decoration: underline;
}

.changelog-intro {
  color: #8e9ac0;
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Version timeline */
.version-block {
  border-left: 3px solid #5f7bff;
  padding-left: 20px;
  margin-bottom: 32px;
  position: relative;
}

.version-block::before {
  content: '';
  width: 12px;
  height: 12px;
  background: #5f7bff;
  border-radius: 50%;
  position: absolute;
  left: -7.5px;
  top: 6px;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.version-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #dbe3ff;
}

.version-date {
  font-size: 0.82rem;
  color: #6b7394;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 20px;
}

.version-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-major { background: rgba(95, 123, 255, 0.18); color: #a2adff; }
.badge-feature { background: rgba(59, 193, 255, 0.15); color: #7cd8ff; }
.badge-fix { background: rgba(255, 153, 0, 0.15); color: #ffba57; }
.badge-improvement { background: rgba(80, 200, 120, 0.15); color: #6fd49a; }

.version-title {
  font-size: 1rem;
  font-weight: 600;
  color: #c6d0ff;
  margin: 4px 0 10px;
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.93rem;
  color: #b8c4e8;
  line-height: 1.6;
}

.changelog-list li::before {
  content: '→';
  color: #5f7bff;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Upcoming / roadmap */
.upcoming-section {
  background: rgba(95, 123, 255, 0.06);
  border: 1px dashed rgba(95, 123, 255, 0.3);
  border-radius: 16px;
  padding: 28px 22px 22px;
  margin-bottom: 32px;
}

.upcoming-section h2 {
  color: #a2adff;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.upcoming-intro {
  font-size: 0.9rem;
  color: #8892b0;
  margin-bottom: 20px;
}

/* Roadmap grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.roadmap-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  border-left: 3px solid transparent;
}

.roadmap-item h3 {
  font-size: 0.95rem;
  color: #ccd6f6;
  margin: 8px 0 6px;
}

.roadmap-item p {
  font-size: 0.85rem;
  color: #8892b0;
  line-height: 1.55;
  margin: 0;
}

.roadmap-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.roadmap-soon {
  border-left-color: #3bc1ff;
}
.roadmap-soon .roadmap-status {
  background: rgba(59, 193, 255, 0.15);
  color: #3bc1ff;
}

.roadmap-planned {
  border-left-color: #a2adff;
}
.roadmap-planned .roadmap-status {
  background: rgba(162, 173, 255, 0.15);
  color: #a2adff;
}

.roadmap-future {
  border-left-color: rgba(136, 146, 176, 0.4);
}
.roadmap-future .roadmap-status {
  background: rgba(136, 146, 176, 0.1);
  color: #8892b0;
}

/* ========== API page ========== */
.api-endpoint-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(95, 123, 255, 0.08);
  border: 1px solid rgba(95, 123, 255, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.api-method {
  background: linear-gradient(135deg, #5f7bff, #3bc1ff);
  color: #10121a;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.api-url {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #ccd6f6;
  word-break: break-all;
}
.api-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.api-table th {
  text-align: left;
  padding: 8px 12px;
  background: rgba(95, 123, 255, 0.1);
  color: #a2adff;
  font-weight: 600;
  border-bottom: 1px solid rgba(95, 123, 255, 0.2);
}
.api-table td {
  padding: 8px 12px;
  color: #8892b0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}
.api-table tr:hover td { background: rgba(255,255,255,0.02); }
.api-code-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
  overflow-x: auto;
}
.api-code-block pre { margin: 0; }
.api-code-block code {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #a2adff;
  white-space: pre;
}
.api-try-section { margin-top: 24px; }
.api-try-section h3 { color: #ccd6f6; margin-bottom: 14px; font-size: 1rem; }
.api-try-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}
.api-url-preview {
  margin-top: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #8892b0;
  word-break: break-all;
}
.api-result-box {
  margin-top: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #a2adff;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}
.api-note {
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 24px;
}
.api-note strong { color: #ffc107; display: block; margin-bottom: 6px; }
.api-note p { color: #8892b0; font-size: 0.88rem; margin: 0; }

/* ========== Event planner page ========== */
.planner-form { display: grid; gap: 14px; }
.planner-score-header { margin-bottom: 20px; }
.planner-score-header h2 { color: #ccd6f6; font-size: 1.2rem; margin-bottom: 14px; }
.planner-reliability-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid;
  border-radius: 16px;
  padding: 16px 28px;
  min-width: 140px;
}
.planner-reliability-pct { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.planner-reliability-label { font-size: 1rem; font-weight: 700; margin-top: 4px; }
.planner-reliability-desc { font-size: 0.78rem; color: #8892b0; margin-top: 2px; }
.planner-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.planner-stat {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.planner-stat-value { font-size: 1.5rem; font-weight: 700; color: #ccd6f6; }
.planner-stat-label { font-size: 0.78rem; color: #8892b0; margin-top: 4px; }
.planner-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.planner-year-item {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.planner-year-num { font-weight: 700; color: #a2adff; font-size: 0.9rem; }
.planner-year-weather { font-size: 0.83rem; color: #ccd6f6; }
.planner-year-score { font-size: 0.8rem; font-weight: 600; }
.planner-year-temp { font-size: 0.78rem; color: #8892b0; }

/* ========== Compare page ========== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.compare-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
}
.compare-card h3 { color: #a2adff; margin-bottom: 10px; font-size: 0.95rem; }
.compare-stat-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.85rem; }
.compare-stat-row:last-child { border-bottom: none; }
.compare-stat-label { color: #8892b0; }
.compare-stat-val { color: #ccd6f6; font-weight: 600; }
.compare-winner { border-color: rgba(95, 123, 255, 0.4); }

/* ========== Map page ========== */
#weather-map {
  width: 100%;
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.map-info-panel {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #8892b0;
}

/* ========== Climate page ========== */
.climate-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.climate-month-card {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.climate-month-card:hover,
.climate-month-card.active { border-color: rgba(95, 123, 255, 0.5); background: rgba(95, 123, 255, 0.08); }
.climate-month-name { font-weight: 700; color: #ccd6f6; font-size: 0.9rem; }
.climate-month-temp { font-size: 0.82rem; color: #8892b0; margin-top: 4px; }
.climate-month-score { font-size: 1.1rem; font-weight: 700; margin-top: 4px; }
.climate-bar-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 0.82rem; }
.climate-bar-label { width: 90px; color: #8892b0; flex-shrink: 0; }
.climate-bar-track { flex: 1; background: rgba(255,255,255,0.06); border-radius: 4px; height: 7px; overflow: hidden; }
.climate-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5f7bff, #3bc1ff); }
.climate-bar-val { width: 50px; text-align: right; color: #ccd6f6; font-weight: 600; }

/* ========== Tools nav dropdown ========== */
.nav-tools-wrap { position: relative; display: inline-block; }
.nav-tools-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #1a1d2e; border: 1px solid rgba(95,123,255,0.3); border-radius: 10px;
  min-width: 190px; padding: 6px 0; z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.nav-tools-menu.open { display: block; }
.nav-tools-menu a {
  display: block; padding: 9px 16px; color: #ccd6f6; text-decoration: none;
  font-size: 0.88rem; transition: background 0.15s;
}
.nav-tools-menu a:hover { background: rgba(95,123,255,0.15); color: #fff; }

/* ========== Print styles ========== */
@media print {
  .auth-bar, .auth-modal-overlay, #btn-print-results, .results-actions,
  .timeline-section, #weather-insight, .content-section, .site-footer,
  ins.adsbygoogle, .back-link, .note, form, button { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .container { max-width: 100%; padding: 0; }
  .card { background: #fff !important; box-shadow: none !important; border: 1px solid #ddd !important; page-break-inside: avoid; }
  #results { display: block !important; }
  table { font-size: 10pt; }
  th, td { border: 1px solid #ccc; padding: 4px 6px; color: #000 !important; background: #fff !important; }
  h1, h2, h3 { color: #000 !important; }
  a { color: #000 !important; text-decoration: none; }
}

/* ============================== */
/* === Account / Profile page === */
/* ============================== */

.account-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.acct-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #8892b0;
  padding: 60px;
  font-size: 0.95rem;
}

.acct-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(162,173,255,0.2);
  border-top-color: #a2adff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Gate (not logged in) */
.acct-gate {
  text-align: center;
  padding: 60px 24px;
}

.acct-gate-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.acct-gate h2 {
  font-size: 1.4rem;
  color: #e8edf8;
  margin: 0 0 10px;
}

.acct-gate p {
  color: #8892b0;
  margin: 0 0 24px;
}

.acct-gate-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Profile hero card */
.acct-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
}

.acct-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(95,123,255,0.12) 0%, rgba(59,193,255,0.06) 100%);
  pointer-events: none;
}

.acct-hero-body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.acct-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.acct-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
  border: 3px solid rgba(162,173,255,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.acct-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid #0d1128;
}

.acct-hero-info {
  flex: 1;
  min-width: 0;
}

.acct-hero-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #e8edf8;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.acct-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.acct-meta-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: #8892b0;
}

/* Stats row */
.acct-stats-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.acct-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(162, 173, 255, 0.08);
  border: 1px solid rgba(162, 173, 255, 0.15);
  border-radius: 14px;
  padding: 12px 20px;
  min-width: 80px;
  text-align: center;
}

.acct-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #a2adff;
  line-height: 1.1;
}

.acct-stat-lbl {
  font-size: 0.7rem;
  color: #6b7394;
  margin-top: 3px;
  white-space: nowrap;
}

/* Section */
.acct-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acct-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acct-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #a2adff;
  margin: 0;
}

.acct-btn-sm {
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 0.82rem !important;
}

/* Empty state */
.acct-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 20px;
  text-align: center;
}

.acct-empty-icon {
  font-size: 2.4rem;
  opacity: 0.6;
}

.acct-empty p {
  color: #6b7394;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* Favorites grid */
.acct-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.acct-fav-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.acct-fav-card:hover {
  background: rgba(162,173,255,0.07);
  border-color: rgba(162,173,255,0.2);
  transform: translateY(-1px);
}

.acct-fav-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.acct-fav-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8edf8;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.acct-fav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acct-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: #8892b0;
}

.acct-load-link {
  color: #a2adff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.acct-load-link:hover {
  color: #c0c8ff;
  text-decoration: underline;
}

.acct-csv-btn {
  align-self: flex-start;
}

/* Notes */
.acct-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acct-note-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
  transition: background 0.2s;
}

.acct-note-card:hover {
  background: rgba(255,255,255,0.05);
}

.acct-note-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.acct-note-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.acct-note-title-row strong {
  font-size: 0.95rem;
  color: #e8edf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-score-badge {
  background: rgba(95,123,255,0.2);
  color: #a2adff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.acct-note-text {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #8892b0;
  line-height: 1.55;
  font-style: italic;
  word-break: break-word;
}

/* Icon delete button */
.acct-icon-btn {
  all: unset;
  cursor: pointer;
  font-size: 0.85rem;
  color: #4a5270;
  flex-shrink: 0;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.acct-icon-btn:hover {
  color: #ff6f6f;
  background: rgba(255,111,111,0.1);
}

/* Settings */
.acct-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.acct-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
}

.acct-setting-row:last-child {
  border-bottom: none;
}

.acct-setting-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.acct-setting-label {
  font-size: 0.9rem;
  color: #c8d0e8;
  font-weight: 600;
}

.acct-setting-desc {
  font-size: 0.76rem;
  color: #6b7394;
}

/* Segmented control */
.acct-seg {
  display: flex;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.acct-seg-btn {
  all: unset;
  cursor: pointer;
  padding: 5px 13px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7394;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.acct-seg-btn:hover {
  color: #c8d0e8;
  background: rgba(255,255,255,0.05);
}

.acct-seg-btn.active {
  background: linear-gradient(135deg, #5f7bff, #3bc1ff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(95,123,255,0.35);
}

.acct-setting-val {
  font-size: 0.88rem;
  color: #c8d0e8;
}

.acct-lang-select {
  height: 34px !important;
  min-width: 120px !important;
  font-size: 0.84rem !important;
}

.acct-settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.acct-logout-btn {
  background: rgba(255,100,100,0.1) !important;
  color: #ff8080 !important;
  border: 1px solid rgba(255,100,100,0.25) !important;
}

.acct-logout-btn:hover {
  background: rgba(255,100,100,0.2) !important;
}

/* Save favorite modal preview */
.save-fav-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.save-fav-meta {
  background: rgba(162, 173, 255, 0.1);
  border: 1px solid rgba(162, 173, 255, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #a2adff;
}

/* Admin last-seen cell */
.dash-users-lastseen {
  font-size: 0.78rem;
  color: #6b7394;
  display: flex;
  align-items: center;
}

.dash-online {
  color: #3ddc84;
}

/* Account page responsive */
@media (max-width: 600px) {
  .acct-hero {
    padding: 22px 18px;
  }
  .acct-hero-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .acct-hero-meta {
    justify-content: center;
  }
  .acct-stats-row {
    justify-content: center;
  }
  .acct-hero-name {
    font-size: 1.5rem;
  }
  .acct-fav-grid {
    grid-template-columns: 1fr;
  }
  .acct-section-header {
    flex-wrap: wrap;
  }
  .acct-settings-actions {
    flex-direction: column;
  }
  .acct-settings-actions .auth-btn {
    text-align: center;
    justify-content: center;
  }
}

/* Profile header card */
.acct-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.acct-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5f7bff, #3bc1ff);
  color: #08102f;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.acct-profile-info {
  flex: 1;
  min-width: 0;
}

.acct-username {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8edf8;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.acct-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #6b7394;
  margin-bottom: 16px;
}

.acct-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.acct-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(162, 173, 255, 0.07);
  border: 1px solid rgba(162, 173, 255, 0.13);
  border-radius: 12px;
  padding: 10px 18px;
  min-width: 70px;
  text-align: center;
}

.acct-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #a2adff;
  line-height: 1.2;
}

.acct-stat span:last-child {
  font-size: 0.72rem;
  color: #6b7394;
  margin-top: 2px;
}

/* Sections */
.acct-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acct-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acct-section-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #a2adff;
}

.acct-btn-sm {
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 0.82rem !important;
}

/* Favorites grid */
.acct-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.acct-fav-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.acct-fav-card:hover {
  background: rgba(162, 173, 255, 0.06);
  border-color: rgba(162, 173, 255, 0.2);
}

.acct-fav-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.acct-fav-body {
  flex: 1;
  min-width: 0;
}

.acct-fav-name {
  display: block;
  font-size: 0.93rem;
  color: #e8edf8;
  font-weight: 600;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-fav-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.76rem;
  color: #6b7394;
}

.acct-fav-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Notes list */
.acct-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acct-note-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
  transition: background 0.2s;
}

.acct-note-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.acct-note-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.acct-note-header strong {
  flex: 1;
  font-size: 0.93rem;
  color: #e8edf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-score-badge {
  background: rgba(95, 123, 255, 0.18);
  color: #a2adff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.acct-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: #6b7394;
  margin-bottom: 4px;
}

.acct-note-text {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #9aa2c0;
  line-height: 1.5;
  font-style: italic;
}

/* Shared action buttons */
.acct-action-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #c8d0e8;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.acct-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.acct-load-btn {
  color: #a2adff;
  border-color: rgba(162, 173, 255, 0.3);
}

.acct-del-btn {
  color: #ff7f7f;
  border-color: rgba(255, 127, 127, 0.3);
}

/* Settings */
.acct-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acct-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: #c8d0e8;
}

.acct-email-val {
  color: #8892b0;
  font-size: 0.88rem;
}

/* Save favorite modal preview */
.save-fav-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.save-fav-meta {
  background: rgba(162, 173, 255, 0.1);
  border: 1px solid rgba(162, 173, 255, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #a2adff;
}

/* Admin last-seen cell */
.dash-users-lastseen {
  font-size: 0.78rem;
  color: #6b7394;
  display: flex;
  align-items: center;
}

.dash-online {
  color: #3ddc84;
}

/* Account page responsive */
@media (max-width: 600px) {
  .acct-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .acct-username {
    justify-content: center;
  }
  .acct-meta {
    justify-content: center;
  }
  .acct-stats-row {
    justify-content: center;
  }
  .acct-fav-grid {
    grid-template-columns: 1fr;
  }
  .acct-fav-actions {
    flex-direction: row;
  }
  .acct-section-header {
    flex-wrap: wrap;
  }
}

