/* UI kit styles shared by admin + storefront (toast, overlay/modal/drawer, menu, tooltip, palette, demo console, explain notes).
   Neutral look; storefront overrides live in storefront-64hydro-theme.css (.sf ...). */
.hc-ico { flex: none; vertical-align: -3px; }
.hc-noscroll { overflow: hidden; }
.hc-ico-sp { display: inline-block; width: 15px; flex: none; }
kbd { font: 600 11px/1 ui-monospace, Consolas, monospace; padding: 3px 6px; border: 1px solid #d5dbe4; border-bottom-width: 2px; border-radius: 5px; background: #f8fafc; color: #64748b; }

/* toasts */
.hc-toasts { position: fixed; right: 20px; top: 20px; z-index: 3000; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.hc-toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 14px; background: #0f172a; color: #f1f5f9; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.28); font: 500 13.5px/1.45 Inter, 'DM Sans', system-ui, sans-serif; animation: hc-toast-in .22s cubic-bezier(.2,.8,.2,1); }
.hc-toast.is-out { opacity: 0; transform: translateY(-6px); transition: .18s; }
.hc-toast__t { flex: 1; padding-top: 1px; } .hc-toast__x { border: 0; background: none; color: #94a3b8; cursor: pointer; padding: 2px; border-radius: 6px; } .hc-toast__x:hover { color: #fff; background: rgba(255,255,255,.1); }
.hc-toast--success > .hc-ico:first-child { color: #34d399; } .hc-toast--error > .hc-ico:first-child { color: #f87171; } .hc-toast--warn > .hc-ico:first-child { color: #fbbf24; } .hc-toast--info > .hc-ico:first-child { color: #60a5fa; }
@keyframes hc-toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* overlay + modal + drawer */
.hc-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); opacity: 0; transition: opacity .16s; }
.hc-overlay.is-in { opacity: 1; } .hc-overlay.is-out { opacity: 0; }
.hc-overlay .hc-modal { transform: translateY(8px) scale(.985); transition: transform .18s cubic-bezier(.2,.8,.2,1); } .hc-overlay.is-in .hc-modal { transform: none; }
.hc-overlay--side { justify-content: flex-end; padding: 0; align-items: stretch; }
.hc-drawer { height: 100%; max-width: 100%; background: #fff; box-shadow: -12px 0 40px rgba(15,23,42,.2); display: flex; flex-direction: column; overflow: auto; transform: translateX(24px); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.hc-overlay.is-in .hc-drawer { transform: none; }
.hc-drawer .ad-drawer__b { flex: 1; } .hc-drawer .ad-modal__f { position: sticky; bottom: 0; border-radius: 0; }
.hc-modal__b h3 { margin-bottom: 4px; }
.hc-checklist { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; background: #fafbfc; }
.hc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; } .hc-check input { margin-top: 3px; }

/* dropdown menu + tooltip */
.hc-menu { position: fixed; z-index: 2500; min-width: 220px; max-width: 340px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 36px rgba(15,23,42,.16), 0 2px 6px rgba(15,23,42,.06); padding: 6px; animation: hc-pop .12s ease-out; }
@keyframes hc-pop { from { opacity: 0; transform: translateY(-4px); } }
.hc-menu hr { border: 0; border-top: 1px solid #eef2f6; margin: 5px 2px; } .hc-menu__h { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.hc-menu__i { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: 500 13.5px Inter, system-ui, sans-serif; color: #1e293b; text-align: left; cursor: pointer; text-decoration: none !important; }
.hc-menu__i:hover:not([disabled]) { background: #f1f5f9; } .hc-menu__i.is-danger { color: #dc2626; } .hc-menu__i[disabled] { opacity: .45; cursor: not-allowed; } .hc-menu__i span { flex: 1; } .hc-menu__ck { color: #2563eb; }
.hc-tip { position: fixed; z-index: 3500; background: #0f172a; color: #f8fafc; font: 500 12px/1.4 Inter, system-ui, sans-serif; padding: 6px 9px; border-radius: 7px; pointer-events: none; opacity: 0; transition: opacity .1s; box-shadow: 0 4px 14px rgba(15,23,42,.3); }
.hc-tip.is-on { opacity: 1; }
.is-perm-locked { opacity: .5; cursor: not-allowed !important; }

/* command palette */
.hc-palette { align-items: flex-start; padding-top: 14vh; }
.hc-palette-box { width: min(620px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(15,23,42,.35); overflow: hidden; }
.hc-palette__in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; color: #64748b; } .hc-palette__in input { flex: 1; border: 0; outline: 0; font: 500 16px Inter, system-ui, sans-serif; color: #0f172a; background: none; }
.hc-palette__list { max-height: 52vh; overflow: auto; padding: 6px; }
.hc-palette__i { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #1e293b; text-decoration: none !important; font-size: 14px; } .hc-palette__i span { flex: 1; } .hc-palette__i em { font-style: normal; font-size: 12px; color: #94a3b8; }
.hc-palette__i.is-cur, .hc-palette__i:hover { background: #eff6ff; color: #1d4ed8; }

/* explain notes (Giải thích) */
.hc-explain-mark { outline: 1px dashed rgba(37,99,235,.45); outline-offset: 3px; border-radius: 6px; }
.hc-explain-note { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; padding: 8px 11px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font: 400 12.5px/1.5 Inter, system-ui, sans-serif; max-width: 620px; animation: hc-pop .15s ease-out; }
.hc-explain-note .hc-ico { margin-top: 2px; color: #2563eb; }

/* demo console */
.hcd { position: fixed; left: 14px; bottom: 14px; z-index: 2800; font: 500 13px Inter, system-ui, sans-serif; }
.hcd-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid rgba(15,23,42,.15); border-radius: 999px; background: #0f172a; color: #e2e8f0; font: 600 12px Inter, system-ui, sans-serif; cursor: pointer; opacity: .6; transition: opacity .15s; box-shadow: 0 2px 8px rgba(15,23,42,.2); }
.hcd-pill:hover, .hcd.is-open .hcd-pill { opacity: 1; }
.hcd-panel { position: absolute; left: 0; bottom: 38px; width: 360px; max-height: min(78vh, 720px); display: flex; flex-direction: column; background: #fff; color: #1e293b; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 18px 60px rgba(15,23,42,.28); overflow: hidden; animation: hc-pop .15s ease-out; }
.hcd-h { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px 10px; border-bottom: 1px solid #eef2f6; } .hcd-h span { grid-column: 1; font-size: 11.5px; color: #94a3b8; font-weight: 400; } .hcd-x { grid-row: 1 / 3; grid-column: 2; border: 0; background: none; color: #64748b; cursor: pointer; border-radius: 8px; width: 28px; height: 28px; } .hcd-x:hover { background: #f1f5f9; }
.hcd-body { overflow: auto; padding: 6px 12px 14px; }
.hcd-sec { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; } .hcd-grp { margin: 8px 0 4px; font-size: 12px; font-weight: 600; color: #64748b; }
.hcd-s { display: block; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 4px; border: 1px solid #e8edf3; border-radius: 9px; background: #fff; cursor: pointer; font: inherit; } .hcd-s:hover { border-color: #93c5fd; background: #f8fbff; } .hcd-s b { display: block; font-weight: 600; color: #0f172a; font-size: 13px; } .hcd-s span { display: block; font-size: 11.5px; color: #94a3b8; margin-top: 1px; font-weight: 400; }
.hcd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .hcd-b { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #1e293b; font: 500 12.5px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; text-align: left; } .hcd-b:hover { background: #f1f5f9; }
.hcd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 2px; font-size: 13px; cursor: pointer; }
.hcd-meta { font-size: 12.5px; color: #64748b; line-height: 1.7; margin-bottom: 8px; } .hcd-meta b { color: #0f172a; font-weight: 600; }
.hcd-orders { display: grid; gap: 4px; } .hcd-orders button { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid #eef2f6; border-radius: 8px; background: #fafbfc; cursor: pointer; font: 12px Inter, sans-serif; text-align: left; } .hcd-orders button:hover { background: #eff6ff; } .hcd-orders span { color: #64748b; overflow: hidden; text-overflow: ellipsis; } .hcd-orders em { font-style: normal; font-size: 11px; color: #94a3b8; }
.hcd .switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: none; } .hcd .switch input { display: none; } .hcd .switch i { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .18s; cursor: pointer; } .hcd .switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 2px rgba(0,0,0,.25); } .hcd .switch input:checked + i { background: #059669; } .hcd .switch input:checked + i::after { left: 18px; }
@media (max-width: 520px) { .hcd-panel { width: calc(100vw - 28px); } .hcd { left: 6px; bottom: 6px; } .hcd:not(.is-open) .hcd-pill { height: 24px; padding: 0 8px; font-size: 11px; opacity: .45; } }
