﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #84cc16;
  --secondary-dark: #65a30d;
  --background: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--background);
}

body.has-particles .page,
body.has-particles main,
body.has-particles .site-footer {
  position: relative;
  z-index: 1;
}

body.has-particles .site-header {
  z-index: 160;
}

body.has-site-header {
  padding-top: calc(var(--site-header-height, 0px) + 1rem);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 0 1rem;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  padding: 3px;
  background: transparent;
  box-shadow: none;
}

.brand-name {
  color: #0f172a;
}

.brand-accent {
  color: var(--primary);
}

.brand-accent-secondary {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 600;
  color: #334155;
  flex-wrap: wrap;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.is-active {
  color: var(--primary);
  position: relative;
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-toggle-text {
  font-size: 0.9rem;
}

.user-email {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.user-email.is-admin {
  color: var(--secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(132, 204, 22, 0.25);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.btn-outline {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
  color: #334155;
}

.particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.particles-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-outline-danger {
  border-color: rgba(244, 63, 94, 0.45);
  color: #be123c;
}

.btn-outline-danger:hover {
  background: #ffe4e6;
  border-color: #f43f5e;
  color: #be123c;
}

.btn-ghost {
  background: transparent;
  color: #475569;
  font-weight: 600;
}

.btn-light {
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
}

.btn-block {
  width: 100%;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.page-loading {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

.page-loading__spinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary);
  animation: page-spin 0.7s linear infinite;
}

.page-loading__text {
  font-weight: 600;
  color: #1f2937;
}

body.is-loading .page-loading,
html.is-loading body .page-loading {
  opacity: 1;
  pointer-events: all;
}

@keyframes page-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow);
  background: var(--hero-image) center/cover no-repeat;
}

.hero.hero-slider {
  background: transparent;
}

.hero-slider-track {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: var(--hero-image) center/cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 1.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem;
  max-width: 560px;
}

.hero-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-title-caret {
  opacity: 0;
  animation: none;
}

.hero.is-typing .hero-title-caret {
  opacity: 1;
  animation: hero-blink 0.9s step-end infinite;
}


.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 800;
  color: #0f172a;
}

.hero p {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@keyframes hero-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }

  .hero-title-caret {
    animation: none;
  }

}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-title h2 {
  margin: 0;
  font-size: 1.4rem;
}

.card-icon {
  font-size: 1.6rem;
}

.requirements-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.select-wrap {
  flex: 1 1 260px;
  position: relative;
}

select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #f8fafc;
  font-weight: 600;
}

.helper-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.audience-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.12);
  color: #1e3a8a;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero .audience-note {
  margin: 0 0 1.5rem;
  max-width: 520px;
  color: #1e3a8a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.requirements-hero .audience-note {
  margin: 1rem auto 0;
  max-width: 680px;
  color: #1e3a8a;
}

.experience-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  color: #ffffff;
  background: var(--experience-image) center/cover no-repeat;
  padding: 0;
}

.experience-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.experience-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2.5rem;
  z-index: 1;
}

.experience-content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.experience-content p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.experience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.destinations {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.destinations-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.destination-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.destination-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  transition: transform 0.25s ease;
}

.destination-card h3 {
  margin: 0;
  font-size: 1rem;
}

.destination-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.destination-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
}

.destination-card:hover .destination-image {
  transform: scale(1.03);
}

.destination-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.destination-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

.destination-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.notice-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff7ed;
  border-color: rgba(251, 191, 36, 0.25);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notice-item {
  background: #ffffff;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.notice-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: #334155;
}

.notice-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.35rem 0;
}

.notice-body {
  font-size: 0.9rem;
  color: #1f2937;
}

.preview-card h2,
.community-card h2 {
  margin-top: 0;
}

.preview-box {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  color: var(--muted);
}

.preview-box img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.community-grid div {
  background: #f8fafc;
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.community-grid strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
}

.community-grid span {
  font-size: 0.85rem;
  color: var(--muted);
}

