/* NaviAI — Premium Travel Concierge */
/* Fonts loaded asynchronously from index.html to avoid render-block */

:root {
  --ink: #05070d;
  --ink-2: #0b1020;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2ff;
  --muted: #a0aabe;
  --soft: #7a8498;
  --cyan: #3de0ff;
  --cyan-dim: rgba(61, 224, 255, 0.12);
  --gold: #d4af7a;
  --gold-dim: rgba(212, 175, 122, 0.14);
  --mint: #3ecf9a;
  --rose: #f071a5;
  --amber: #f0b35a;
  --danger: #ff6b7a;
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 96px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --max: 480px;
  --desk: 1100px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #3de0ff 0%, #7aa7ff 45%, #d4af7a 100%);
  --grad-soft: linear-gradient(160deg, rgba(61, 224, 255, 0.18), rgba(212, 175, 122, 0.08));
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  color-scheme: dark;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Never dim the whole page for loading / API probe */
  opacity: 1 !important;
  filter: none !important;
}

body.rtl {
  direction: rtl;
}

body.rtl .desk-link,
body.rtl .nav-item,
body.rtl .chip,
body.rtl .btn-ico {
  flex-direction: row-reverse;
}

body.rtl .fl-path {
  flex-direction: row-reverse;
}

body.rtl .tl-line {
  left: auto;
  right: 22px;
}

/* Language switcher */
.lang-wrap {
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  width: 100%;
}

.lang-select:focus {
  outline: none;
  border-color: rgba(61, 224, 255, 0.45);
}

.mobile-lang {
  padding: 4px 10px 2px;
}

.mobile-lang .lang-select {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 11px;
}

.desk-lang {
  display: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(61, 224, 255, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(212, 175, 122, 0.12), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(62, 207, 154, 0.06), transparent 55%),
    linear-gradient(180deg, #070b16 0%, #05070d 45%, #080a12 100%);
}

#canvas-bg, #stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.layer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}

.with-nav {
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
}

/* Brand */
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  background: #05070d;
  box-shadow: 0 8px 28px rgba(61, 224, 255, 0.18);
  flex-shrink: 0;
  transition: box-shadow 0.35s ease;
}

/* Pro Presence: champagne-gold ring + soft shimmer (no heavy glow) */
body.pro-user .brand-mark {
  box-shadow:
    0 0 0 1.5px rgba(212, 175, 122, 0.72),
    0 6px 20px rgba(212, 175, 122, 0.12);
  animation: proRingShimmer 3.6s ease-in-out infinite;
}

@keyframes proRingShimmer {
  0%, 100% {
    box-shadow:
      0 0 0 1.5px rgba(212, 175, 122, 0.55),
      0 6px 18px rgba(212, 175, 122, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1.5px rgba(240, 204, 140, 0.88),
      0 8px 22px rgba(212, 175, 122, 0.14);
  }
}

/* Pro UI accents — readable gold shift */
body.pro-user {
  --grad: linear-gradient(135deg, #3de0ff 0%, #8eb6ff 42%, #d4af7a 100%);
  --grad-soft: linear-gradient(160deg, rgba(61, 224, 255, 0.14), rgba(212, 175, 122, 0.14));
}

body.pro-user .btn-p {
  box-shadow: 0 10px 28px rgba(212, 175, 122, 0.16);
}

body.pro-user .nav-item.active {
  color: rgba(212, 175, 122, 0.92);
}

body.pro-user .nav-item.active .ni {
  color: rgba(212, 175, 122, 0.92);
}

body.pro-user .chip.active {
  background: var(--gold-dim);
  border-color: rgba(212, 175, 122, 0.45);
  color: var(--gold);
}

.home-head {
  margin-bottom: 12px;
}

.hero-greet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.hero-greet-row .greeting {
  margin-bottom: 0;
}

.hero-greet-row .hero-kicker {
  margin-bottom: 0;
}

/* Monoline icons */
.ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentColor;
}

.ico-inline {
  margin-right: 6px;
  opacity: 0.75;
}

.ico-sm { width: 14px; height: 14px; }
.ico-md { width: 18px; height: 18px; }
.ico-lg { width: 22px; height: 22px; }
.ico-xl { width: 28px; height: 28px; }

.ico-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(61, 224, 255, 0.75);
  filter: none;
  text-shadow: none;
}

