/* GENERAT din ../hero/hero-stage.css de build-stage.js (nu edita manual, rulează scriptul)
 * MAP
 * §1 fereastra + cursor         L10-L46
 * §2 elemente comune            L47-L70
 * §3 scena Find (form + hartă)  L71-L118
 * §4 scena List (tabel)         L119-L144
 * §5 scena Know (raport)        L145-L171
 * §6 scena Contact (mesaj)      L172-L202
 */

/* §1 fereastra + cursor */
.pt-hero .stage {
  position: absolute; left: 0; top: 0; width: 720px; height: 540px; transform-origin: 0 0;
  font-size: 12px; color: var(--text); line-height: 1.35;
}
.pt-hero .win {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  background: var(--bg); border: 1.5px solid var(--border-strong);
}
.pt-hero .appbar {
  height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 0 0 12px;
  background: #151c27; border-bottom: 1.5px solid var(--border); user-select: none;
}
.pt-hero .appbar .logo-sq { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 11px; color: #1a335b; }
.pt-hero .appbar .appname { font-weight: 800; font-size: 12px; letter-spacing: -.01em; margin-right: 6px; }
.pt-hero .appbar .tabs { display: flex; gap: 2px; height: 100%; align-items: stretch; }
.pt-hero .appbar .tab { display: flex; align-items: center; gap: 6px; padding: 0 11px; font-size: 11px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.pt-hero .appbar .tab.on { color: var(--text); border-bottom-color: var(--accent); background: rgba(245, 138, 46, .07); }
.pt-hero .appbar .live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-2); padding: 0 10px; height: 22px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); }
.pt-hero .appbar .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); animation: pt-pulse 1s ease-in-out infinite; }
@keyframes pt-pulse { 50% { opacity: .4; } }
.pt-hero .appbar .wc { display: flex; height: 100%; margin-left: 6px; }
.pt-hero .appbar .wc span { width: 38px; display: grid; place-items: center; color: var(--text-3); }
.pt-hero .appbar .wc svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.3; fill: none; }
.pt-hero .body { position: absolute; top: 36px; left: 0; right: 0; bottom: 0; }
.pt-hero .cursor {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 50; pointer-events: none;
  transform: translate(600px, 430px); transition-property: transform; transition-timing-function: cubic-bezier(.45, .05, .25, 1);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
.pt-hero .cursor svg { position: relative; z-index: 1; display: block; }
.pt-hero .cursor::after {
  content: ""; position: absolute; left: -4px; top: -4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: scale(.3);
}
.pt-hero .cursor.down::after { animation: ripple .25s ease-out; }
@keyframes ripple { 0% { opacity: .55; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.2); } }