.link-primary {
  color: var(--primary);
  font-weight: 600;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-nav {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .hero-content {
    padding: 2.5rem;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .experience-content {
    padding: 2rem;
  }
}

.requirements-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.requirements-hero {
  text-align: center;
}

.requirements-hero h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.requirements-hero p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
}

.flag-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.flag-search {
  display: flex;
  justify-content: center;
  width: 100%;
}

.flag-search--inline {
  justify-content: flex-start;
}

.flag-search--inline .flag-search__wrapper {
  max-width: 100%;
}

.flag-search__wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  z-index: 5;
}

.flag-search__icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.3rem;
}

.flag-search__input {
  width: 100%;
  padding: 0.95rem 1.2rem 0.95rem 3.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.flag-search__input:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.2);
}

.flag-search__list {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.18);
  max-height: 280px;
  overflow-y: auto;
  padding: 0.4rem;
  display: none;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.flag-search.is-open .flag-search__list {
  display: block;
}

.flag-search__option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.flag-search__option:hover,
.flag-search__option:focus-visible {
  background: #f1f5f9;
}

.flag-search__option.is-active {
  background: #eaf2ff;
  color: #1d4ed8;
}

.flag-search__option.is-hidden {
  display: none;
}

.flag-search__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.flag-search__country {
  font-size: 0.98rem;
}

.flag-search__city {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.flag-search__empty {
  padding: 0.6rem 0.9rem;
  color: var(--muted);
  font-weight: 600;
  display: none;
}

.flag-carousel__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flag-carousel__viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.flag-carousel__viewport::before,
.flag-carousel__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 1;
}

.flag-carousel__viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0) 70%);
}

.flag-carousel__viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0) 70%);
}

.flag-nav {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.flag-nav__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.flag-nav:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.22);
}

.flag-nav:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.8);
  outline-offset: 2px;
}

.flag-nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.flag-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1.5rem 2.5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  min-width: 0;
}

.flag-track::-webkit-scrollbar {
  display: none;
}

.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 110px;
  color: var(--muted);
  font-weight: 600;
  scroll-snap-align: center;
}

.flag-item.is-active {
  color: var(--primary);
}

.flag-sphere {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), rgba(15, 23, 42, 0.2));
  box-shadow: inset -6px -6px 14px rgba(15, 23, 42, 0.25), 0 12px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flag-item:hover .flag-sphere,
.flag-item.is-active .flag-sphere {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 20px 30px rgba(59, 130, 246, 0.25);
}

.flag-sphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.flag-sphere--sm {
  width: 46px;
  height: 46px;
}

.flag-sphere--xs {
  width: 26px;
  height: 26px;
}

@media (max-width: 720px) {
  .flag-search__wrapper {
    max-width: 100%;
  }

  .flag-search__input {
    font-size: 0.98rem;
  }

  .flag-nav {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .flag-carousel__viewport::before,
  .flag-carousel__viewport::after {
    width: 40px;
  }

  .flag-track {
    padding: 1.25rem 1.75rem;
  }
}

.custom-select {
  display: none;
  position: relative;
}

.js .custom-select {
  display: block;
}

.js .select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.custom-select__trigger {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #f8fafc;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
}

.custom-select__value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select__caret {
  font-size: 0.9rem;
  color: var(--muted);
}

.custom-select__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
  padding: 0.35rem;
  z-index: 1200;
}

.custom-select__search {
  padding: 0.35rem 0.35rem 0.2rem;
}

.custom-select__search input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.45rem 0.6rem;
  font-weight: 600;
  background: #ffffff;
}

.custom-select.is-open .custom-select__menu {
  display: block;
}

.custom-select__option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.custom-select__option:hover {
  background: #f1f5f9;
}

.custom-select__option.is-selected {
  background: #eaf2ff;
  color: #1d4ed8;
}

.custom-select__option.is-hidden {
  display: none;
}

.custom-select__label {
  flex: 1;
}

.requirements-card--home .custom-select__trigger {
  position: relative;
  padding: 0.95rem 1.2rem 0.95rem 3.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%2364748b%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%2711%27%20r%3D%277%27/%3E%3Cline%20x1%3D%2721%27%20y1%3D%2721%27%20x2%3D%2716.65%27%20y2%3D%2716.65%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1.25rem center;
  background-size: 18px 18px;
}

