/* BEEORA AGRI-NEXUS — UI system */
@font-face { font-family: 'Nikosh'; src: url('../fonts/Nikosh.ttf') format('truetype'); font-display: swap; unicode-range: U+0980-09FF, U+200C-200D, U+25CC, U+0964-0965, U+09E6-09EF; }
:root {
  --navy: #0b2240; --navy2: #0e2a47; --ink: #0a1626; --ink2: #13263d; --gold: #c9a227; --gold2: #e9c45a; --green: #1f8a5b; --red: #c0392b;
  --bg: #f4f6f9; --card: #ffffff; --line: #dde3ea; --text: #17212e; --muted: #5b6878; --glass: rgba(8, 20, 35, 0.74); --gline: rgba(255, 255, 255, 0.12);
  --r: 14px; --sh: 0 18px 50px -24px rgba(10, 25, 45, 0.35); --sh2: 0 2px 10px rgba(10, 25, 45, 0.06);
  --f: 'Nikosh', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--text); font-family: var(--f); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.lat { font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.hidden { display: none !important; }

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; z-index: 0; background: #0d1d2f; }
#gl { width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#labels.hidden { display: block !important; visibility: hidden; }
.lbl { position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; will-change: transform; }
.lbl.zone { background: rgba(8, 22, 38, 0.78); border: 1px solid rgba(233, 196, 90, 0.55); color: #fff; padding: 5px 10px 6px; border-radius: 10px; display: grid; grid-template-columns: auto auto; gap: 0 8px; align-items: baseline; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.lbl.zone b { color: var(--gold2); font-size: 15px; }
.lbl.zone span { font-size: 14px; }
.lbl.zone em { grid-column: 1 / 3; font-style: normal; font-size: 11.5px; color: #a9b8c8; }
.lbl.pt { background: rgba(201, 162, 39, 0.92); color: #0b1622; font-size: 13px; padding: 3px 9px; border-radius: 999px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.tip3d { position: absolute; left: 0; top: 0; background: #0b1622; color: #fff; padding: 6px 11px; border-radius: 8px; font-size: 14px; opacity: 0; transition: opacity .15s; border: 1px solid rgba(233, 196, 90, .5); pointer-events: none; }
.parts3d .plbl { position: absolute; left: 0; top: 0; background: #fff; color: #0b1622; border-radius: 8px; padding: 3px 9px 4px 4px; font-size: 13.5px; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.3); border-left: 3px solid var(--gold); }
.parts3d .plbl i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy2); color: var(--gold2); font-size: 12px; margin-right: 6px; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 90; background: radial-gradient(1200px 700px at 30% 20%, #15365a, #071427); display: grid; place-items: center; color: #fff; transition: opacity .7s, visibility .7s; }
#loader.done { opacity: 0; visibility: hidden; }
#loader .box { text-align: center; width: min(460px, 86vw); }
#loader img { width: 230px; max-width: 70vw; filter: drop-shadow(0 10px 30px rgba(201,162,39,.25)); }
#loader .bar { height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; margin: 26px 0 12px; }
#loader .bar i { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--gold), var(--gold2)); transition: width .4s; }
#loader p { margin: 0; color: #a9b8c8; font-size: 15px; }

/* ---------- nav ---------- */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 12px 26px; color: #fff; transition: background .3s, padding .3s; }
#nav.solid { background: rgba(7, 19, 33, 0.92); backdrop-filter: blur(12px); padding: 8px 26px; border-bottom: 1px solid var(--gline); }
#nav .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
#nav .brand img { height: 38px; }
#nav .brand b { font-family: 'Inter', 'Segoe UI', sans-serif; letter-spacing: .14em; font-size: 15px; font-weight: 800; display: block; line-height: 1.1; }
#nav .brand small { color: var(--gold2); font-size: 12px; letter-spacing: .02em; }
#nav nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
#nav nav a { text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 15.5px; color: #dfe7ef; }
#nav nav a:hover, #nav nav a.on { background: rgba(255,255,255,.1); color: #fff; }
#nav .cta { margin-left: 6px; }
#burger { display: none; margin-left: auto; background: none; border: 1px solid var(--gline); color: #fff; border-radius: 10px; padding: 7px 11px; }

.btn { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn.gold { background: linear-gradient(135deg, #e9c45a, #c9a227); color: #0b1622; box-shadow: 0 10px 30px -10px rgba(201,162,39,.6); }
.btn.gold:hover { box-shadow: 0 14px 34px -10px rgba(201,162,39,.8); }
.btn.ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn.ghost:hover { background: rgba(255,255,255,.15); }
.btn.navy { background: var(--navy2); color: #fff; }
.btn.line { background: #fff; color: var(--navy2); border: 1px solid var(--line); }
.btn.sm { padding: 8px 13px; font-size: 14.5px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- views ---------- */
.view { display: none; position: relative; z-index: 5; }
.view.on { display: block; }
.page { background: var(--bg); min-height: 100vh; padding: 96px 0 0; }
.wrap { width: min(1240px, 92vw); margin: 0 auto; }
.badge-demo { display: inline-flex; align-items: center; gap: 6px; background: rgba(201,162,39,.14); color: #8a6a07; border: 1px solid rgba(201,162,39,.4); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.dark .badge-demo, .hud .badge-demo { color: var(--gold2); background: rgba(201,162,39,.12); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #fff; background: rgba(192,57,43,.85); padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .06em; font-family: 'Inter', sans-serif; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- HOME ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; color: #fff; display: flex; align-items: center; pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,15,28,.88) 0%, rgba(5,15,28,.55) 38%, rgba(5,15,28,0) 66%), linear-gradient(0deg, rgba(5,15,28,.75) 0%, rgba(5,15,28,0) 30%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .copy { pointer-events: auto; max-width: 640px; }
.kicker { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; color: var(--gold2); border: 1px solid rgba(233,196,90,.4); padding: 5px 14px; border-radius: 999px; background: rgba(0,0,0,.25); }
.hero h1 { font-family: 'Inter', 'Segoe UI', sans-serif; font-weight: 900; font-size: clamp(42px, 6.2vw, 86px); line-height: .98; letter-spacing: -.02em; margin: 18px 0 8px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #f3d77a, #c9a227); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(19px, 1.8vw, 24px); color: #e6edf4; margin: 6px 0 22px; max-width: 590px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .meta { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero .meta div { border-left: 2px solid var(--gold); padding-left: 12px; }
.hero .meta b { display: block; font-size: 26px; color: #fff; line-height: 1.1; }
.hero .meta span { font-size: 14px; color: #b7c6d6; }
.livecard { pointer-events: auto; justify-self: end; width: min(420px, 100%); background: var(--glass); border: 1px solid var(--gline); border-radius: 18px; backdrop-filter: blur(14px); padding: 18px 18px 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.livecard header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.livecard header .clk { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 26px; color: #fff; }
.livecard .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.livecard .row div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 10px; }
.livecard .row b { display: block; font-size: 20px; color: #fff; line-height: 1.15; }
.livecard .row span { font-size: 12.5px; color: #a9b8c8; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 196px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 50px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 14.5px; color: #dfe7ef; animation: slidein .5s ease; }
.feed li time { font-family: 'Inter', sans-serif; color: var(--gold2); font-size: 13px; padding-top: 1px; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.livecard footer { font-size: 12.5px; color: #8fa1b4; margin-top: 8px; }
.scrollhint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cbd6e1; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .8; }
.scrollhint i { width: 22px; height: 34px; border: 2px solid #cbd6e1; border-radius: 12px; position: relative; }
.scrollhint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; background: #cbd6e1; border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 18px; } }

.sec { background: #fff; padding: 84px 0; position: relative; }
.sec.alt { background: var(--bg); }
.sec.dark { background: linear-gradient(160deg, #0b2240, #071427); color: #fff; }
.sec h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; margin: 8px 0 12px; color: var(--navy2); }
.sec.dark h2 { color: #fff; }
.eyebrow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-family: 'Inter', sans-serif; font-weight: 700; }
.sec p.sub { color: var(--muted); max-width: 760px; font-size: 18.5px; margin: 0 0 34px; }
.sec.dark p.sub { color: #b7c6d6; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g6 { grid-template-columns: repeat(6, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh2); }
.sec.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #e6edf4; }
.card h3 { margin: 4px 0 6px; font-size: 21px; color: var(--navy2); }
.sec.dark .card h3 { color: #fff; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.sec.dark .card p { color: #b7c6d6; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #0e2a47, #1d4a78); color: var(--gold2); font-weight: 800; font-family: 'Inter', sans-serif; margin-bottom: 10px; }
.unit .num { font-family: 'Inter', sans-serif; color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpis div { background: #fff; padding: 18px 16px; }
.kpis b { display: block; font-size: 28px; color: var(--navy2); line-height: 1.1; }
.kpis span { font-size: 14px; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: s; }
.flow div { position: relative; padding: 18px 16px 18px 18px; border-top: 3px solid var(--gold); background: rgba(255,255,255,.04); }
.flow div + div { border-left: 1px solid rgba(255,255,255,.08); }
.flow b { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }
.flow span { color: #b7c6d6; font-size: 14.5px; }
.flow div::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: 'Inter', sans-serif; font-weight: 800; color: var(--gold2); font-size: 13px; display: block; margin-bottom: 6px; }
.video-wrap { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); background: #000; aspect-ratio: 16/9; }
.video-wrap video { width: 100%; height: 100%; display: block; }
.cta-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cta-band a { text-decoration: none; }
.cta-band .card { height: 100%; transition: transform .2s, box-shadow .2s; }
.cta-band .card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.cta-band .go { margin-top: 10px; color: var(--navy2); font-weight: 700; }
footer.site { background: #061120; color: #a9b8c8; padding: 42px 0 30px; position: relative; z-index: 5; font-size: 15px; }
footer.site .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
footer.site img { height: 54px; }
footer.site b { color: #fff; }
footer.site .disc { grid-column: 1 / 4; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; font-size: 13.5px; color: #8193a7; }

/* ---------- FACTORY HUD ---------- */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 20; color: #fff; }
.hud > * { pointer-events: auto; }
.hud .panel { background: var(--glass); border: 1px solid var(--gline); border-radius: 14px; backdrop-filter: blur(14px); box-shadow: 0 20px 50px -25px rgba(0,0,0,.6); }
.hud .top { position: absolute; top: 74px; left: 18px; right: 18px; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.hud .top > * { pointer-events: auto; }
.hud .title { padding: 9px 14px; display: flex; align-items: center; gap: 12px; }
.hud .title b { font-size: 17px; }
.hud .title .clk { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 18px; color: var(--gold2); }
.hud .tools { margin-left: auto; display: flex; gap: 6px; padding: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hud .tools button { background: transparent; color: #dfe7ef; border: 1px solid transparent; border-radius: 9px; padding: 7px 11px; cursor: pointer; font-size: 14.5px; display: inline-flex; gap: 7px; align-items: center; }
.hud .tools button:hover { background: rgba(255,255,255,.08); }
.hud .tools button.on { background: rgba(201,162,39,.18); border-color: rgba(201,162,39,.5); color: var(--gold2); }
.hud .tools button svg { width: 17px; height: 17px; }
.hud .zones { position: absolute; left: 18px; top: 136px; width: 250px; padding: 12px; }
.hud .zones h4, .hud .legend h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .1em; color: #8fa1b4; font-family: 'Inter', sans-serif; text-transform: uppercase; }
.hud .zones button { display: flex; width: 100%; text-align: left; gap: 9px; align-items: center; background: none; border: 0; color: #e6edf4; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.hud .zones button:hover { background: rgba(255,255,255,.07); }
.hud .zones button i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hud .zones button small { margin-left: auto; color: #8fa1b4; font-size: 12px; }
.hud .legend { margin-top: 10px; border-top: 1px solid var(--gline); padding-top: 10px; font-size: 14px; color: #cfd9e4; }
.hud .legend div { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.hud .legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hud .mini { position: absolute; left: 18px; bottom: 18px; padding: 8px; }
.hud .mini canvas { width: 230px; height: 200px; display: block; border-radius: 8px; cursor: crosshair; }
.hud .ticker { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(560px, 50vw); padding: 10px 14px; }
.hud .ticker .feed { max-height: 92px; }
.hud .ticker .feed li { font-size: 14px; padding: 4px 0; }
.hud .hint { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; font-size: 13.5px; color: #cfd9e4; max-width: 300px; }
.hud .hint kbd { font-family: 'Inter', sans-serif; background: rgba(255,255,255,.12); border-radius: 5px; padding: 1px 6px; font-size: 12px; color: #fff; }
.drawer { position: absolute; right: 18px; top: 136px; width: 410px; max-height: calc(100vh - 220px); overflow: auto; padding: 20px; transform: translateX(120%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.drawer.open { transform: none; }
.drawer .x { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: #cfd9e4; font-size: 24px; cursor: pointer; }
.drawer .tag { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .12em; color: var(--gold2); text-transform: uppercase; }
.drawer h3 { margin: 4px 0 2px; font-size: 22px; line-height: 1.25; }
.drawer .en { color: #8fa1b4; font-size: 14px; font-family: 'Inter', sans-serif; margin-bottom: 12px; }
.drawer .price { display: flex; gap: 10px; margin: 12px 0; }
.drawer .price div { flex: 1; background: rgba(255,255,255,.06); border-radius: 10px; padding: 9px 11px; }
.drawer .price b { display: block; font-size: 21px; color: #fff; }
.drawer .price span { font-size: 12.5px; color: #a9b8c8; }
.drawer dl { display: grid; grid-template-columns: 112px 1fr; gap: 7px 12px; margin: 10px 0; font-size: 15px; }
.drawer dt { color: #8fa1b4; }
.drawer dd { margin: 0; color: #e6edf4; }
.drawer .util { margin: 12px 0 6px; }
.drawer .util .barw { height: 8px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; }
.drawer .util .barw i { display: block; height: 100%; background: linear-gradient(90deg, #2fd17a, #c9a227); }
.drawer .util small { color: #a9b8c8; font-size: 13px; }
.drawer .parts { list-style: none; padding: 0; margin: 8px 0; counter-reset: p; }
.drawer .parts li { padding: 5px 0 5px 30px; position: relative; border-top: 1px solid rgba(255,255,255,.06); font-size: 15px; }
.drawer .parts li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(201,162,39,.2); color: var(--gold2); font-size: 12px; display: grid; place-items: center; font-family: 'Inter', sans-serif; }
.drawer .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.drawer .src { font-size: 12.5px; color: #8193a7; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 9px; }
.cctv-ov { position: fixed; inset: 0; z-index: 18; pointer-events: none; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cctv-ov.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cctv-ov div { position: relative; border: 1px solid rgba(0,0,0,.6); pointer-events: auto; cursor: pointer; background: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px); }
.cctv-ov span { position: absolute; left: 12px; top: 10px; font-family: 'Inter', monospace; font-size: 14px; color: #e8ffe8; background: rgba(0,0,0,.6); padding: 2px 9px; border-radius: 6px; letter-spacing: .04em; }
.cctv-ov em { position: absolute; right: 12px; top: 10px; font-style: normal; font-family: 'Inter', monospace; font-size: 13px; color: #fff; background: rgba(0,0,0,.6); padding: 2px 9px; border-radius: 6px; }
.cctv-ov em::before { content: '● REC '; color: #ff4d3d; }
.tourbar { position: absolute; left: 50%; bottom: 142px; transform: translateX(-50%); width: min(640px, 92vw); padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.tourbar .n { font-family: 'Inter', sans-serif; font-weight: 800; color: var(--gold2); font-size: 14px; white-space: nowrap; }
.tourbar p { margin: 0; flex: 1; font-size: 15.5px; }
.tourbar p b { display: block; font-size: 17px; color: #fff; }
.joy { position: absolute; left: 24px; bottom: 236px; width: 120px; height: 120px; border-radius: 50%; background: rgba(8,20,35,.5); border: 1px solid rgba(255,255,255,.2); display: none; touch-action: none; }
.joy i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(233,196,90,.85); }
.walking .joy { display: block; }
.roomprompt { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); padding: 12px 16px; display: flex; gap: 12px; align-items: center; }

/* ---------- PAGES ---------- */
.phead { background: linear-gradient(160deg, #0b2240, #0f3157); color: #fff; padding: 46px 0 40px; margin-top: -96px; padding-top: 130px; position: relative; overflow: hidden; }
.phead::after { content: ''; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; background: url('../img/beeora-mark.png') center/contain no-repeat; opacity: .06; }
.phead h1 { font-size: clamp(32px, 3.6vw, 48px); margin: 6px 0 8px; line-height: 1.15; }
.phead p { color: #c3d0dd; max-width: 820px; margin: 0; font-size: 18.5px; }
.phead .crumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pbody { padding: 34px 0 70px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 11px 16px; font-size: 16.5px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--navy2); border-color: var(--gold); font-weight: 700; }
table.t { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; }
table.t th { text-align: left; background: var(--navy2); color: #fff; font-weight: 600; padding: 10px 12px; font-size: 14.5px; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: #f8fafc; }
table.t td.r, table.t th.r { text-align: right; }
table.t tr.tot td { background: #eef3f8; font-weight: 700; color: var(--navy2); }
table.t tr.grp td { background: #f6f3e6; color: #6a5208; font-weight: 700; font-size: 14px; }
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh2); }
.note { font-size: 14px; color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: #eef2f6; color: var(--navy2); }
.pill.g { background: #e3f4ea; color: #1b6e45; } .pill.y { background: #fbf2d5; color: #85650a; } .pill.r { background: #fbe4e1; color: #a5281b; } .pill.b { background: #e4eefb; color: #1f4f8f; }
.bar { height: 10px; background: #eef2f6; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #1f8a5b, #c9a227); border-radius: 6px; }
.bar.warn i { background: linear-gradient(90deg, #e9a227, #c0392b); }
.plan svg { width: 100%; height: auto; display: block; }
.plan .z { cursor: pointer; transition: opacity .2s; }
.plan .z:hover { opacity: .8; }
.calc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; }
.calc label { display: block; margin: 0 0 14px; }
.calc label span { display: flex; justify-content: space-between; font-size: 15.5px; margin-bottom: 4px; }
.calc input[type=range] { width: 100%; accent-color: var(--gold); }
.util-row { display: grid; grid-template-columns: 210px 1fr 70px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.util-row b { text-align: right; font-family: 'Inter', sans-serif; }

form.f { display: grid; gap: 14px; }
form.f .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.f label { display: grid; gap: 5px; font-size: 15px; color: var(--navy2); font-weight: 600; }
form.f input, form.f select, form.f textarea { border: 1px solid #cdd6e0; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--text); font-weight: 400; outline: none; transition: border .2s, box-shadow .2s; }
form.f input:focus, form.f select:focus, form.f textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18); }
form.f textarea { min-height: 90px; resize: vertical; }
.product { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.product .art { height: 170px; display: grid; place-items: center; position: relative; background: radial-gradient(240px 140px at 50% 60%, rgba(255,255,255,.55), transparent), linear-gradient(160deg, #f1ece1, #e3dccd); }
.product .art .tag { position: absolute; left: 12px; top: 12px; }
.product .art .stk { position: absolute; right: 12px; top: 12px; }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.product h3 { margin: 0; }
.product .en { font-family: 'Inter', sans-serif; color: var(--muted); font-size: 13.5px; margin-top: -6px; }
.product .pr { font-size: 22px; font-weight: 700; color: var(--navy2); }
.product .pr small { font-size: 14px; color: var(--muted); font-weight: 400; }
.product .buy { display: grid; grid-template-columns: 1fr 74px auto; gap: 8px; margin-top: auto; }
.product select, .product input { border: 1px solid #cdd6e0; border-radius: 10px; padding: 8px; background: #fff; }
.cart { position: fixed; right: 0; top: 0; bottom: 0; width: min(430px, 100vw); background: #fff; z-index: 70; box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); transform: translateX(105%); transition: transform .35s; display: flex; flex-direction: column; }
.cart.open { transform: none; }
.cart header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart .items { padding: 10px 20px; overflow: auto; flex: 1; }
.cart .it { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 15px; }
.cart .it button { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 18px; }
.cart footer { padding: 16px 20px; border-top: 1px solid var(--line); }
.cartbtn { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.cartbtn .n { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 13px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal .d { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 9px; font-size: 14px; }
.cal .d b { display: block; font-size: 15px; color: var(--navy2); }
.cal .d button { display: block; width: 100%; margin-top: 6px; border: 1px solid #cdd6e0; border-radius: 8px; padding: 6px 4px; background: #f8fafc; cursor: pointer; font-size: 13.5px; }
.cal .d button.full { background: #f3f3f3; color: #9aa4ae; text-decoration: line-through; cursor: not-allowed; }
.cal .d button.sel { background: var(--navy2); color: #fff; border-color: var(--navy2); }
.lot { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--green)); }
.timeline li { position: relative; padding: 0 0 18px 40px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.timeline time { font-size: 13.5px; color: var(--muted); }
.timeline b { display: block; color: var(--navy2); }
.qrbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; }
.qrbox svg { width: 100%; max-width: 230px; }
.scan { position: relative; border-radius: var(--r); overflow: hidden; background: #0b1622; aspect-ratio: 4/3; display: grid; place-items: center; color: #cfd9e4; }
.scan video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.scan .frame { position: absolute; width: 58%; aspect-ratio: 1; border: 3px solid var(--gold2); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.label-card { width: 340px; border: 1px solid #d8d2c4; border-radius: 12px; background: linear-gradient(160deg, #fbf8f1, #f2ebdc); padding: 14px; display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; }
.label-card h4 { margin: 0; color: #5a2f0c; font-size: 18px; }
.label-card small { display: block; color: #6c5a44; font-size: 12.5px; }
.label-card svg { width: 110px; }

/* ---------- ADMIN CONSOLE ---------- */
.console { background: #0a1626; color: #dfe7ef; min-height: 100vh; padding: 70px 0 0; }
.console .shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.console aside { background: #071120; border-right: 1px solid rgba(255,255,255,.06); padding: 18px 12px; }
.console aside .who { padding: 10px 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 10px; }
.console aside .who b { display: block; color: #fff; }
.console aside .who span { font-size: 13px; color: #8fa1b4; }
.console aside button { display: flex; gap: 10px; align-items: center; width: 100%; background: none; border: 0; color: #b9c7d6; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15.5px; text-align: left; }
.console aside button:hover { background: rgba(255,255,255,.05); }
.console aside button.on { background: rgba(201,162,39,.14); color: var(--gold2); }
.console aside button .n { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; font-size: 12px; padding: 0 7px; }
.console main { padding: 22px 26px 40px; }
.console .ch { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.console .ch h2 { margin: 0; color: #fff; font-size: 26px; }
.console .ch .sp { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cg { display: grid; gap: 14px; }
.cbox { background: #0f1f33; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 16px; }
.cbox h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: .08em; color: #8fa1b4; font-family: 'Inter', sans-serif; text-transform: uppercase; font-weight: 700; }
.ck { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ck div { background: #0f1f33; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden; }
.ck div::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.ck span { font-size: 13.5px; color: #8fa1b4; }
.ck b { display: block; font-size: 27px; color: #fff; line-height: 1.15; margin-top: 3px; }
.ck em { font-style: normal; font-size: 12.5px; color: #2fd17a; }
.ct { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ct th { text-align: left; color: #8fa1b4; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.ct td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.ct select { background: #0a1626; color: #dfe7ef; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 4px 6px; }
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cams div { position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.cams canvas { width: 100%; display: block; aspect-ratio: 16/9; }
.cams span { position: absolute; left: 8px; top: 6px; font-size: 12.5px; color: #e8ffe8; font-family: 'Inter', monospace; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; }
.prog { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14.5px; }
.prog .bar { background: rgba(255,255,255,.07); }
.kan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kan > div { background: #0f1f33; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 12px; min-height: 200px; }
.kan h5 { margin: 0 0 10px; color: var(--gold2); font-size: 14.5px; }
.kan .k { background: #142a44; border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: 14px; border-left: 3px solid var(--gold); }
.kan .k small { display: block; color: #8fa1b4; }

#toast { opacity: 0; pointer-events: none; position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(140%); background: #0b1622; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 95; transition: transform .35s, opacity .35s; border: 1px solid rgba(233,196,90,.5); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); max-width: 92vw; }
#toast.on { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.modal { position: fixed; inset: 0; background: rgba(5,12,22,.6); z-index: 80; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal .mbox { background: #fff; border-radius: 18px; width: min(560px, 100%); padding: 26px; box-shadow: var(--sh); max-height: 90vh; overflow: auto; }
.modal h3 { margin: 0 0 8px; color: var(--navy2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .livecard { justify-self: start; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .g4, .cta-band { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .ck { grid-template-columns: repeat(3, 1fr); }
  .hud .zones { display: none; }
}
@media (max-width: 820px) {
  html, body { font-size: 16px; }
  #nav { padding: 10px 14px; }
  #nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(7,19,33,.97); flex-direction: column; padding: 10px; }
  #nav nav.open { display: flex; }
  #nav .cta { display: none; }
  #burger { display: block; }
  .hero { min-height: 100svh; align-items: flex-end; padding-bottom: 80px; }
  .hero::before { background: linear-gradient(0deg, rgba(5,15,28,.94) 30%, rgba(5,15,28,.2) 80%); }
  .livecard { display: none; }
  .g2, .g3, .g4, .g6, .cta-band, .calc, .lot { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; }
  .sec { padding: 60px 0; }
  footer.site .wrap { grid-template-columns: 1fr; } footer.site .disc { grid-column: 1; }
  .hud .top { top: 64px; left: 8px; right: 8px; flex-wrap: wrap; }
  .hud .tools button span { display: none; }
  .hud .tools { flex-wrap: nowrap; overflow-x: auto; margin-left: 0; width: 100%; justify-content: space-between; gap: 0; }
  .hud .tools button { padding: 7px 8px; }
  .hud .title { width: 100%; }
  .lbl.zone em { display: none; } .lbl.zone { padding: 3px 8px; } .lbl.zone span { font-size: 12.5px; }
  .product .buy { grid-template-columns: 1fr 64px; } .product .buy button { grid-column: 1 / 3; justify-content: center; }
  .drawer { top: auto; }
  .hud .mini { display: none; }
  .hud .hint { display: none; }
  .hud .ticker { width: calc(100vw - 16px); bottom: 8px; }
  .drawer { right: 0; left: 0; top: auto; bottom: 0; width: 100%; max-height: 62vh; border-radius: 18px 18px 0 0; transform: translateY(110%); }
  .drawer.open { transform: none; }
  .console .shell { grid-template-columns: 1fr; }
  .console aside { display: flex; overflow: auto; gap: 4px; padding: 8px; }
  .console aside .who { display: none; }
  .console aside button { white-space: nowrap; width: auto; }
  .ck { grid-template-columns: 1fr 1fr; }
  .kan { grid-template-columns: 1fr; }
  form.f .row2 { grid-template-columns: 1fr; }
  .cal { grid-template-columns: repeat(2, 1fr); }
  .util-row { grid-template-columns: 1fr 1fr 50px; }
  .tourbar { top: 120px; bottom: auto; }
}
@media print { #stage, #nav, .cartbtn, footer.site { display: none !important; } .page { padding: 0; } .phead { margin: 0; padding: 20px; } }