/* §2 elemente comune */
.pt-hero .scene {
  position: absolute; inset: 0; padding: 14px; opacity: 0; transform: translateY(16px) scale(.985);
  transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.pt-hero .scene.on { opacity: 1; transform: none; }
.pt-hero .card { padding: 0; margin: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; }
.pt-hero .lbl { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.pt-hero .pressed { transform: scale(.96) !important; filter: brightness(.95); }
.pt-hero .caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pt-hero .pill {
  border: 0; background: transparent; gap: 0;
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px;
  font-size: 10.5px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.pt-hero .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pt-hero .spin {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent);
  animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.pt-hero .pop { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: none; } }

/* §3 scena Find (form + hartă) */
.pt-hero #sFind { display: grid; grid-template-columns: 286px 1fr; gap: 12px; }
.pt-hero .form { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pt-hero .form h4 { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--navy); }
.pt-hero .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.pt-hero .seg span { text-align: center; padding: 6px 0; border-radius: 6px; font-weight: 600; font-size: 11px; color: var(--text-2); transition: all .25s; }
.pt-hero .seg span.on { background: var(--navy); color: var(--surface); }
.pt-hero .input {
  height: 32px; border-radius: 8px; padding: 0 10px; display: flex; align-items: center; font-size: 12.5px;
  background: var(--surface-2); border: 1.5px solid var(--border); transition: border-color .2s;
}
.pt-hero .input.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pt-hero .coords { font-family: ui-monospace, Consolas, monospace; font-size: 9.5px; color: var(--text-3); min-height: 12px; }
.pt-hero .row { display: flex; justify-content: space-between; align-items: center; }
.pt-hero .row b { font-size: 12px; }
.pt-hero .slider { position: relative; height: 18px; }
.pt-hero .slider::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; border-radius: 3px; background: var(--border); }
.pt-hero .slider .fill { position: absolute; left: 0; top: 8px; height: 3px; border-radius: 3px; background: var(--navy); width: var(--p, 4%); transition: width .45s ease; }
.pt-hero .slider .knob {
  position: absolute; top: 2px; left: var(--p, 4%); width: 15px; height: 15px; margin-left: -7px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: left .45s ease;
}
.pt-hero .check { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; }
.pt-hero .check i { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; transition: all .2s; }
.pt-hero .check.on i { background: var(--navy); border-color: var(--navy); }
.pt-hero .check.on i::after { content: ""; width: 7px; height: 4px; border: solid var(--surface); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.pt-hero .check em { color: var(--text-3); font-style: normal; }
.pt-hero .find {
  margin-top: auto; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; transition: transform .15s;
}
.pt-hero .find .spin { border-color: rgba(255,255,255,.4); border-top-color: var(--on-accent); }
.pt-hero .mapcol { display: grid; grid-template-rows: 1fr 104px; gap: 12px; min-height: 0; }
.pt-hero .map { overflow: hidden; padding: 6px; }
.pt-hero .map svg { width: 100%; height: 100%; display: block; border-radius: 8px; }
.pt-hero .radius { transition: r .45s ease, opacity .4s; }
.pt-hero .cityshape { transition: opacity .5s; }
.pt-hero .scanring { transform-origin: 0 0; }
.pt-hero .scanning .scanring { animation: scan .6s ease-out infinite; }
@keyframes scan { 0% { transform: scale(.2); opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }
.pt-hero .pin { transform-box: fill-box; transform-origin: center; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.pt-hero .marker { transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.pt-hero .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-hero .stat { padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.pt-hero .stat strong { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.pt-hero .stat.green strong { color: var(--ok); }
.pt-hero .stat small { font-size: 10px; color: var(--text-3); }

/* §4 scena List (tabel) */
.pt-hero #sList { display: flex; flex-direction: column; gap: 10px; }
.pt-hero .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pt-hero .kpi { padding: 9px 12px; }
.pt-hero .kpi strong { display: block; font-size: 19px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.pt-hero .kpi:nth-child(2) strong { color: var(--ok); } .pt-hero .kpi:nth-child(3) strong { color: var(--accent); }
.pt-hero .tools { display: flex; gap: 6px; align-items: center; }
.pt-hero .tools .s { flex: 0 0 150px; height: 28px; border-radius: 14px; padding: 0 12px; display: flex; align-items: center; color: var(--text-3); background: var(--surface); border: 1.5px solid var(--border); }
.pt-hero .tools span:not(.s) { height: 26px; padding: 0 10px; border-radius: 13px; display: flex; align-items: center; font-weight: 600; font-size: 11px; background: var(--surface); border: 1px solid var(--border); }
.pt-hero .tools span.all { background: var(--navy); color: var(--surface); border-color: var(--navy); }
.pt-hero .table { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--border); background: var(--surface); }
.pt-hero .tr { display: grid; grid-template-columns: 14px 1.55fr 1.05fr 1.45fr .85fr 68px; gap: 10px; align-items: center; height: 34px; padding: 0 12px; }
.pt-hero .th span { color: inherit; }
.pt-hero .th { background: var(--accent); color: var(--on-accent); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; height: 30px; }
.pt-hero .tbody { flex: 1; overflow: hidden; position: relative; }
.pt-hero .rows { transition: transform 1.1s cubic-bezier(.4, 0, .2, 1); }
.pt-hero .rows .tr { border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s, background .3s; }
.pt-hero .rows .tr:nth-child(even) { background: var(--surface-2); }
.pt-hero .rows .tr.in { opacity: 1; transform: none; }
.pt-hero .rows .tr.pick { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.pt-hero .tr b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-hero .tr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.pt-hero .tr .cb { width: 12px; height: 12px; border: 1.5px solid var(--border-strong); border-radius: 3px; }
.pt-hero .tr .vd { justify-self: end; font-size: 10px; font-weight: 600; color: var(--text); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); transition: transform .15s; }
.pt-hero .tr.pick .vd { border-color: var(--accent); color: var(--accent); }

/* §5 scena Know (raport) */
.pt-hero #sKnow { display: flex; flex-direction: column; gap: 10px; }
.pt-hero .khead { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.pt-hero .avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--navy); color: var(--surface); }
.pt-hero .khead h3 { margin: 0; font-size: 15px; font-weight: 800; }
.pt-hero .khead p { margin: 2px 0 0; color: var(--text-2); font-size: 11px; }
.pt-hero .cbtn { margin-left: auto; height: 32px; padding: 0 14px; border-radius: 8px; display: flex; align-items: center; gap: 6px; font-weight: 700; background: var(--accent); color: var(--on-accent); transition: transform .15s; }
.pt-hero .kbody { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.pt-hero .chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex-shrink: 0; }
.pt-hero .chip { display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; border-radius: 9px; background: var(--surface); border: 1.5px solid var(--border); font-weight: 600; font-size: 11px; }
.pt-hero .chip .pill { align-self: flex-start; height: 17px; font-size: 9.5px; padding: 0 6px; background: var(--surface-2); }
.pt-hero .chip .pill.ok { background: var(--ok-soft); }
.pt-hero .chip .pill.wait { color: transparent; width: 52px; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)) 0 0 / 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pt-hero .about-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; flex-shrink: 0; }
.pt-hero .about-h::after { content: ""; flex: 1; height: 1.5px; background: var(--border); }
.pt-hero .fields { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 6px; }
.pt-hero .f { padding: 7px 10px; border-radius: 9px; background: var(--surface); border: 1.5px solid var(--border); opacity: .35; transition: opacity .3s, border-color .3s, box-shadow .3s; }
.pt-hero .f.in { opacity: 1; }
.pt-hero .f .lbl { display: flex; gap: 6px; align-items: center; font-size: 9.5px; }
.pt-hero .f .v { margin-top: 3px; font-size: 11.5px; min-height: 15px; color: var(--text); }
.pt-hero .f.key { grid-column: span 2; background: var(--accent-soft); border-color: var(--accent); }
.pt-hero .f.key .lbl { color: var(--accent); }
.pt-hero .f.key .lbl::after { content: "KEY INSIGHT"; margin-left: auto; font-size: 9px; padding: 2px 6px; border-radius: 5px; background: var(--accent); color: var(--on-accent); letter-spacing: .06em; }
.pt-hero .f.key .v { font-size: 12.5px; font-weight: 600; }
.pt-hero .f.key.glow { box-shadow: 0 0 0 4px var(--accent-soft); }

/* §6 scena Contact (mesaj) */
.pt-hero #sContact { display: flex; flex-direction: column; gap: 10px; }
.pt-hero .mhead { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; }
.pt-hero .mhead .pill { margin-left: auto; background: var(--surface-2); }
.pt-hero .msg { padding: 0; overflow: hidden; }
.pt-hero .mline { display: grid; grid-template-columns: 56px 1fr; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.pt-hero .mline span { color: var(--text-3); font-weight: 600; }
.pt-hero .mtext { padding: 12px 14px 14px; font-size: 13px; line-height: 1.65; min-height: 132px; }
.pt-hero .tok {
  display: inline; padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px;
  background: var(--surface-2); border: 1px dashed var(--border-strong); color: var(--text-2); transition: all .3s;
}
.pt-hero .tok.flip { opacity: 0; }
.pt-hero .tok.val { font-family: inherit; font-size: inherit; border: 0; padding: 0 3px; background: var(--accent-soft); color: var(--text); font-weight: 600; }
.pt-hero .tok.val.settle { background: transparent; padding: 0; font-weight: 600; }
.pt-hero .ps { display: block; margin-top: 8px; color: var(--text-2); }
.pt-hero .steps { display: grid; gap: 6px; }
.pt-hero .st { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; opacity: 0; transform: translateX(-10px); transition: all .2s; }
.pt-hero .st.in { opacity: 1; transform: none; }
.pt-hero .st .ic { width: 22px; height: 22px; display: grid; place-items: center; }
.pt-hero .st .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.pt-hero .st .ok::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.pt-hero .st b { font-size: 12.5px; }
.pt-hero .st small { display: block; color: var(--text-3); font-size: 10.5px; }
.pt-hero .st .t { font-size: 10px; color: var(--text-3); }
.pt-hero .st.done { border-color: var(--ok); }
.pt-hero .toast {
  align-self: center; display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 20px;
  background: var(--navy); color: var(--surface); font-weight: 600; font-size: 11.5px; opacity: 0; transform: translateY(8px); transition: all .2s;
}
.pt-hero .toast.in { opacity: 1; transform: none; }
