
:root{--bg:#f5f7fb;--surface:#fff;--ink:#172033;--muted:#6b7587;--line:#e5e9f0;--primary:#5b4bdb;--primary2:#4839c0;--dark:#111827;--green:#137c4b;--yellow:#a76b00;--red:#c23d3d;--blue:#1b69a7;--shadow:0 8px 30px rgba(17,24,39,.06)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.shell{min-height:100vh;display:flex}.sidebar{position:fixed;z-index:20;left:0;top:0;bottom:0;width:260px;padding:18px 14px;background:var(--dark);color:#fff}.brand{font-weight:850;font-size:20px;padding:8px 10px 20px}.brand small{display:block;color:#9ca3af;font-size:11px;margin-top:5px}.mode{font-size:10px;color:#c7cfdb;background:#1d2535;border-radius:8px;padding:8px 10px;margin:0 0 10px}.nav button{width:100%;border:0;background:transparent;color:#cfd5df;padding:11px 12px;border-radius:9px;text-align:left;margin:3px 0}.nav button:hover,.nav button.active{background:#2a3043;color:#fff}
.content{margin-left:260px;width:calc(100% - 260px);padding:25px}.page{display:none}.page.active{display:block}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.top h1{margin:0;font-size:26px}.subtitle{color:var(--muted);font-size:13px}
.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}.card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow)}.metric{font-size:27px;font-weight:850;margin-top:5px}.muted{color:var(--muted);font-size:12px}
.btn{border:0;border-radius:9px;padding:10px 14px;background:var(--primary);color:#fff;font-weight:750}.btn:hover{background:var(--primary2)}.btn.secondary{background:#e9edf4;color:#30394a}.btn.green{background:var(--green)}.btn.red{background:var(--red)}.btn.blue{background:var(--blue)}
.layout{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.section-head h2,.panel h2{font-size:17px;margin:0}
.map{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.stand{min-height:84px;border-radius:10px;padding:9px;text-align:left;border:2px solid transparent;background:#f2f4f8}.stand strong{display:block}.stand small{display:block;color:#596273;font-size:10px;margin:2px 0}.stand.available{background:#e9f8f0;border-color:#b8e3ca}.stand.pending{background:#fff5dc;border-color:#efd18c}.stand.reserved{background:#fdecec;border-color:#efb8b8}.stand.blocked{background:#eceff3;border-color:#d0d6df}
.badge{display:inline-block;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.badge.green{background:#e7f7ee;color:#137743}.badge.yellow{background:#fff2d1;color:#936600}.badge.red{background:#fde6e6;color:#a72f2f}.badge.blue{background:#e6f0ff;color:#155b97}.badge.gray{background:#e9edf2;color:#566171}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:11px 9px;border-bottom:1px solid var(--line);font-size:12px;text-align:left;vertical-align:top}.search{width:100%;padding:11px;border:1px solid var(--line);border-radius:9px;margin-bottom:12px}.actions button{border:0;background:#edf0f5;border-radius:7px;padding:6px 8px;margin:2px}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700}.field input,.field select,.field textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}.field textarea{min-height:90px;resize:vertical}.modal{position:fixed;inset:0;z-index:50;background:#0008;display:none;align-items:center;justify-content:center;padding:18px}.modal.show{display:flex}.modalbox{width:min(760px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;padding:22px}.modalactions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.hero{background:linear-gradient(135deg,#111827,#303650);color:#fff;border-radius:16px;padding:25px;margin-bottom:16px}.hero h1{margin:0 0 7px}.public{max-width:860px;margin:0 auto}.info{background:#f7f7ff;border-left:4px solid var(--primary);padding:11px;border-radius:7px;margin:8px 0;font-size:12px}.result{padding:16px;border-radius:11px;margin-top:14px}.result.ok{background:#e9f8f0;border:1px solid #b8e3ca}.result.no{background:#fdecec;border:1px solid #efb8b8}.empty{text-align:center;padding:30px;color:var(--muted)}.toast{position:fixed;right:18px;bottom:18px;z-index:100;background:#111827;color:#fff;border-radius:10px;padding:12px 15px;display:none}.toast.show{display:block}
.portal-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.portal-card{max-width:950px;margin:0 auto}.qr{display:flex;justify-content:center;margin:15px}.check-green{background:#e9f8f0;border:1px solid #b8e3ca;border-radius:12px;padding:16px}.check-red{background:#fdecec;border:1px solid #efb8b8;border-radius:12px;padding:16px}.notice{background:#fff9e7;border:1px solid #f0d58c;border-radius:9px;padding:12px;font-size:12px}
@media(max-width:1050px){.cards{grid-template-columns:repeat(3,1fr)}.layout{grid-template-columns:1fr}}
@media(max-width:760px){.sidebar{width:68px}.brand{font-size:0}.brand:before{content:"FM";font-size:18px}.brand small,.mode,.nav span{display:none}.nav button{text-align:center}.content{margin-left:68px;width:calc(100% - 68px);padding:15px}.cards{grid-template-columns:repeat(2,1fr)}.map{grid-template-columns:repeat(3,1fr)}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(max-width:480px){.top{flex-direction:column;align-items:flex-start}.map{grid-template-columns:repeat(2,1fr)}}

.qr-video{width:100%;max-height:360px;border-radius:12px;background:#111}

.receipt-paper{background:#fff;border:1px solid #ddd;padding:28px;max-width:700px;margin:auto}.receipt-head{text-align:center;border-bottom:2px solid #111827;padding-bottom:14px;margin-bottom:18px}.receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.exhibitor-shell{max-width:1080px;margin:0 auto}
.exhibitor-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.exhibitor-title h1{margin:0;font-size:28px;letter-spacing:-.02em}
.exhibitor-ref{font-size:13px;color:var(--muted);margin-top:5px}
.status-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;background:#e7f7ee;color:#137743}
.status-dot{width:8px;height:8px;border-radius:50%;background:#22a968}
.exhibitor-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.info-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 10px 30px rgba(17,24,39,.05)}
.info-card h3{margin:0 0 14px;font-size:15px}
.info-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}
.info-row:last-child{border-bottom:0}
.info-label{color:var(--muted)}
.info-value{font-weight:700;text-align:right}
.stand-hero{background:linear-gradient(135deg,#111827,#2f3653);color:#fff;border-radius:18px;padding:22px;position:relative;overflow:hidden}
.stand-hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-55px;top:-55px;background:rgba(255,255,255,.06)}
.stand-code{font-size:38px;font-weight:900;letter-spacing:.02em;margin:2px 0}
.stand-meta{opacity:.82;font-size:12px}
.payment-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 10px 30px rgba(17,24,39,.05)}
.payment-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.payment-total{font-size:24px;font-weight:900}
.payment-progress{height:9px;border-radius:99px;background:#edf0f5;overflow:hidden;margin:14px 0 8px}
.payment-progress>span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#5b4bdb,#7b6cf0)}
.payment-caption{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}
.action-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
.persons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.person{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fbfcfe}
.person-role{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.person-name{font-weight:800;margin-top:4px}
.person-phone{font-size:11px;color:var(--muted);margin-top:3px}
.qr-panel{display:flex;align-items:center;justify-content:center;text-align:center;min-height:100%}
.qr-wrap{background:#f8f9fc;border:1px dashed #d7dce6;border-radius:16px;padding:18px;display:inline-block}
.receipt-banner{background:#eef8f3;border:1px solid #cce8d9;border-radius:14px;padding:14px;margin-top:14px}
.receipt-banner strong{color:#137743}
@media(max-width:900px){.exhibitor-grid{grid-template-columns:1fr}.persons{grid-template-columns:1fr}.exhibitor-title h1{font-size:24px}}