.requirements-card--home .custom-select__trigger:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 20px 34px rgba(59, 130, 246, 0.18);
}

.requirements-card--home .custom-select__trigger:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

.requirements-card--home .custom-select__value {
  flex: 1;
  font-size: 1.02rem;
}

.requirements-card--home .custom-select__caret {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  font-size: 0.9rem;
}

.requirements-card--home .custom-select__menu {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 38px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
}

.requirements-card--home .custom-select__search input {
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  background: #f8fafc;
}

.requirements-card--home .custom-select__option {
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
}

.requirements-card--home .custom-select__option:hover {
  background: rgba(59, 130, 246, 0.08);
}

.requirements-card--home .custom-select__option.is-selected {
  background: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
}

.experience-flag {
  display: inline-flex;
}

.experience-meta {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.experience-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
}

.user-avatar--sm {
  width: 32px;
  height: 32px;
}

.user-avatar--xs {
  width: 26px;
  height: 26px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.experience-flag:hover .flag-sphere {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 22px rgba(59, 130, 246, 0.25);
}

.flag-fallback {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.requirements-card {
  background: var(--card);
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.requirements-card--home {
  overflow: visible;
}

.requirements-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
}

.tab-btn {
  padding: 1.25rem 1rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab-btn.is-active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.requirements-content {
  padding: 2rem;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.panel-head span {
  color: var(--muted);
  font-weight: 600;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.requirement-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  align-items: center;
}

.requirement-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.6), rgba(59, 130, 246, 0.18) 55%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-weight: 700;
  position: relative;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  --icon-scale: 1;
}

.requirement-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.requirement-icon[data-icon="fiber_manual_record"] svg {
  fill: currentColor;
  stroke: none;
}

.requirement-item:hover .requirement-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 26px rgba(59, 130, 246, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.requirement-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.requirement-body p {
  margin: 0 0 0.6rem;
  color: #475569;
}

.requirement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.requirements-footer {
  padding: 0 2rem 2rem;
  display: flex;
  justify-content: center;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-item {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.experience-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.experience-header span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.experience-item p {
  margin: 0 0 0.5rem;
  color: #475569;
}

.experience-item small {
  color: var(--muted);
}

.experience-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .requirements-tabs {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }
}

.req-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 150px;
}

.req-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-weight: 600;
  color: #1e40af;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.req-action:hover {
  transform: translateY(-1px);
  background: #eaf2ff;
  border-color: #b8ccff;
  color: #1d4ed8;
}

.req-action--primary {
  background: #eef4ff;
  border-color: #c7dbff;
  color: #1d4ed8;
}

.req-action--primary:hover {
  background: #e0ecff;
  border-color: #b3ceff;
  color: #1e40af;
}

.req-action--muted {
  background: #f8fafc;
  border-color: #d7e0ec;
  color: #475569;
}

.req-action--muted:hover {
  background: #eef2f7;
  border-color: #c9d4e6;
  color: #334155;
}

.req-action--danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.req-action--danger:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
}

.req-desc {
  max-height: 110px;
  overflow-y: auto;
}

.req-updates {
  max-height: 140px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.req-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 1rem;
  align-items: start;
}

.req-main {
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .req-layout {
    grid-template-columns: 1fr;
  }

  .req-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .req-action {
    width: auto;
  }
}

.req-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 2000;
}

.req-modal {
  width: min(980px, 100%);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  padding: 1.5rem 1.75rem 1.75rem;
  max-height: 90vh;
  overflow-y: auto;
}

.req-modal textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.req-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.req-modal-close {
  font-weight: 600;
  color: #64748b;
}

.req-modal-close:hover {
  color: #0f172a;
}

