/* uzbeksafar — futuristic luxury theme.
   Dark base, gold accents, cinematic hero, glassy panels.
   Inspired by SpaceX/Rolls-Royce online: rich but minimal.
   Mobile-first responsive: search bar stacks vertically on phones. */

:root {
  --bg: #07080c;
  --paper: rgba(20, 22, 30, 0.7);
  --paper-2: rgba(28, 30, 40, 0.7);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f6f7fb;
  --hint: #9aa3b3;
  --accent: #d4af37;          /* royal gold */
  --accent-2: #ffd97a;
  --accent-soft: rgba(212, 175, 55, 0.12);
  --positive: #4ade80;
  --warn: #ff6b6b;
  --max-w: 1240px;
  --r: 18px;
  --r-sm: 12px;
  --grid-line: rgba(255, 255, 255, 0.025);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5; font-feature-settings: "ss01", "cv11"; }
a { color: var(--accent); text-decoration: none; }

/* Ambient backdrop — subtle grid + gold/blue auras + film grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background:
    radial-gradient(circle at 18% 28%, rgba(212, 175, 55, 0.08) 0, transparent 38%),
    radial-gradient(circle at 82% 72%, rgba(78, 161, 255, 0.05) 0, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0, transparent 60%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 0 0/72px 72px,
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.6;
}

/* Header */
.hd { background: rgba(7, 8, 12, 0.7); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
  padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--accent) 0%, #9e7c14 100%);
  color: #000; display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: -0.04em;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3); }
.brand b { font-weight: 700; letter-spacing: -0.02em; }
.brand__sub { color: var(--hint); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.hd__nav { display: flex; gap: 24px; font-size: 12px; letter-spacing: 0.16em; }
.hd__nav a { color: var(--hint); text-transform: uppercase; transition: color 100ms; font-weight: 500; }
.hd__nav a:hover { color: var(--accent-2); }

/* Hero / welcome */
.welcome { position: relative; padding: 96px 32px 80px; overflow: hidden; isolation: isolate; min-height: 76vh;
  display: flex; align-items: center; }
.welcome__bg { position: absolute; inset: 0; z-index: -2; }
.welcome__bg__slide { position: absolute; inset: 0; background-position: center; background-size: cover;
  opacity: 0; transition: opacity 2200ms ease-in-out; transform: scale(1.08);
  animation: hero-drift 28s ease-in-out infinite alternate; filter: brightness(0.95) contrast(1.1) saturate(1.1); }
.welcome__bg__slide.on { opacity: 1; }
@keyframes hero-drift { from { transform: scale(1.08) translate(0,0); } to { transform: scale(1.1) translate(-2.5%, -1.5%); } }
.welcome__overlay { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,8,12,0.30) 0%, rgba(7,8,12,0.55) 50%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,8,12,0.5) 0%, transparent 60%); }

.welcome__inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }
.welcome__kicker { display: inline-block; padding: 6px 14px; background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.3); border-radius: 100px;
  color: var(--accent-2); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.welcome h1 { font-size: clamp(34px, 6.5vw, 72px); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 22px; font-weight: 700; }
