/* ══════════════════════════════════════════════════════════════
   کوچ — استایل اختصاصی صفحه «خانه» (index.css)
   پیش‌نیاز: assets/css/base.css
   ══════════════════════════════════════════════════════════════ */

/* ═══ هیرو خانه ═══ */
.hhero { position: relative; overflow: hidden; background:
  radial-gradient(600px 380px at 85% -5%, rgba(6, 182, 212,.16), transparent 62%),
  radial-gradient(700px 460px at 8% 12%, rgba(6, 182, 212,.14), transparent 60%),
  radial-gradient(520px 520px at 50% 110%, rgba(25,55,109,.1), transparent 60%); }
.hhero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(rgba(31, 41, 55,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 41, 55,.055) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
html[data-theme="dark"] .hhero-grid-bg { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; animation: blob-move 12s ease-in-out infinite; }
.blob-a { width: 320px; height: 320px; left: -96px; top: 40px; background: rgba(6, 182, 212,.15); }
.blob-b { width: 380px; height: 380px; right: -80px; bottom: 0; background: rgba(6, 182, 212,.15); animation-delay: -6s; }
@keyframes blob-move { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(24px,-20px) scale(1.06); } 66% { transform: translate(-18px,16px) scale(.97); } }

.hhero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 42px; padding-top: 56px; padding-bottom: 40px; }
.hhero-text h1 { margin-top: 24px; font-size: clamp(2.2rem, 4.6vw, 3rem); font-weight: 900; line-height: 1.5; letter-spacing: -.02em; }
.hhero-text h1 .hero-title-lead,
.hhero-text h1 .hero-title-follow { display: block; }
.hhero-text h1 .hero-title-follow { white-space: nowrap; }
.benefit-methods .split-head > .sec-head-start { width: 100%; max-width: none; }
#main-content > section > .container > .sec-head { width: 100%; max-width: none; }
#main-content > section > .container > .sec-head > .sec-title { width: 100%; }
#main-content > section > .container > .sec-head > .sec-desc,
#main-content > section > .container > .sec-head > .home-testimonials-intro { max-width: 760px; }
.hhero-text h1 .hl { position: relative; display: inline-block; background: linear-gradient(to left, var(--teal-deep), var(--teal), var(--teal-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .hhero-text h1 .hl { background: linear-gradient(to left, var(--teal-bright), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.hhero-text h1 .hl svg { position: absolute; bottom: -4px; right: 0; width: 100%; height: 12px; }
.hhero-text > p { margin-top: 22px; max-width: 560px; font-size: 16px; line-height: 2.1; color: var(--muted); }
.hhero-text > p strong { color: var(--ink); }
.hhero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hhero-trust { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hhero-trust .trust-rate { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.8; }
.hhero-trust .trust-rate .stars { gap: 3px; }
.hhero-trust .trust-rate strong { color: var(--ink); font-weight: 900; margin-right: 6px; }
.hhero-trust .trust-sep { width: 1px; height: 40px; background: var(--line); }
.hhero-trust .trust-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.hhero-trust .trust-shield { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(6, 182, 212,.1); color: var(--teal-deep); }
html[data-theme="dark"] .hhero-trust .trust-shield { color: var(--teal-bright); }

.hhero-visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.hv-ring { position: absolute; top: -32px; right: -32px; width: 144px; height: 144px; border-radius: 50%; border: 2px dashed rgba(6, 182, 212,.5); animation: spin 22s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-main { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(31, 41, 55,.22); margin: 0; }
.hv-main > img { width: 100%; aspect-ratio: 4/4.1; object-fit: cover; }
.hv-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 41, 55,.7), transparent 55%); pointer-events: none; }
.hv-info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(16px); border-radius: 18px; padding: 14px 16px; }
.hv-info-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #fff; flex-shrink: 0; }
.hv-info-text { line-height: 1.6; }
.hv-info-text strong { display: block; font-size: 14px; font-weight: 900; color: #fff; }
.hv-info-text small { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }
.hv-live { margin-right: auto; background: rgba(6, 182, 212,.2); border: 1px solid rgba(224, 247, 250,.3); color: var(--teal-bright); font-size: 12px; font-weight: 900; border-radius: 999px; padding: 6px 12px; }
.hv-card { position: absolute; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--card) 95%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); z-index: 3; }
.hv-card strong { display: block; font-size: 20px; font-weight: 900; line-height: 1.4; }
.hv-card small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.hv-exp { top: 32px; left: -16px; right: auto; animation: float-y 6s ease-in-out infinite; }
.hv-ok { bottom: 110px; right: -12px; left: auto; animation: float-y-soft 5s ease-in-out infinite; animation-delay: -2.5s; }
.hv-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.hv-dark { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.hv-teal { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; }
.pulse-ring { animation: pulse-ring 2.6s infinite; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-y-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(6, 182, 212,.45); } 70% { box-shadow: 0 0 0 14px rgba(6, 182, 212,0); } 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212,0); } }
.hhero-stats-wrap { position: relative; padding-bottom: 24px; }