.admin-body.admin-dark .req-modal {
  background: var(--admin-surface);
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.admin-body.admin-dark .req-modal-backdrop {
  background: rgba(15, 23, 42, 0.7);
}

.admin-body.admin-dark .req-modal-close {
  color: var(--admin-muted);
}

.admin-body.admin-dark .req-modal-close:hover {
  color: var(--admin-text);
}

@media (max-width: 720px) {
  .req-modal {
    padding: 1.25rem;
  }
}

/* Admin dashboard */
.admin-body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  --admin-primary: #2563eb;
  --admin-bg: #f8fafc;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f1f5f9;
  --admin-border: #e2e8f0;
  --admin-text: #0f172a;
  --admin-muted: #64748b;
  --admin-muted-strong: #475569;
  --admin-topbar: rgba(255, 255, 255, 0.85);
  --admin-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
  background: var(--admin-bg);
  color: var(--admin-text);
  overflow: hidden;
}

.admin-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.admin-body.admin-dark {
  --admin-bg: #0f172a;
  --admin-surface: #1e293b;
  --admin-surface-muted: #334155;
  --admin-border: #334155;
  --admin-text: #f8fafc;
  --admin-muted: #94a3b8;
  --admin-muted-strong: #cbd5e1;
  --admin-topbar: rgba(30, 41, 59, 0.85);
  --admin-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.admin-shell {
  display: flex;
  height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-text);
  position: relative;
  z-index: 1;
}

.admin-sidebar {
  width: 260px;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.admin-sidebar-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--admin-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.admin-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  padding: 3px;
}

.admin-brand .material-icons-round {
  font-size: 1.4rem;
}

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0.75rem;
}

.admin-nav-section + .admin-nav-section {
  margin-top: 1.5rem;
}

.admin-nav-title {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.5rem;
  padding: 0 0.75rem;
  font-weight: 700;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--admin-muted);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav-link .material-icons-round {
  font-size: 1.2rem;
}

.admin-nav-link:hover {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
}

.admin-nav-link.is-active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--admin-primary);
}

.admin-nav-badge {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
}

.admin-sidebar-actions {
  padding: 1rem;
  border-top: 1px solid var(--admin-border);
  display: grid;
  gap: 0.5rem;
}

.admin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-muted-strong);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-action:hover {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
}

.admin-action--danger {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.admin-action--danger:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.admin-topbar {
  height: 64px;
  background: var(--admin-topbar);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-topbar p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--admin-muted);
}

.admin-topbar-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.admin-topbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
  cursor: pointer;
}

.admin-topbar-toggle:hover {
  background: var(--admin-surface-muted);
}

.admin-topbar-toggle .icon-close {
  display: none;
}

.admin-topbar-open .admin-topbar-toggle .icon-open {
  display: none;
}

.admin-topbar-open .admin-topbar-toggle .icon-close {
  display: inline-block;
}

.admin-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
  cursor: pointer;
}

.admin-nav-toggle:hover {
  background: var(--admin-surface-muted);
}

.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 55;
}

.admin-nav-open .admin-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--admin-surface-muted);
  color: var(--admin-muted);
}

.admin-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 170px;
  color: var(--admin-text);
}

.admin-search .material-icons-round {
  font-size: 1rem;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
  border: 2px solid var(--admin-surface);
}

.admin-content {
  flex: 1;
  display: flex;
  min-width: 0;
  overflow: hidden;
}

.admin-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-section-head h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.admin-section-head p {
  margin: 0.4rem 0 2rem;
  color: var(--admin-muted);
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.admin-card {
  position: relative;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--admin-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border, rgba(37, 99, 235, 0.3));
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.12);
}

.admin-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft, #dbeafe);
  color: var(--accent, #2563eb);
}

.admin-card-icon .material-icons-round {
  font-size: 1.6rem;
}

.admin-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-card p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent, #2563eb);
}

.admin-card-link .material-icons-round {
  font-size: 1rem;
}

.admin-status {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.admin-status--success {
  background: #dcfce7;
  color: #16a34a;
}

.admin-status--muted {
  background: var(--admin-surface-muted);
  color: var(--admin-muted);
}

.admin-card--alert::after {
  content: '';
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: admin-pulse 2s infinite;
}

@keyframes admin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.admin-card-actions {
  margin-top: auto;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-btn--primary {
  background: var(--admin-primary);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.35);
}

.admin-btn--primary:hover {
  background: #1d4ed8;
}

.admin-btn--muted {
  background: var(--admin-surface-muted);
  color: var(--admin-muted-strong);
}

.admin-card--row {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}

.admin-card--row .admin-card-content {
  flex: 1;
}

.admin-card-cta {
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--admin-border);
  color: var(--admin-muted-strong);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-card-cta:hover {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
}

.admin-body .card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  box-shadow: var(--admin-shadow);
}

