/* ===== Responsive — mobile-first enhancements ===== */

/* Safe area (notched phones) */
.header {
  padding-top: max(16px, env(safe-area-inset-top));
}

.container {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(10, 15, 26, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* Menu toggle animation */
.menu-toggle {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Touch devices — service cards always expanded */
@media (hover: none) {
  .service-box-card--front .service-box-content {
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 22%,
      rgba(255, 251, 235, 0.88) 100%
    );
  }

  .service-box-card--front .service-box-tags {
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
    max-height: none;
  }

  .service-box-card--front .service-box-link:not(.service-box-link--back) {
    opacity: 1;
    transform: none;
  }

  .service-box-card--front .service-box-photo,
  .service-box-card--front:hover .service-box-photo,
  .service-box-card--front:focus-within .service-box-photo,
  .service-box-card--front:active .service-box-photo {
    z-index: 0;
    transform: translate(-50%, -50%) scale(1.08);
    transition: none;
  }

  .service-box-card--bankcard::before,
  .service-box-card--wallet::before,
  .service-box-card--bankcard:hover::before,
  .service-box-card--wallet:hover::before,
  .service-box-card--bankcard:focus-within::before,
  .service-box-card--wallet:focus-within::before {
    z-index: 0;
    transform: scale(1.02);
    transition: none;
  }

  .service-box-flip:not(.is-flipped) .service-box-card--front:hover .service-box-overlay,
  .service-box-flip:not(.is-flipped) .service-box-card--front:focus-within .service-box-overlay,
  .service-box-flip:not(.is-flipped) .service-box-card--front:active .service-box-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(254, 249, 195, 0.28) 38%,
      rgba(253, 230, 138, 0.82) 72%,
      rgba(255, 255, 255, 0.97) 100%
    );
  }

  .service-box-flip:not(.is-flipped) .service-box-card--bankcard:hover .service-box-overlay,
  .service-box-flip:not(.is-flipped) .service-box-card--bankcard:focus-within .service-box-overlay,
  .service-box-flip:not(.is-flipped) .service-box-card--bankcard:active .service-box-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(254, 249, 195, 0.22) 40%,
      rgba(253, 230, 138, 0.78) 75%,
      rgba(255, 255, 255, 0.96) 100%
    );
  }

  .service-box-flip:not(.is-flipped) .service-box-card--wallet:hover .service-box-overlay,
  .service-box-flip:not(.is-flipped) .service-box-card--wallet:focus-within .service-box-overlay,
  .service-box-flip:not(.is-flipped) .service-box-card--wallet:active .service-box-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(254, 249, 195, 0.2) 38%,
      rgba(253, 230, 138, 0.76) 72%,
      rgba(255, 255, 255, 0.96) 100%
    );
  }

  .service-box-flip:not(.is-flipped) .service-box-card--front:hover .service-box-content,
  .service-box-flip:not(.is-flipped) .service-box-card--front:focus-within .service-box-content,
  .service-box-flip:not(.is-flipped) .service-box-card--front:active .service-box-content {
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 22%,
      rgba(255, 251, 235, 0.88) 100%
    );
  }
}