.ico-wrap.gold { color: rgba(212, 175, 122, 0.85); }
.ico-wrap.muted { color: var(--muted); }

.sec-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(61, 224, 255, 0.75);
  flex-shrink: 0;
  filter: none;
  text-shadow: none;
}

.sec-ico .ico { width: 20px; height: 20px; opacity: 0.9; }

.chip .ico {
  width: 14px;
  height: 14px;
  opacity: 0.72;
  filter: none;
  text-shadow: none;
}

.chip.active .ico { opacity: 0.78; }

.chip-arr {
  opacity: 0.72;
  font-weight: 600;
  filter: none;
  text-shadow: none;
}
.chip.active .chip-arr { opacity: 0.8; }

.btn-p .ico,
.btn-o .ico {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ico .ico { margin-right: 0; }

.row-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(61, 224, 255, 0.75);
  flex-shrink: 0;
  filter: none;
  text-shadow: none;
}

.row-ico .ico { width: 20px; height: 20px; opacity: 0.9; }

.brand-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff 10%, var(--cyan) 70%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Surfaces */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-blue {
  background: linear-gradient(160deg, rgba(61, 224, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(61, 224, 255, 0.2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius);
}

.glass-gold {
  background: linear-gradient(160deg, rgba(212, 175, 122, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(212, 175, 122, 0.22);
  border-radius: var(--radius);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(61, 224, 255, 0.12), rgba(5, 7, 13, 0.2) 40%, rgba(212, 175, 122, 0.1)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 224, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.65rem, 5.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 36ch;
}

/* Nav */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--max);
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--line);
  z-index: 100;
  padding: 6px 4px calc(8px + var(--safe-b));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  min-height: 56px;
  flex: 1;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  color: var(--soft);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-item .ni {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transition: transform 0.2s, color 0.2s;
  line-height: 1;
  color: var(--soft);
}

.nav-item .ni .ico {
  width: 22px;
  height: 22px;
  color: var(--muted);
  opacity: 0.85;
  filter: none;
  text-shadow: none;
}

.nav-item.active {
  color: rgba(61, 224, 255, 0.82);
}

.nav-item.active .ni {
  color: rgba(61, 224, 255, 0.82);
  transform: scale(1.06);
}

.nav-item:active {
  transform: scale(0.94);
}

/* Buttons */
.btn-p {
  background: var(--grad);
  border: none;
  border-radius: 16px;
  color: #041018;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 22px;
  min-height: 52px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(61, 224, 255, 0.12);
}

.btn-p:active {
  transform: scale(0.97);
}

.btn-p:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-o {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.btn-o:active {
  background: rgba(255, 255, 255, 0.05);
}

/* Translator tools */
.tr-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 122, 0.35);
  background: rgba(12, 16, 28, 0.85);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tr-clear-btn:hover {
  background: rgba(212, 175, 122, 0.12);
  border-color: rgba(212, 175, 122, 0.55);
}
.tr-clear-btn:active { transform: scale(0.97); }

.tr-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(61, 224, 255, 0.35);
  background: rgba(61, 224, 255, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.tr-tool-btn:hover {
  background: rgba(61, 224, 255, 0.14);
  border-color: rgba(61, 224, 255, 0.55);
}
.tr-tool-btn .ico { color: rgba(61, 224, 255, 0.75); }

.icon-btn,
.swap-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 22, 0.72);
  color: rgba(61, 224, 255, 0.75);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  filter: none;
  text-shadow: none;
  box-shadow: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.icon-btn:hover,
.swap-btn:hover {
  background: rgba(12, 18, 32, 0.88);
  border-color: rgba(61, 224, 255, 0.28);
  color: rgba(61, 224, 255, 0.88);
}
.icon-btn:active,
.swap-btn:active { transform: scale(0.95); }
.icon-btn .ico,
.swap-btn .ico {
  color: inherit;
  opacity: 0.9;
  filter: none;
}
.swap-btn.gold {
  color: rgba(212, 175, 122, 0.85);
}

.hist-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(61, 224, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(61, 224, 255, 0.22);
}

/* Service tiles */
.mc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
  min-height: 118px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.mc::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.mc:active {
  transform: scale(0.96);
}

.mc .ci {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(61, 224, 255, 0.75);
  filter: none;
  text-shadow: none;
}

.mc .ci .ico {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.mc.cp .ci,
.mc.ca .ci { color: rgba(212, 175, 122, 0.85); }
.mc.cg .ci { color: rgba(62, 207, 154, 0.85); }
.mc.ck .ci { color: rgba(240, 113, 165, 0.85); }
.mc.cr .ci { color: rgba(255, 107, 122, 0.85); }
.mc.ci2 .ci { color: rgba(212, 175, 122, 0.85); }

.mc .ct {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.mc .cs {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}

.cb { background: linear-gradient(160deg, rgba(61, 224, 255, 0.1), var(--panel)); }
.cp { background: linear-gradient(160deg, rgba(122, 167, 255, 0.12), var(--panel)); }
.cg { background: linear-gradient(160deg, rgba(62, 207, 154, 0.1), var(--panel)); }
.ca { background: linear-gradient(160deg, rgba(240, 179, 90, 0.12), var(--panel)); }
.ck { background: linear-gradient(160deg, rgba(240, 113, 165, 0.1), var(--panel)); }
.cr { background: linear-gradient(160deg, rgba(255, 107, 122, 0.1), var(--panel)); }
.ct2 { background: linear-gradient(160deg, rgba(61, 224, 255, 0.08), var(--panel)); }
.ci2 { background: linear-gradient(160deg, rgba(212, 175, 122, 0.12), var(--panel)); }

.food-cta {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.food-cta:hover {
  transform: translateY(-1px);
}
.currency-bar .ns,
.currency-bar #cur-select {
  flex: 1 1 120px;
  max-width: 160px;
  min-width: 112px;
}

/* Chips / inputs */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
  filter: none;
  text-shadow: none;
}

.chip.active {
  background: var(--cyan-dim);
  border-color: rgba(61, 224, 255, 0.4);
  color: rgba(61, 224, 255, 0.82);
  text-shadow: none;
}

.chip:active {
  transform: scale(0.95);
}

.ni2, .ns {
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  height: 48px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ni2:focus, .ns:focus {
  border-color: rgba(61, 224, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 224, 255, 0.1);
}

.ni2::placeholder {
  color: var(--soft);
}

.ns,
#cur-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  color: #eef2ff !important;
  background-color: #121826 !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #a0aabe 50%),
    linear-gradient(135deg, #a0aabe 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
  line-height: 1.35;
  height: 48px;
  min-height: 48px;
  color-scheme: dark;
}

.ns option,
#cur-select option {
  background-color: #0f172a;
  color: #eef2ff;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
}

.ns option:checked,
#cur-select option:checked,
.ns option:hover,
#cur-select option:hover {
  background-color: #1e293b;
  color: #3de0ff;
}

/* Hotels search form — aligned 2-col grid, iOS-safe dates */
.hotel-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  overflow: hidden;
}

.hotel-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hotel-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  padding: 0 2px;
  letter-spacing: 0.02em;
}