.admin-body .card-body {
  padding: 1.5rem;
}

.admin-body .alert {
  border-radius: 1rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
  box-shadow: none;
}

.admin-body .alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.admin-body .alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.admin-body .alert-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.admin-body .alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.admin-body .form-control,
.admin-body .form-select {
  border-radius: 0.75rem;
  border-color: var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
}

.admin-body .form-control:focus,
.admin-body .form-select:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.admin-body.admin-dark .text-secondary,
.admin-body.admin-dark .text-muted,
.admin-body.admin-dark .text-body-secondary,
.admin-body.admin-dark .form-text {
  color: var(--admin-muted) !important;
}

.admin-body.admin-dark .form-control::placeholder,
.admin-body.admin-dark .form-select::placeholder {
  color: var(--admin-muted);
}

.admin-body.admin-dark .form-control::file-selector-button {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-body.admin-dark .form-control::-webkit-file-upload-button {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-body .table {
  color: var(--admin-text);
  margin-bottom: 0;
}

.admin-body .table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-muted);
  border-bottom-color: var(--admin-border);
}

.admin-body .table tbody td {
  border-color: var(--admin-border);
}

.admin-body.admin-dark .table {
  --bs-table-color: var(--admin-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--admin-border);
  --bs-table-striped-bg: rgba(148, 163, 184, 0.08);
  --bs-table-striped-color: var(--admin-text);
  --bs-table-hover-bg: rgba(148, 163, 184, 0.12);
  --bs-table-hover-color: var(--admin-text);
}

.admin-body.admin-dark .table > :not(caption) > * > * {
  background-color: transparent;
}

.admin-body .badge {
  border-radius: 999px;
  font-weight: 700;
}

.admin-body .btn {
  border-radius: 0.75rem;
  font-weight: 600;
}

.admin-body .btn-primary {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
}

.admin-body .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.admin-body .btn-outline-secondary {
  border-color: var(--admin-border);
  color: var(--admin-muted-strong);
}

.admin-body .btn-outline-secondary:hover {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
}

.admin-card--wide {
  grid-column: span 2;
}

.admin-activity {
  width: 320px;
  background: var(--admin-surface);
  border-left: 1px solid var(--admin-border);
  overflow-y: auto;
}

.admin-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
}

.admin-activity-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.admin-icon-button {
  border: none;
  background: transparent;
  color: var(--admin-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-activity-body {
  padding: 0 1.5rem 1.5rem;
}

.admin-empty {
  color: var(--admin-muted);
  font-size: 0.85rem;
}

.admin-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.admin-timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--admin-border);
}

.admin-timeline-item {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 1.5rem;
}

.admin-timeline-dot {
  position: absolute;
  left: -0.35rem;
  top: 0.2rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot-color, #3b82f6);
  border: 2px solid var(--admin-surface);
}

.admin-timeline-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-timeline-detail {
  margin: 0.3rem 0 0;
  color: var(--admin-muted);
  font-size: 0.75rem;
}

.admin-timeline-time {
  margin: 0.4rem 0 0;
  color: #94a3b8;
  font-size: 0.65rem;
}

.admin-quick-stats {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--admin-surface-muted);
  border: 1px solid var(--admin-border);
}

.admin-quick-stats h4 {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-quick-grid strong {
  display: block;
  font-size: 1.4rem;
}

.admin-quick-grid span {
  font-size: 0.7rem;
  color: var(--admin-muted);
}

.admin-theme-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--admin-text);
  color: var(--admin-bg);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s ease;
}

.admin-theme-toggle:hover {
  transform: translateY(-2px) scale(1.03);
}

.admin-theme-toggle .icon-light {
  display: none;
}