/* Tablet landscape & small laptop */
@media (max-width: 1200px) {
  .hero-content {
    gap: 36px;
  }

  .bg-icon-metro {
    left: 6%;
    right: auto;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .hero {
    padding: 110px 0 0;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    justify-content: center;
    width: 100%;
    margin-inline: 0;
    position: relative;
    z-index: 3;
  }

  .hero-phones {
    position: relative;
    z-index: 3;
    margin-inline: auto;
    transform: translateX(0);
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-route {
    z-index: 1;
  }

  html[dir="ltr"] .hero-visual {
    justify-content: center;
    margin-inline: 0;
  }

  html[dir="ltr"] .hero-phones {
    transform: translateX(0);
  }

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

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  .hero-stats--en {
    margin-inline: auto;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    transform: none;
    translate: none;
    box-sizing: border-box;
  }

  .hero-bottom-row {
    margin-top: 32px;
  }

  .hero-bottom-box {
    min-height: 120px;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
  }

  .hero-flights-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 14px 8px;
    gap: 6px 10px;
  }

  .hero-flights-title {
    font-size: 0.85rem;
  }

  .hero-flights-date,
  .hero-flights-updated {
    font-size: 0.68rem;
  }

  .hero-flights-updated {
    margin-right: 0;
    width: 100%;
  }

  .hero-flights-track {
    padding: 10px 12px 4px;
  }

  .hero-flight-card {
    min-width: min(210px, 78vw);
    max-width: 78vw;
    padding: 8px 10px;
    gap: 8px;
  }

  .hero-flight-route {
    font-size: 0.78rem;
  }

  .hero-flight-time {
    font-size: 0.88rem;
  }

  .hero-flight-no {
    display: none;
  }

  .features,
  .about {
    padding: 72px 0;
  }

  .download-cta {
    padding: 32px 0;
  }

  .currency {
    padding: 32px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .header {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 12px;
  }

  .header.scrolled {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  .logo-text {
    font-size: 1rem;
    max-width: min(8.5rem, 36vw);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions .btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 96px 0 0;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-buttons {
    margin-bottom: 32px;
  }

  .hero-buttons .btn-lg {
    width: 100%;
    padding: 14px 24px;
  }

  .hero-phone-img--tilt {
    width: min(180px, 42vw);
    max-height: 460px;
  }

  .hero-phones {
    height: min(440px, 50vh);
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-stats--en {
    padding: 12px 10px;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    transform: none;
    translate: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .hero-stats--en .stat {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 0 6px;
  }

  .stat-num {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stat-label {
    font-size: clamp(0.58rem, 2.6vw, 0.62rem);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .stat-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 28px;
    align-self: center;
  }

  .hero-content,
  .about-inner,
  .currency-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-services {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .about-text {
    text-align: center;
  }

  .currency-converter {
    padding: 16px 14px;
  }

  .converter-row select,
  .converter-row input {
    font-size: 16px;
    min-height: 44px;
    padding: 8px 12px;
  }

  .result-value {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
    word-break: break-word;
  }

  .currency-rates,
  .currency-rates--3 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .rate-card {
    padding: 16px 12px;
    gap: 8px;
    border-radius: 14px;
  }

  .rate-flag {
    font-size: 1.35rem;
  }

  .rate-name {
    font-size: 0.9rem;
  }

  .rate-price {
    font-size: 0.95rem;
  }

  .download-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .download-text p {
    margin-bottom: 12px;
  }

  .download-buttons {
    justify-content: center;
  }

  .download-buttons .appstore-button,
  .download-buttons .playstore-button,
  .download-buttons .download-io-button {
    width: 100%;
    justify-content: center;
  }

  .download-visual {
    overflow: visible;
  }

  .download-app-video {
    --dl-video-scale: 1.38;
    width: min(220px, 58vw);
    margin: 0 auto;
    background: transparent;
  }

  .download-app-video.is-bg-keyed {
    border-radius: 0;
    mix-blend-mode: multiply;
  }

  .download-visual.is-bg-keyed {
    background: transparent;
    isolation: isolate;
  }

  /* Hero bg icons — size from bg-scene.js CSS vars */
  .bg-icon {
    width: var(--icon-size, 60px);
    height: var(--icon-size, 60px);
    padding: var(--icon-pad, 8px);
  }

  /* Hero icons — parenthesis layout (keep inside viewport) */
  .bg-icon-plane { top: 10%; right: 4%; left: auto; }
  .bg-icon-car { top: 10%; left: 4%; right: auto; }
  .bg-icon-metro { top: 26%; left: 3%; right: auto; }
  .bg-icon-bus { top: 36%; right: 3%; left: auto; }
  .bg-icon-train { top: 54%; right: 4%; left: auto; }
  .bg-icon-sim { top: 42%; left: 3%; right: auto; }
  .bg-icon-cash { top: 54%; left: 4%; right: auto; }

  .hero-orb-1 {
    width: 280px;
    height: 280px;
    right: -120px;
  }

  .hero-orb-2 {
    width: 240px;
    height: 240px;
    left: -100px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-content {
    gap: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-desc {
    font-size: 0.92rem;
    padding: 0 4px;
  }

  .about-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .about-service-item {
    padding: 9px 5px;
    font-size: 0.64rem;
  }


  .header-actions .btn-sm span,
  .header-actions .btn-sm {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .hero-stats--en {
    padding: 10px 6px;
    gap: 0;
  }

  .hero-stats--en .stat {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 3px;
  }

  .stat-num {
    font-size: clamp(0.82rem, 4.2vw, 0.92rem);
  }

  .stat-label {
    font-size: clamp(0.52rem, 2.8vw, 0.58rem);
    line-height: 1.35;
  }

  .stat-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 24px;
    opacity: 0.22;
  }

  .currency-rates,
  .currency-rates--3 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rate-card {
    flex-direction: column;
    text-align: center;
    padding: 14px 10px;
  }

  .rate-name {
    flex: none;
  }

  .features-grid--app {
    gap: 10px;
  }

  .features-grid {
    gap: 20px;
  }

  .bg-icon-plane { top: 7%; right: 3%; left: auto; }
  .bg-icon-car { top: 7%; left: 3%; right: auto; }
  .bg-icon-metro { top: 22%; left: 2%; right: auto; }
  .bg-icon-bus { top: 32%; right: 2%; left: auto; }
  .bg-icon-sim { top: 38%; left: 2%; right: auto; }
  .bg-icon-train { top: 48%; right: 3%; left: auto; }
  .bg-icon-cash { top: 48%; left: 3%; right: auto; }

  .section-title {
    font-size: 1.5rem;
  }

  .btn-lg {
    font-size: 0.9rem;
  }
}

/* Extra small — iPhone SE, narrow Android */
@media (max-width: 360px) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .logo-text {
    font-size: clamp(0.62rem, 3vw, 0.82rem);
  }

  .header-actions .btn-sm {
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-phone-img--tilt {
    width: min(140px, 36vw);
  }

  .hero-phones {
    height: min(340px, 40vh);
  }

  .features-grid--app {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .currency-rates,
  .currency-rates--3 {
    grid-template-columns: 1fr;
  }

  .converter-result {
    padding: 18px 12px;
  }

  .nav {
    width: min(280px, 92vw);
  }

  .scroll-top-btn {
    width: 48px;
    height: 48px;
    z-index: 9500;
    -webkit-tap-highlight-color: transparent;
  }

  .rate-card {
    min-height: 72px;
  }
}

/* ===== Traveler-friendly touch & mobile perf ===== */
@media (max-width: 768px) {
  .nav-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 15, 26, 0.58);
  }

  .btn,
  .nav-link,
  .service-box-link,
  .scroll-top-btn,
  .whatsapp-float-btn,
  .appstore-button,
  .playstore-button,
  .download-io-button {
    touch-action: manipulation;
  }

  .hero-desc,
  .section-header .section-desc {
    line-height: 1.85;
    max-width: 38ch;
    margin-inline: auto;
  }

  .hero-flight-card {
    min-width: min(200px, 85vw);
    min-height: 52px;
    max-width: 85vw;
  }

  .hero-flights-head {
    padding-inline: 12px;
  }

  .hero-flights-title-wrap {
    flex: 1 1 100%;
  }

  .hero-flight-price {
    font-size: 0.82rem;
  }

  .download-buttons {
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .float-actions-bottom-left {
    z-index: 9500;
  }

  .scroll-top-btn:active {
    transform: scale(0.94);
    transform-origin: left center;
    background: var(--primary);
  }

  .scroll-top-btn.is-shown:active {
    transform: scale(0.94);
  }

  .scroll-top-btn:active .scroll-top-btn-icon path {
    fill: var(--dark);
  }

  .features .service-box-link:not(.service-box-link--back) {
    width: fit-content;
    max-width: 78%;
    min-height: 30px;
    line-height: 1.2;
    padding: 4px 10px;
    font-size: 0.68rem;
  }

  .service-box-link--back {
    width: fit-content;
    max-width: 88%;
    min-height: 40px;
    line-height: 1.25;
    padding: 6px 14px;
    font-size: 0.72rem;
  }
}

/* Representatives — layout in representatives.css */
@media (max-width: 600px) {
  .representatives {
    padding: 72px 0;
  }

  .representatives--text-only {
    padding: 48px 0 56px;
  }

  .rep-map-card {
    padding: 12px;
    border-radius: 18px;
  }

  .rep-map-label {
    font-size: 9px;
  }

  .rep-map-legend {
    gap: 6px 8px;
  }

  .rep-map-legend li {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-overlay {
    transition: none;
  }

  .hero-flights-track.is-animating,
  .hero-flights-track.is-animating--to-center,
  .hero-flights-track.is-animating--from-left,
  .hero-hotels-track.is-animating,
  .hero-hotels-track.is-animating--to-center,
  .hero-hotels-track.is-animating--from-left {
    animation: none !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .bg-scene-layer,
  .cloud-slot,
  .hero-bg-icon {
    animation: none !important;
  }
}

/* ===== Header — منوی کشویی (تبلت و موبایل) ===== */
@media (max-width: 1180px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 200px);
    margin-inline-end: 10px;
  }

  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 10px;
    margin-inline-start: 6px;
    padding-inline-start: 8px;
  }

  html[dir="rtl"] .header-actions {
    margin-inline-end: 0;
    margin-inline-start: 6px;
    padding-inline-start: 10px;
  }

  .nav {
    position: fixed;
    top: 0;
    inset-inline-end: -110%;
    width: min(300px, 88vw);
    height: 100dvh;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: max(80px, calc(64px + env(safe-area-inset-top))) 20px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transition: inset-inline-end 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    pointer-events: none;
    max-width: none;
    gap: 0;
  }

  html[dir="rtl"] .nav {
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.12);
  }

  .nav.open {
    inset-inline-end: 0;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    white-space: normal;
    flex-shrink: 0;
    min-width: auto;
  }

  .header-dark .nav {
    background: var(--dark-2);
  }

  .menu-toggle {
    display: flex;
  }

  .header-ticket-btn {
    display: none;
  }
}

/* ===== Header — جلوگیری از شلوغی موبایل ===== */
@media (max-width: 768px) {
  .header-actions > a.btn-primary[href="#download"],
  .header-actions > a.btn-primary[href="/#download"],
  .header-actions > a.btn-primary[data-nav-target="download"],
  .fids-page .header-actions > a.btn-primary[data-nav-target="download"] {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 10px;
    flex-shrink: 0;
    margin-inline-start: 6px;
  }

  .lang-switcher {
    margin-inline-end: 4px;
  }

  .header-actions .btn-fids {
    margin-inline-end: 6px;
    margin-inline-start: 4px;
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    gap: 0;
    border-radius: 10px;
  }

  .header-actions .btn-fids .fids-btn-long {
    display: none;
  }

  .header-actions .btn-fids .fids-btn-icon {
    width: 16px;
    height: 16px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 148px);
    gap: 8px;
    margin-inline-end: 6px;
  }

  .logo-text {
    display: inline-block !important;
    max-width: min(7.5rem, 34vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.68rem, 3.2vw, 0.88rem);
    font-weight: 800;
    line-height: 1.2;
    font-family: var(--font), system-ui, sans-serif;
  }

  .logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
}

@media (max-width: 400px) {
  .logo-text {
    max-width: min(6.2rem, 30vw);
    font-size: clamp(0.6rem, 2.9vw, 0.76rem);
  }

  .logo {
    max-width: calc(100% - 132px);
  }

  .header-actions {
    gap: 8px;
    margin-inline-start: 4px;
  }

  .logo-img {
    width: 34px;
    height: 34px;
  }

  .header-actions .btn-fids {
    min-width: 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .header-actions .btn-fids .fids-btn-icon {
    width: 15px;
    height: 15px;
  }
}

/* ===== Hero board — stack earlier on narrow tablets ===== */
@media (max-width: 640px) {
  .hero-bottom-row {
    grid-template-columns: 1fr;
    margin-left: max(-16px, calc(-1 * env(safe-area-inset-left)));
    margin-right: max(-16px, calc(-1 * env(safe-area-inset-right)));
  }

  .hero-hotel-card {
    min-width: min(220px, 82vw);
    max-width: min(280px, 88vw);
  }
}

/* ===== Hero flights — اسکرول افقی روان ===== */
@media (max-width: 768px) {
  .hero-bottom-row {
    grid-template-columns: 1fr;
    margin-left: max(-16px, calc(-1 * env(safe-area-inset-left)));
    margin-right: max(-16px, calc(-1 * env(safe-area-inset-right)));
  }

  .hero-bottom-box--a {
    border-left: none;
    border-bottom: 1px solid rgba(234, 179, 8, 0.16);
  }

  .hero-flights-foot {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .hero-flights-track-wrap {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }

  .hero-flights-track.is-animating--to-center:not(.is-mobile-marquee),
  .hero-flights-track.is-animating--from-left:not(.is-mobile-marquee) {
    animation: none !important;
    transform: none !important;
    flex-wrap: nowrap;
    width: max-content;
  }

  .hero-bottom-box--a .hero-flights-track-wrap,
  .hero-bottom-box--b .hero-flights-track-wrap {
    mask-image: linear-gradient(to left, transparent 0%, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }

  .hero-bottom-row::after {
    display: none;
  }

  .hero-flight-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: min(178px, 72vw);
    max-width: 76vw;
  }

  .hero-hotel-card {
    min-width: min(184px, 74vw);
    max-width: 78vw;
  }
}

/* ===== Representatives — کارت‌های لیست موبایل ===== */
@media (max-width: 768px) {
  .representatives {
    padding: 72px 0;
  }

  .rep-card {
    flex-wrap: wrap;
    gap: 6px;
  }

  .rep-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .rep-card-btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.78rem;
  }
}

/* ===== Features grid — تبلت و موبایل ===== */
@media (max-width: 992px) {
  .features-grid--app {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .features-grid--app {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ===== Currency — جلوگیری از بیرون‌زدگی متن ===== */
@media (max-width: 768px) {
  .currency-box {
    gap: 12px;
    margin-bottom: 12px;
  }

  .currency-info p {
    max-width: 36ch;
    margin-inline: auto;
  }
}