/* Label → input: consistent 8px; form stacks 12–16px */
.glass.flex.flex-col,
.glass.p-4.mb-4.flex.flex-col {
  gap: 14px;
}

.glass .text-xs.text-slate-500.mb-1,
.glass .text-xs.text-slate-500.mb-1.ml-1,
.field-label {
  margin-bottom: 8px !important;
}

.wx-stat,
.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.wx-stat .wx-ico,
.stat-row .wx-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: rgba(61, 224, 255, 0.75);
  flex-shrink: 0;
  filter: none;
  text-shadow: none;
}

.wx-stat .wx-ico.gold {
  color: rgba(212, 175, 122, 0.85);
}

.wx-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}

.screen .btn-p {
  margin-bottom: 4px;
}

.hotel-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.hotel-grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hotel-date {
  color: var(--text) !important;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  padding-left: 12px;
  padding-right: 8px;
  letter-spacing: -0.01em;
}

.hotel-date::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
  filter: invert(1);
  margin-left: 2px;
  padding: 0;
  width: 16px;
  height: 16px;
}

.hotel-form .ns {
  font-size: 13px;
  padding-left: 12px;
  padding-right: 34px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.hotel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.hotel-filters .chip {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 8px 12px;
  min-height: 40px;
  font-size: 12px;
  white-space: nowrap;
}

.hotel-search-btn {
  width: 100%;
  margin-top: 2px;
}

@media (max-width: 380px) {
  .hotel-grid-2 {
    grid-template-columns: 1fr;
  }
  .hotel-date {
    font-size: 13px;
  }
}

@media (min-width: 900px) {
  .hotel-form {
    padding: 22px 22px;
    gap: 16px;
  }
  .hotel-grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }
}