.admin-body.admin-dark .admin-theme-toggle {
  background: #ffffff;
  color: #0f172a;
}

.admin-body.admin-dark .admin-theme-toggle .icon-light {
  display: block;
}

.admin-body.admin-dark .admin-theme-toggle .icon-dark {
  display: none;
}

@media (max-width: 1200px) {
  .admin-card--wide {
    grid-column: span 1;
  }

  .admin-activity {
    display: none;
  }
}

  @media (max-width: 900px) {
    .admin-body {
      overflow: auto;
    }

  .admin-shell {
    flex-direction: column;
    height: auto;
  }

  .admin-sidebar {
    width: 100%;
  }

  .admin-topbar {
    position: static;
    height: auto;
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-search {
    width: 100%;
  }

  .admin-search input {
    width: 100%;
  }

  .admin-content {
    flex-direction: column;
  }

  .admin-main-content {
    padding: 1.5rem;
  }

    .admin-card--row {
      flex-direction: column;
      align-items: flex-start;
    }

  .admin-theme-toggle {
    display: none;
  }
  }

  /* Responsive refinements */
  @media (max-width: 1024px) {
    .page {
      padding: 1.75rem 1rem 3rem;
    }

    .hero {
      border-radius: 24px;
    }

    .admin-main-content {
      padding: 1.5rem;
    }
  }

  @media (max-width: 900px) {
    .site-header {
      top: 0.75rem;
    }

    .site-nav {
      padding: 0.75rem 1rem;
      gap: 0.75rem;
      justify-content: space-between;
    }

    .nav-toggle {
      display: inline-flex;
    }

    .nav-menu {
      width: 100%;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
      padding-top: 0.75rem;
      border-top: 1px solid rgba(226, 232, 240, 0.7);
    }

    .site-nav.is-open .nav-menu {
      display: flex;
    }

    .nav-links {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }

    .nav-actions {
      flex-direction: column;
      align-items: stretch;
      width: 100%;
    }

    .nav-actions .btn {
      width: 100%;
      justify-content: center;
    }

    .user-email {
      align-self: flex-start;
    }

    .destinations-head,
    .panel-head,
    .experience-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .notice-header {
      flex-wrap: wrap;
      align-items: flex-start;
    }

    .admin-shell {
      height: 100%;
    }

    .admin-sidebar {
      position: fixed;
      top: 0;
      left: 0;
      height: 100%;
      width: min(82vw, 280px);
      transform: translateX(-105%);
      transition: transform 0.25s ease;
      z-index: 60;
    }

    .admin-nav-open .admin-sidebar {
      transform: translateX(0);
    }

    .admin-nav-toggle {
      display: inline-flex;
    }

    .admin-topbar {
      position: sticky;
      top: 0;
      padding: 0.75rem 1.25rem;
      flex-wrap: wrap;
      row-gap: 0.6rem;
    }

    .admin-topbar-title {
      flex: 1;
      min-width: 0;
    }

    .admin-topbar-toggle {
      display: inline-flex;
    }

    .admin-topbar-actions {
      width: 100%;
      flex-wrap: wrap;
    }

    .admin-body:not(.admin-topbar-open) .admin-topbar-actions {
      display: none;
    }

    .admin-search {
      width: 100%;
    }
  }

  @media (max-width: 720px) {
    .hero {
      min-height: 320px;
    }

    .hero-overlay {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0.15) 100%);
    }

    .hero-content {
      padding: 2rem 1.75rem;
      max-width: none;
    }

    .hero-actions .btn,
    .experience-actions .btn {
      width: 100%;
      justify-content: center;
    }

    .content-grid {
      gap: 1.5rem;
    }

    .card {
      padding: 1.5rem;
    }

    .requirements-form {
      flex-direction: column;
      align-items: stretch;
    }

    .requirements-form .btn {
      width: 100%;
    }

    .requirements-content {
      padding: 1.5rem;
    }

    .requirement-item {
      flex-direction: column;
      align-items: flex-start;
    }

    .community-grid {
      grid-template-columns: 1fr;
    }

    .footer-inner {
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
    }

    .footer-links {
      flex-wrap: wrap;
    }

    .admin-main-content {
      padding: 1.1rem;
    }
  }

  @media (max-width: 576px) {
    .page {
      padding: 1.25rem 0.75rem 2.5rem;
    }

    .site-header {
      top: 0.5rem;
      padding: 0 0.75rem;
    }

    .brand-logo {
      width: 40px;
      height: 40px;
    }

    .brand {
      font-size: 1rem;
    }

    .nav-toggle {
      padding: 0.4rem 0.7rem;
    }

    .nav-toggle-text {
      display: none;
    }

    .hero-content {
      padding: 1.75rem 1.5rem;
    }

    .notice-item {
      padding: 0.85rem;
    }

    .flag-track {
      padding: 1rem 1.25rem;
    }

    .flag-nav {
      width: 40px;
      height: 40px;
      border-radius: 12px;
    }

    .site-theme-toggle {
      left: 1rem;
      bottom: 1rem;
      width: 44px;
      height: 44px;
    }
  }

  /* Dark theme */
  body.theme-dark {
  color-scheme: dark;
  --background: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --card: #1e293b;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --secondary: #a3e635;
  --secondary-dark: #84cc16;
}

