:root {
  --bg: #07101c;
  --bg-soft: #0b1625;
  --panel: rgba(15, 29, 46, .82);
  --panel-strong: #102238;
  --line: rgba(255,255,255,.10);
  --text: #f5f8fb;
  --muted: #9cacbd;
  --accent: #8cff7a;
  --accent-2: #35d7ff;
  --accent-3: #ffbe5c;
  --danger: #ff6e7e;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(53,215,255,.12), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(140,255,122,.10), transparent 24%),
    linear-gradient(180deg, #07101c 0%, #081421 46%, #07101c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { max-width: 100%; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 14px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(7,16,28,.82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark {
  display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px;
  color: #07101c; font-size: 13px; font-weight: 950; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(140,255,122,.08);
}
.desktop-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-weight: 650; font-size: 14px; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.04); cursor: pointer;
}
.badge {
  position: absolute; right: -3px; top: -4px; display: grid; place-items: center; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px; background: var(--danger); color: white; font-size: 10px; font-weight: 800;
}

main { min-height: calc(100vh - 68px); }
.page { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 48px 0 92px; }
.section { margin-top: 70px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-head h2, .page-title { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.section-head p, .page-subtitle { margin: 9px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: 46px; padding-top: 34px; }
.hero h1 { max-width: 740px; margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: .98; letter-spacing: -.06em; }
.gradient-text { color: transparent; background: linear-gradient(110deg, var(--accent) 10%, var(--accent-2) 85%); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 35px; color: var(--muted); font-size: 13px; }
.hero-proof strong { display: block; color: var(--text); font-size: 19px; }

.hero-visual { position: relative; min-height: 505px; }
.map-stage {
  position: absolute; inset: 24px 0 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 34px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 40% 35%, rgba(53,215,255,.14), transparent 30%), #0b1929;
  background-size: 36px 36px, 36px 36px, auto, auto;
  box-shadow: var(--shadow); transform: rotate(2deg);
}
.map-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(140,255,122,.05)); }
.route-line { position: absolute; inset: 40px; z-index: 2; width: calc(100% - 80px); height: calc(100% - 80px); }
.map-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 15px; background: rgba(7,16,28,.86); box-shadow: 0 10px 25px rgba(0,0,0,.24);
}
.map-chip strong { display: block; font-size: 13px; }
.map-chip span { color: var(--muted); font-size: 11px; }
.map-chip.one { top: 55px; left: -4px; }
.map-chip.two { right: -12px; bottom: 88px; }
.floating-card {
  position: absolute; left: 0; bottom: 0; z-index: 5; width: 270px; padding: 18px;
  border: 1px solid var(--line); border-radius: 23px; background: rgba(10,24,39,.94); box-shadow: var(--shadow);
}
.floating-card .pill { margin-bottom: 14px; }
.floating-card h3 { margin: 0 0 8px; }
.floating-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.floating-meta strong { color: var(--text); font-size: 14px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 14px; cursor: pointer; font-weight: 800; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #07101c; background: linear-gradient(135deg, var(--accent), #b7ff8a); box-shadow: 0 12px 30px rgba(140,255,122,.18); }
.button-secondary { background: rgba(53,215,255,.10); border-color: rgba(53,215,255,.22); color: #b9f3ff; }
.button-ghost { background: rgba(255,255,255,.04); border-color: var(--line); }
.button-danger { background: rgba(255,110,126,.12); border-color: rgba(255,110,126,.25); color: #ffc3cb; }
.button-small { min-height: 38px; padding: 0 13px; border-radius: 11px; font-size: 13px; }
.button-block { width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 12px; font-weight: 750; }
.pill-accent { color: #d8ffd1; border-color: rgba(140,255,122,.2); background: rgba(140,255,122,.10); }
.pill-blue { color: #c9f7ff; border-color: rgba(53,215,255,.22); background: rgba(53,215,255,.10); }
.pill-orange { color: #ffe0aa; border-color: rgba(255,190,92,.22); background: rgba(255,190,92,.10); }

.quick-search {
  display: grid; grid-template-columns: 1.2fr .8fr .8fr auto; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.035);
}
.field { display: grid; gap: 8px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 750; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 14px; color: var(--text); border: 1px solid var(--line); border-radius: 13px;
  outline: none; background: rgba(8,20,33,.8); transition: .2s ease;
}
.textarea { min-height: 120px; padding-top: 13px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(140,255,122,.52); box-shadow: 0 0 0 4px rgba(140,255,122,.08); }
.select option { background: #0d1b2c; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.help { color: var(--muted); font-size: 12px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.event-card, .route-card, .offer-card, .glass-card, .pricing-card, .stat-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 14px 40px rgba(0,0,0,.12);
}
.event-card, .route-card, .offer-card { overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.event-card:hover, .route-card:hover, .offer-card:hover { transform: translateY(-5px); border-color: rgba(140,255,122,.25); }
.event-cover, .route-cover { position: relative; min-height: 190px; overflow: hidden; background: #102035; }
.event-cover::before, .route-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(53,215,255,.25), transparent 30%), linear-gradient(135deg, rgba(140,255,122,.18), transparent 58%); }
.cover-grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; transform: rotate(-7deg) scale(1.2); }
.cover-route { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
.cover-top { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 2; display: flex; justify-content: space-between; gap: 10px; }
.cover-date { display: grid; place-items: center; width: 54px; min-height: 54px; border-radius: 16px; color: #07101c; background: var(--accent); font-weight: 900; line-height: 1; }
.cover-date small { font-size: 10px; margin-top: 2px; }
.card-body { padding: 18px; }
.card-body h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.card-body > p { color: var(--muted); font-size: 13px; margin: 9px 0 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card-actions { display: flex; gap: 9px; margin-top: 17px; }
.organizer { display: flex; align-items: center; gap: 9px; margin-top: 15px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; color: #07101c; background: linear-gradient(135deg, var(--accent-2), var(--accent)); font-size: 12px; font-weight: 900; }
.organizer small { display: block; color: var(--muted); }

.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.stat-card { padding: 19px; }
.stat-card strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.stat-card span { color: var(--muted); font-size: 12px; }

.category-row { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.category-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); cursor: pointer; transition: .2s ease; }
.category-card:hover { border-color: rgba(53,215,255,.26); background: rgba(53,215,255,.06); }
.category-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border-radius: 14px; color: #07101c; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900; }
.category-card strong { display: block; }
.category-card span { color: var(--muted); font-size: 12px; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.sticky-panel { position: sticky; top: 92px; }
.glass-card { padding: 22px; }
.glass-card + .glass-card { margin-top: 16px; }
.glass-card h3 { margin: 0 0 16px; }
.list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 10px; color: var(--muted); }
.list li::before { content: "✓"; color: var(--accent); font-weight: 900; }

.route-editor { position: relative; min-height: 480px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #0c1b2c; }
.route-editor svg { width: 100%; height: 480px; cursor: crosshair; touch-action: none; }
.route-editor-toolbar { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; pointer-events: none; }
.route-editor-toolbar > * { pointer-events: auto; }
.route-stats { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,16,28,.88); }
.route-stats span { padding: 5px 9px; color: var(--muted); font-size: 12px; }
.route-stats strong { color: var(--text); }

.stepper { display: flex; gap: 8px; margin: 24px 0; }
.step { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,.08); }
.step.active { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 11px; }
.checkbox-row input { margin-top: 4px; accent-color: var(--accent); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; margin-top: 30px; }
.pricing-card { position: relative; padding: 26px; }
.pricing-card.featured { border-color: rgba(140,255,122,.35); background: linear-gradient(180deg, rgba(140,255,122,.08), rgba(15,29,46,.92)); transform: translateY(-8px); }
.pricing-card h3 { margin: 0; font-size: 23px; }
.price { margin: 16px 0 22px; font-size: 44px; font-weight: 900; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.pricing-card .list { min-height: 260px; margin-bottom: 24px; }
.recommended { position: absolute; right: 20px; top: 20px; }

.offer-card { padding: 19px; }
.offer-visual { display: grid; place-items: center; height: 120px; margin-bottom: 16px; border-radius: 17px; color: #07101c; background: linear-gradient(135deg, #ffdc87, #8cff7a); font-size: 40px; font-weight: 950; }
.disclosure { margin-top: 14px; padding: 12px; border: 1px solid rgba(255,190,92,.18); border-radius: 13px; color: #e8c98f; background: rgba(255,190,92,.07); font-size: 11px; }

.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 26px; }
.profile-avatar { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; color: #07101c; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 26px; font-weight: 950; }
.profile-head h1 { margin: 0; font-size: 30px; }
.profile-head p { margin: 5px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 8px; margin: 26px 0 18px; overflow-x: auto; }
.tab { min-width: max-content; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; color: var(--muted); }
.tab.active { color: #07101c; border-color: transparent; background: var(--accent); font-weight: 850; }
.empty-state { padding: 48px 20px; text-align: center; border: 1px dashed rgba(255,255,255,.16); border-radius: 20px; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 18px; }

.notice { padding: 16px 18px; border: 1px solid rgba(53,215,255,.20); border-radius: 16px; color: #c5f6ff; background: rgba(53,215,255,.07); }
.notice.warning { border-color: rgba(255,190,92,.22); color: #ffe1ad; background: rgba(255,190,92,.07); }
.notice.success { border-color: rgba(140,255,122,.22); color: #d8ffd2; background: rgba(140,255,122,.07); }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(1,5,10,.72); backdrop-filter: blur(8px); }
.modal { position: fixed; z-index: 90; left: 50%; top: 50%; width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 40px); overflow: auto; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 25px; background: #0b1929; box-shadow: var(--shadow); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(11,25,41,.96); backdrop-filter: blur(16px); }
.modal-header h2 { margin: 0; font-size: 23px; }
.modal-body { padding: 22px; }
.close-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; }
.hidden { display: none !important; }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 110; display: grid; gap: 10px; width: min(360px, calc(100% - 40px)); }
.toast { padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: #11253a; box-shadow: var(--shadow); animation: toastIn .22s ease; }
.toast strong { display: block; margin-bottom: 2px; }
.toast span { color: var(--muted); font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

.skeleton { min-height: 240px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: loading 1.3s infinite; }
@keyframes loading { to { background-position: -200% 0; } }

.footer { margin-top: 80px; padding: 28px 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer a:hover { color: var(--text); }

.mobile-nav { display: none; }

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; max-width: 650px; width: 100%; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stats-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split-layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card .list { min-height: 0; }
}

@media (max-width: 700px) {
  body { padding-bottom: 74px; }
  .topbar { padding: 11px 16px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-actions .button { display: none; }
  .page { width: min(100% - 28px, var(--max)); padding-top: 30px; }
  .hero h1 { font-size: clamp(43px, 14vw, 62px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions .button { flex: 1; }
  .hero-proof { gap: 16px; }
  .hero-visual { min-height: 370px; }
  .map-stage { inset: 12px 0 0 8px; }
  .floating-card { width: 240px; }
  .map-chip.two { right: -5px; bottom: 55px; }
  .quick-search { grid-template-columns: 1fr; }
  .quick-search .button { width: 100%; }
  .card-grid, .category-row, .stats-row { grid-template-columns: 1fr; }
  .section { margin-top: 50px; }
  .section-head { align-items: start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-head > .button { grid-column: 1 / -1; }
  .mobile-nav {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
    min-height: 62px; padding: 7px; border: 1px solid var(--line); border-radius: 20px; background: rgba(9,21,35,.94); backdrop-filter: blur(18px); box-shadow: var(--shadow);
  }
  .mobile-nav a { display: grid; place-items: center; gap: 1px; color: var(--muted); font-size: 9px; }
  .mobile-nav a span { font-size: 20px; }
  .mobile-nav .mobile-create { align-self: center; justify-self: center; width: 48px; height: 48px; margin-top: -26px; border-radius: 16px; color: #07101c; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 30px rgba(140,255,122,.24); }
  .footer { flex-direction: column; }
}
