.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px !important;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08) 0%,
    rgba(34, 197, 94, 0.04) 100%
  ) !important;
  border: 1px solid rgba(96, 165, 250, 0.15) !important;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1), transparent);
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}

.hero > div:first-child {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 24px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero > div:last-child {
  position: relative;
  z-index: 1;
}

.hero-card {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(96, 165, 250, 0.2) !important;
  backdrop-filter: blur(20px) !important;
  padding: 32px !important;
  border-radius: 16px !important;
  border-left: 4px solid #60a5fa !important;
}

.hero-card h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #60a5fa;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.hero-card li {
  margin-bottom: 14px;
  padding-left: 24px;
  position: relative;
  color: rgba(226, 232, 240, 0.8);
}

.hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tile {
  padding: 32px !important;
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 16px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  transition: left 0.6s ease;
}

.tile:hover::before {
  left: 100%;
}

.tile:hover {
  border-color: rgba(96, 165, 250, 0.3) !important;
  background: rgba(15, 23, 42, 0.7) !important;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.12);
}

.tile.unavailable {
  filter: blur(2px) opacity(0.55);
  pointer-events: none;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.08) !important;
  background: rgba(15, 23, 42, 0.2) !important;
  position: relative;
}

.unavailable-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  color: #ff9a9a;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 107, 107, 0.35);
  box-shadow: 0 8px 24px rgba(252, 165, 165, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 100;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.unavailable-icon {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.9;
}

.unavailable-text {
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.tile h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #e5e7eb;
  font-weight: 600;
}

.tile p {
  margin: 0;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.62);
  line-height: 1.6;
}

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

.country-tag {
  padding: 16px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(34, 197, 94, 0.04));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #60a5fa;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.country-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(60, 165, 250, 0.1) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.country-tag:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(34, 197, 94, 0.08));
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.15);
}

.country-tag:hover::before {
  transform: translateX(100%);
}

main > .card h2 {
  font-size: 28px;
  margin: 0 0 24px;
  background: linear-gradient(135deg, #60a5fa 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

main > .card > .muted {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px !important;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #fff;
  border-color: #60a5fa;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.25);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.btn.ghost:hover {
  background: rgba(96, 165, 250, 0.08);
  border-color: #60a5fa;
  transform: translateY(-2px);
}

/* ====================================
   Links
   ==================================== */

.tile-btn {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px !important;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-card {
    padding: 24px !important;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tile {
    padding: 24px !important;
  }

  .countries-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }

  .form-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  main > .card h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px !important;
  }

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

  main > .card h2 {
    font-size: 18px;
  }

  .tile {
    padding: 20px !important;
  }

  .tile h4 {
    font-size: 16px;
  }

  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .country-tag {
    padding: 12px;
    font-size: 13px;
  }
}

/* ====================================
   Dark mode animations
   ==================================== */

@media (prefers-reduced-motion: no-preference) {
  .tile {
    animation: slideInUp 0.6s ease-out both;
  }

  .tile:nth-child(2) {
    animation-delay: 0.1s;
  }

  .tile:nth-child(3) {
    animation-delay: 0.2s;
  }

  .tile:nth-child(4) {
    animation-delay: 0.3s;
  }

  .tile:nth-child(5) {
    animation-delay: 0.4s;
  }

  .tile:nth-child(6) {
    animation-delay: 0.5s;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero {
    animation: slideInUp 0.8s ease-out;
  }
}

/* ====================================
   Print styles
   ==================================== */

@media print {
  .btn {
    display: none;
  }
}
