.site-popup-layer{position:fixed;z-index:78;inset:0;pointer-events:none}.site-popup-card{position:absolute;width:300px;overflow:hidden;border-radius:15px;background:#fff;box-shadow:0 22px 60px #0008;pointer-events:auto;animation:popupIn .28s both}.site-popup-head{height:42px;display:flex;align-items:center;gap:8px;padding:0 8px 0 14px;background:#111c2f;color:#fff}.site-popup-head b{flex:1;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.site-popup-x{width:32px;height:32px;border:0;background:transparent;color:#fff;font-size:24px;cursor:pointer}.site-popup-image-link{display:block;background:#eef1f4}.site-popup-image{display:block;width:300px;height:400px;object-fit:cover}.site-popup-foot{display:grid;grid-template-columns:1fr 1fr;height:43px}.site-popup-foot button{border:0;border-top:1px solid #e2e8f0;background:#fff;color:#475569;font-size:12px;font-weight:800;cursor:pointer}.site-popup-foot button+button{border-left:1px solid #e2e8f0;color:#168a57}@keyframes popupIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
.site-popup-card>.site-popup-head{flex:0 0 42px}.site-popup-card>.site-popup-foot{flex:0 0 48px;height:48px;padding:0;margin:0;color:inherit;font-size:12px;text-align:initial}.site-popup-card>.site-popup-foot button{display:flex;align-items:center;justify-content:center;height:48px;padding:0;line-height:1.2}
.popup-admin-button{margin-top:10px;padding:10px 20px;border:1px solid #ffffff55;border-radius:999px;background:#ffffff14;color:#fff;font-size:13px;font-weight:800;cursor:pointer}.popup-admin-button:hover{background:#ffffff25}.popup-admin-overlay{position:fixed;z-index:130;inset:0;display:none;align-items:center;justify-content:center;padding:14px;background:#07101dcc}.popup-admin-overlay.open{display:flex}.popup-admin-box{width:min(720px,100%);max-height:92vh;display:flex;flex-direction:column;overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 24px 70px #0007}.popup-admin-box.small{max-width:430px}.popup-admin-head{display:flex;justify-content:space-between;gap:12px;padding:20px 22px 16px;border-bottom:1px solid #e2e8f0}.popup-admin-head h3{margin:0 0 5px;font-size:21px}.popup-admin-head p{margin:0;color:#64748b;font-size:11px}.popup-admin-head button{border:0;background:none;color:#64748b;font-size:28px;cursor:pointer}.popup-admin-body{padding:20px 22px;overflow:auto}.popup-admin-body label{display:block;margin:13px 0 7px;color:#374151;font-size:13px;font-weight:800}.popup-admin-body input[type=text],.popup-admin-body input[type=password],.popup-admin-body input[type=number]{width:100%;height:50px;border:1px solid #cbd5e1;border-radius:10px;padding:0 13px;font-size:15px;outline:none}.popup-admin-body input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1c}.popup-login-error,.popup-editor-error{min-height:20px;margin:9px 0;color:#dc2626;font-size:12px;font-weight:700;text-align:center}.popup-submit{width:100%;min-height:51px;border:0;border-radius:10px;background:#168a57;color:#fff;font-weight:800;cursor:pointer}.popup-submit:disabled{opacity:.55}.popup-manager-tools{display:flex;justify-content:space-between;gap:8px;margin-bottom:14px}.popup-manager-tools button{border:0;border-radius:9px;padding:10px 13px;font-weight:800;cursor:pointer}.popup-manager-tools .add{background:#168a57;color:#fff}.popup-manager-tools .logout{border:1px solid #cbd5e1;background:#fff;color:#475569}.popup-admin-list{display:grid;gap:9px}.popup-admin-item{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:11px;padding:10px;border:1px solid #e2e8f0;border-radius:12px}.popup-admin-item img{width:64px;height:85px;border-radius:8px;object-fit:cover}.popup-admin-item b,.popup-admin-item small{display:block}.popup-admin-item small{margin-top:5px;color:#64748b;font-size:11px}.popup-admin-item .off{color:#dc2626}.popup-item-actions{display:grid;gap:5px}.popup-item-actions button{border:0;border-radius:7px;padding:7px 9px;font-size:11px;font-weight:800;cursor:pointer}.popup-item-actions .edit{background:#e0f2fe;color:#0369a1}.popup-item-actions .delete{background:#fee2e2;color:#b91c1c}.popup-preview{margin-top:12px;padding:10px;border:1px dashed #b8c5cf;border-radius:12px;text-align:center}.popup-preview img{display:block;width:min(300px,100%);aspect-ratio:3/4;margin:auto;border-radius:9px;object-fit:cover}.popup-preview small{display:block;margin-top:8px;color:#64748b}.popup-check{display:flex!important;align-items:center;gap:8px}.popup-check input{width:19px;height:19px;accent-color:#168a57}.popup-help{padding:11px;border-radius:9px;background:#eff6ff;color:#1e40af;font-size:11px;line-height:1.6}.popup-confirm-box{max-width:370px;padding:27px;text-align:center}.popup-confirm-box h3{margin:0 0 10px}.popup-confirm-box p{color:#64748b;font-size:13px;line-height:1.65;white-space:pre-line}.popup-confirm-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:19px}.popup-confirm-actions button{width:100%;min-width:0;min-height:45px;border:0;border-radius:9px;font-weight:800;cursor:pointer}.popup-confirm-actions .cancel{background:#e2e8f0;color:#475569}.popup-confirm-actions .ok{background:#168a57;color:#fff}
@media(max-width:700px){.site-popup-layer{background:#07101d91}.site-popup-card{width:90vw;max-width:430px;max-height:90vh;display:flex;flex-direction:column;left:50%!important;top:50%!important;transform:translate(-50%,-50%);animation:popupMobileIn .28s both}.site-popup-image-link{min-height:0;flex:1;overflow:hidden}.site-popup-image{width:100%;height:auto;max-height:calc(90vh - 90px);aspect-ratio:3/4;object-fit:contain}.site-popup-card:nth-child(n+2){margin-left:5px;margin-top:5px}.popup-admin-overlay{padding:7px}.popup-admin-head{padding:17px 16px 13px}.popup-admin-body{padding:17px 15px}.popup-admin-body input[type=text],.popup-admin-body input[type=password],.popup-admin-body input[type=number]{height:54px;font-size:16px}.popup-admin-item{grid-template-columns:52px 1fr}.popup-admin-item img{width:52px;height:69px}.popup-item-actions{grid-column:2;grid-template-columns:1fr 1fr}.popup-manager-tools{position:sticky;top:0;background:#fff;z-index:2;padding-bottom:8px}@keyframes popupMobileIn{from{opacity:0;transform:translate(-50%,-45%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%)}}}