body.theme-dark .site-nav {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(51, 65, 85, 0.8);
}

body.theme-dark .nav-toggle {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(51, 65, 85, 0.8);
  color: #e2e8f0;
}

body.theme-dark .nav-menu {
  border-top-color: rgba(51, 65, 85, 0.8);
}

body.theme-dark .brand-name {
  color: #f8fafc;
}

body.theme-dark .nav-links {
  color: #cbd5f5;
}

body.theme-dark .btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

body.theme-dark .btn-ghost {
  color: #e2e8f0;
}

body.theme-dark .btn-ghost:hover {
  color: #ffffff;
}

.btn-theme-toggle {
  padding: 0.45rem 1rem;
}

body.theme-dark .text-secondary,
body.theme-dark .text-muted,
body.theme-dark .text-body-secondary {
  color: #cbd5f5 !important;
}

.site-theme-toggle {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #f8fafc;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  z-index: 200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-theme-toggle:hover {
  transform: translateY(-2px) scale(1.03);
}

.theme-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.site-theme-toggle .icon-light {
  display: none;
}

body.theme-dark .site-theme-toggle {
  background: #ffffff;
  color: #0f172a;
}

body.theme-dark .site-theme-toggle .icon-light {
  display: block;
}

body.theme-dark .site-theme-toggle .icon-dark {
  display: none;
}

body.theme-dark .card,
body.theme-dark .destination-card,
body.theme-dark .notice-item,
body.theme-dark .preview-box,
body.theme-dark .community-grid div,
body.theme-dark .requirements-card,
body.theme-dark .requirement-item,
body.theme-dark .experience-item {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.8);
}

body.theme-dark .requirement-icon {
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.5), rgba(30, 64, 175, 0.25) 60%, rgba(30, 64, 175, 0.12) 100%);
  border-color: rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.6), inset 0 0 0 1px rgba(30, 64, 175, 0.35);
}

body.theme-dark .requirement-item:hover .requirement-icon {
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.7), inset 0 0 0 1px rgba(37, 99, 235, 0.45);
}

body.theme-dark .experience-card {
  background: var(--experience-image) center/cover no-repeat;
  border-color: rgba(51, 65, 85, 0.8);
}

body.theme-dark .card,
body.theme-dark .form-label,
body.theme-dark .form-check-label {
  color: #e2e8f0;
}

body.theme-dark .notice-card {
  background: #1f2937;
  border-color: rgba(249, 115, 22, 0.3);
}

body.theme-dark .requirements-tabs {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.8);
}

body.theme-dark .requirements-card {
  border-color: rgba(51, 65, 85, 0.8);
}

