/* ============================================================
   COMMONS — Profile, Settings, Host, Nav menus
   ============================================================ */

/* ---------- Nav popovers ---------- */
.nav-pop-wrap { position: relative; display: flex; }
.nav-icon { position: relative; }
.nav-icon[data-on="true"] { background: var(--card); color: var(--ink); }
.nav-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 100px; background: var(--accent); box-shadow: 0 0 0 2px var(--paper); }
.nav-ava-btn { border-radius: 100px; transition: transform .2s var(--spring); }
.nav-ava-btn:hover { transform: scale(1.06); }
.nav-ava-btn:active { transform: scale(.94); }

.pop {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 200;
  width: 320px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  padding: 8px; transform-origin: top right;
  animation: popIn .22s var(--spring) both;
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(-6px); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; }
.pop-head b { font-size: 15px; }
.pop-clear { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.notif-list { display: grid; gap: 2px; }
.notif-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 10px; border-radius: 10px; text-align: left; transition: background .15s; position: relative; }
.notif-item:hover { background: var(--paper-2); }
.notif-item[data-unread="true"] { background: var(--accent-soft); }
.notif-item[data-unread="true"]:hover { background: color-mix(in oklch, var(--accent) 22%, var(--card)); }
.notif-txt { flex: 1; }
.notif-txt span { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.notif-txt b { color: var(--ink); font-weight: 700; }
.notif-txt i { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; font-style: normal; }
.notif-unread { width: 8px; height: 8px; border-radius: 100px; background: var(--accent); margin-top: 6px; flex: none; }
.pop-foot { width: 100%; margin-top: 6px; padding: 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--paper-2); transition: background .15s; }
.pop-foot:hover { background: var(--line); }

.user-pop { width: 280px; }
.user-pop-head { display: flex; align-items: center; gap: 12px; padding: 10px; width: 100%; border-radius: 10px; text-align: left; transition: background .15s; }
.user-pop-head:hover { background: var(--paper-2); }
.user-pop-head b { font-size: 15px; display: block; }
.user-pop-head span { font-size: 12.5px; color: var(--ink-faint); }
.user-pop .hr { margin: 6px 4px; }
.user-pop-list { display: grid; gap: 2px; }
.user-pop-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; width: 100%; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); transition: background .15s, color .15s; }
.user-pop-item:hover { background: var(--paper-2); }
.user-pop-item .icon { color: var(--ink-faint); }
.user-pop-item:hover .icon { color: var(--accent); }
.user-pop-item i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.user-pop-item.muted { color: var(--ink-soft); }

/* ---------- Profile ---------- */
.profile { padding-bottom: 80px; }
.pf-banner { height: 220px; overflow: hidden; }
.pf-cover { height: 220px; }
.pf-head { position: relative; margin-top: -56px; }
.pf-ava { display: inline-block; border-radius: 100px; box-shadow: 0 0 0 5px var(--paper); }
.pf-ava .ava { box-shadow: inset 0 0 0 3px rgba(255,255,255,.2); }
.pf-actions { position: absolute; right: 0; top: 64px; display: flex; gap: 10px; }
.pf-id { margin-top: 16px; }
.pf-id h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.pf-handle { font-size: 15px; color: var(--ink-faint); font-weight: 500; }
.pf-bio { font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; margin-top: 12px; text-wrap: pretty; }
.pf-meta { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); }
.pf-meta b { color: var(--ink); font-weight: 700; }
.pf-stat { font-size: 14.5px; color: var(--ink-soft); transition: color .15s; }
.pf-stat:hover { color: var(--accent); }
.pf-joined { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-faint); margin-left: auto; }
.pf-joined .icon { color: var(--ink-faint); }
.pf-badges { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pf-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--card); padding: 6px 12px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); }
.pf-badge .icon { color: var(--gold); fill: var(--gold); flex: none; }

