html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #020617;
}

#globe {
  width: 100vw;
  height: 100vh;
}

.panel {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  border-radius: 18px;
  padding: 14px;
  z-index: 10000;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.panel p {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

.airport {
  font-weight: bold;
  font-size: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top:12px;
  display:none;
}

.airport-pin {
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.airport-pin-dot {
  width: 11px;
  height: 11px;

  border-radius: 999px;

  background: #38bdf8;

  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.25),
    0 0 18px rgba(56, 189, 248, 0.9);
}

.airport-pin:active {
  transform: translate(-50%, -50%) scale(0.92);
}

.airport-pin-wrap {
  position: relative;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.airport-tooltip {
  position: absolute;
  left: 50%;
  bottom: 22px;

  transform: translateX(-50%) translateY(6px);

  min-width: max-content;
  max-width: 150px;

  padding: 6px 9px;

  border-radius: 10px;

  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;

  font-size: 11px;
  line-height: 1.2;
  text-align: center;

  backdrop-filter: blur(8px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);

  pointer-events: none;

  opacity: 0;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.airport-popup-name {
  font-size: 16px;
  font-weight: 900;

  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.1;

  color: #ffffff;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(255, 255, 255, 0.08);

  font-family:
    Inter,
    SF Pro Display,
    Helvetica Neue,
    sans-serif;
}

.progressbar {
  position: relative;
  width: 100%;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(34, 197, 94, 0.15);
  margin-top: 12px;
  margin-bottom: 12px;
}

.progressbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;

  width: var(--progress, 0%);
  height: 100%;

  border-radius: inherit;

  background: linear-gradient(90deg, #16a34a, #86efac);

  box-shadow:
    0 0 12px rgba(34, 197, 94, 0.8),
    0 0 24px rgba(34, 197, 94, 0.35);

  transition: width 0.45s ease;
}

.progressbar-label {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;

  color: #ffffff;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;

  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);

  pointer-events: none;
}





#ls-username {
  position: relative;
  font-size: 24px;
  color: #86efac;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 10px rgba(34, 197, 94, 0.45),
    0 0 20px rgba(34, 197, 94, 0.18);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  cursor: pointer;
}

#ls-username:hover {
  color: #bbf7d0;
  transform: scale(1.04);
}

#ls-username:empty::after {
  content: "...";
  opacity: 0.5;
}

@keyframes airportWelcomeIn {
  0% {
    opacity: 0;
    transform:
      translateY(18px) scale(0.96);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform:
      translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes airportGlow {

  0%,
  100% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.35),
      0 0 0 rgba(34, 197, 94, 0);
  }

  50% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.35),
      0 0 30px rgba(34, 197, 94, 0.12);
  }
}


.country-add-button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;

  box-shadow:
    0 0 0 5px rgba(34, 197, 94, 0.18),
    0 10px 24px rgba(34, 197, 94, 0.35);
}

.country-add-button:active {
  transform: scale(0.94);
}

.actions-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 14px;
  align-items: center;
  justify-items: center;
}

.action-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.visit-button {
  background: #38bdf8;
  box-shadow:
    0 0 0 5px rgba(56, 189, 248, 0.18),
    0 10px 24px rgba(56, 189, 248, 0.35);
}

.visit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.visit-modal {
  width: min(420px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.96);
  color: white;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.visit-modal h3 {
  margin: 0;
  font-size: 20px;
}

.visit-modal p {
  margin: 4px 0 14px;
  opacity: 0.75;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  max-height: 180px;
  overflow-y: auto;
}

.month-grid button,
.year-grid button {
  padding: 10px 8px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 700;
}

.month-grid button.active,
.year-grid button.active {
  background: #22c55e;
  color: #052e16;
}

.visit-save-button,
.visit-cancel-button {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  border-radius: 14px;
  font-weight: 800;
}

.visit-save-button {
  background: #22c55e;
  color: #052e16;
}

.visit-cancel-button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}