.welcome h1 .accent { background: linear-gradient(135deg, #ffd97a 0%, var(--accent) 60%, #a07906 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome__lead { color: rgba(255,255,255,0.78); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.6; max-width: 680px; margin: 0 0 42px; font-weight: 400; }

/* Search bar — glassy luxury */
.searchbar { background: rgba(20, 22, 30, 0.62); backdrop-filter: blur(28px) saturate(160%); border: 1px solid var(--line-2); border-radius: 20px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 110px 120px auto; gap: 0; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06); }
.sb-field { padding: 16px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sb-field:last-of-type { border-right: none; }
.sb-field label { font-size: 10px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; }
.sb-field select, .sb-field input { background: transparent; border: none; padding: 0; font: inherit; color: var(--text); outline: none; font-size: 15px; width: 100%; }
.sb-field select option { background: #15171c; color: var(--text); }
.sb-field select:focus, .sb-field input:focus { color: var(--accent-2); }
.sb-go { background: linear-gradient(135deg, var(--accent) 0%, #9e7c14 100%); color: #000; border: none; padding: 0 40px; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: filter 100ms; }
.sb-go:hover { filter: brightness(1.15); }

.quick-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quick-row__label { font-size: 10px; color: rgba(255,255,255,0.55); margin-right: 4px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; }
.quick { background: rgba(255,255,255,0.07); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px;
  font-size: 13px; cursor: pointer; color: var(--text); transition: all 100ms; font-weight: 500; }
.quick:hover { background: rgba(212,175,55,0.18); border-color: var(--accent); transform: translateY(-1px); }

/* Wrap */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 50px 32px 120px; }
.loading { text-align: center; color: var(--hint); padding: 80px 0; font-size: 14px; }

/* Section header */
.section-h { margin: 32px 0 16px; display: flex; align-items: baseline; justify-content: space-between; }
.section-h h2 { font-size: 12px; margin: 0; color: var(--hint); text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600; }
.section-h .hint { color: var(--hint); font-size: 12px; letter-spacing: 0.04em; }

/* Package head */
.pack__head { background: var(--paper); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.pack__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.pack__meta { color: var(--hint); font-size: 13px; margin-top: 6px; }

/* Selectable rows */
.list { display: grid; gap: 12px; }
.li { background: var(--paper); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; cursor: pointer; transition: all 120ms; color: inherit; font: inherit; text-align: left; }
.li:hover { border-color: var(--line-2); transform: translateY(-2px); background: rgba(28, 30, 40, 0.85); }
.li.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 8px 32px rgba(212, 175, 55, 0.18); }
.li__icon { font-size: 24px; }
.li__name { font-weight: 600; font-size: 15px; }
.li__meta { font-size: 12px; color: var(--hint); margin-top: 4px; }
.li__price { font-size: 20px; font-weight: 700; color: var(--accent-2); font-feature-settings: "tnum"; }
.li__price small { font-size: 11px; color: var(--hint); font-weight: 400; display: block; }

/* Sticky total */
.total { position: sticky; bottom: 16px; background: rgba(20, 22, 30, 0.92); backdrop-filter: blur(24px); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; margin-top: 26px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.total__label { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; }
.total__val { font-size: 30px; font-weight: 700; color: var(--accent-2); font-feature-settings: "tnum"; }
.btn { background: linear-gradient(135deg, var(--accent) 0%, #9e7c14 100%); color: #000; border: none; padding: 14px 32px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; letter-spacing: 0.1em; transition: filter 100ms, transform 100ms; font-size: 13px; text-transform: uppercase; }
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Passenger form */
.pax-form { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 0 auto; }
.pax { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; background: var(--paper); backdrop-filter: blur(14px); }
.pax legend { font-weight: 700; padding: 0 10px; color: var(--accent-2); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.field input, .field select { background: rgba(11, 12, 16, 0.6); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font: inherit; color: var(--text); outline: none; transition: border-color 100ms; }
.field input:focus, .field select:focus { border-color: var(--accent); background: rgba(11, 12, 16, 0.85); }
.field input::placeholder { color: var(--hint); }

.addons { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.addon { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 100ms; }
.addon:hover { border-color: var(--line-2); }
.addon input { width: 18px; height: 18px; accent-color: var(--accent); }
.addon b { font-weight: 600; }
.addon__price { color: var(--accent-2); font-weight: 700; font-feature-settings: "tnum"; }

.nav-row { display: flex; justify-content: space-between; margin-top: 20px; }

/* Payment step */
.pay-step { max-width: 760px; margin: 0 auto; }
.pay-step__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.pay-step__ref { color: var(--hint); font-size: 13px; }
.pay-step__ref b { color: var(--accent-2); font-family: ui-monospace, monospace; }
.pay-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 26px 0; }
.pay-btn { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; text-align: left; cursor: pointer; font: inherit; color: var(--text); transition: all 100ms; }
.pay-btn:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(28, 30, 40, 0.85); }
.pay-btn__name { font-weight: 700; font-size: 17px; }
.pay-btn__sub { color: var(--hint); font-size: 12px; margin-top: 5px; }

/* Success */
.success { text-align: center; padding: 60px 22px; }
.success__check { width: 92px; height: 92px; background: linear-gradient(135deg, var(--positive) 0%, #2a9c70 100%); color: #000; border-radius: 50%; font-size: 48px; display: grid; place-items: center; margin: 0 auto 26px; box-shadow: 0 16px 48px rgba(74, 222, 128, 0.3); }
.success h2 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 10px; }
.success p { color: var(--hint); margin: 8px 0; max-width: 540px; margin: 8px auto; }
.success .btn { margin-top: 26px; padding: 16px 40px; display: inline-block; text-decoration: none; }

/* Footer */
.ft { background: rgba(7,8,12,0.7); border-top: 1px solid var(--line); padding: 28px 22px; text-align: center; font-size: 12px; color: var(--hint); letter-spacing: 0.08em; }
.ft a { color: var(--hint); }
.ft .dot { opacity: 0.5; padding: 0 10px; }

/* AI concierge — floating side panel */
.ai-toggle { position: fixed; right: 22px; bottom: 22px; z-index: 80; background: linear-gradient(135deg, var(--accent) 0%, #9e7c14 100%);
  color: #000; border: none; padding: 14px 22px; border-radius: 100px; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 36px rgba(212, 175, 55, 0.4); transition: transform 100ms; }
.ai-toggle:hover { transform: translateY(-2px); }
.ai-toggle__dot { width: 9px; height: 9px; border-radius: 50%; background: #1aff7a; box-shadow: 0 0 12px #1aff7a; animation: ai-pulse 1.8s ease-in-out infinite; }
@keyframes ai-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.ai-panel { position: fixed; right: 22px; bottom: 22px; width: 380px; max-width: calc(100vw - 32px); height: min(640px, calc(100vh - 44px)); z-index: 90;
  background: rgba(15, 17, 24, 0.92); backdrop-filter: blur(28px) saturate(160%); border: 1px solid var(--line-2); border-radius: 22px;
  display: flex; flex-direction: column; box-shadow: 0 32px 100px rgba(0,0,0,0.6); overflow: hidden; }
.ai-panel[hidden] { display: none; }
.ai-panel__h { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.ai-panel__name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: center; }
.ai-panel__badge { background: rgba(212,175,55,0.18); color: var(--accent-2); font-size: 9px; padding: 3px 8px; border-radius: 100px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.ai-panel__sub { color: var(--hint); font-size: 12px; margin-top: 4px; line-height: 1.45; }
.ai-panel__close { background: transparent; color: var(--hint); border: none; font-size: 26px; cursor: pointer; line-height: 1; padding: 0 4px; transition: color 100ms; }
.ai-panel__close:hover { color: var(--text); }

.ai-msgs { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ai-msgs::-webkit-scrollbar { width: 6px; }
.ai-msgs::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.ai-msg { max-width: 86%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.ai-msg--bot { background: rgba(255,255,255,0.06); align-self: flex-start; border-top-left-radius: 4px; }
.ai-msg--me { background: linear-gradient(135deg, var(--accent) 0%, #9e7c14 100%); color: #000; align-self: flex-end; border-top-right-radius: 4px; font-weight: 500; }
.ai-msg--bot a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.ai-typing { color: var(--hint); font-size: 13px; padding: 0 4px; font-style: italic; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; max-height: 196px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ai-chips::-webkit-scrollbar { width: 4px; }
.ai-chips::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.ai-chip { background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; font-size: 12px; cursor: pointer; color: var(--text); transition: all 100ms; white-space: nowrap; font-family: inherit; }
.ai-chip:hover { background: var(--accent-soft); border-color: var(--accent); }

.ai-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); background: rgba(7,8,12,0.6); }
.ai-input input { flex: 1; background: rgba(11,12,16,0.7); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; color: var(--text); outline: none; font-size: 14px; transition: border-color 100ms; }
.ai-input input:focus { border-color: var(--accent); }
.ai-input input::placeholder { color: var(--hint); }
.ai-send { background: linear-gradient(135deg, var(--accent) 0%, #9e7c14 100%); color: #000; border: none; width: 44px; border-radius: 12px; font-size: 22px; font-weight: 700; cursor: pointer; transition: filter 100ms; }
.ai-send:hover { filter: brightness(1.15); }
.ai-send:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 820px) {
  .ai-toggle { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 11px; }
  .ai-panel { right: 0; bottom: 0; width: 100%; max-width: 100%; height: 88vh; border-radius: 18px 18px 0 0; }
}

/* — — — — — — — — Mobile — — — — — — — — */
@media (max-width: 820px) {
  .welcome { padding: 50px 18px 40px; min-height: auto; }
  .welcome h1 { font-size: clamp(28px, 8vw, 42px); margin-bottom: 14px; }
  .welcome__lead { font-size: 14px; margin-bottom: 24px; }
  .welcome__kicker { font-size: 10px; padding: 5px 12px; margin-bottom: 16px; }

  .searchbar { display: flex; flex-direction: column; border-radius: 14px; }
  .sb-field { border-right: none; border-bottom: 1px solid var(--line); padding: 13px 16px; }
  .sb-field:last-of-type { border-bottom: none; }
  .sb-go { padding: 17px; font-size: 13px; border-radius: 0; }

  .hd { padding: 12px 16px; gap: 10px; }
  .hd__nav { gap: 14px; font-size: 10px; }
  .brand__sub { display: none; }

  .wrap { padding: 28px 16px 80px; }
  .pack__head { padding: 18px 20px; }
  .pack__title { font-size: 20px; }

  .li { grid-template-columns: auto 1fr; padding: 14px 16px; gap: 12px; }
  .li__price { grid-column: 1 / -1; font-size: 16px; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 4px; }
  .li__price small { display: inline; }

  .pay-row { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .total { padding: 16px 18px; }
  .total__val { font-size: 24px; }
}