/* ═══ المان جدید: مسیریاب هوشمند مهاجرت (Quick Route Navigator) ═══ */
.quick-route-section {
  position: relative;
  z-index: 5;
  margin-top: -15px;
  padding-bottom: 48px;
}

.quick-route-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.08);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.quick-route-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.route-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.route-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--teal-deep);
}

html[data-theme="dark"] .route-badge {
  color: var(--teal-bright);
}

.quick-route-header h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}

.quick-route-header p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.route-selector-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.route-tab {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.route-tab:hover, .route-tab.active {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 6%, var(--card));
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.18);
}

.flag-img-wrap {
  width: 38px;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
}

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

.route-tab .country-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.route-tab .route-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ═══ تنظیم فواصل بیشتر کادرهای پایین ═══ */
.route-details-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  background: color-mix(in srgb, var(--primary) 3%, var(--card));
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 22px 32px;
  gap: 40px; /* افزایش فاصله چشمگیر کادرها از هم */
}

.route-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

/* خط جداساز عمودی ظریف بین کادرها */
.route-detail-item:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--line);
}

.detail-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.detail-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.text-success {
  color: var(--teal-deep) !important;
}

html[data-theme="dark"] .text-success {
  color: var(--teal-bright) !important;
}

.route-cta-btn {
  border-radius: 12px;
  padding: 10px 20px;
  white-space: nowrap;
}

/* ═══ چرا کوچ ═══ */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }
.why-media { position: relative; }
.why-main-img { overflow: hidden; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin: 0; }
.why-main-img img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.why-main-img:hover img { transform: scale(1.05); }
.why-badge { position: absolute; bottom: -24px; right: 24px; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 22px; box-shadow: var(--shadow-lg); }
.why-badge strong { font-size: 32px; font-weight: 900; color: var(--teal-deep); line-height: 1; }
html[data-theme="dark"] .why-badge strong { color: var(--teal-bright); }
.why-badge span { font-size: 12px; font-weight: 800; line-height: 1.8; color: var(--muted); }
.why-text > .sec-title { margin-top: 16px; text-align: right; }
.why-text > p { margin-top: 16px; font-size: 15.5px; line-height: 2.1; color: var(--muted); }