.pf-tabs { display: flex; gap: 4px; margin: 30px 0 24px; border-bottom: 1px solid var(--line); }
.pf-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 16px; font-size: 15px; font-weight: 600; color: var(--ink-faint); transition: color .2s; }
.pf-tab:hover { color: var(--ink); }
.pf-tab[data-on="true"] { color: var(--ink); }
.pf-tab[data-on="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; background: var(--accent); border-radius: 3px; }
.pf-tab-n { font-size: 12px; font-family: var(--mono); color: var(--ink-faint); background: var(--card); padding: 2px 7px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); }
.pf-tab[data-on="true"] .pf-tab-n { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.pf-body { animation: viewIn .4s var(--ease) both; }
.pf-posts { max-width: 760px; }
.pf-draft { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 200px; border-radius: var(--radius); border: 2px dashed var(--line-strong); color: var(--ink-faint); transition: all .2s; text-align: center; padding: 20px; }
.pf-draft:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pf-draft b { font-size: 19px; font-weight: 500; color: var(--ink); }
.pf-draft:hover b { color: var(--accent); }
.pf-draft span { font-size: 13px; }
.pf-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 70px 20px; color: var(--ink-faint); }
.pf-empty .icon { color: var(--ink-faint); }
.pf-empty b { font-size: 22px; font-weight: 500; color: var(--ink); }
.pf-empty p { font-size: 15px; max-width: 32ch; }
.pf-empty .btn { margin-top: 8px; }

/* ---------- Settings ---------- */
.settings { padding-bottom: 80px; }
.settings-title { font-size: clamp(32px, 4vw, 46px); font-weight: 400; letter-spacing: -0.02em; margin: 6px 0 26px; }
.settings-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.settings-nav { position: sticky; top: 88px; display: grid; gap: 3px; }
.settings-navbtn { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); text-align: left; transition: all .18s; }
.settings-navbtn:hover { background: var(--card); color: var(--ink); }
.settings-navbtn[data-on="true"] { background: var(--ink); color: var(--paper); }
.settings-navbtn .icon { color: currentColor; opacity: .8; }
.settings-panel { padding: 32px; animation: viewIn .35s var(--ease) both; }
.set-sec h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.015em; margin-bottom: 6px; }
.set-lead { font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; line-height: 1.5; }
.set-avarow { display: flex; align-items: center; gap: 18px; padding: 16px 0 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.set-avarow > div { display: grid; gap: 8px; }
.set-avarow span { font-size: 12.5px; color: var(--ink-faint); }

.field { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field-l b { font-size: 14.5px; font-weight: 600; display: block; }
.field-l span { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; display: block; }
.field-c input, .field-c textarea, .input-prefix, .input-icon { width: 100%; }
input:not(.range), textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px; outline: none; transition: box-shadow .18s, background .18s; resize: vertical;
}
input:not(.range):focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); background: var(--card); }
.input-prefix, .input-icon { display: flex; align-items: center; gap: 0; background: var(--paper-2); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .18s; }
.input-prefix:focus-within, .input-icon:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.input-prefix span, .input-icon .icon { padding-left: 13px; color: var(--ink-faint); flex: none; }
.input-prefix input, .input-icon input { background: none; box-shadow: none; padding-left: 8px; }
.input-prefix input:focus, .input-icon input:focus { box-shadow: none; background: none; }

.set-foot { display: flex; gap: 10px; margin-top: 22px; }
.set-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.set-block:last-child { border-bottom: 0; }
.set-block > b { font-size: 14.5px; display: block; margin-bottom: 12px; }
.set-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.set-block-head b { font-size: 14.5px; }
.set-val { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.set-radio { display: flex; gap: 8px; flex-wrap: wrap; }
.set-radio-btn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .18s; }
.set-radio-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.set-radio-btn[data-on="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.radio-dot { width: 16px; height: 16px; border-radius: 100px; box-shadow: inset 0 0 0 2px var(--line-strong); transition: all .18s; }
.set-radio-btn[data-on="true"] .radio-dot { box-shadow: inset 0 0 0 5px var(--accent); }

/* Toggle */
.tg { width: 46px; height: 27px; border-radius: 100px; background: var(--line-strong); padding: 3px; transition: background .22s var(--ease); justify-self: end; }
.tg-knob { display: block; width: 21px; height: 21px; border-radius: 100px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .24s var(--spring); }
.tg[data-on="true"] { background: var(--accent); }
.tg[data-on="true"] .tg-knob { transform: translateX(19px); }
.field .tg { justify-self: end; }

/* Range */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px; background: var(--line); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 100px; background: var(--accent); cursor: pointer; box-shadow: 0 2px 6px color-mix(in oklch, var(--accent) 40%, transparent), 0 0 0 4px var(--card); transition: transform .15s; }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: none; border-radius: 100px; background: var(--accent); cursor: pointer; }
.range-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; font-family: var(--mono); color: var(--ink-faint); }