.visits-header {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.visit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.visit-tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.visits-empty {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.last-visited {
  margin-top: 7px;
  font-size: 8px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.95;
}

.micro-country-pin-wrap {
  width: 44px;
  height: 44px;
  position: relative;
  transform: translate(-50%, -50%);
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 99999;
}

.micro-country-pin {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 999px;
  background: #facc15;
  box-shadow:
    0 0 0 5px rgba(250, 204, 21, 0.22),
    0 0 18px rgba(250, 204, 21, 0.9);
    z-index: 99999;
}

.micro-country-tooltip {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.micro-country-pin.selected {
    background: #ef4444;



    box-shadow:
        0 0 12px rgba(239,68,68,.9),
        0 0 24px rgba(239,68,68,.5);
}

.micro-country-tooltip.selected {
    transform: scale(1.1);
}

.navWrapper {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.navButton {
  position: relative;

  padding: 8px 12px;


  color: rgba(255, 255, 255, 0.58);

  font-size: 10px;
  font-weight: 900;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  cursor: pointer;
  user-select: none;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.navButton.active {
  color: #ecfeff;


  text-shadow:
    0 0 8px rgba(125, 211, 252, 0.9),
    0 0 18px rgba(34, 197, 94, 0.45);


  transform: translateY(-1px);
}

.navButton:active {
  transform: scale(0.96);
}



.timeline-modal {
  position: fixed;
  left: 24px;
  right: 24px;
  top: 24px;
  max-height: 75dvh;


  z-index: 99999;

  display: flex;
  flex-direction: column;

  border-radius: 24px;

  overflow: hidden;

  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 34%),
    #020617;

  color: #ffffff;


}

.app-modal {
  animation: modalUnrollFromPanel 0.42s cubic-bezier(.16, .84, .24, 1) both;
}

.app-modal.closing {
  animation: modalRollBackToPanel 0.24s ease both;
}

@keyframes modalUnrollFromPanel {
  from {
    transform: translateY(0px) scaleY(0.02);
    opacity: 0;
    filter: blur(8px);
  }

  to {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes modalRollBackToPanel {
  from {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }

  to {
    transform: translateY(40px) scaleY(0.02);
    opacity: 0;
  }
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 18px 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.timeline-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-subtitle {
  margin-top: 3px;

  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.timeline-close {
  width: 42px;
  height: 42px;

  border: none;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
}

.timeline-content {
  flex: 1;

  overflow-y: auto;

  padding: 18px;
  padding-bottom: 40px;
}

.timeline-year {
  position: relative;

  margin-bottom: 28px;
  padding-left: 18px;

  border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.timeline-year h2 {
  margin: 0 0 14px;

  font-size: 26px;
  font-weight: 900;

  color: #86efac;
}

.timeline-trip {
  position: relative;

  display: flex;
  gap: 12px;

  margin-bottom: 14px;
  padding: 12px 14px;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.08);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.timeline-dot {
  width: 10px;
  height: 10px;

  margin-top: 5px;

  border-radius: 999px;

  background: #22c55e;

  box-shadow:
    0 0 0 5px rgba(34, 197, 94, 0.14),
    0 0 16px rgba(34, 197, 94, 0.8);
}

.timeline-country {
  font-size: 15px;
  font-weight: 800;
}

.timeline-date {
  margin-top: 3px;

  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.timeline-empty {
  padding: 12px 14px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.05);

  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

.flights-modal {
  position: fixed;
  inset: 24px;
  z-index: 99999;
  overflow: hidden;
  pointer-events: none;
  max-height: 75dvh;
}

.flight-plane-wrap {
  position: fixed;
  left: 50%;
  top: 100vh;

  width: 120px;
  height: 220px;

  transform: translateX(-50%);

  animation: flightPlaneUp 1.1s linear forwards;

  z-index: 5;
  pointer-events: none;
}

.flight-plane {
  position: absolute;
  left: 50%;
  top: 0;

  width: 100px;
  height: auto;

  transform: translateX(-50%);

  filter:
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(250, 204, 21, 0.35));
}

.flight-rope {
  position: absolute;
  left: 50%;
  top: 92px;

  width: 2px;
  height: 260px;

  transform: translateX(-50%);

  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.05));

  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.flights-panel {
  position: absolute;
  inset: 0px;
  padding: 12px;

  height: calc(100vh - 24px);


  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.18), transparent 36%),
    rgba(15, 23, 42, 0.98);

  color: white;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  opacity: 0;
  transform: scale(0.985);

  animation: flightsPanelFadeIn 0.55s ease forwards;
  animation-delay: 0.8s;
  border-radius: 24px;

  pointer-events: auto;

  z-index: 2;
}

.flights-title {
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #fefce8;

  text-shadow:
    0 0 14px rgba(250, 204, 21, 0.55),
    0 0 34px rgba(250, 204, 21, 0.22);
}

.flights-subtitle {
  margin-top: 8px;

  font-size: 13px;
  font-weight: 700;

  color: rgba(255, 255, 255, 0.58);

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flights-close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.1);
  color: white;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
}

.flights-modal.closing .flight-plane-wrap {
  animation: none;
}

.flights-modal.closing .flights-panel {
  animation: flightsPanelDown 0.42s ease forwards;
}

@keyframes flightPlaneUp {
  0% {
    top: calc(100vh + 180px);
    opacity: 0;
    transform: translateX(-50%) scale(0.94);
  }

  6% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    top: -260px;
    opacity: 0;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes flightsPanelFadeIn {
  from {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes flightsPanelFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

.airport-pin-wrap,
.airport-pin,
.airport-pin-dot,
.micro-country-pin-wrap,
.micro-country-pin {
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 999;
}

.airport-tooltip,
.airport-pin {
  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(.16, .84, .24, 1);
  will-change: opacity, transform;
}

.flight-search-modal {
  position: fixed;
  height: 100dvh;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.flight-search-panel {
  width: 100%;
  max-height: 100%;

  padding: 20px;

  border-radius: 26px 26px 0 0;

  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 35%),
    rgba(15, 23, 42, 0.98);

  color: white;

  overflow-y: auto;

  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);

  animation: flightSearchIn 0.32s ease both;
}

@keyframes flightSearchIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.flight-search-close {
  position: absolute;
  right: 18px;

  width: 38px;
  height: 38px;

  border: none;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.1);
  color: white;

  font-size: 26px;
}

.flight-search-title {
  font-size: 24px;
  font-weight: 900;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.flight-search-airport {
  margin-top: 6px;

  color: #7dd3fc;

  font-size: 13px;
  font-weight: 800;
}

.flight-search-date {
  width: 92%;

  margin-top: 18px;
  padding: 13px;

  border: none;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.1);
  color: white;

  font-size: 16px;
}

.flight-search-button {
  width: 100%;

  margin-top: 12px;
  padding: 14px;

  border: none;
  border-radius: 16px;

  background: #38bdf8;
  color: #020617;

  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flight-results {
  margin-top: 18px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flight-result-card {
  padding: 14px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.08);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);

  cursor: pointer;
}

.flight-result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flight-time {
  font-size: 20px;
  font-weight: 900;
  color: #86efac;
}

.flight-number {
  font-size: 12px;
  font-weight: 900;
  color: #7dd3fc;
}

.flight-route {
  margin-top: 8px;

  font-size: 16px;
  font-weight: 900;
}

.flight-route-small {
  font-size: 14px;
  font-weight: 700;

}

.flight-meta,
.flight-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 8px;

  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

.flight-meta span,
.flight-extra span {
  padding: 4px 7px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
}

.flight-loading,
.flight-empty {
  padding: 16px;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.07);

  color: rgba(255, 255, 255, 0.65);

  text-align: center;
}

.flight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 8px;
}

.flight-meta span {
  padding: 6px 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;

  color: rgba(255, 255, 255, 0.9);

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.05);
}

.flight-distance {
  background:
    linear-gradient(135deg,
      rgba(56, 189, 248, 0.22),
      rgba(59, 130, 246, 0.12)) !important;

  border-color:
    rgba(56, 189, 248, 0.25) !important;

  color: #7dd3fc !important;

  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.18);
}

.flight-duration {
  background:
    linear-gradient(135deg,
      rgba(34, 197, 94, 0.22),
      rgba(22, 163, 74, 0.12)) !important;

  border-color:
    rgba(34, 197, 94, 0.25) !important;

  color: #86efac !important;

  box-shadow:
    0 0 12px rgba(34, 197, 94, 0.18);
}

.achievements-modal {
  position: fixed;

  max-height: 75dvh;
  inset: 24px;
  z-index: 99999;

  display: grid;
  grid-template-columns: 130px 1fr;

  border-radius: 24px;
  overflow: hidden;

  background: #120b05;
  color: #fef3c7;

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);

  animation: flightsPanelFadeIn 0.32s ease both;
}

.achievements-sidebar {
  padding: 14px;
  background: linear-gradient(#2a1608, #140905);
  border-right: 1px solid rgba(251, 191, 36, 0.25);
}

.achievements-title {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #facc15;
}

.achievement-category {
  padding: 7px 9px;
  margin-bottom: 6px;

  border-radius: 8px;

  background: linear-gradient(90deg, #274d10, #142208);

  font-size: 11px;
  font-weight: 800;
  color: #d9f99d;
}

.achievements-main {
  padding: 8px;
  overflow-y: auto;

  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.16), transparent 35%),
    linear-gradient(#3b220c, #150b04);
}

.achievement-points {
  text-align: center;
  font-size: 12px;
  color: #fde68a;
}

.achievement-points strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 130px;
    height: 34px;

    margin-top: 6px;
    padding: 0 18px;

    position: relative;

    font-size: 22px;
    font-weight: 900;

    color: #f8e9b3;

    border-radius: 8px;

    border: 2px solid #5f3b10;

    background:
        linear-gradient(
            to bottom,
            #8d6021 0%,
            #3a2209 14%,
            #120904 50%,
            #3a2209 86%,
            #8d6021 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        inset 0 -2px 0 rgba(0,0,0,0.45),
        0 2px 8px rgba(0,0,0,0.45);

    text-shadow:
        0 1px 0 #000,
        0 0 8px rgba(250,204,21,0.4);
}

.achievement-section-title {
  margin-top: 16px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: #facc15;
}


.achievement-row.unlocked {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.2), rgba(0, 0, 0, 0.25));
}

