/* ============================================================
   THEBOOKFLIGHT - HOMEPAGE PREMIUM STYLES v7.0
   Neural AI | Dark Mode | Glassmorphism | Uiverse.io
   ============================================================ */

/* 1. LAYOUT UTILITIES */
.hp-section { padding: 100px 0; position: relative; overflow: hidden; }
.hp-container { max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.hp-text-glow { color: var(--primary); text-shadow: var(--text-glow); }

/* 2. TICKER */
.hp-ticker { background: #000; border-bottom: 1px solid var(--tbf-border); padding: 12px 0; overflow: hidden; white-space: nowrap; }
.hp-ticker__track { display: inline-flex; animation: hp-scroll 60s linear infinite; }
.hp-ticker__item { margin: 0 40px; color: var(--text-secondary); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.hp-ticker__item i { color: var(--primary); }
@keyframes hp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 3. HERO SECTION */
.hp-hero { min-height: 100vh; position: relative; background: radial-gradient(circle at 50% 50%, #1e1b4b, #070b14); display: flex; align-items: center; padding-top: 120px; z-index: 1; }
.hp-hero__canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6; }
.hp-hero__orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; z-index: -1; animation: hp-orb-float 20s infinite alternate; }
.hp-hero__orb--1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.hp-hero__orb--2 { width: 500px; height: 500px; background: var(--secondary); bottom: -100px; right: -100px; animation-delay: -5s; }
.hp-hero__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; z-index: -1; pointer-events: none; }
@keyframes hp-orb-float { from { transform: translate(0,0) scale(1); } to { transform: translate(100px, 50px) scale(1.1); } }

.hp-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: stretch; margin-top: -60px; }
.hp-hero__title { font-size: clamp(40px, 6vw, 84px); font-weight: 900; line-height: 0.95; letter-spacing: -3px; color: #fff; margin-bottom: 20px; }
.hp-hero__sub { font-size: clamp(16px, 1.5vw, 20px); color: var(--text-secondary); max-width: 520px; margin-bottom: 40px; line-height: 1.6; }

/* AI BADGE */
.hp-ai-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(26, 251, 240, 0.1); border: 1px solid var(--primary-glow); border-radius: var(--radius-full); color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; position: relative; }
.hp-ai-badge__dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }
.hp-ai-badge__ring { position: absolute; width: 6px; height: 6px; left: 16px; top: 12px; border: 1px solid var(--primary); border-radius: 50%; animation: hp-ping 2s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes hp-ping { 75%, 100% { transform: scale(3.5); opacity: 0; } }

/* NEON BUTTON (Uiverse: gharsh11032000) */
.hp-btn-neon { position: relative; width: auto; height: 58px; background-color: #000; border: none; border-radius: var(--radius-md); cursor: pointer; padding: 2px; transition: all 0.3s; z-index: 10; overflow: hidden; display: inline-block; text-decoration: none; }
.hp-btn-neon__content { height: 100%; width: 100%; background: #000; border-radius: calc(var(--radius-md) - 2px); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 32px; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; position: relative; z-index: 2; }
.hp-btn-neon::before { content: ""; position: absolute; inset: -4px; background: linear-gradient(-45deg, var(--secondary) 0%, var(--primary) 100%); z-index: 0; transition: all 0.6s var(--ease-premium); }
.hp-btn-neon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(-45deg, var(--secondary) 0%, var(--primary) 100%); z-index: -1; filter: blur(20px); opacity: 0; transition: all 0.6s; }
.hp-btn-neon:hover::after { opacity: 0.8; }
.hp-btn-neon:hover::before { filter: blur(3px); }
.hp-btn-neon:active { transform: scale(0.96); }

/* GHOST BUTTON */
.hp-btn-ghost { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: var(--transition-base); padding: 12px 20px; }
.hp-btn-ghost:hover { color: var(--primary); transform: translateX(5px); }

/* 4. SEARCH GLASS */
.hp-search-glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--glass-shadow); position: relative; overflow: hidden; }
.hp-search-glass__header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.hp-search-glass__icon { width: 48px; height: 48px; background: var(--primary-glow); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 24px; }
.hp-search-glass__title { font-size: 20px; font-weight: 800; color: #fff; }
.hp-search-glass__sub { font-size: 12px; color: var(--text-secondary); }

/* NEURAL LOADER (Uiverse: andrew-demchenk0 mod) */
.hp-neural-loader { position: absolute; inset: 0; background: rgba(7, 11, 20, 0.95); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s ease; }
.hp-neural-loader__cube { width: 60px; height: 60px; position: relative; }
.hp-neural-loader__cube-inner { width: 100%; height: 100%; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--secondary)); filter: blur(4px); animation: hp-cube-rotate 2.5s ease-in-out infinite; }
@keyframes hp-cube-rotate { 0%, 100% { transform: rotate(0deg) scale(1.1); } 50% { transform: rotate(-180deg) scale(0.9); } }
.hp-neural-loader__label { margin-top: 30px; font-size: 10px; font-weight: 900; letter-spacing: 3px; color: var(--primary); text-transform: uppercase; animation: hp-blink 1.5s infinite; }
@keyframes hp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* 5. STATS BAR */
.hp-stats-bar { background: #000; border-top: 1px solid var(--tbf-border); border-bottom: 1px solid var(--tbf-border); padding: 50px 0; }
.hp-stats-bar__grid { display: flex; justify-content: space-between; align-items: center; }
.hp-stats-bar__item { text-align: center; }
.hp-stats-bar__num { font-size: 32px; font-weight: 900; color: #fff; font-family: var(--font-heading); margin-bottom: 4px; }
.hp-stats-bar__label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.hp-stats-bar__separator { width: 1px; height: 40px; background: var(--tbf-border); }

/* 6. ROUTE CARDS (Uiverse: satyamchaudharydev mod) */
.hp-routes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 30px; }
.hp-route-card { background: var(--tbf-surface); border: 1px solid var(--tbf-border); border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; transition: var(--transition-base); }
.hp-route-card:hover { border-color: var(--primary-glow); transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.hp-route-card__glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, var(--primary-glow), transparent 60%); opacity: 0; transition: 0.5s; }
.hp-route-card:hover .hp-route-card__glow { opacity: 0.2; }
.hp-route-card__sash { position: absolute; top: 15px; right: -30px; background: linear-gradient(90deg, var(--secondary), var(--primary)); color: #fff; font-size: 10px; font-weight: 900; padding: 4px 40px; transform: rotate(45deg); text-transform: uppercase; letter-spacing: 1px; }

.hp-route-card__route { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.hp-route-card__city { font-size: 24px; font-weight: 900; color: #fff; }
.hp-route-card__arrow { color: var(--primary); font-size: 20px; animation: hp-fly 2s infinite ease-in-out; }
@keyframes hp-fly { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

.hp-route-card__price { font-size: 36px; font-weight: 900; color: var(--primary); }
.hp-route-card__price-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hp-route-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--tbf-border); }

.hp-btn-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 99px; padding: 10px 24px; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.3s; }
.hp-btn-card:hover { background: var(--primary); border-color: var(--primary); color: #000; }

/* 7. FEATURE CARDS */
.hp-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.hp-feature-card { background: rgba(255,255,255,0.02); border: 1px solid var(--tbf-border); border-radius: var(--radius-lg); padding: 40px; transition: 0.4s; }
.hp-feature-card:hover { background: rgba(255,255,255,0.04); border-color: var(--primary-glow); transform: translateY(-5px); }
.hp-feature-card__icon-wrap { width: 64px; height: 64px; background: rgba(255,255,255,0.05); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary); margin-bottom: 25px; position: relative; }
.hp-feature-card--highlight .hp-feature-card__icon-wrap { background: var(--primary-glow); color: var(--primary); }
.hp-feature-card__title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.hp-feature-card__desc { color: var(--text-secondary); line-height: 1.7; font-size: 15px; }

/* 8. DESTINATION CARDS */
.hp-dest__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.hp-dest-card { background: var(--tbf-surface); border: 1px solid var(--tbf-border); border-radius: var(--radius-lg); padding: 0; text-align: left; position: relative; overflow: hidden; transition: 0.4s; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; }
.hp-dest-card:hover { transform: translateY(-10px); border-color: var(--secondary-glow); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.hp-dest-card__img-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hp-dest-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-premium); }
.hp-dest-card:hover .hp-dest-card__img { transform: scale(1.1); }
.hp-dest-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,11,20,0.95) 0%, rgba(7,11,20,0.6) 30%, transparent 100%); z-index: 1; pointer-events: none; }
.hp-dest-card__content { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.hp-dest-card__city { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 4px; letter-spacing: -0.5px; }
.hp-dest-card__tagline { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 20px; line-height: 1.4; flex-grow: 1; }
.hp-dest-card__footer { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; margin-top: auto; }
.hp-dest-card__price { font-size: 13px; color: var(--text-muted); }
.hp-dest-card__price strong { display: block; font-size: 20px; color: var(--primary); font-weight: 800; margin-top: 2px; }

/* 9. REVEAL ANIMATIONS */
[data-reveal] { opacity: 0; transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
.hp-revealed { opacity: 1; transform: translate(0,0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hp-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hp-hero__sub { margin-left: auto; margin-right: auto; }
  .hp-hero__ctas { justify-content: center; }
  .hp-mini-stats { justify-content: center; }
  .hp-stats-bar__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hp-stats-bar__separator { display: none; }
  .hp-features__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-dest__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hp-routes__grid { grid-template-columns: 1fr; }
  .hp-features__grid { grid-template-columns: 1fr; }
  .hp-stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}

/* 10. PROMO POPUP (Geolocation Card) */
.hp-promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hp-promo-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hp-promo-card {
  width: 320px;
  background: #0f1219; /* premium dark */
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(208, 2, 27, 0.15), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hp-promo-overlay.active .hp-promo-card {
  transform: translateY(0) scale(1);
}

.hp-promo-card .card-border-top {
  width: 60%;
  height: 4px;
  background: var(--primary);
  margin: auto;
  border-radius: 0px 0px 15px 15px;
  box-shadow: 0 5px 15px rgba(208, 2, 27, 0.5);
}

.hp-promo-card .hp-promo-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #fff;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.hp-promo-card .hp-promo-close:hover {
  opacity: 1;
  color: var(--primary);
  transform: rotate(90deg);
}

.hp-promo-card .icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(208, 2, 27, 0.1);
  border: 1px solid rgba(208, 2, 27, 0.3);
  border-radius: 50%;
  margin: 30px auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(208, 2, 27, 0.2);
}

.hp-promo-card span.title {
  font-weight: 800;
  color: white;
  text-align: center;
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

.hp-promo-card p.desc {
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  text-align: center;
  font-size: 14px;
  padding: 0 20px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.hp-promo-card p.desc strong {
  color: #fff;
}

.hp-promo-card button.claim-btn {
  padding: 12px 25px;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(208, 2, 27, 0.3);
  color: white;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.hp-promo-card button.claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(208, 2, 27, 0.4);
  background: #e6021d; /* slightly lighter red */
}
