/* ─────────────────────────────────────────────────────────────────────────────
   site.css — shared Picela look (loaded by every page, before the page's own
   <style>). Holds the brand tokens, base typography and the shared top nav
   rendered by /site-nav.js. Page styles still win where a page sets its own.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --ih-bg: #080809;
  --ih-surface: #111114;
  --ih-surface2: #1a1a1f;
  --ih-border: rgba(255,255,255,0.07);
  --ih-border-hover: rgba(255,255,255,0.16);
  --ih-accent: #f5c842;
  --ih-accent-dim: rgba(245,200,66,0.10);
  --ih-text: #f0ede8;
  --ih-muted: #8a867e;
  --ih-danger: #ff6b6b;
  --ih-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ih-display: 'Cabinet Grotesk', 'DM Sans', system-ui, sans-serif;
  --sn-h: 74px;
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ih-bg); color: var(--ih-text); font-family: var(--ih-font); }
h1, h2, h3 { font-family: var(--ih-display); }
::selection { background: rgba(245,200,66,0.3); }

/* ── Shared top nav ─────────────────────────────────────────────────────────── */
.sn, .sn * { box-sizing: border-box; }
.sn {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--sn-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 3rem;
  background: rgba(8,8,9,0.85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ih-border);
  font-family: var(--ih-font); font-size: 14px; line-height: 1.2;
  margin: 0;
}
.sn-spacer { height: var(--sn-h); }
.sn a { text-decoration: none; }
.sn .sn-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sn .sn-logo-icon { width: 34px; height: 34px; background:#1d1d22;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.sn .sn-logo-icon svg { width: 30px; height: 30px; fill: #080809; }
.sn .sn-logo-text { font-family: var(--ih-display); font-size: 20px; font-weight: 800; color: var(--ih-text); letter-spacing: -0.2px; }
.sn .sn-links { display: flex; align-items: center; gap: 2rem; }
.sn .sn-links a { color: var(--ih-muted); font-size: 14px; font-weight: 400; white-space: nowrap; transition: color .2s; padding: 4px 0; background: none; border: 0; }
.sn .sn-links a:hover, .sn .sn-links a.active { color: var(--ih-text); }
.sn .sn-links a.active { box-shadow: inset 0 -2px 0 var(--ih-accent); }
.sn .sn-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sn #guestNav, .sn #userNav { display: flex; align-items: center; gap: 10px; }
.sn #userNav { display: none; }
.sn.sn-in #userNav, .sn #userNav.visible { display: flex; }
.sn.sn-in #guestNav { display: none !important; }
.sn .sn-btn-ghost { display: inline-flex; align-items: center; background: none; border: 1px solid var(--ih-border); border-radius: 8px; padding: 0.5rem 1.1rem; color: var(--ih-muted); font-size: 14px; font-family: var(--ih-font); white-space: nowrap; transition: all .2s; cursor: pointer; }
.sn .sn-btn-ghost:hover { border-color: var(--ih-border-hover); color: var(--ih-text); }
.sn .sn-btn-primary { display: inline-flex; align-items: center; background: var(--ih-accent); border: none; border-radius: 8px; padding: 0.5rem 1.25rem; color: #080809; font-size: 14px; font-weight: 700; font-family: var(--ih-display); white-space: nowrap; transition: opacity .2s, transform .2s; cursor: pointer; }
.sn .sn-btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.sn #listBizBtn { display: none; }
.sn #listBizBtn.visible { display: inline-flex; }
.sn #backToDashBtn { display: none !important; }
.sn .sn-bell-wrap { position: relative; }
.sn .sn-bell { cursor: pointer; padding: 0; font-family: inherit; }
.sn .sn-bell[aria-expanded="true"] { border-color: var(--ih-accent); background: var(--ih-accent-dim); }
.sn .sn-bell { position: relative; width: 38px; height: 38px; border-radius: 10px; background: var(--ih-surface); border: 1px solid var(--ih-border); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ih-text); }
.sn .sn-bell:hover { border-color: var(--ih-border-hover); }
.sn .sn-bell-badge { position: absolute; top: -4px; right: -4px; background: var(--ih-danger); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: none; align-items: center; justify-content: center; padding: 0 4px; font-family: var(--ih-font); }
.sn .sn-avatar-wrap { position: relative; }
.sn #navAvatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ih-accent-dim); border: 2px solid var(--ih-accent); color: var(--ih-accent); font-family: var(--ih-display); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; padding: 0; }
.sn #navAvatar img { width: 100%; height: 100%; object-fit: cover; }
.sn .sn-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); padding: 6px; display: none; flex-direction: column; }
.sn .sn-menu.open { display: flex; }
.sn .sn-menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--ih-border); margin-bottom: 4px; }
.sn .sn-menu-name { font-weight: 600; color: var(--ih-text); font-size: 14px; }
.sn .sn-menu-role { color: var(--ih-muted); font-size: 12px; margin-top: 2px; }
.sn .sn-menu a, .sn .sn-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ih-text); font-size: 14px; background: none; border: 0; font-family: var(--ih-font); cursor: pointer; }
.sn .sn-menu a:hover, .sn .sn-menu button:hover { background: rgba(255,255,255,.05); }
.sn .sn-menu .sn-signout { color: var(--ih-danger); }
.sn .sn-burger { display: none; width: 38px; height: 38px; border-radius: 10px; background: var(--ih-surface); border: 1px solid var(--ih-border); color: var(--ih-text); font-size: 18px; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.sn-drawer { position: fixed; top: var(--sn-h); left: 0; right: 0; z-index: 999; background: rgba(8,8,9,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--ih-border); padding: .5rem 1rem 1rem; display: none; flex-direction: column; font-family: var(--ih-font); }
.sn-drawer.open { display: flex; }
.sn-drawer a { color: var(--ih-text); text-decoration: none; font-size: 16px; padding: 14px 8px; border-bottom: 1px solid var(--ih-border); }
.sn-drawer a:last-child { border-bottom: 0; }
.sn-drawer a.active { color: var(--ih-accent); }

.sn .sn-notif { position: absolute; top: calc(100% + 10px); right: -60px; width: 380px; max-height: min(520px, calc(100vh - 100px)); background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.55); display: none; flex-direction: column; overflow: hidden; z-index: 1001; }
.sn .sn-notif.open { display: flex; }
.sn .sn-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.sn .sn-notif-title { font-family: var(--ih-display); font-size: 18px; font-weight: 800; color: var(--ih-text); }
.sn .sn-notif-all { background: none; border: 0; color: var(--ih-accent); font-size: 12.5px; cursor: pointer; font-family: var(--ih-font); padding: 4px 6px; border-radius: 6px; }
.sn .sn-notif-all:hover { background: var(--ih-accent-dim); }
.sn .sn-notif-tabs { display: flex; gap: 6px; padding: 0 16px 10px; border-bottom: 1px solid var(--ih-border); }
.sn .sn-notif-tabs button { background: none; border: 0; color: var(--ih-muted); font-size: 13px; font-weight: 600; font-family: var(--ih-font); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.sn .sn-notif-tabs button.on { background: var(--ih-accent-dim); color: var(--ih-accent); }
.sn .sn-notif-list { overflow-y: auto; flex: 1; padding: 6px; }
.sn .sn-notif-item { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; font-family: var(--ih-font); color: var(--ih-text); }
.sn .sn-notif-item:hover { background: rgba(255,255,255,.05); }
.sn .sn-notif-item.unread { background: rgba(245,200,66,.06); }
.sn .sn-notif-item.unread:hover { background: rgba(245,200,66,.1); }
.sn .sn-notif-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--ih-surface2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.sn .sn-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sn .sn-notif-item-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.sn .sn-notif-msg { font-size: 12.5px; color: var(--ih-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn .sn-notif-item.unread .sn-notif-msg { color: #b9b4aa; }
.sn .sn-notif-time { font-size: 11.5px; color: var(--ih-muted); margin-top: 2px; }
.sn .sn-notif-item.unread .sn-notif-time { color: var(--ih-accent); }
.sn .sn-notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ih-accent); flex-shrink: 0; align-self: center; }
.sn .sn-notif-empty { text-align: center; padding: 2.5rem 1rem; color: var(--ih-muted); font-size: 13px; }

@media (max-width: 1480px) {
  .sn .sn-links { gap: 1.4rem; }
}
@media (max-width: 1240px) {
  .sn { padding: 0 1.5rem; }
  .sn .sn-links { gap: 1.25rem; }
  .sn .sn-links a { font-size: 13.5px; }
}
@media (max-width: 1160px) {
  .sn .sn-links { display: none; }
  .sn .sn-burger { display: flex; }
}
@media (max-width: 768px) {
  :root { --sn-h: 62px; }
  .sn { padding: 0 1rem; gap: .75rem; }
  .sn .sn-right { gap: 6px; }
  .sn #guestNav, .sn #userNav { gap: 6px; }
  .sn .sn-btn-ghost, .sn .sn-btn-primary { padding: .45rem .8rem; font-size: 13px; }
  .sn .sn-dash-btn, .sn #listBizBtn, .sn #postRequestNavBtn { display: none !important; }
  .sn .sn-bell, .sn #navAvatar, .sn .sn-burger { width: 36px; height: 36px; }
  .sn .sn-bell-wrap { position: static; }
  .sn .sn-notif { position: fixed; top: calc(var(--sn-h) + 6px); left: 8px; right: 8px; width: auto; max-height: calc(100vh - var(--sn-h) - 20px); }
}
@media (max-width: 420px) {
  .sn .sn-logo-text { font-size: 18px; }
  .sn .sn-btn-ghost { display: none; }
}

/* ── Shared footer (site-nav.js) ── */
footer.ih-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 2rem; padding: 2.5rem 3rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.07); font-size: 13px; color: #8a867f; font-family: 'DM Sans', system-ui, sans-serif; }
footer.ih-foot a { color: #8a867f; text-decoration: none; transition: color .2s; }
footer.ih-foot a:hover { color: #f0ede8; }
.ih-foot-logo { display: flex; align-items: center; gap: 10px; }
.ih-foot-logo .sn-logo-icon { width: 32px; height: 32px; border-radius: 8px; background:#1d1d22;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ih-foot-logo .sn-logo-icon svg { width: 28px; height: 28px; }
.ih-foot-logo b { font-family: 'Cabinet Grotesk', 'DM Sans', sans-serif; font-size: 19px; font-weight: 800; color: #f0ede8; }
.ih-foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: center; }
/* some pages style every <nav> as the fixed top bar; keep the footer links in the footer */
footer.ih-foot nav.ih-foot-links { position: static; inset: auto; width: auto; height: auto; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; transform: none; }
.ih-foot-brand { display: flex; flex-direction: column; gap: 1.1rem; }
footer.ih-foot a.ih-foot-wa { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #16161a; border: 1px solid rgba(255,255,255,0.07); transition: border-color .2s; }
footer.ih-foot a.ih-foot-wa:hover { border-color: rgba(37,211,102,0.45); }
.ih-foot-qr { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; box-sizing: border-box; display: block; }
.ih-foot-wa-text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.ih-foot-wa-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #f0ede8; font-size: 13.5px; }
.ih-foot-wa-num { color: #f0ede8; font-size: 13px; letter-spacing: .2px; }
.ih-foot-wa-hint { font-size: 11.5px; color: #6f6b65; }
.ih-foot-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.ih-foot-legal-links { display: flex; gap: 1rem; font-size: 12px; }
@media (max-width: 768px) {
  footer.ih-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 2rem 1rem; gap: 1.25rem; }
  .ih-foot-legal { align-items: center; text-align: center; }
  .ih-foot-links { gap: .6rem 1rem; font-size: 12.5px; }
  .ih-foot-brand { align-items: center; }
  .ih-foot-qr, .ih-foot-wa-hint { display: none; }
  footer.ih-foot a.ih-foot-wa { background: #25d366; border-color: #25d366; padding: 10px 16px; }
  footer.ih-foot a.ih-foot-wa .ih-foot-wa-title, footer.ih-foot a.ih-foot-wa .ih-foot-wa-num { color: #06210f; }
  .ih-foot-wa-title svg { fill: #06210f; }
}
/* ── Shared phone tab bar ── */
.ih-tabbar { display: none; }
@media (max-width: 768px) {
  .ih-tabbar { display: flex; justify-content: space-around; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; height: 58px; padding: 4px 0 max(4px, env(safe-area-inset-bottom)); background: #080809; border-top: 1px solid rgba(245,200,66,0.35); font-family: 'DM Sans', system-ui, sans-serif; }
  .ih-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8a867f; text-decoration: none; font-size: 10.5px; }
  .ih-tabbar a.on { color: #f5c842; }
  .ih-tabbar .ih-tab-post { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #f5c842; color: #080809; justify-content: center; margin-top: -16px; box-shadow: 0 4px 14px rgba(245,200,66,0.35); }
  body.ih-has-tabbar { padding-bottom: 58px; }
}

/* Decorative icon slots left empty after removing emojis: hide them */
[class*="icon"]:empty, [class*="emoji"]:empty, .ico:empty, .big:empty, .e:empty, .ic:empty { display: none !important; }