.achievement-icon {
  font-size: 20px;
}

.achievement-desc {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.62);
}

.achievement-bar {
  margin-top: 7px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.achievement-bar div {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #86efac);
}

.achievement-points-badge {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 999px;

  background: radial-gradient(circle, #facc15, #92400e);
  color: black;

  font-weight: 900;
  font-size: 13px;
}

.achievement-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;

  margin-bottom: 16px;
}

.achievement-stats-grid div {
  padding: 10px;

  border-radius: 12px;

  background: rgba(0, 0, 0, 0.28);

  font-size: 11px;
  font-weight: 800;
}

.achievement-stats-grid strong {
  float: right;
  color: #86efac;
}

.achievement-empty {
  padding: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.achievement-category {
  padding: 7px 9px;
  width: 100%;
  text-align: center;
  margin-bottom: 6px;

  border-radius: 8px;

  background: rgba(0, 0, 0, 0.22);

  font-size: 11px;
  font-weight: 800;
  color: #d9f99d;

  cursor: pointer;

  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

.achievement-category.active {
  background: linear-gradient(90deg, #2f6d14, #17320b);

  color: #ffffff;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 16px rgba(34, 197, 94, 0.24);

  transform: translateX(2px);
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievement-unlocked-date {
    margin-top: 6px;

    font-size: 10px;
    font-weight: 800;

    color: #86efac;

    text-transform: uppercase;
    letter-spacing: 0.06em;

    text-shadow:
        0 0 8px rgba(34, 197, 94, 0.35);
}

.achievement-row {
    display: grid;

    grid-template-columns: 32px 1fr 32px;

    grid-template-areas:
        "title title title"
        "icon info points"
        "date date date";

    gap: 8px;

    padding: 12px;

    border-radius: 12px;
}

.achievement-name {
    grid-area: title;

    font-size: 11px;
    font-weight: 700;

    color: #fff7ed;

    text-align: center;

    letter-spacing: .05em;

    text-transform: uppercase;

    border-bottom: 1px solid rgba(255,255,255,.08);

    padding-bottom: 6px;
}

.achievement-icon {
    grid-area: icon;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
}

.achievement-info {
    grid-area: info;
}

.achievement-points-badge {
    grid-area: points;

    align-self: center;
    justify-self: center;
}

.achievement-unlocked-date {
    grid-area: date;
    margin-top: 2px;
    text-align: center;
    font-size: 10px;
    color: #86efac;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-top: 6px;
}

.recent-achievements{
  display:flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap:5px;
}

.flights-close-btn,
.add-flight-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
    z-index: 20;
}

.flights-close-btn:hover,
.add-flight-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg) scale(1.08);
}

.your-flights-head {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.your-flights-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
}

.your-flights-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.add-flight-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
    transition: 0.25s ease;
}

.add-flight-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.your-flights-list {
    margin-top: 22px;
    max-height: 500px;

    overflow-y: auto;
    padding-right: 8px;
}

.flight-year {
    margin: 18px 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.saved-flight-card {
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}

.saved-flight-number {
    font-weight: 800;
    font-size: 15px;
}

.saved-flight-route {
    margin-top: 5px;
    font-size: 14px;
}

.saved-flight-date {
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.7;
}

.no-flights {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    text-align: center;
}

.add-flight-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000000;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-flight-box {
    position: relative;
    width: min(92vw, 460px);
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(20,30,48,0.95), rgba(36,59,85,0.95));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 28px 80px rgba(0,0,0,0.45);
    color: #fff;
    z-index: 10000000000;
}

.add-flight-title {
    font-size: 28px;
    font-weight: 900;
}

.add-flight-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.68);
}

.add-flight-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.choice-btn {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.choice-btn.automatic {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.choice-btn.manual {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.choice-btn:hover {
    transform: translateY(-3px);
}

.manual-flight-form {
    margin-top: 26px;
    display: grid;
    gap: 14px;
}

.manual-flight-form label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.78);
}

.manual-flight-form input,
.manual-flight-form select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.12);
    color: #fff;
    outline: none;
}

.manual-flight-form select option {
    color: #111;
}

.manual-flight-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.modal-cancel-btn,
.modal-save-btn {
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    font-weight: 800;
    cursor: pointer;
}

.modal-cancel-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.modal-save-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.hidden {
    display: none;
}