.set-swatches { display: flex; gap: 10px; }
.set-swatch { width: 38px; height: 38px; border-radius: 100px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); transition: transform .18s var(--spring); }
.set-swatch:hover { transform: scale(1.1); }
.set-swatch[data-on="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }

.set-danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px; border-radius: var(--radius-sm); background: color-mix(in oklch, var(--accent) 7%, var(--card)); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.set-danger b { font-size: 14.5px; display: block; }
.set-danger span { font-size: 13px; color: var(--ink-soft); }
.btn.danger { color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--accent) 40%, transparent); }
.btn.danger:hover { background: var(--accent); color: #fff; box-shadow: none; }

@media (max-width: 800px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .field { grid-template-columns: 1fr; gap: 10px; } .field .tg { justify-self: start; } }

/* ---------- Host an event ---------- */
.host { padding-bottom: 80px; }
.host-head { margin: 6px 0 30px; }
.host-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; margin-top: 8px; max-width: 16ch; }
.host-grid { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
.host-form { display: grid; gap: 4px; }
.hfield { padding: 16px 0; border-bottom: 1px solid var(--line); }
.hfield-l { margin-bottom: 11px; }
.hfield-l b { font-size: 15px; font-weight: 600; }
.hfield-l span { font-size: 13px; color: var(--ink-faint); margin-left: 8px; }
.host-title-input { font-family: var(--serif); font-size: 22px; padding: 14px 16px; }
.host-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.host-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.host-row .hfield { border-bottom: 1px solid var(--line); }
.host-price { display: flex; align-items: center; gap: 8px; }
.host-price .seg { box-shadow: inset 0 0 0 1.5px var(--line); padding: 10px 18px; }
.host-price .seg[data-on="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.price-in { width: 120px; }
.host-covers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.host-cover-opt { border-radius: 8px; transition: transform .18s var(--spring); box-shadow: 0 0 0 2px transparent; }
.host-cover-opt:hover { transform: translateY(-2px); }
.host-cover-opt[data-on="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.host-cover-opt .cover { box-shadow: none; }

.host-preview-sticky { position: sticky; top: 88px; }
.host-preview .kicker { display: block; margin-bottom: 14px; }
.host-pv-card { cursor: default; padding: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.host-pv-card .ev-body { padding: 14px 4px 4px; }
.host-publish { width: 100%; justify-content: center; margin-top: 18px; padding: 14px; font-size: 16px; }
.host-publish:disabled { opacity: .45; pointer-events: none; }
.host-pv-note { text-align: center; font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

/* Host done */
.host-done { min-height: 70vh; display: grid; place-items: center; }
.host-done-inner { display: grid; place-items: center; }
.host-done-card { max-width: 460px; text-align: center; padding: 44px; display: grid; justify-items: center; }
.host-check { width: 64px; height: 64px; border-radius: 100px; background: var(--sage); color: #fff; display: grid; place-items: center; margin-bottom: 18px; animation: pop .5s var(--spring) both; }
.host-done-card .kicker { display: block; margin-bottom: 6px; }
.host-done-card h1 { font-size: 30px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
.host-done-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; margin: 14px 0 24px; }
.host-done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 860px) {
  .host-grid { grid-template-columns: 1fr; }
  .host-preview-sticky { position: static; }
  .pf-actions { position: static; margin-top: 16px; }
}

/* ---------- Composer (New post) ---------- */
.cmp-comms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cmp-comm { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm); text-align: left; box-shadow: inset 0 0 0 1.5px var(--line); transition: all .18s; }
.cmp-comm:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); transform: translateY(-1px); }
.cmp-comm[data-on="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.cmp-comm-txt { flex: 1; display: grid; line-height: 1.2; min-width: 0; }
.cmp-comm-txt b { font-size: 14px; font-weight: 700; }
.cmp-comm-txt span { font-size: 11.5px; color: var(--ink-faint); }
.cmp-comm-check { color: var(--accent); flex: none; }
.cmp-attach { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .18s; }
.cmp-attach:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.cmp-attach[data-on="true"] { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.cmp-pv { pointer-events: none; }
.cmp-pv .post { cursor: default; box-shadow: var(--shadow-md); }
.cmp-pv .post:hover { transform: none; }