/* ═══ اسلایدر نظرات ═══ */
.tslider { margin-top: 48px; position: relative; }
.tslides { display: flex; overflow: hidden; border-radius: 28px; }
.tslide { flex: 0 0 100%; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 44px; text-align: center; box-shadow: var(--shadow); transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .6s; margin: 0; }
.tslide blockquote { margin: 20px auto 0; max-width: 640px; font-size: 16.5px; font-weight: 700; line-height: 2.2; text-wrap: balance; }
.tslide figcaption { margin-top: 12px; font-size: 13.5px; font-weight: 800; }
.tslide figcaption span { font-weight: 600; color: var(--muted); }
.testimonial-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-inline: auto; border-radius: 16px; background: linear-gradient(135deg, var(--gold), var(--teal-deep)); color: #fff; box-shadow: 0 12px 28px rgba(6, 182, 212,.2); }
.testimonial-icon svg { transform: scaleX(-1); fill: currentColor; }
.tslide .stars-center { margin-top: 16px; }
.tslider-nav { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.tdots { display: flex; gap: 8px; }
.tdots button { width: 10px; height: 10px; border-radius: 99px; border: none; background: var(--line); transition: all .3s; padding: 0; }
.tdots button.active { width: 32px; background: linear-gradient(to left, var(--teal), var(--teal-deep)); }

/* ═══ نظرهای نوشتاری و صدای مشتریان ═══ */
.home-testimonials-intro { max-width: 680px; margin: 12px auto 0; color: var(--muted); line-height: 2; }
.home-testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.home-testimonial-card { display: flex; flex-direction: column; align-items: flex-start; margin: 0; min-width: 0; padding: 28px; text-align: right; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.home-testimonial-card .testimonial-icon { width: 46px; height: 46px; margin: 0; border-radius: 14px; }
.home-testimonial-card blockquote { flex: 1; margin: 18px 0 22px; color: var(--ink); font-size: 14.5px; font-weight: 650; line-height: 2.15; }
.home-testimonial-card figcaption { display: flex; flex-direction: column; gap: 4px; width: 100%; padding-top: 16px; border-top: 1px solid var(--line); }
.home-testimonial-card figcaption strong { color: var(--ink); font-size: 14px; font-weight: 800; }
.home-testimonial-card figcaption span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.customer-voices-section { background: linear-gradient(180deg, rgba(6, 182, 212, .065), transparent 88%); }
.customer-voices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.customer-voice-card { min-width: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.customer-voice-person { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.customer-voice-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(6, 182, 212, .1); color: var(--teal-deep); }
.customer-voice-icon svg { width: 22px; height: 22px; }
html[data-theme="dark"] .customer-voice-icon { color: var(--teal-bright); }
.customer-voice-person h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.customer-voice-person p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.customer-voice-card audio { display: block; width: 100%; height: 42px; margin-top: 18px; accent-color: var(--teal-deep); }

/* ═══ ریسپانسِو ═══ */
@media (max-width: 1100px) {
  .hhero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hhero-text > p { max-width: none; }
  .home-testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-voices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-main-img img { aspect-ratio: 16/10; }
  .route-selector-tabs { grid-template-columns: repeat(2, 1fr); }
  .route-details-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .route-detail-item:not(:last-of-type)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hhero-inner { grid-template-columns: 1fr; gap: 14px; padding-top: 28px; padding-bottom: 24px; }
  .home-testimonials-grid, .customer-voices-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-testimonial-card, .customer-voice-card { padding: 22px; }
  .hhero-text { display: contents; }
  .hhero-text > .eyebrow { grid-row: 1; justify-self: center; }
  .hhero-text h1 { grid-row: 2; margin-top: 0; text-align: center; font-size: clamp(1.55rem, 7.5vw, 2.1rem); line-height: 1.38; }
  .hhero-text > p { grid-row: 3; margin-top: 0; text-align: center; font-size: 14.5px; line-height: 1.85; }
  .hhero-trust { grid-row: 4; margin-top: 0; gap: 10px; flex-wrap: nowrap; justify-content: center; }
  .hhero-visual { grid-row: 5; }
  .hhero-cta { grid-row: 6; width: min(100%, 420px); justify-self: center; margin-top: 0; gap: 8px; flex-wrap: nowrap; justify-content: center; }
  .hhero-cta .btn { flex: 1 1 0; min-width: 0; gap: 5px; padding: 9px 10px; font-size: 12px; white-space: nowrap; }
  .hhero-cta .btn-primary { flex-grow: 1.25; }
  .hhero-cta .btn-primary .arrow-anim { display: none; }
  .hhero-cta .play-circle { width: 24px; height: 24px; flex: 0 0 24px; }
  .hhero-trust .trust-rate { font-size: 12px; }
  .hhero-trust .trust-rate > span:nth-child(2),
  .hhero-trust .trust-sep { display: none; }
  .hhero-trust .trust-note { font-size: 12px; }
  .hhero-trust .trust-shield { width: 30px; height: 30px; }
  .hv-ring,
  .hv-card { display: none; }
  .hv-main { border-radius: 22px; }
  .hv-info { left: 10px; right: 10px; bottom: 10px; gap: 8px; padding: 9px 10px; border-radius: 14px; }
  .hv-info-icon { width: 34px; height: 34px; border-radius: 10px; }
  .hv-info-text strong { font-size: 11px; }
  .hv-info-text small { font-size: 10px; }
  .hv-live { display: none; }
  .hv-exp { left: 8px; right: auto; }
  .hv-ok { right: 8px; left: auto; }
  .tslide { padding: 32px 22px; }
  .why-badge { right: 12px; }
  .quick-route-section { margin-top: -8px; padding-bottom: 28px; }
  .quick-route-box { gap: 14px; padding: 18px 14px; border-radius: 22px; }
  .quick-route-header { flex-direction: column; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 8px; padding-bottom: 12px; text-align: center; }
  .route-title-group { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .quick-route-header h2,
  .quick-route-header h3 { margin: 0; font-size: 16px; line-height: 1.45; }
  .quick-route-header p { font-size: 11px; line-height: 1.6; }
  .route-badge { padding: 5px 10px; font-size: 10px; }
  .route-selector-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .route-tab { min-width: 0; gap: 6px; padding: 12px 10px; border-radius: 15px; }
  .quick-route-section .quick-route-box .route-tab-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; }
  .route-tab .country-name { font-size: 13px; line-height: 1.4; }
  .route-tab .route-tag { display: none; }
  .route-tab:hover,
  .route-tab.active { transform: none; }
  .quick-route-section .quick-route-box .route-details-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 15px; }
  .quick-route-section .quick-route-box .route-detail-item { min-width: 0; }
  .quick-route-section .quick-route-box .detail-label { font-size: 10px; }
  .quick-route-section .quick-route-box .detail-value { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .quick-route-section .quick-route-box .route-cta-btn { grid-column: 1 / -1; }
  .route-details-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .route-cta-btn { width: 100%; text-align: center; justify-content: center; }

  /* کارت‌های گروه‌های شغلی و مراحل کار در موبایل */
  #industries.section,
  #how-it-works.section { padding-block: 42px; }
  #industries .sec-title,
  #how-it-works .sec-title { font-size: clamp(1.35rem, 6vw, 1.6rem); line-height: 1.45; }
  #industries .sec-desc,
  #how-it-works .sec-desc { margin-top: 8px; font-size: 12.5px; line-height: 1.75; }
  #industries .grid-3.mt-12,
  #how-it-works .grid-4.mt-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  #industries .svc-card { min-width: 0; padding: 16px 12px 14px; border-radius: 17px; }
  #industries .svc-card::before { height: 3px; }
  #industries .svc-card .card-icon { width: 38px; height: 38px; border-radius: 11px; }
  #industries .svc-card .card-icon .icon { width: 19px; height: 19px; }
  #industries .svc-card h3 { margin-top: 10px; font-size: 14px; line-height: 1.5; }
  #industries .svc-card > p { display: none; }
  #industries .svc-feats { margin: 10px 0 12px; flex-direction: row; flex-wrap: wrap; gap: 5px; }
  #industries .svc-feats li { max-width: 100%; gap: 4px; padding: 4px 6px; border-radius: 8px; background: var(--bg); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
  #industries .svc-feats li .icon { width: 12px; height: 12px; flex: 0 0 12px; }
  #industries .svc-link { margin-top: auto; padding-top: 10px; gap: 5px; font-size: 10.5px; line-height: 1.5; }
  #industries .svc-link .icon { width: 13px; height: 13px; flex: 0 0 13px; }

  #how-it-works .step-card { min-width: 0; padding: 18px 12px 14px; border-radius: 17px; }
  #how-it-works .step-card:hover { transform: none; }
  #how-it-works .step-card .step-n { top: 10px; left: 11px; font-size: 30px; }
  #how-it-works .step-card .card-icon { width: 42px; height: 42px; border-radius: 12px; }
  #how-it-works .step-card .card-icon .icon { width: 20px; height: 20px; }
  #how-it-works .step-card h3 { margin-top: 10px; font-size: 14px; line-height: 1.5; }
  #how-it-works .step-card p { margin-top: 5px; font-size: 11px; line-height: 1.65; }
}

@media (max-width: 360px) {
  .hhero-cta .play-circle { display: none; }
}

/* ═══ Migration Route Popup ═══ */
.route-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.route-modal.active { display: flex; }

.route-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 38, .65);
  backdrop-filter: blur(6px);
}

.route-modal-box {
  position: relative;
  width: min(560px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
  z-index: 2;
  animation: routeModalIn .3s ease;
}

@keyframes routeModalIn {
  from { opacity:0; transform:translateY(20px) scale(.96); }
  to { opacity:1; transform:none; }
}

.route-modal-close {
  position:absolute;
  left:18px;
  top:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:rgba(31, 41, 55,.08);
  font-size:28px;
  cursor:pointer;
}

.route-modal-head {
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}

.route-modal-head h3 {
  margin:0;
  font-size:24px;
  font-weight:900;
}

.route-modal-flag {
  width:52px;
  height:36px;
  border-radius:8px;
  background-size:cover;
  background-position:center;
}

.route-modal-content {
  line-height:2;
}

.route-modal-info {
  display:grid;
  gap:14px;
}

.route-modal-info div {
  padding:14px;
  background:var(--bg);
  border-radius:14px;
  border:1px solid var(--line);
}

.route-modal-info strong {
  display:block;
  margin-bottom:5px;
}

.route-modal-btn {
  margin-top:24px;
  width:100%;
  justify-content:center;
}
