/* ACCTIOS brand + page helpers on top of Hok CSS */
:root {
  --primary-blue: #2563EB;
  --primary-blue-dark: #1d4ed8;
  --am-purple: #7c3aed;
}
.logo-text { font-weight: 800; color: var(--primary-blue); letter-spacing: .2px; }
.logo-mark {
  display:inline-flex; align-items:center; justify-content:center;
  width: 28px; height: 28px; border-radius: 8px; margin-right: 8px;
  background: linear-gradient(135deg,#2563eb,#0ea5e9); color:#fff; font-weight:800; font-size:14px;
  vertical-align: -6px;
}
.header-logo { display:inline-flex; align-items:center; text-decoration:none; }
body .page-shell { min-height: 60vh; }
.auth-card, .page-panel {
  max-width: 440px; margin: 40px auto; background:#fff; border:1px solid #e2e8f0;
  border-radius: 14px; padding: 28px; box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.auth-card h1, .page-panel h1 { font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; }
.auth-card .sub { color:#64748b; margin-bottom: 16px; font-size: .9rem; }
.form-row { margin-bottom: 12px; }
.form-row label { display:block; font-size:.8rem; color:#64748b; margin-bottom:4px; }
.form-row input, .form-row textarea, .form-row select, .qty input {
  width:100%; border:1px solid #e2e8f0; border-radius:10px; padding:10px 12px; font-size:.95rem;
}
.alert { padding:10px 12px; border-radius:10px; margin-bottom:12px; font-size:.9rem; }
.alert-error { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.alert-info { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border:1px solid transparent; border-radius:10px; padding:9px 14px;
  font-size:.9rem; font-weight:700; cursor:pointer; background:#fff; color:#0f172a; text-decoration:none;
}
.btn-primary { background:var(--primary-blue); color:#fff; }
.btn-primary:hover { background:var(--primary-blue-dark); color:#fff; }
.btn-ghost { border-color:#e2e8f0; }
.btn-danger { background:#e11d48; color:#fff; }
.btn-sm { padding:6px 10px; font-size:.8rem; }
.detail, .page-wide {
  background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:20px;
  margin: 16px 0 28px;
}
.detail-grid { display:grid; grid-template-columns: 1fr 300px; gap: 22px; }
@media (max-width: 900px){ .detail-grid { grid-template-columns: 1fr; } }
.buy-box { border:1px solid #e2e8f0; border-radius:14px; padding:16px; background:#f8fafc; height:fit-content; }
.buy-box .price { color:#e11d48; font-size:1.8rem; font-weight:800; }
.buy-box .price small { font-size:1rem; }
.qty { display:flex; align-items:center; gap:10px; margin:14px 0; }
.qty input { width:90px; }
.modal-backdrop {
  display:none; position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:20000;
  align-items:center; justify-content:center; padding:16px;
}
.modal-backdrop.open { display:flex; }
.modal {
  background:#fff; border-radius:16px; width:min(560px,100%); padding:20px;
  box-shadow:0 20px 50px rgba(15,23,42,.25);
}
.card-box {
  background:#0f172a; color:#e2e8f0; border-radius:10px; padding:12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px;
  white-space:pre-wrap; max-height:280px; overflow:auto;
}
.cs-float {
  position: fixed; right: 18px; bottom: 22px; z-index: 1060;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#7c3aed,#6d28d9); color:#fff !important;
  border: none; border-radius: 999px; padding: 12px 16px; font-weight: 700;
  box-shadow: 0 10px 25px rgba(109,40,217,.35); text-decoration:none; cursor:pointer;
}
.cs-float:hover { filter: brightness(1.05); color:#fff !important; }
.site-footer {
  background:#0f172a; color:#94a3b8; padding: 36px 0 28px; margin-top: 28px; font-size:.9rem;
}
.site-footer a { color:#cbd5e1; text-decoration:none; }
.site-footer a:hover { color:#fff; }
.ft-wrap { width:min(1400px, calc(100% - 32px)); margin:0 auto; display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:24px; }
@media (max-width: 800px){ .ft-wrap { grid-template-columns: 1fr; } }
.ft-brand { color:#fff; font-weight:800; font-size:1.1rem; margin-bottom:8px; }
.ft-faq details { border-top:1px solid rgba(148,163,184,.2); padding:8px 0; }
.ft-faq summary { cursor:pointer; color:#e2e8f0; }
.admin-table { width:100%; border-collapse:collapse; background:#fff; }
.admin-table th, .admin-table td { border:1px solid #e2e8f0; padding:8px 10px; font-size:.85rem; }
.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; }
.badge-api { background:#dbeafe; color:#1d4ed8; }
.badge-tdata { background:#fce7f3; color:#be185d; }
.badge-session { background:#dcfce7; color:#15803d; }
.badge-low { background:#fff7ed; color:#c2410c; }
.notice-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.notice-links a { background:#eff6ff; color:#1d4ed8; padding:8px 12px; border-radius:10px; font-weight:600; text-decoration:none; }
.empty-rec { background:#fff; border:1px dashed #cbd5e1; border-radius:14px; padding:24px; }
.rec-cats { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.chip { display:inline-flex; padding:6px 10px; border-radius:999px; background:#f1f5f9; color:#334155; text-decoration:none; font-size:.85rem; }
.chip.active, a.chip.active { background:#2563eb; color:#fff; }
.sort-toolbar a.sort-btn { color: inherit; text-decoration:none; }
.sort-toolbar a.sort-btn.active { color: var(--primary-blue); font-weight:800; }
.content-wrapper > .page-shell { width: min(1400px, calc(100% - 24px)); margin: 16px auto 28px; }

/* —— ACCTIOS Hok shell extras —— */
body { background: #f1f5f9; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #0f172a; }
.content-wrapper { min-height: 40vh; }
.header-row-2 #authBar { display: inline-flex; align-items: center; gap: 8px; }
.header-row-2 .hb-btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: .88rem; cursor: pointer; text-decoration: none;
  border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
}
.header-row-2 .hb-btn.primary, .header-row-2 .hdr-auth-btn {
  background: #2563eb; color: #fff !important; border-color: #2563eb;
}
.header-row-2 .hb-btn.ghost { background: #fff; }
.header-row-2 .hb-bal {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #eff6ff; color: #1d4ed8; text-decoration: none; font-weight: 700; font-size: .85rem;
}
.header-row-2 .hb-bal b { color: #e11d48; }
.header-row-2 .hb-user { position: relative; }
.header-row-2 .hb-user-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff;
  border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer;
}
.header-row-2 .hb-av {
  width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#2563eb,#7c3aed);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem;
}
.header-row-2 .hb-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,42,.12); padding: 8px; z-index: 50;
}
.header-row-2 .hb-menu a, .header-row-2 .hb-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px;
  border-radius: 8px; color: #0f172a; text-decoration: none; cursor: pointer; font-size: .9rem;
}
.header-row-2 .hb-menu a:hover, .header-row-2 .hb-menu button:hover { background: #f1f5f9; }
.header-row-2 .hb-menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid #e2e8f0; margin-bottom: 4px; }
.header-row-2 .hb-menu-head b { display: block; font-size: .9rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.header-row-2 .hb-menu-head small { color: #64748b; }
.header-action-link { display: inline-flex; align-items: center; gap: 6px; color: #334155; text-decoration: none; font-size: .88rem; font-weight: 600; margin-right: 4px; }
.header-action-link:hover { color: #2563eb; }
#connStatus { display: none !important; } /* hide old conn pill on Hok shell */
.facet-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.facet-chips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f1f5f9; color: #334155; text-decoration: none; font-size: .85rem; border: 1px solid transparent; cursor: pointer; }
.facet-chips .chip.active { background: #2563eb; color: #fff; }
.facet-chips .chip .n { font-size: 11px; opacity: .8; }
.products-main-area .cat-search { position: relative; margin: 0 0 14px; }
.products-main-area .cat-search input {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 12px; padding: 11px 14px 11px 38px; font-size: .95rem;
}
.products-main-area .cat-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.sort-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sort-toolbar .sort-btn {
  border: 0; background: transparent; color: #64748b; font-size: .9rem; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.sort-toolbar .sort-btn.active { color: #2563eb; font-weight: 800; background: #eff6ff; }
.hot-side-list { display: grid; gap: 8px; margin-top: 10px; }
.hot-side-list a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; color: #0f172a; font-size: .85rem; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; }
.hot-side-list a:hover { color: #2563eb; }
.hot-side-list .hp { color: #e11d48; font-weight: 700; white-space: nowrap; }
.page-product-hok .detail { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:20px; margin:16px auto 28px; width:min(1400px, calc(100% - 24px)); }
.page-product-hok .detail-grid { display:grid; grid-template-columns: 1fr 300px; gap: 22px; }
@media (max-width: 900px){ .page-product-hok .detail-grid { grid-template-columns: 1fr; } }