.rc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.2s, border-color 0.2s;
  color: inherit;
  text-decoration: none;
}

.rc:active {
  transform: scale(0.985);
}

.pb {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(62, 207, 154, 0.14);
  border: 1px solid rgba(62, 207, 154, 0.3);
  color: var(--mint);
}

.rb {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(240, 179, 90, 0.12);
  border: 1px solid rgba(240, 179, 90, 0.3);
  color: var(--amber);
}

.tl-line {
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), #7aa7ff, var(--gold));
}

.tl-dot {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  flex-shrink: 0;
  color: var(--cyan);
}

.tl-dot .ico {
  width: 20px;
  height: 20px;
}

.fl-path {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-time {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  font-family: 'Syne', sans-serif;
}

.fl-code {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.fl-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 224, 255, 0.45), transparent);
  position: relative;
}

.fl-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--cyan);
  display: grid;
  place-items: center;
}

.fl-plane .ico {
  width: 14px;
  height: 14px;
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
  background: #7aa7ff;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
  background: var(--gold);
}

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}

/* Motion only — never dim the UI (no opacity:0 first paint) */
.fu {
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

.s1 { animation-delay: 0.04s; }
.s2 { animation-delay: 0.08s; }
.s3 { animation-delay: 0.12s; }
.s4 { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .fu, .fu.s1, .fu.s2, .fu.s3, .fu.s4 {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  body.pro-user .brand-mark {
    animation: none !important;
  }
  .miles-x2-flash {
    animation: none !important;
    opacity: 1;
  }
}
}

::-webkit-scrollbar { width: 3px; height: 0; }
::-webkit-scrollbar-thumb { background: rgba(61, 224, 255, 0.25); border-radius: 2px; }

.screen { display: none; }
.screen.active { display: flex; flex-direction: column; }

.star {
  position: fixed;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--d, 3s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--op, 0.5); }
}

.sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.st {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
}

.bbar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bfill {
  height: 100%;
  border-radius: 4px;
  background: var(--grad);
  transition: width 1s ease;
}

.hs {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 1px;
}

.section-pad {
  padding: 8px 18px 8px;
  /* Mobile / TG: tiny top pad only — never add safe-area on top of Telegram chrome */
  padding-top: 8px;
}

.clock-block {
  text-align: right;
}

.clock-block .time {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.clock-block .date {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.status-pill.live {
  color: var(--mint);
  border-color: rgba(62, 207, 154, 0.35);
  background: rgba(62, 207, 154, 0.1);
}

.status-pill.demo {
  color: var(--gold);
  border-color: rgba(212, 175, 122, 0.35);
  background: var(--gold-dim);
}

.ask-row {
  display: flex;
  gap: 8px;
}

.ask-row .ni2 {
  flex: 1;
  border-radius: 14px;
  padding: 12px 14px;
}

.ask-send {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--grad);
  color: #041018;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(61, 224, 255, 0.14);
  display: grid;
  place-items: center;
}

.ask-send .ico {
  width: 18px;
  height: 18px;
}

.mx-auto { margin-left: auto; margin-right: auto; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.scroll-x {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar { display: none; }

.trip-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.trip-stat .cell {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  text-align: center;
}

.trip-stat .v {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cyan);
}

.trip-stat .l {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.check-item.done {
  border-color: rgba(62, 207, 154, 0.35);
  background: rgba(62, 207, 154, 0.08);
}

.check-item.done .check-label {
  text-decoration: line-through;
  color: var(--muted);
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  color: transparent;
}

.check-item.done .check-box {
  background: var(--mint);
  border-color: var(--mint);
  color: #041018;
  font-weight: 800;
}

.fx-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
}

.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 18px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(61, 224, 255, 0.3);
  color: white;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  z-index: 999;
  animation: fadeUp 0.3s ease;
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: var(--shadow);
}

.toast.toast-pro {
  border-color: rgba(212, 175, 122, 0.55);
  background: linear-gradient(135deg, rgba(20, 24, 36, 0.96), rgba(40, 32, 22, 0.96));
  color: #f0d9b0;
  box-shadow: 0 12px 36px rgba(212, 175, 122, 0.18);
}

.miles-x2-flash {
  position: fixed;
  bottom: calc(var(--nav-h) + 64px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(135deg, #d4af7a, #f0c27a);
  border: 1px solid rgba(255, 240, 210, 0.35);
  animation: milesX2In 1.35s ease both;
  pointer-events: none;
}

@keyframes milesX2In {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.92); }
  18% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(1.02); }
}