body.theme-dark select,
body.theme-dark .form-control,
body.theme-dark .form-select {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

body.theme-dark .form-control::placeholder {
  color: #94a3b8;
}

body.theme-dark .custom-select__trigger {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

body.theme-dark .custom-select__menu {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 0.8);
}

body.theme-dark .custom-select__option {
  color: #e2e8f0;
}

body.theme-dark .custom-select__option:hover {
  background: rgba(59, 130, 246, 0.15);
}

body.theme-dark .custom-select__option.is-selected {
  background: rgba(59, 130, 246, 0.25);
  color: #e2e8f0;
}

body.theme-dark .custom-select__search input {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

body.theme-dark .custom-select__search input::placeholder {
  color: #94a3b8;
}

body.theme-dark .requirements-card--home .custom-select__trigger {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(51, 65, 85, 0.7);
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%2394a3b8%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%2711%27%20r%3D%277%27/%3E%3Cline%20x1%3D%2721%27%20y1%3D%2721%27%20x2%3D%2716.65%27%20y2%3D%2716.65%27/%3E%3C/svg%3E");
}

body.theme-dark .requirements-card--home .custom-select__trigger:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.55);
}

body.theme-dark .requirements-card--home .custom-select__caret {
  background: rgba(59, 130, 246, 0.2);
  color: #e2e8f0;
}

body.theme-dark .requirements-card--home .custom-select__menu {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(51, 65, 85, 0.85);
  box-shadow: 0 24px 38px rgba(15, 23, 42, 0.55);
}

body.theme-dark .requirements-card--home .custom-select__search input {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(51, 65, 85, 0.75);
  color: #e2e8f0;
}

body.theme-dark .requirements-card--home .custom-select__search input::placeholder {
  color: #94a3b8;
}

body.theme-dark .requirements-card--home .custom-select__option:hover {
  background: rgba(59, 130, 246, 0.16);
}

body.theme-dark .requirements-card--home .custom-select__option.is-selected {
  background: rgba(59, 130, 246, 0.25);
  color: #e2e8f0;
}

body.theme-dark .flag-nav {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(51, 65, 85, 0.7);
  color: #e2e8f0;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.35);
}

body.theme-dark .flag-nav:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.45);
}

body.theme-dark .flag-search__input {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(51, 65, 85, 0.7);
  color: #e2e8f0;
}

body.theme-dark .flag-search__input::placeholder {
  color: #94a3b8;
}

body.theme-dark .flag-search__icon {
  color: #94a3b8;
}

body.theme-dark .flag-search__list {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(51, 65, 85, 0.85);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.45);
}

body.theme-dark .flag-search__option {
  color: #e2e8f0;
}

body.theme-dark .flag-search__option:hover,
body.theme-dark .flag-search__option:focus-visible {
  background: rgba(59, 130, 246, 0.16);
}

body.theme-dark .flag-search__option.is-active {
  background: rgba(59, 130, 246, 0.25);
  color: #e2e8f0;
}

body.theme-dark .flag-search__city,
body.theme-dark .flag-search__empty {
  color: #94a3b8;
}

body.theme-dark .page-loading {
  background: rgba(15, 23, 42, 0.9);
}

body.theme-dark .page-loading__spinner {
  border-color: rgba(96, 165, 250, 0.2);
  border-top-color: var(--primary);
}

body.theme-dark .page-loading__text {
  color: #e2e8f0;
}

body.theme-dark .flag-carousel__viewport::before {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 70%);
}

body.theme-dark .flag-carousel__viewport::after {
  background: linear-gradient(270deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 70%);
}

body.theme-dark .hero-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.25) 100%);
}

body.theme-dark .hero h1 {
  color: #f8fafc;
}

body.theme-dark .hero p {
  color: #cbd5f5;
}

body.theme-dark .audience-note {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.35);
  color: #e2e8f0;
}

body.theme-dark .notice-header,
body.theme-dark .notice-body,
body.theme-dark .notice-meta,
body.theme-dark .requirement-body p,
body.theme-dark .experience-item p {
  color: #cbd5f5;
}

body.theme-dark .user-avatar {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.4);
}

body.theme-dark .site-footer {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.8);
}

body.theme-dark .footer-links a {
  color: #e2e8f0;
}

body.theme-dark .footer-links a:hover {
  color: #ffffff;
}
