/* Homepage styles — extracted from resources/views/home.blade.php.
 * Edit here, not in the blade. Cache-busted via filemtime in the blade link tag. */

  /* ═══════════════════════════════════════════════════════════════
   HERO — Futuristic Glassmorphism
   ═══════════════════════════════════════════════════════════════ */
  .hero-futuristic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #000a05 0%, #011208 15%, #022612 40%, #053c1b 65%, #082e20 85%, #020a06 100%);
    padding: 3.5rem 0 2.5rem;
    min-height: auto;
    display: flex;
    align-items: center;
  }

  /* Light mode hero */
  [data-theme="light"] .hero-futuristic {
    background: var(--color-primary);
  }

  [data-theme="light"] .hero-futuristic__title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #111827;
  }

  [data-theme="light"] .hero-futuristic__title span {
    color: #7FFFC4;
  }

  [data-theme="light"] .hero-futuristic__subtitle {
    color: #ffffff;
  }

  [data-theme="light"] .hero-futuristic__badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
  }

  [data-theme="light"] .hero-futuristic__badge .pulse-dot {
    background: #ffffff;
  }

  [data-theme="light"] .hero-futuristic::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  }

  [data-theme="light"] .hero-futuristic::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  }

  [data-theme="light"] .hero-particle {
    background: rgba(255, 255, 255, 0.25);
  }

  [data-theme="light"] .hero-grid-lines {
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  }

  [data-theme="light"] .search-glass {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.08);
  }

  [data-theme="light"] .search-glass:hover,
  [data-theme="light"] .search-glass:focus-within {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.12);
  }

  [data-theme="light"] .search-glass__icon {
    color: var(--color-primary);
  }

  [data-theme="light"] .search-glass__field:first-of-type::after {
    background: rgba(0, 0, 0, 0.1);
  }

  [data-theme="light"] .search-glass__input-wrapper label {
    color: rgba(0, 0, 0, 0.5);
  }

  [data-theme="light"] .search-glass .ts-control {
    color: #1a1a2e !important;
  }

  [data-theme="light"] .search-glass .ts-control input {
    color: rgba(0, 0, 0, 0.7) !important;
  }

  [data-theme="light"] .search-glass .ts-control .item {
    color: #1a1a2e !important;
  }

  [data-theme="light"] .search-glass .ts-dropdown {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.12);
  }

  [data-theme="light"] .search-glass .ts-dropdown .option {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  [data-theme="light"] .search-glass .ts-dropdown .active {
    background-color: rgba(0, 166, 81, 0.08);
    color: var(--color-primary);
  }

  [data-theme="light"] .search-glass__swap {
    background: #fff;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  [data-theme="light"] .search-glass__swap:hover {
    background: var(--color-primary);
    color: #fff;
  }

  [data-theme="light"] .quick-route-chip-futuristic {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
  }

  [data-theme="light"] .quick-route-chip-futuristic:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
  }

  [data-theme="light"] .quick-routes-futuristic {
    border-top-color: rgba(255, 255, 255, 0.15);
  }

  [data-theme="light"] .quick-routes-futuristic p {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  /* Animated gradient orbs */
  .hero-futuristic::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    border-radius: 50%;
    animation: hero-orb-1 8s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
  }

  .hero-futuristic::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    border-radius: 50%;
    animation: hero-orb-2 10s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
  }

  @keyframes hero-orb-1 {

    /* Only translate — no scale(). scale() expands paint area and causes CLS */
    0% {
      transform: translate(0, 0);
    }

    100% {
      transform: translate(-60px, 40px);
    }
  }

  @keyframes hero-orb-2 {
    0% {
      transform: translate(0, 0);
    }

    100% {
      transform: translate(50px, -30px);
    }
  }

  /* Grid lines overlay */
  .hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0, 166, 81, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 166, 81, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
  }

  /* Floating particles */
  .hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    /* Contain particles so they can't affect outside layout */
    contain: strict;
  }

  .hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 166, 81, 0.5);
    animation: float-up linear infinite;
    /* Isolate animation to own compositing layer — prevents CLS */
    will-change: transform, opacity;
  }

  .hero-particle:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
    width: 3px;
    height: 3px;
  }

  .hero-particle:nth-child(2) {
    left: 25%;
    animation-duration: 15s;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
    background: rgba(59, 130, 246, 0.4);
  }

  .hero-particle:nth-child(3) {
    left: 40%;
    animation-duration: 10s;
    animation-delay: 4s;
  }

  .hero-particle:nth-child(4) {
    left: 55%;
    animation-duration: 18s;
    animation-delay: 1s;
    width: 6px;
    height: 6px;
  }

  .hero-particle:nth-child(5) {
    left: 70%;
    animation-duration: 14s;
    animation-delay: 3s;
    background: rgba(255, 255, 255, 0.2);
  }

  .hero-particle:nth-child(6) {
    left: 85%;
    animation-duration: 11s;
    animation-delay: 5s;
    width: 3px;
    height: 3px;
  }

  .hero-particle:nth-child(7) {
    left: 50%;
    animation-duration: 16s;
    animation-delay: 6s;
    background: rgba(0, 217, 122, 0.3);
  }

  .hero-particle:nth-child(8) {
    left: 15%;
    animation-duration: 13s;
    animation-delay: 7s;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
  }

  @keyframes float-up {
    0% {
      bottom: -10px;
      opacity: 0;
      transform: translateX(0);
    }

    10% {
      opacity: 1;
    }

    90% {
      opacity: 1;
    }

    100% {
      bottom: 110%;
      opacity: 0;
      transform: translateX(30px);
    }
  }

  .hero-futuristic__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
  }

  .hero-futuristic__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 166, 81, 0.15);
    border: 1px solid rgba(0, 166, 81, 0.3);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius:var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #7FFFC4;
    margin-bottom: 1.25rem;
    animation: badge-glow 3s ease-in-out infinite alternate;
  }

  @keyframes badge-glow {
    0% {
      box-shadow: 0 0 15px rgba(0, 166, 81, 0.1);
    }

    100% {
      box-shadow: 0 0 30px rgba(0, 166, 81, 0.25);
    }
  }

  .hero-futuristic__badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ffaa;
    border-radius: 50%;
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 8px rgba(0, 255, 170, 0.8);
  }

  @keyframes pulse-dot {

    0%,
    100% {
      transform: scale(1);
      opacity: 1;
    }

    50% {
      transform: scale(1.5);
      opacity: 0.5;
    }
  }

  .hero-futuristic__title {
    font-size: clamp(1.75rem, 5.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(140deg, #ffffff 0%, #c0ffe0 45%, #00ffaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-futuristic__subtitle {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
  }

  /* ═══════════════ Service Toggle — Pill Bar ═════════════════════ */
  .service-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .service-toggle__track {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius:var(--radius-sm);
    padding: 5px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .service-toggle__indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: calc(33.333% - 3.333px);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-bright) 100%);
    border-radius:var(--radius-sm);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.15, 1);
    box-shadow: 0 4px 16px rgba(0, 166, 81, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 0;
  }

  .service-toggle__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius:var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  .service-toggle__btn svg {
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.35s, transform 0.35s;
  }

  .service-toggle__btn:hover {
    color: rgba(255, 255, 255, 0.85);
  }

  .service-toggle__btn:hover svg {
    opacity: 0.85;
    transform: scale(1.08);
  }

  .service-toggle__btn--active {
    color: #ffffff;
  }

  .service-toggle__btn--active svg {
    opacity: 1;
  }

  /* Light mode */
  [data-theme="light"] .service-toggle__track {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  [data-theme="light"] .service-toggle__btn {
    color: rgba(0, 0, 0, 0.4);
  }

  [data-theme="light"] .service-toggle__btn:hover {
    color: rgba(0, 0, 0, 0.65);
  }

  [data-theme="light"] .service-toggle__btn--active {
    color: #ffffff;
  }

  /* ═══════════════ Search Card — Glass ═══════════════════════════ */
  .search-glass {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    /* Fixes cascading center alignment */
  }

  .search-glass:hover,
  .search-glass:focus-within {
    border-color: rgba(0, 166, 81, 0.35);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 166, 81, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .search-glass__inner {
    display: flex;
    align-items: stretch;
    /* Reserve exact space upfront so TomSelect init doesn't cause layout shift */
    min-height: 86px;
    height: 86px;
  }

  .search-glass__field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: relative;
    cursor: pointer;
  }

  .search-glass__field:first-of-type::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .search-glass__icon {
    font-size: 1.4rem;
    color: var(--color-primary-bright);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    opacity: 0.9;
  }

  .search-glass__input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px;
    gap: 2px;
  }

  .search-glass__input-wrapper label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1;
    text-align: left;
  }

  .search-glass .tom-select-city {
    /* Pre-reserve exact space matching TomSelect rendered output to prevent CLS */
    min-height: 28px;
    height: 28px;
    width: 100%;
    display: block;
    opacity: 0;
    border: none;
    background: transparent;
    pointer-events: none;
  }

  .search-glass .ts-wrapper {
    opacity: 1;
    animation: fadeIn 0.2s ease-in;
    width: 100%;
    display: block;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .search-glass .ts-control {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff !important;
    min-height: 28px;
    line-height: 1.2;
    display: flex;
    align-items: center;
  }

  .search-glass .ts-control input {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
  }

  .search-glass .ts-control .item {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    display: inline-block;
  }

  .search-glass .ts-wrapper.single.focus .ts-control .item,
  .search-glass .ts-wrapper.single.input-active .ts-control .item {
    /* Item stays visible */
  }

  .search-glass .ts-dropdown {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
    font-family: var(--font-body);
    margin-top: 8px;
    z-index: 9999;
    background: #161B22;
  }

  .search-glass .ts-dropdown .option {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #E6EDF3;
  }

  .search-glass .ts-dropdown .option:last-child {
    border-bottom: none;
  }

  .search-glass .ts-dropdown .active {
    background-color: rgba(0, 166, 81, 0.15);
    color: var(--color-primary-bright);
  }

  .search-glass__swap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #021124;
    border: 1px solid rgba(0, 166, 81, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-bright);
    cursor: pointer;
    z-index: 10;
    margin: 0 -22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    align-self: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .search-glass__swap svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .search-glass__swap:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 166, 81, 0.4);
  }

  .search-glass__swap:hover svg {
    transform: rotate(180deg) scale(1.1);
  }

  .search-glass__submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-bright) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 44px;
    height: auto;
    min-height: 58px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 166, 81, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
    align-self: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
  }

  .search-glass__submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
  }

  .search-glass__submit:hover::after {
    left: 150%;
  }

  .search-glass__submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 166, 81, 0.5);
  }

  .search-glass__submit.btn--loading::after {
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: var(--radius-md);
    animation: btn-spin .8s linear infinite;
    transform: none;
    transition: none;
  }

  .quick-routes-futuristic {
    margin: 1.25rem auto 0;
    width: 100%;
    max-width: 1020px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .quick-routes-heading {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-align: center;
  }

  .quick-routes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  @media (max-width: 768px) {
    .quick-routes-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.6rem;
    }

    .quick-routes-grid .quick-route-chip-futuristic {
      width: 100%;
      padding: 10px 12px;
      font-size: 0.85rem;
      border-radius: var(--radius-md);
      min-height: 54px;
    }
  }

  .quick-route-chip-futuristic {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-body);
    backdrop-filter: blur(4px);
    text-align: center;
    min-height: 32px;
  }

  .quick-route-chip-futuristic:hover {
    background: rgba(0, 255, 170, 0.15);
    border-color: rgba(0, 255, 170, 0.4);
    color: #00ffaa;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 255, 170, 0.15);
  }

  /* ═══════════════ Stats Ticker ═════════════════════════════════ */
  .stats-ticker {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
  }

  .stats-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), rgba(59, 130, 246, 0.6), var(--color-primary), transparent);
    background-size: 200% 100%;
    animation: ticker-gradient 3s linear infinite;
  }

  @keyframes ticker-gradient {
    0% {
      background-position: 200% 0;
    }

    100% {
      background-position: -200% 0;
    }
  }

  .stats-ticker__inner {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
  }

  .stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .stat-item:hover {
    transform: translateY(-2px);
  }

  .stat-item__icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .stat-item__icon-wrapper--bus {
    background: rgba(0, 166, 81, 0.08);
    color: var(--color-primary);
  }

  .stat-item__icon-wrapper--route {
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-info);
  }

  .stat-item__icon-wrapper--city {
    background: rgba(139, 92, 246, 0.08);
    color: #8B5CF6;
  }

  .stat-item__icon-wrapper--rating {
    background: rgba(245, 158, 11, 0.08);
    color: var(--color-warning);
  }

  .stat-item__icon-wrapper--free {
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-success);
  }

  .stat-item:hover .stat-item__icon-wrapper--bus {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
  }

  .stat-item:hover .stat-item__icon-wrapper--route {
    background: var(--color-info);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }

  .stat-item:hover .stat-item__icon-wrapper--city {
    background: #8B5CF6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  }

  .stat-item:hover .stat-item__icon-wrapper--rating {
    background: var(--color-warning);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  }

  .stat-item:hover .stat-item__icon-wrapper--free {
    background: var(--color-success);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }

  .stat-item__icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
  }

  .stat-item__details {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }

  .stat-item__number {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
  }

  .stat-item__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-secondary);
  }

  /* ═══════════════ Route Cards — Glass Morph ══════════════════════ */
  .route-card-futuristic {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  .route-card-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-bright), var(--color-info));
    opacity: 0;
    transition: opacity 0.35s;
  }

  .route-card-futuristic:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 166, 81, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 24px rgba(0, 166, 81, 0.04);
  }

  .route-card-futuristic:hover::before {
    opacity: 1;
  }

  .route-card-futuristic__cities {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .route-card-futuristic__city-code {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--color-text);
    line-height: 1;
  }

  .route-card-futuristic__city-name {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 2px;
  }

  .route-card-futuristic__arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .route-card-futuristic__arrow-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), rgba(0, 166, 81, 0.3));
    border-radius: var(--radius-sm);
    position: relative;
  }

  .route-card-futuristic__arrow-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300A651'%3E%3Cpath d='M4 16c0 1.1.9 2 2 2h1v-2H4zM17 16v2h1c1.1 0 2-.9 2-2h-3z'/%3E%3Cpath d='M17 6H7c-2.76 0-5 2.24-5 5v3c0 .55.45 1 1 1h1c0 1.66 1.34 3 3 3s3-1.34 3-3h4c0 1.66 1.34 3 3 3s3-1.34 3-3h1c.55 0 1-.45 1-1v-3c0-2.76-2.24-5-5-5zM7 15c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm10 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm3-3H4v-1c0-1.65 1.35-3 3-3h10c1.65 0 3 1.35 3 3v1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .route-card-futuristic__arrow-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .route-card-futuristic__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
    gap: 0.75rem;
  }

  .route-card-futuristic__fare {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--color-primary);
  }

  .route-card-futuristic__info {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
  }

  /* ═══════════════ Operator Cards ════════════════════════════════ */
  .operator-grid-futuristic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
  }

  .operator-card-futuristic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
  }

  .operator-card-futuristic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.35s;
  }

  .operator-card-futuristic:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 166, 81, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  }

  .operator-card-futuristic:hover::after {
    opacity: 1;
  }

  .operator-card-futuristic__logo {
    background: #ffffff;
    padding: 10px;
    border-radius:var(--radius-lg);
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }

  .operator-card-futuristic__logo-fallback {
    width: 100%;
    height: 100px;
    border-radius:var(--radius-lg);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-bright));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 900;
  }

  .operator-card-futuristic__name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
  }

  .operator-card-futuristic__link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.25s;
    position: relative;
    z-index: 1;
  }

  .operator-card-futuristic:hover .operator-card-futuristic__link {
    transform: translateX(4px);
  }

  /* ═══════════════ Features — Floating Cards ═════════════════════ */
  .features-futuristic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .feature-card-futuristic {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  .feature-card-futuristic::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s;
  }

  .feature-card-futuristic:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 166, 81, 0.2);
  }

  .feature-card-futuristic::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-bright));
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .feature-card-futuristic:hover::after {
    transform: translateY(-50%) scaleY(1);
  }

  .feature-card-futuristic:hover::before {
    transform: scale(2);
  }

  .feature-card-futuristic__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: rgba(0, 166, 81, 0.08);
    border: 1px solid rgba(0, 166, 81, 0.15);
    border-radius:var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: transform 0.35s;
  }

  [data-theme="dark"] .feature-card-futuristic__icon {
    background: rgba(0, 166, 81, 0.15);
    border-color: rgba(0, 166, 81, 0.25);
  }

  .feature-card-futuristic:hover .feature-card-futuristic__icon {
    transform: scale(1.1) rotate(-5deg);
  }

  .feature-card-futuristic h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
  }

  .feature-card-futuristic p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
  }

  /* ═══════════════ CTA Banner — Futuristic ═══════════════════════ */
  .cta-futuristic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #04080f 0%, #02100a 30%, #041e12 55%, #06291a 80%, #040e08 100%);
    padding: 5rem 0;
    color: #fff;
    text-align: center;
  }

  .cta-futuristic::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.25) 0%, transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: hero-orb-1 6s ease-in-out infinite alternate;
  }

  .cta-futuristic h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #7FFFC4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
  }

  .cta-futuristic p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.75;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
  }

  .cta-futuristic__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }

  .cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-bright));
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.35);
    border: none;
  }

  .cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 166, 81, 0.5);
  }

  .cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.45);
  }

  .cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
  }

  /* ═══════════════ Pricing Table — Futuristic ════════════════════ */
  .price-table-futuristic {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
  }

  .price-table-futuristic table {
    width: 100%;
    border-collapse: collapse;
  }

  .price-table-futuristic thead tr {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.05), rgba(59, 130, 246, 0.03));
  }

  .price-table-futuristic th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 800;
  }

  .price-table-futuristic td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border-light);
  }

  .price-table-futuristic tbody tr {
    transition: all 0.2s;
  }

  .price-table-futuristic tbody tr:hover {
    background: rgba(0, 166, 81, 0.03);
  }

  /* ═══════════════ Responsive ════════════════════════════════════ */
  @media (max-width: 992px) {
    .operator-grid-futuristic {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
    }

    .features-futuristic {
      grid-template-columns: repeat(2, 1fr);
    }

    .route-card-futuristic__city-code {
      font-size: 1.4rem;
    }

    .route-card-futuristic__arrow-line {
      width: 40px;
    }
  }

  @media (max-width: 768px) {
    .hero-futuristic {
      padding: 2.5rem 0 2rem;
      overflow: hidden;
    }

    .hero-futuristic__title {
      font-size: clamp(1.4rem, 5vw, 2rem);
      margin-bottom: 0.5rem;
    }

    .service-toggle {
      margin-bottom: 1rem;
    }

    .service-toggle__btn {
      padding: 8px 20px;
      font-size: 0.82rem;
      gap: 6px;
    }

    .service-toggle__btn svg {
      width: 16px;
      height: 16px;
    }

    .hero-futuristic__subtitle {
      font-size: 0.85rem;
      margin-bottom: 1.25rem;
    }

    .hero-futuristic__badge {
      font-size: 0.7rem;
      padding: 5px 12px;
      margin-bottom: 1rem;
    }

    .operator-grid-futuristic {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }

    .operator-card-futuristic {
      padding: 1rem 0.75rem;
    }

    .operator-card-futuristic__logo,
    .operator-card-futuristic__logo-fallback {
      height: 85px;
    }

    .features-futuristic {
      grid-template-columns: 1fr;
    }

    .search-glass {
      border-radius: 0;
      padding: 0;
      background: transparent;
      border: none;
      box-shadow: none;
      backdrop-filter: none;
    }

    [data-theme="light"] .search-glass {
      background: transparent;
      border: none;
      box-shadow: none;
    }

    .search-glass__inner {
      flex-direction: column;
      gap: 0;
      height: auto !important;
      min-height: 0 !important;
    }

    .search-glass__field {
      width: 100%;
      padding: 10px 20px;
      border-bottom: none;
      border-radius: var(--radius-md);
      background: rgba(22, 27, 34, 0.75);
      border: 1px solid rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-sizing: border-box;
      flex: none;
    }

    [data-theme="light"] .search-glass__field {
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    .search-glass__field:last-of-type {
      border-bottom: none;
    }

    .search-glass__field:first-of-type::after {
      display: none;
    }

    /* Swap floats on the right edge between FROM and TO */
    .search-glass__swap {
      position: relative;
      margin: -16px 48px -16px auto;
      /* Border matches hero bg to create the "floating ring" visual */
      border: 4px solid #010d08;
      background: #01140e;
      width: 44px;
      height: 44px;
      z-index: 5;
      flex-shrink: 0;
      align-self: flex-end;
      border-radius: var(--radius-sm);
      box-shadow: 0 0 0 1px rgba(0, 166, 81, 0.5), 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    
    .search-glass__swap svg {
      transform: rotate(90deg);
    }

    [data-theme="light"] .search-glass__swap {
      border: 4px solid var(--color-bg);
      background: #fff;
      box-shadow: 0 0 0 1px var(--color-primary), 0 4px 15px rgba(0, 0, 0, 0.1);
      color: var(--color-primary);
    }

    .search-glass__swap:hover {
      transform: none; /* Removed rotation from box */
    }

    .search-glass__swap:hover svg {
      transform: rotate(270deg) scale(1.1);
    }

    .search-glass__submit {
      width: 100%;
      border-radius: var(--radius-sm);
      margin: 14px 0 0 0;
      min-height: 64px;
      font-size: 1.05rem;
      font-weight: 800;
      box-sizing: border-box;
      letter-spacing: 0.3px;
      background: rgba(255, 255, 255, 0.06) !important;
      color: #ffffff !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      box-shadow: 0 4px 20px rgba(0, 166, 81, 0.4) !important;
    }

    [data-theme="light"] .search-glass__submit {
      background: rgba(255, 255, 255, 0.15) !important;
      color: #ffffff !important;
      border: 1px solid rgba(255, 255, 255, 0.3) !important;
      box-shadow: 0 4px 20px rgba(0, 166, 81, 0.35) !important;
    }

    .search-glass__input-wrapper {
      min-height: 44px;
    }

    /* Prevent iOS auto-zoom on TomSelect input focus */
    .search-glass .ts-control input {
      font-size: 16px !important;
    }

    .quick-routes-futuristic {
      margin-top: 1rem;
      padding-top: 0.75rem;
    }

    .stats-ticker {
      padding: 1.25rem 0;
    }

    .stats-ticker__inner {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 0.75rem;
    }

    .stat-item {
      grid-column: span 2;
      flex-direction: column;
      text-align: center;
      gap: 0.5rem;
      background: rgba(0, 0, 0, 0.02);
      border: 1px solid rgba(0, 0, 0, 0.05);
      border-radius:var(--radius-lg);
      padding: 1rem 0.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    }

    [data-theme="dark"] .stat-item {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.06);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .stat-item:nth-child(4) {
      grid-column: span 3;
    }

    .stat-item:nth-child(5) {
      grid-column: span 3;
    }

    .stat-item__icon-wrapper {
      width: 42px;
      height: 42px;
      border-radius: 50%;
    }

    .stat-item__details {
      align-items: center;
    }

    .stat-item__number {
      font-size: 1.1rem;
    }

    .stat-item__label {
      font-size: 0.72rem;
      margin-top: 2px;
    }

    .stat-item:active {
      transform: scale(0.98);
    }

    .cta-futuristic {
      padding: 3rem 0;
    }

    .cta-btn-primary,
    .cta-btn-outline {
      padding: 12px 24px;
      font-size: 0.9rem;
    }

    .route-card-futuristic {
      padding: 1.25rem;
    }

    .route-card-futuristic__city-code {
      font-size: 1.25rem;
    }

    .route-card-futuristic__arrow-line {
      width: 35px;
    }

    /* Fit tables on small screens */
    .price-table-futuristic th,
    .price-table-futuristic td {
      padding: 0.75rem 0.5rem;
      font-size: 0.8rem;
      white-space: normal !important;
    }

    .price-table-futuristic th {
      font-size: 0.65rem;
    }

    .price-table-futuristic td:first-child {
      font-size: 0.75rem;
    }

    .price-table-futuristic td a.btn {
      padding: 6px 10px;
      font-size: 0.7rem;
      white-space: normal !important;
    }
  }

  @media (max-width: 480px) {
    .hero-futuristic {
      padding: 2rem 0 1.5rem;
    }

    .hero-futuristic__title {
      font-size: 1.3rem;
      letter-spacing: -0.5px;
      word-break: break-word;
    }

    .hero-futuristic__subtitle {
      font-size: 0.8rem;
      padding: 0 0.5rem;
    }

    .service-toggle__btn {
      padding: 7px 16px;
      font-size: 0.78rem;
      gap: 5px;
    }

    .service-toggle__btn svg {
      width: 14px;
      height: 14px;
    }

    .service-toggle__track {
      padding: 4px;
    }

    .operator-grid-futuristic {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.4rem;
    }

    .operator-card-futuristic {
      padding: 0.75rem 0.5rem;
    }

    .operator-card-futuristic__logo,
    .operator-card-futuristic__logo-fallback {
      height: 70px;
    }

    .operator-card-futuristic__name {
      font-size: 0.85rem;
    }

    .search-glass__field {
      padding: 12px 14px;
    }

    .search-glass .ts-control {
      font-size: 0.95rem !important;
    }

    .search-glass .ts-control input {
      font-size: 0.95rem !important;
    }

    .search-glass .ts-control .item {
      font-size: 0.95rem !important;
    }

    .stats-ticker__inner {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.6rem;
    }

    .stat-item {
      grid-column: span 1;
      padding: 0.75rem 0.5rem;
      border-radius: var(--radius-md);
    }

    .stat-item:nth-child(4) {
      grid-column: span 1;
    }

    .stat-item:nth-child(5) {
      grid-column: span 2;
    }

    .feature-card-futuristic {
      padding: 1.5rem 1rem;
    }

    .feature-card-futuristic__icon {
      width: 44px;
      height: 44px;
      font-size: 1.4rem;
      margin-bottom: 1rem;
    }

    .feature-card-futuristic h3 {
      font-size: 0.95rem;
    }

    .feature-card-futuristic p {
      font-size: 0.8rem;
    }
  }

  /* ═══════════════ Dark Mode Overrides ═══════════════════════════ */
  [data-theme="dark"] .hero-futuristic {
    background: linear-gradient(135deg, #010d08 0%, #021a0e 25%, #04301a 55%, #063d22 80%, #0a4a2a 100%);
  }

  @media (min-width: 769px) {
    [data-theme="dark"] .search-glass {
      background: rgba(22, 27, 34, 0.7);
      border-color: rgba(255, 255, 255, 0.08);
    }
  }

  [data-theme="dark"] .route-card-futuristic:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 166, 81, 0.08);
  }

  [data-theme="dark"] .cta-futuristic {
    background: linear-gradient(135deg, #0a1628 0%, #041428 40%, #063d22 100%);
  }

  [data-theme="light"] .cta-futuristic {
    background: var(--color-primary) !important;
    color: #ffffff;
  }

  [data-theme="light"] .cta-futuristic h2 {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--color-text);
  }

  [data-theme="light"] .cta-futuristic p {
    color: #ffffff;
  }

  [data-theme="light"] .cta-futuristic::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  }

  [data-theme="light"] .cta-futuristic .cta-btn-primary {
    background: #ffffff;
    color: var(--color-primary-dark);
  }

  [data-theme="light"] .cta-futuristic .cta-btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
  }

  [data-theme="light"] .cta-futuristic .cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
  }

  /* ═══════════════ LOGO MARQUEE ══════════════════════════════════ */
  .logo-marquee-section {
    padding: 2rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    width: 100%;
    /* Reserve exact height upfront so images loading don't cause CLS */
    min-height: 162px;
    contain: layout;
  }

  .logo-marquee-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    width: 100%;
    /* Contain marquee animation — prevents it from causing outside layout shifts */
    contain: layout paint;
  }

  .logo-marquee-wrapper::before,
  .logo-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }

  .logo-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-surface), transparent);
  }

  .logo-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-surface), transparent);
  }

  .logo-marquee-track {
    display: flex;
    width: max-content;
    animation: logo-marquee 35s linear infinite;
    /* GPU-promote the track to prevent paint-area recalcs */
    will-change: transform;
  }

  .logo-marquee-track:hover {
    animation-play-state: paused;
  }

  .logo-marquee-item {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .logo-marquee-item:hover {
    /* Only opacity — scale() causes layout recalc on a moving element */
    opacity: 0.85;
  }

  .logo-marquee-item img {
    height: 90px;
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
    padding: 10px 20px;
    border-radius: var(--radius-md);
  }

  [data-theme="dark"] .logo-marquee-item img {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  @keyframes logo-marquee {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  /* Section label override REMOVED.
     It set border-radius:var(--radius-sm), which rendered "WHY PK BUSES" as a
     rounded rectangle while every other pill on the site was a full pill — the
     kind of per-page override that made the UI look inconsistent. The single
     definition now lives in design-system.css and applies everywhere. */

  /* Section title — tighter tracking for premium feel */
  .section-title {
    letter-spacing: -0.3px;
  }
  /* Route card — more elevated hover */
  .route-card-futuristic:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 64px rgba(0,0,0,0.1), 0 0 32px rgba(0,166,81,0.05);
  }
  /* Operator card — more pronounced lift */
  .operator-card-futuristic:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 56px rgba(0,0,0,0.1), 0 0 24px rgba(0,166,81,0.06);
  }
  /* Feature icon — gradient background for depth */
  .feature-card-futuristic__icon {
    background: linear-gradient(135deg, rgba(0,166,81,0.1), rgba(0,217,122,0.04));
    border-color: rgba(0,166,81,0.2);
  }
  /* Search glass — stronger focus glow */
  .search-glass:focus-within {
    border-color: rgba(0,255,170,0.22);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45), 0 0 60px rgba(0,255,170,0.07), inset 0 1px 0 rgba(255,255,255,0.1);
  }
  /* Quick-route chips — slightly more vibrant */
  .quick-route-chip-futuristic:hover {
    background: rgba(0,255,170,0.12);
    border-color: rgba(0,255,170,0.35);
    color: #00ffaa;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,255,170,0.12);
  }
  /* Hide TomSelect loading spinner — cities are preloaded, spinner never needed */
  .search-glass .ts-wrapper.loading .ts-control::after,
  .ts-dropdown .ts-loading-text {
    display: none !important;
  }
  /* Stats icon hover glow — unified */
  .stat-item:hover .stat-item__icon-wrapper--bus   { background: var(--color-primary); color: #fff; box-shadow: 0 6px 18px rgba(0,166,81,0.35); }
  .stat-item:hover .stat-item__icon-wrapper--route { background: var(--color-info); color: #fff; box-shadow: 0 6px 18px rgba(59,130,246,0.35); }
  .stat-item:hover .stat-item__icon-wrapper--city  { background: #8B5CF6; color: #fff; box-shadow: 0 6px 18px rgba(139,92,246,0.35); }

      .seo-premium-box {
        background: linear-gradient(135deg, rgba(0, 166, 81, 0.03), rgba(59, 130, 246, 0.03));
        border: 1px solid var(--color-border);
        border-radius: var(--radius-xl);
        padding: 3rem;
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
        align-items: center;
      }

      .seo-premium-content {
        max-width: 540px;
      }

      .seo-premium-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
      }

      .seo-feature-card {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
        transition: all 0.3s ease;
      }

      .seo-feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
        border-color: rgba(0, 166, 81, 0.2);
      }

      .seo-feature-icon {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: white;
      }

      @media (max-width: 992px) {
        .seo-premium-box {
          grid-template-columns: 1fr;
          gap: 2.5rem;
          padding: 2rem;
        }

        .seo-premium-content {
          max-width: 100%;
          text-align: center;
        }
      }

      @media (max-width: 576px) {
        .seo-premium-grid {
          grid-template-columns: 1fr;
          gap: 1rem;
        }
      }

  /* ═══════════════ Promo Cards Grid ═════════════════════════════ */
  .promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    cursor: pointer;
  }

  .promo-card:hover {
    /* Card itself stays static — only the image reacts */
  }

  [data-theme="dark"] .promo-card:hover {
    /* No card-level shadow change */
  }

  .promo-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
  }

  .promo-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .promo-card:hover .promo-card__image {
    transform: scale(1.08);
  }

  .promo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.4s;
  }

  .promo-card:hover .promo-card__overlay {
    opacity: 0.7;
  }

  .promo-card__content {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }

  .promo-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 14px;
    border-radius:var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 166, 81, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 166, 81, 0.15);
  }

  .promo-card__badge--blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
    border-color: rgba(59, 130, 246, 0.15);
  }

  .promo-card__badge svg {
    flex-shrink: 0;
  }

  .promo-card__title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.3px;
    line-height: 1.25;
  }

  .promo-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin: 0;
  }

  .promo-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-primary);
    transition: gap 0.3s, color 0.3s;
  }

  .promo-card__cta svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .promo-card:hover .promo-card__cta {
    gap: 12px;
  }

  .promo-card:hover .promo-card__cta svg {
    transform: translateX(4px);
  }

  /* ═══════ Responsive ═══════ */
  @media (max-width: 768px) {
    .promo-cards-grid {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }

    .promo-card__image-wrapper {
      height: 180px;
    }

    .promo-card__content {
      padding: 1.25rem 1.25rem 1.5rem;
    }

    .promo-card__title {
      font-size: 1.15rem;
    }

    .promo-card__desc {
      font-size: 0.85rem;
    }
  }

  @media (max-width: 480px) {
    .promo-card__image-wrapper {
      height: 160px;
    }

    .promo-card__content {
      padding: 1rem 1rem 1.25rem;
    }

    .promo-card__title {
      font-size: 1.05rem;
    }
  }

.home-tool-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.home-tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.home-tool-card__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-bright));
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.25);
}
.home-tool-card__icon--blue {
  background: linear-gradient(135deg, var(--color-info), #60A5FA);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.home-tool-card__title {
  font-size: 1.1rem; font-weight: 800;
  color: var(--color-text);
  margin: 0 0 0.4rem;
}
.home-tool-card__desc {
  font-size: 0.88rem; color: var(--color-text-secondary);
  line-height: 1.6; margin: 0 0 0.85rem;
}
.home-tool-card__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 700;
  color: var(--color-primary);
}