.club-balance.miles-x2-pulse {
  color: var(--gold);
  transition: color 0.25s ease;
}

#ov {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#ov.show {
  display: flex;
}

.ov-card {
  width: min(300px, 88vw);
  padding: 28px 24px;
  text-align: center;
}

.ov-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #05070d;
  border: 1px solid rgba(61, 224, 255, 0.28);
  position: relative;
  overflow: hidden;
  animation: ovPulse 2.4s ease-in-out infinite;
}

.ov-logo::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 122, 0.25);
  animation: ovRing 2.4s ease-in-out infinite;
  pointer-events: none;
}

.ov-logo img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

@keyframes ovPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 224, 255, 0); }
  50% { box-shadow: 0 0 28px rgba(61, 224, 255, 0.12); }
}

@keyframes ovRing {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.7; transform: scale(1); }
}

.desk-rail {
  display: none;
}

.greeting {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.greeting strong {
  color: var(--text);
  font-weight: 800;
}

/* Desktop / tablet */
@media (min-width: 900px) {
  :root {
    --max: 720px;
  }

  body {
    display: flex;
    justify-content: center;
  }

  .app-shell {
    width: min(1120px, calc(100vw - 48px));
    margin: 28px auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
  }

  .desk-rail {
    display: block;
    position: sticky;
    top: 28px;
    padding: 22px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    min-height: calc(100vh - 56px);
  }

  .desk-rail .brand-title {
    font-size: 1.6rem;
  }

  .desk-lang {
    display: flex;
  }

  .mobile-lang {
    display: none;
  }

  .desk-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
  }

  .desk-link .ico {
    width: 18px;
    height: 18px;
    color: var(--soft);
    transition: color 0.2s;
  }

  .desk-link:hover,
  .desk-link.active {
    color: var(--text);
    background: rgba(61, 224, 255, 0.08);
    border-color: rgba(61, 224, 255, 0.2);
  }

  body.pro-user .desk-link:hover,
  body.pro-user .desk-link.active {
    background: rgba(212, 175, 122, 0.1);
    border-color: rgba(212, 175, 122, 0.28);
  }

  .desk-link:hover .ico,
  .desk-link.active .ico {
    color: var(--cyan);
  }

  body.pro-user .desk-link:hover .ico,
  body.pro-user .desk-link.active .ico {
    color: var(--gold);
  }

  .layer {
    max-width: none;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    min-height: calc(100vh - 56px);
    overflow: hidden;
  }

  .bottom-nav {
    display: none;
  }

  .with-nav {
    padding-bottom: 28px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-pad {
    padding: 28px 28px 16px;
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Navi Club */
.club-entry {
  border-color: rgba(212, 175, 122, 0.28) !important;
  background: linear-gradient(135deg, rgba(61, 224, 255, 0.08), rgba(212, 175, 122, 0.1));
}
.pro-entry {
  border-color: rgba(212, 175, 122, 0.4) !important;
  background: linear-gradient(135deg, rgba(212, 175, 122, 0.12), rgba(61, 224, 255, 0.06));
}
.pro-entry.is-active {
  border-color: rgba(212, 175, 122, 0.72) !important;
  background: linear-gradient(135deg, rgba(212, 175, 122, 0.2), rgba(61, 224, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 122, 0.18);
}
.pro-card.pro-card-active {
  border-color: rgba(212, 175, 122, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(212, 175, 122, 0.22), 0 12px 36px rgba(0, 0, 0, 0.25);
}
.pro-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  color: #041018;
  background: linear-gradient(135deg, #d4af7a, #f0c27a);
  vertical-align: middle;
}
.pro-pill {
  background: rgba(212, 175, 122, 0.18) !important;
  border: 1px solid rgba(212, 175, 122, 0.45) !important;
  color: var(--gold) !important;
  font-weight: 700;
  white-space: nowrap;
}
.pro-card .pro-bullets {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}
.pro-card .pro-bullets li {
  margin-bottom: 4px;
}
.club-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(212, 175, 122, 0.12);
  border: 1px solid rgba(212, 175, 122, 0.3);
}
.club-balance {
  font-family: 'Cormorant Garamond', 'Manrope', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.club-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.club-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.6s ease;
}
.club-earn-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.club-earn-pts {
  min-width: 42px;
  font-weight: 700;
  color: var(--cyan);
}
.club-cost {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}
.club-ref {
  font-size: 12px;
  word-break: break-all;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Telegram Mini App tweaks — first viewport must start under TG bar, no void */
html.tg-mode,
body.tg-mode {
  --nav-h: 72px;
  --safe-t: 0px;
  --tg-safe-area-inset-top: 0px;
  --tg-content-safe-area-inset-top: 0px;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

html.tg-mode,
body.tg-mode {
  min-height: 0;
}

body.tg-mode .layer {
  min-height: 0;
  padding-top: 0;
  margin-top: 0;
}

body.tg-mode .with-nav {
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px);
}

body.tg-mode .section-pad,
html.tg-mode .section-pad {
  /* TG WebView already sits below the header — do not add large safe-area again */
  padding-top: 8px !important;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 4px;
  margin-top: 0 !important;
}

body.tg-mode #tab-home {
  min-height: 0;
}

body.tg-mode .home-head {
  margin-bottom: 6px;
  gap: 8px;
}

body.tg-mode .home-head .brand-mark,
body.tg-mode .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(61, 224, 255, 0.14);
}

body.tg-mode .home-head .brand-title {
  font-size: 1.05rem;
}

body.tg-mode .home-head .brand-sub {
  font-size: 0.62rem;
}

body.tg-mode .clock-block .time {
  font-size: 1.05rem;
}

body.tg-mode .clock-block .date {
  font-size: 0.65rem;
  margin-top: 2px;
}

body.tg-mode .hero-card {
  padding: 12px 14px;
  border-radius: 18px;
  margin-bottom: 10px;
}

body.tg-mode .hero-greet-row {
  margin-bottom: 4px;
  gap: 4px 8px;
}

body.tg-mode .hero-greet-row .greeting {
  font-size: 0.78rem;
  line-height: 1.2;
}

body.tg-mode .hero-kicker {
  font-size: 10px;
  letter-spacing: 0.06em;
}

body.tg-mode .hero-title {
  font-size: clamp(1.15rem, 4.6vw, 1.35rem);
  line-height: 1.18;
  margin: 0 0 6px;
}

body.tg-mode .hero-text {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 8px;
  max-width: none;
}

body.tg-mode .hero-pills {
  margin-bottom: 8px;
}

body.tg-mode .hero-pills .status-pill {
  padding: 3px 8px;
  font-size: 10px;
}

body.tg-mode .hero-cta {
  gap: 6px;
}

body.tg-mode .hero-cta .btn-p,
body.tg-mode .hero-cta .btn-o {
  padding: 10px 12px;
  font-size: 13px;
  min-height: 42px;
}

body.tg-mode .home-quick {
  margin-bottom: 10px;
}

body.tg-mode .home-quick .sec-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

body.tg-mode .bottom-nav {
  position: fixed;
  border-top-color: rgba(255, 255, 255, 0.06);
  padding: 4px 4px calc(6px + var(--safe-b));
}

body.tg-mode .mobile-lang {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 6px);
  left: auto;
  padding: 0;
  width: auto;
  z-index: 101;
}

body.tg-mode .mobile-lang .lang-select {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 10px;
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: auto;
  min-width: 72px;
}

body.tg-mode .nav-item {
  min-height: 48px;
  padding: 4px 2px;
  font-size: 10px;
}
