/* VYRAX Travel Intelligence — design system */
:root {
  --bg: #060c19; --bg2: #0a1222; --panel: #0d1a2f; --panel2: #112240; --panel3: #16294b; --line: #1a2c4b; --line2: #223a63;
  --text: #e9eefb; --muted: #93a6c8; --dim: #62779c;
  --blue: #2f6bff; --blue2: #1d4ed8; --blue-soft: rgba(47,107,255,.16);
  --green: #22c55e; --green-soft: rgba(34,197,94,.16); --yellow: #f5b70a; --orange: #f97316; --orange-soft: rgba(249,115,22,.18);
  --red: #ef4444; --red-soft: rgba(239,68,68,.16); --purple: #8b5cf6; --slate: #64748b;
  --shadow: 0 10px 30px rgba(0,0,0,.35); --radius: 12px; --side: 208px;
  --map-bg: #050b17;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eaf0fa; --bg2: #f3f6fc; --panel: #ffffff; --panel2: #f4f7fd; --panel3: #e8eefa; --line: #dbe4f3; --line2: #c5d3ea;
  --text: #0f1b33; --muted: #4c6083; --dim: #7086aa; --blue-soft: rgba(47,107,255,.12); --green-soft: rgba(34,197,94,.14); --orange-soft: rgba(249,115,22,.14); --red-soft: rgba(239,68,68,.12);
  --shadow: 0 10px 30px rgba(31,53,99,.12); --map-bg: #dfe8f5; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 13px/1.45 Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }
svg.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--bg2), var(--bg)); border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; z-index: 40; }
.brand { padding: 4px 10px 18px; }
.brand .logo { font-weight: 800; font-size: 26px; letter-spacing: .18em; background: linear-gradient(90deg, #5b8cff, #a5c1ff 60%, #7aa2ff); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.brand .sub { font-size: 8.5px; letter-spacing: .32em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; margin: 1px 0; transition: background .15s, color .15s; position: relative; }
.nav a .ic { font-size: 16px; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, var(--blue), #2453d6); color: #fff; box-shadow: 0 6px 16px rgba(47,107,255,.35); }
.nav .sep { height: 1px; background: var(--line); margin: 9px 6px; }
.nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.side-foot { margin-top: auto; padding: 10px; font-size: 10.5px; color: var(--dim); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.burger { display: none; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; width: 38px; height: 38px; align-items: center; justify-content: center; font-size: 18px; }
.searchbox { position: relative; flex: 1; max-width: 640px; }
.searchbox input { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 36px; outline: none; }
.searchbox input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.searchbox .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--text); position: relative; }
.chip-btn:hover { border-color: var(--line2); background: var(--panel2); }
.chip-btn .ic { font-size: 15px; }
.bell-badge { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; padding: 1px 6px; min-width: 18px; text-align: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #8b5cf6); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.acct { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 5px; }
.acct .who { line-height: 1.15; text-align: left; } .acct .who b { display: block; font-size: 12px; } .acct .who span { font-size: 10px; color: var(--muted); }
.content { padding: 16px 18px 40px; }
.page-title { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; flex-wrap: wrap; }
.page-title h1 { font-size: 20px; margin: 0; letter-spacing: .01em; }
.page-title .sub { color: var(--muted); }
.page-title .grow { flex: 1; }

/* ---------- Cards / primitives ---------- */
.card { background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 92%, #000)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.card h2, .card .h { font-size: 13px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.card .h .more { margin-left: auto; font-weight: 500; font-size: 11px; color: var(--blue); cursor: pointer; }
.card .h .more:hover { text-decoration: underline; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .green { color: var(--green); } .red { color: var(--red); } .orange { color: var(--orange); } .blue { color: #6b97ff; } .yellow { color: var(--yellow); }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; } .mono { font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 14px; font-weight: 600; transition: filter .15s, background .15s; }
.btn:hover { background: var(--panel3); }
.btn.primary { background: linear-gradient(180deg, #3b78ff, #2453d6); border-color: #3a70f5; color: #fff; box-shadow: 0 6px 18px rgba(47,107,255,.32); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; } .btn.danger { color: var(--red); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.input, .select { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: none; width: 100%; min-width: 0; }
.input:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
:root[data-theme="light"] .input, :root[data-theme="light"] .select { background: #fff; }
label.f { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { background: transparent; border: 0; padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; display: inline-flex; gap: 8px; align-items: center; }
.tabs button.active { color: #fff; border-bottom-color: var(--blue); }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { background: transparent; border: 0; padding: 5px 11px; border-radius: 7px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.seg button.active { background: var(--blue); color: #fff; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; color: #fff; }
.pill.previsto { background: #1e3a8a; } .pill.em_voo, .pill.aproximacao, .pill.embarque { background: #1d5fd0; } .pill.pousado { background: #0f7a45; } .pill.decolou { background: #0e7490; }
.pill.atrasado { background: #c2410c; } .pill.cancelado { background: #b91c1c; } .pill.desviado { background: #7e22ce; } .pill.taxiando { background: #4f46e5; }
:root[data-theme="light"] .pill { color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.badge.green { background: var(--green-soft); color: #4ade80; border: 1px solid rgba(34,197,94,.35); } .badge.orange { background: var(--orange-soft); color: #fb923c; border: 1px solid rgba(249,115,22,.4); }
.badge.blue { background: var(--blue-soft); color: #7aa2ff; border: 1px solid rgba(47,107,255,.4); } .badge.red { background: var(--red-soft); color: #f87171; border: 1px solid rgba(239,68,68,.4); } .badge.gray { background: rgba(100,116,139,.18); color: var(--muted); border: 1px solid var(--line2); }
:root[data-theme="light"] .badge.green { color: #15803d; } :root[data-theme="light"] .badge.orange { color: #c2410c; } :root[data-theme="light"] .badge.blue { color: #1d4ed8; } :root[data-theme="light"] .badge.red { color: #b91c1c; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--slate); }
.dot.normal { background: var(--green); } .dot.moderado { background: var(--yellow); } .dot.muitos { background: var(--red); } .dot.restrito { background: #7f8cab; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; font-weight: 600; color: var(--dim); font-size: 10.5px; padding: 4px 8px 7px; white-space: nowrap; }
.tbl td { padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: color-mix(in srgb, var(--panel3) 60%, transparent); }
.tbl.big { font-size: 13px; } .tbl.big td { padding: 10px 10px; }
.scroll-x { overflow-x: auto; }
.empty { padding: 26px 10px; text-align: center; color: var(--muted); }
.skel { background: linear-gradient(90deg, var(--panel2), var(--panel3), var(--panel2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; min-height: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line2); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 40px; }
.src-tag { font-size: 9.5px; padding: 2px 7px; border-radius: 6px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.src-tag.live { background: var(--green-soft); color: #4ade80; } .src-tag.sim { background: rgba(245,183,10,.15); color: #fbbf24; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 12px; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; gap: 9px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.kpi .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 19px; flex: none; }
.kpi .lbl { font-size: 10.5px; color: var(--muted); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kpi .val { font-size: 19px; font-weight: 800; letter-spacing: .01em; line-height: 1.15; display: flex; align-items: baseline; gap: 6px; }
.kpi .val small { font-size: 10.5px; font-weight: 700; }
.kpi .sub { font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.promo { background: linear-gradient(135deg, #ff4d5e, #e11d48); border-color: transparent; }
.kpi.promo .lbl, .kpi.promo .sub { color: rgba(255,255,255,.85); } .kpi.promo .ico { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.dash .left { display: grid; gap: 12px; min-width: 0; }
.dash .side { display: grid; gap: 12px; min-width: 0; align-content: start; }
.tables3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.map-card { padding: 0; overflow: hidden; position: relative; }
.map-wrap { position: relative; height: 430px; background: var(--map-bg); }
.map-wrap.tall { height: calc(100vh - 210px); min-height: 460px; }
#map, .map-el { position: absolute; inset: 0; background: var(--map-bg); }
.map-tabs { position: absolute; top: 10px; left: 10px; z-index: 500; display: flex; background: rgba(9,16,31,.85); border: 1px solid var(--line2); border-radius: 9px; padding: 2px; backdrop-filter: blur(6px); }
.map-tabs button { background: transparent; border: 0; padding: 6px 13px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 12px; }
.map-tabs button.active { background: var(--blue); color: #fff; }
.map-ctl { position: absolute; top: 10px; right: 10px; z-index: 500; display: grid; gap: 6px; }
.map-ctl button { width: 34px; height: 34px; border-radius: 9px; background: rgba(9,16,31,.88); border: 1px solid var(--line2); color: #fff; display: grid; place-items: center; font-size: 17px; backdrop-filter: blur(6px); }
.map-ctl button:hover { background: var(--blue); }
.map-badge { position: absolute; left: 10px; bottom: 10px; z-index: 500; display: flex; gap: 8px; align-items: center; background: rgba(9,16,31,.85); border: 1px solid var(--line2); border-radius: 9px; padding: 5px 10px; font-size: 11px; color: var(--muted); }
.plane-tip { position: absolute; z-index: 520; pointer-events: none; background: rgba(10,18,36,.96); border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; font-size: 11px; min-width: 150px; box-shadow: var(--shadow); color: #e9eefb; transform: translate(14px, -50%); }
.plane-tip b { font-size: 13px; display: block; } .plane-tip .r { display: flex; justify-content: space-between; gap: 12px; color: #93a6c8; } .plane-tip .r span:last-child { color: #e9eefb; }
.leaflet-container { background: var(--map-bg); font: inherit; }
.leaflet-control-attribution { background: rgba(9,16,31,.7) !important; color: #7b8fb3 !important; font-size: 9px !important; } .leaflet-control-attribution a { color: #93a6c8 !important; }
.legend-map { display: flex; gap: 12px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.legend-map i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }

/* flight card */
.fcard { padding: 0; overflow: hidden; }
.fcard .top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.fcard .logo-sq { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #ef4444, #f97316); display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; }
.fcard .fno { font-size: 20px; font-weight: 800; line-height: 1.05; } .fcard .fair { font-size: 11px; color: var(--muted); }
.fcard .plane-img { margin: 8px 0 0; height: 108px; background: radial-gradient(120% 120% at 70% 30%, #1c3a72, #0a1424); display: grid; place-items: center; overflow: hidden; position: relative; }
.fcard .plane-img img { width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.fcard .plane-img svg { width: 80%; opacity: .9; }
.fcard .route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 12px 14px 4px; }
.fcard .route .code { font-size: 23px; font-weight: 800; letter-spacing: .02em; } .fcard .route .city { font-size: 11px; color: var(--muted); }
.fcard .route .r { text-align: right; }
.fcard .times { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 14px; }
.fcard .times .t { font-size: 15px; font-weight: 700; color: #6b97ff; } .fcard .times .t.g { color: #4ade80; }
.fcard .times .lbl { display: block; font-size: 10px; color: var(--dim); font-weight: 500; }
.progress { position: relative; height: 3px; background: var(--line2); border-radius: 3px; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: 3px; }
.progress b { position: absolute; top: 50%; transform: translate(-50%, -50%) rotate(90deg); color: #4ade80; font-size: 14px; }
.fcard .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 14px; font-size: 11px; }
.fcard .facts span { color: var(--dim); display: block; font-size: 10px; } .fcard .facts b { font-weight: 700; font-size: 12px; }
.fcard .acinfo { margin: 0 14px 10px; padding: 9px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; font-size: 11px; }
.fcard .acinfo .sp { flex: 1; } .fcard .acinfo span { color: var(--dim); font-size: 10px; display: block; }
.status-chip { margin-left: auto; padding: 3px 10px; font-size: 10.5px; font-weight: 800; border-radius: 6px; background: #15803d; color: #fff; letter-spacing: .04em; }
.fcard .btn { margin: 0 14px 14px; width: calc(100% - 28px); }

/* world status */
.world { position: relative; }
.world svg { width: 100%; height: auto; display: block; }
.world svg path { fill: #22314f; stroke: rgba(255,255,255,.05); stroke-width: .5; }
:root[data-theme="light"] .world svg path { fill: #c9d6ec; }
.world svg path.normal { fill: #20a95a; } .world svg path.moderado { fill: #d9a20b; } .world svg path.muitos { fill: #dc3b3b; } .world svg path.restrito { fill: #7f8cab; }
.world-legend { display: grid; gap: 6px; margin-top: 8px; font-size: 11px; }
.world-legend div { display: flex; align-items: center; gap: 8px; } .world-legend b { margin-left: auto; }

/* search panel */
.search-panel { border: 1px solid #3c2f86; background: linear-gradient(180deg, rgba(43,33,102,.35), var(--panel) 40%); box-shadow: 0 0 0 1px rgba(139,92,246,.15), 0 18px 40px rgba(76,29,149,.18); }
.sform { display: grid; grid-template-columns: 1.15fr auto 1.15fr .9fr .9fr 1.15fr auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.sform .fld { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; position: relative; min-width: 0; }
.sform .fld:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.sform .fld label { display: block; font-size: 9.5px; color: var(--dim); }
.sform .fld input, .sform .fld select { background: transparent; border: 0; outline: none; width: 100%; padding: 2px 0; font-size: 13px; font-weight: 600; color-scheme: dark; }
:root[data-theme="light"] .sform .fld input { color-scheme: light; }
.sform .swap { width: 34px; height: 34px; align-self: center; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel2); display: grid; place-items: center; }
.sform .go { height: 100%; min-height: 46px; padding: 0 22px; font-size: 14px; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); max-height: 320px; overflow: auto; min-width: 260px; }
.ac-list button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 8px 12px; background: transparent; border: 0; align-items: center; }
.ac-list button:hover, .ac-list button.sel { background: var(--panel3); }
.ac-list .code { font-weight: 800; width: 34px; color: #6b97ff; } .ac-list small { color: var(--dim); display: block; }
.opps { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; }
.opp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dest-card { border-radius: 11px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; transition: transform .15s, border-color .15s; display: block; }
.dest-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.dest-card.active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.dest-card .ph { height: 84px; background-size: cover; background-position: center; background-color: var(--panel3); }
.dest-card .bd { padding: 8px 9px 9px; }
.dest-card .nm { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dest-card .ct { font-size: 10.5px; color: var(--muted); }
.dest-card .pr { display: flex; justify-content: space-between; align-items: baseline; margin-top: 5px; gap: 4px; } .dest-card .pr b { font-size: 14px; white-space: nowrap; } .dest-card .pr span { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.dest-card .badge { margin-top: 6px; font-size: 9.5px; }
.dest-card.big .ph { height: 130px; } .dest-card.big .pr b { font-size: 18px; }
.chart-wrap { position: relative; } .chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-tip { position: absolute; pointer-events: none; background: #0a1224; border: 1px solid var(--line2); padding: 5px 8px; border-radius: 7px; font-size: 11px; transform: translate(-50%, -120%); white-space: nowrap; z-index: 5; color: #e9eefb; }
.chart-legend { display: flex; gap: 14px; justify-content: center; font-size: 10.5px; color: var(--muted); margin-top: 4px; } .chart-legend i { display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 6px; background: #4f8bff; } .chart-legend i.d { background: repeating-linear-gradient(90deg, #7f8cab 0 4px, transparent 4px 7px); }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .cal-head b { font-size: 12.5px; }
.cal-nav { display: flex; gap: 6px; } .cal-nav button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel2); display: grid; place-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal .dow { text-align: center; font-size: 9.5px; color: var(--dim); font-weight: 700; padding-bottom: 2px; }
.cal .c { min-width: 0; overflow: hidden; min-height: 42px; border-radius: 7px; background: var(--bg2); border: 1px solid transparent; padding: 3px 4px; font-size: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; cursor: pointer; position: relative; }
.cal .c.empty { background: transparent; cursor: default; } .cal .c.past { opacity: .35; cursor: default; }
.cal .c b { font-size: 11.5px; color: var(--text); } .cal .c span { font-size: 9.5px; font-weight: 700; }
.cal .c.low span { color: #4ade80; } .cal .c.high span { color: #f87171; } .cal .c.mid span { color: #e9eefb; }
.cal .c.low { background: var(--green-soft); } .cal .c.high { background: rgba(239,68,68,.1); }
.cal .c.fire { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); } .cal .c.fire::after { content: "🔥"; position: absolute; top: -5px; right: -3px; font-size: 10px; }
.cal .c:not(.empty):not(.past):hover { border-color: var(--blue); }
.cal .c.sel { border-color: var(--blue); background: var(--blue-soft); }

/* offers */
.offer { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.offer + .offer { margin-top: 10px; }
.offer .legs { display: grid; gap: 10px; min-width: 0; }
.leg { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; }
.leg .al { font-size: 11px; color: var(--muted); } .leg .al b { display: block; color: var(--text); font-size: 12px; }
.leg .tl { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; } .leg .tl .t { font-size: 17px; font-weight: 800; } .leg .tl small { color: var(--muted); font-size: 10.5px; display: block; font-weight: 500; }
.leg .line { height: 2px; background: var(--line2); position: relative; border-radius: 2px; } .leg .line .stops { position: absolute; inset: -3px 0; display: flex; justify-content: space-evenly; } .leg .line .stops i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid var(--panel); }
.leg .dur { text-align: right; font-size: 11px; color: var(--muted); }
.lay { font-size: 11px; padding: 3px 9px; border-radius: 6px; display: inline-block; margin: 2px 4px 2px 0; } .lay.tight { background: var(--orange-soft); color: #fb923c; } .lay.ok { background: var(--blue-soft); color: #7aa2ff; } .lay.comfortable { background: var(--green-soft); color: #4ade80; }
.offer .buy { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; justify-content: center; min-width: 170px; border-left: 1px solid var(--line); padding-left: 14px; }
.offer .buy .price { font-size: 24px; font-weight: 800; } .offer .buy small { color: var(--muted); font-size: 10.5px; }
.score-bar { width: 100%; height: 5px; background: var(--line2); border-radius: 5px; overflow: hidden; } .score-bar i { display: block; height: 100%; background: linear-gradient(90deg, #64748b, #22c55e, #f97316, #ef4444); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kv > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; } .kv span { display: block; font-size: 10.5px; color: var(--dim); } .kv b { font-size: 16px; }
.hero { border-radius: 14px; overflow: hidden; position: relative; min-height: 190px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,25,.92), rgba(6,12,25,.35)); } .hero > div { position: relative; padding: 22px; color: #fff; }
.hero h1 { margin: 0 0 6px; font-size: 26px; }
.month-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end; height: 110px; }
.month-bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 9.5px; color: var(--muted); }
.month-bars i { width: 100%; border-radius: 5px 5px 2px 2px; min-height: 8px; background: #3b5fb7; } .month-bars .low i { background: #22c55e; } .month-bars .high i { background: #ef4444; }

/* modal / dropdown / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(2,6,16,.7); z-index: 100; display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; width: min(440px, 100%); padding: 22px; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; }
.modal h3 { margin: 0 0 4px; font-size: 18px; } .modal .close { float: right; background: transparent; border: 0; color: var(--muted); font-size: 20px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); min-width: 240px; overflow: hidden; }
.dropdown a, .dropdown button.it { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 14px; background: transparent; border: 0; color: var(--text); } .dropdown a:hover, .dropdown button.it:hover { background: var(--panel3); }
.notif { padding: 10px 14px; border-top: 1px solid var(--line); display: block; } .notif:first-child { border-top: 0; } .notif b { display: block; font-size: 12px; } .notif span { color: var(--muted); font-size: 11px; } .notif.unread { background: var(--blue-soft); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--panel3); border: 1px solid var(--line2); border-left: 4px solid var(--blue); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); max-width: 340px; animation: tin .25s; } .toast.err { border-left-color: var(--red); } .toast.ok { border-left-color: var(--green); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.pop { position: absolute; z-index: 70; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); min-width: 240px; top: calc(100% + 6px); right: 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .stepper .ctl { display: flex; align-items: center; gap: 10px; } .stepper button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); }
.note { font-size: 11px; color: var(--muted); background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.metar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.metar-grid > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .metar-grid span { font-size: 10px; color: var(--dim); display: block; } .metar-grid b { font-size: 15px; }
.fav-btn.on { color: var(--yellow); border-color: rgba(245,183,10,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) { .dash { grid-template-columns: minmax(0, 1fr); } .dash .side { grid-template-columns: 1fr 1fr; } .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .tables3 { grid-template-columns: 1fr; } .opps { grid-template-columns: 1fr; } .sform { grid-template-columns: 1fr 1fr; } .sform .swap { display: none; } .sform .go { grid-column: 1 / -1; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; } .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow); } body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; } .burger { display: inline-flex; }
  .acct .who { display: none; } .content { padding: 12px 12px 36px; } .dash .side { grid-template-columns: 1fr; } .opp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer { grid-template-columns: 1fr; } .offer .buy { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; align-items: stretch; text-align: left; } .leg { grid-template-columns: 1fr; gap: 6px; } .leg .dur { text-align: left; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .map-wrap { height: 340px; } #langchip, #themebtn span { display: none; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sform { grid-template-columns: 1fr; } .kpi .val { font-size: 17px; } .card { padding: 12px; } }

img.flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; vertical-align: -2px; margin-right: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.tile-screen { mix-blend-mode: screen; }
.cont-label { color: rgba(190,210,245,.55); font-size: 11px; font-weight: 700; letter-spacing: .28em; white-space: nowrap; transform: translate(-50%, -50%); text-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none; }
.cont-label.ocean { font-weight: 500; font-style: italic; letter-spacing: .12em; font-size: 10px; color: rgba(140,170,230,.5); }
:root[data-theme="light"] .cont-label { color: rgba(40,60,100,.55); text-shadow: none; }
.card .h { white-space: nowrap; } .card .h > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.fcard .plane-img img { position: absolute; inset: 0; }
.card .h .ico-o { color: var(--orange); }
.tables3 .card { overflow-x: auto; }
.tables3 .tbl td, .tables3 .tbl th { padding-left: 5px; padding-right: 5px; }
.tables3 .pill { font-size: 9.5px; padding: 3px 7px; }
