/* Hub — light social feed. Site blue, matching the rest of Rejik. */
body.hub-page .dash {
  background:
    radial-gradient(900px 280px at 50% -40px, #dbeafe 0%, transparent 70%),
    #f8fafc;
}
body.hub-page .dash .main { padding-top: .15rem; }
body.hub-page .chat-fab,
body.hub-page .activate-banner { display: none !important; }
/* Keep overflow clip off .dash — it breaks the fixed hamburger sidebar drawer */
body.hub-page,
body.hub-page .dash {
  min-width: 0;
  max-width: 100%;
}
body.hub-page .dash-stage,
body.hub-page .main,
body.hub-page .main-inner {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
body.hub-page .main-inner {
  container-type: inline-size;
  container-name: hubmain;
}
body.hub-page .sidebar {
  z-index: 90 !important;
}
body.hub-page .sidebar-backdrop {
  z-index: 85 !important;
}
body.hub-page.dash-open .sidebar {
  transform: translateX(0) !important;
}
body.hub-page .dash-menu-btn {
  display: grid !important;
  position: relative;
  z-index: 21;
}

.hub {
  --hub: #2563eb;
  --hub-ink: #1d4ed8;
  --hub-soft: #eff6ff;
  --hub-line: #bfdbfe;
  --hub-card: #ffffff;
  --hub-edge: #e5e7eb;
  --hub-wash: #f0f2f5;
  --hub-ease: cubic-bezier(.22, 1, .36, 1);
  --hub-move: .34s var(--hub-ease);
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: .7rem;
  padding-bottom: 1.6rem;
  min-width: 0;
  box-sizing: border-box;
}

.hub-shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 0 .75rem;
  box-sizing: border-box;
  position: relative;
  min-width: 0;
}
.hub-shell-guest {
  padding: .85rem .75rem 1.5rem;
}
/* Side banners: both 160×600, no card chrome */
.hub-sky {
  display: none;
}
.hub-sky-slot {
  width: 160px;
  max-width: 100%;
  height: 600px;
  overflow: hidden;
  background: transparent;
}
.hub-sky-frame {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 600px;
  border: 0;
  background: transparent;
}
/* Phone: no side banners. Desktop uses the content-area width, not the raw window. */
@media (max-width: 767px) {
  .hub-sky,
  .hub-sky-left,
  .hub-sky-right { display: none !important; }
}
@container hubmain (min-width: 760px) {
  .hub-shell {
    display: grid !important;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    justify-content: stretch;
    align-items: start;
    column-gap: .7rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .hub-sky {
    display: block !important;
    position: sticky;
    top: 4.75rem;
    width: 160px;
    max-width: 160px;
    height: 600px;
    overflow: hidden;
    z-index: 2;
  }
  .hub-sky-left { grid-column: 1; grid-row: 1; }
  .hub-sky-right { grid-column: 3; grid-row: 1; }
  .hub {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
}
.hub-stories,
.hub-write,
.hub-note,
.hub-ad,
.hub-shell > .hub {
  min-width: 0;
  max-width: 100%;
}
.hub > * {
  min-width: 0;
  max-width: 100%;
}

.hub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  position: relative;
  z-index: 1;
  padding: .45rem .2rem .4rem;
  margin: 0 -.1rem;
  background: transparent;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.hub-top > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.hub-top h1 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.42rem;
  letter-spacing: -.03em;
}
.hub-top p {
  margin: .12rem 0 0;
  color: var(--dash-muted);
  font-size: .82rem;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hub-today {
  flex: 0 0 auto;
  flex-shrink: 0;
  background: var(--hub-soft);
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  padding: .42rem .8rem .4rem;
  display: grid;
  gap: .08rem;
  text-align: right;
  min-width: 6.5rem;
  max-width: 9rem;
  box-sizing: border-box;
}
.hub-today span {
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--hub-ink);
}
.hub-today strong { font-size: 1.02rem; color: var(--hub-ink); }
.hub-today em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
  color: #1d4ed8;
}

.hub-earn,
.hub-write,
.hub-note,
.hub-ad,
.hub-empty,
.hub-stories {
  background: var(--hub-card);
  border: 1px solid var(--hub-edge);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.hub-earn { padding: .8rem .85rem; }
.hub-earn-h {
  display: flex;
  gap: .65rem;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hub-earn-ring {
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--hub) calc(var(--p, 0) * 1%), #e6eaea 0);
  transition: background .5s var(--hub-ease);
}
.hub-earn-ring::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}
.hub-earn-ring b {
  position: relative;
  font-size: .68rem;
  font-weight: 800;
  color: var(--hub-ink);
}
.hub-earn-lead { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.hub-earn-lead strong { font-size: .96rem; letter-spacing: -.01em; }
.hub-earn-lead small { color: var(--dash-muted); font-size: .78rem; font-weight: 650; }
.hub-earn.is-done .hub-earn-lead small { color: var(--hub-ink); }
.hub-earn-caret {
  width: .58rem;
  height: .58rem;
  flex-shrink: 0;
  margin-right: .2rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform var(--hub-move);
}
.hub-earn.is-min .hub-earn-caret { transform: rotate(-135deg); }
.hub-earn-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--hub-move), opacity .24s ease;
}
.hub-earn-inner { overflow: hidden; min-height: 0; padding-top: .75rem; }
.hub-earn.is-min .hub-earn-body { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.hub-earn-bar {
  height: 7px;
  background: #eef2f1;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .7rem;
}
.hub-earn-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5eead4, var(--hub));
  border-radius: 99px;
  transition: width .6s var(--hub-ease);
}
.hub-steps { display: grid; gap: .4rem; }
@media (min-width: 620px) { .hub-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub-step {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e6eaef;
  border-radius: 12px;
  padding: .65rem .7rem;
  width: 100%;
  font: inherit;
  text-align: left;
  color: inherit;
}
.hub-step.is-tap { cursor: pointer; }
.hub-step.is-tap:hover { background: #fff; border-color: var(--hub-line); }
.hub-step em {
  display: block;
  font-style: normal;
  font-size: .74rem;
  font-weight: 800;
  color: var(--hub-ink);
  margin-top: .1rem;
}
.hub-step.is-on em { color: #64748b; }
.hub-step b {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cbd5e1;
  display: grid;
  place-items: center;
  font-size: .72rem;
  color: var(--hub);
  flex-shrink: 0;
}
.hub-step.is-on { background: var(--hub-soft); border-color: var(--hub-line); }
.hub-step.is-on b { background: var(--hub); color: #fff; border-color: var(--hub); }
.hub-step strong { display: block; font-size: .86rem; }
.hub-step small { display: block; margin-top: .15rem; color: var(--dash-muted); font-size: .72rem; line-height: 1.35; }
.hub-lock {
  display: block;
  margin-top: .75rem;
  text-align: center;
  font-weight: 750;
  color: var(--hub-ink);
  text-decoration: none;
}

.hub-stories { padding: .75rem .85rem .8rem; overflow: hidden; max-width: 100%; }
.hub-stories-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dash-muted);
  margin-bottom: .65rem;
}
.hub-stories-h em {
  font-style: normal;
  font-weight: 650;
  opacity: .75;
  letter-spacing: .02em;
  text-transform: none;
}
.hub-stories-row {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding: .1rem .05rem .2rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.hub-stories-row::-webkit-scrollbar { display: none; }
.hub-story {
  border: 0;
  background: none;
  padding: 0;
  width: 6.5rem;
  cursor: pointer;
  font: inherit;
  color: #fff;
  flex-shrink: 0;
  text-align: left;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.hub-story-ring {
  display: block;
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #2563eb 42%, #6366f1);
  transition: transform .28s var(--hub-ease), box-shadow .28s ease;
}
.hub-story-add .hub-story-ring {
  background: linear-gradient(135deg, #d1fae5, #bfdbfe);
}
.hub-story:hover .hub-story-ring {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px -16px rgba(15, 23, 42, .45);
}
.hub-story:active .hub-story-ring { transform: scale(.97); }
.hub-story-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  border-radius: 16px;
  padding: .48rem .48rem .5rem;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .12), rgba(15, 23, 42, .5)),
    linear-gradient(165deg, color-mix(in srgb, var(--c, var(--hub)) 72%, #fff), var(--c, var(--hub)));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.hub-story-tile.is-photo {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .15) 0%, rgba(15, 23, 42, .55) 100%),
    var(--story-img) center / cover no-repeat,
    var(--c, #2563eb);
}
.hub-story-tile.add {
  background: #f8fafc;
  color: #111827;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}
.hub-story-tile.add::after {
  content: "+";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--hub);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 8px 16px -8px rgba(13, 148, 136, .8);
}
.hub-story-tile .hub-av {
  width: 1.7rem;
  height: 1.7rem;
  font-size: .68rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.hub-story-tile.add .hub-av { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d1fae5; }
.hub-story-snip {
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 10px rgba(15, 23, 42, .4);
}
.hub-story-tile.add .hub-story-snip { display: none; }
.hub-story em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .95;
  text-shadow: 0 1px 8px rgba(15, 23, 42, .35);
}
.hub-stories-empty { margin: .2rem 0; color: var(--dash-muted); font-size: .84rem; }

.hub-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d1fae5;
}
.hub-av.sm { width: 32px; height: 32px; font-size: .72rem; box-shadow: none; }

.hub-write {
  border-radius: 22px;
  box-shadow: 0 12px 32px -22px rgba(37, 99, 235, .22);
  overflow: hidden;
}
.hub-write-form { padding: .9rem 1rem .8rem; display: grid; gap: .6rem; }
.hub-write-top { display: flex; gap: .65rem; align-items: flex-start; }
.hub-write-main { flex: 1; min-width: 0; display: grid; gap: .35rem; }
.hub-write-meta {
  display: none;
  margin: 0;
  color: var(--dash-muted);
  font-size: .74rem;
  font-weight: 650;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
}
.hub-write.is-open .hub-write-meta { display: flex; }
.hub-write-meta [data-hub-feel-live]:not([hidden]) {
  color: var(--hub-ink);
  background: var(--hub-soft);
  border-radius: 999px;
  padding: .12rem .45rem;
}
.hub-write-meta [data-hub-words]:not([hidden]) {
  font-variant-numeric: tabular-nums;
}
.hub-write-meta [data-hub-words].is-ready {
  color: #1d4ed8;
  font-weight: 750;
}
.hub-write-text {
  width: 100%;
  border: 0;
  background: #f1f5f9;
  border-radius: 16px;
  padding: .85rem 1.05rem;
  font: inherit;
  font-size: .96rem;
  resize: none;
  min-height: 2.5rem;
  max-height: 9rem;
  outline: none;
  overflow: hidden;
  line-height: 1.4;
  transition: min-height var(--hub-move), border-radius var(--hub-move), background .2s ease, box-shadow .2s ease, height .2s var(--hub-ease);
}
.hub-write.is-open .hub-write-text,
.hub-write-text:focus {
  min-height: 4.4rem;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 0 0 3px #dbeafe;
}
.hub-write-foot {
  display: flex;
  align-items: center;
  gap: .4rem;
  border-top: 1px solid #eef0f3;
  padding-top: .55rem;
}
.hub-write-tools {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex: 1;
  min-width: 0;
}
.hub-write-count {
  display: none;
  color: var(--dash-muted);
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}
.hub-write.is-open .hub-write-count { display: inline; }
.hub-write-foot .hub-post-btn {
  display: none;
  flex-shrink: 0;
  min-width: 5.2rem;
  height: 2.35rem;
  padding: 0 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  border: 0;
  font-weight: 800;
}
.hub-write.is-open .hub-write-foot .hub-post-btn { display: inline-flex; }
.hub-write-lock { display: flex; gap: .75rem; align-items: flex-start; padding: 1.05rem 1.1rem; }
.hub-write-lock p { margin: .2rem 0 .7rem; color: var(--dash-muted); font-size: .88rem; }

.hub-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  padding: .42rem .55rem;
  border-radius: 10px;
  color: #4b5563;
  font-weight: 750;
  font-size: .8rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .18s var(--hub-ease);
}
.hub-tool:hover { background: var(--hub-soft); color: var(--hub-ink); }
.hub-tool:active { transform: scale(.97); }
.hub-tool.is-on { background: var(--hub-soft); color: var(--hub-ink); }
.hub-tool-ico {
  width: .95rem;
  height: .95rem;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  background: currentColor;
  mask: none;
}
.hub-tool-ico.photo {
  background: #059669;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hub-tool-ico.mood {
  background: #d97706;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3Cline x1='9' y1='9' x2='9.01' y2='9'/%3E%3Cline x1='15' y1='9' x2='15.01' y2='9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3Cline x1='9' y1='9' x2='9.01' y2='9'/%3E%3Cline x1='15' y1='9' x2='15.01' y2='9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hub-tool-ico.status {
  background: #7c3aed;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.4L19 10l-5.2 1.6L12 17l-1.8-5.4L5 10l5.2-1.6L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.4L19 10l-5.2 1.6L12 17l-1.8-5.4L5 10l5.2-1.6L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hub-post-btn {
  background: var(--hub);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .5rem 1.15rem;
  font-weight: 750;
  font-size: .88rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background .2s ease, transform .18s var(--hub-ease), box-shadow .2s ease;
}
.hub-post-btn:hover { background: #1d4ed8; }
.hub-post-btn:active { transform: scale(.98); }
.hub-post-btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; transform: none; }

.hub-empty { text-align: center; padding: 2rem 1.1rem; color: var(--dash-muted); }
.hub-empty h3 { margin: 0 0 .3rem; color: var(--dash-fg); }

.hub-feed { display: grid; gap: .7rem; }
.hub-fresh {
  justify-self: center;
  position: sticky;
  top: .65rem;
  z-index: 12;
  border: 0;
  background: #fff;
  color: var(--hub-ink);
  font: inherit;
  font-weight: 800;
  font-size: .84rem;
  padding: .48rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px -10px rgba(13, 148, 136, .45), 0 0 0 1px var(--hub-line);
  cursor: pointer;
}
.hub-fresh[hidden] { display: none; }
.hub-fresh { transition: background .2s ease, color .2s ease, transform .2s var(--hub-ease); }
.hub-fresh:hover { background: var(--hub); color: #fff; }
.hub-fresh:active { transform: scale(.97); }

.hub-note { overflow: hidden; animation: hubIn .42s var(--hub-ease) both; }
.hub-note,
.hub-ad,
.hub-write,
.hub-stories {
  transition: box-shadow .28s ease, transform .28s var(--hub-ease);
}
.hub-note.is-boosted { box-shadow: 0 0 0 2px #fde68a; }
.hub-note-boost {
  font-size: .73rem;
  font-weight: 750;
  color: #92400e;
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  padding: .42rem 1rem;
}
.hub-note-h { display: flex; gap: .6rem; align-items: center; padding: .8rem .95rem .1rem; }
.hub-who { flex: 1; min-width: 0; display: grid; gap: .08rem; }
.hub-who strong { font-size: .95rem; line-height: 1.25; }
.hub-feel-tag {
  display: inline-block;
  margin-left: .2rem;
  padding: .08rem .42rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--hub-ink);
  font-size: .68rem;
  font-weight: 750;
  vertical-align: middle;
}
.hub-who small { color: #65676b; font-size: .75rem; font-weight: 600; }
.hub-note-h time { font-weight: 650; }
.hub-more { margin: 0; }
.hub-more button {
  border: 0;
  background: transparent;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  color: var(--dash-muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.hub-more button:hover { background: #f1f5f9; }
.hub-body { padding: .45rem 1rem .55rem; font-size: .98rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.hub-photo { position: relative; margin: .4rem 0 0; background: #eef2f6; overflow: hidden; cursor: zoom-in; touch-action: manipulation; }
.hub-photo img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.hub-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  font-style: normal;
  font-size: 4.4rem;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.35);
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, .28));
}
.hub-heart.on { animation: hubHeart .72s ease; }
@keyframes hubHeart {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  22% { opacity: 1; transform: translate(-50%, -42%) scale(1.18); }
  100% { opacity: 0; transform: translate(-50%, -72%) scale(.88); }
}

.hub-fb { padding: 0; }
.hub-fb-sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .45rem 1rem .4rem;
  font-size: .82rem;
  color: #65676b;
}
.hub-fb-sum[hidden] { display: none; }
.hub-fb-left { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.hub-fb-faces { display: flex; align-items: center; }
.hub-fb-faces i {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: .7rem;
  background: #fff; box-shadow: 0 0 0 1.5px #fff, 0 1px 2px rgba(15,23,42,.16);
  margin-left: -.28rem;
}
.hub-fb-faces i:first-child { margin-left: 0; }
.hub-fb-sum a {
  color: #65676b; text-decoration: none; font-weight: 600;
}
.hub-fb-sum a:hover { text-decoration: underline; }
.hub-fb-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid #eef0f3;
  margin: 0 .7rem .45rem;
}
.hub-fb-like { position: relative; }
.hub-fb-act {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.35rem;
  border: 0;
  background: none;
  color: #65676b;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.hub-fb-act { transition: background .18s ease, color .18s ease, transform .16s var(--hub-ease); }
.hub-fb-act:hover { background: #f3f4f6; color: #111827; }
.hub-fb-act:active { transform: scale(.97); }
.hub-ico { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.hub-fb-emo { display: none; font-size: 1.05rem; line-height: 1; }
.hub-fb-act.on { color: var(--c, var(--hub)); }
.hub-fb-act.on .hub-ico { display: none; }
.hub-fb-act.on .hub-fb-emo { display: inline; }
.hub-fb-pick {
  position: absolute;
  left: 0;
  bottom: 100%;
  display: flex;
  gap: .15rem;
  padding: .4rem .45rem .85rem;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(.92);
  transition: opacity .18s var(--hub-ease), transform .18s var(--hub-ease);
  z-index: 8;
}
@media (hover: hover) and (pointer: fine) {
  .hub-fb-like:hover:not(.is-settled) .hub-fb-pick {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
.hub-fb-like.is-open:not(.is-settled) .hub-fb-pick {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.hub-fb-like.is-settled .hub-fb-pick {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) scale(.92) !important;
}
.hub-fb-pick form { margin: 0; }
.hub-chip {
  min-width: 2.6rem; border: 0; background: transparent;
  border-radius: 14px; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; justify-items: center; gap: .1rem; padding: .2rem .28rem;
  transition: transform .12s ease;
}
.hub-chip small { font-size: .58rem; font-weight: 800; color: #64748b; letter-spacing: .01em; }
.hub-chip:hover { transform: scale(1.18) translateY(-4px); }
.hub-chip.on { background: #eff6ff; }

.hub-thread {
  background: #fff;
  padding: .05rem 1rem .7rem;
  border-top: 1px solid #eef0f3;
}
.hub-thread:not(:has(.hub-cmt)):not(.is-open) { display: none; }
.hub-cmt-more {
  display: block;
  width: 100%;
  margin: .45rem 0 .1rem;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: #65676b;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}
.hub-cmt-more:hover { text-decoration: underline; }
.hub-thread.is-open .hub-cmt-more { display: none; }
.hub-cmt { display: flex; gap: .45rem; margin: .45rem 0; align-items: flex-start; }
.hub-cmt.is-extra { display: none; }
.hub-thread.is-open .hub-cmt.is-extra { display: flex; }
.hub-cmt-main { flex: 1; min-width: 0; }
.hub-cmt-bubble {
  background: var(--hub-wash);
  border: 0;
  border-radius: 18px;
  padding: .42rem .75rem .45rem;
  font-size: .88rem;
  line-height: 1.4;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.hub-cmt-bubble strong { display: block; font-size: .76rem; }
.hub-cmt-time {
  font-size: .72rem;
  color: var(--dash-muted);
  margin-top: .18rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  padding-left: .15rem;
}
.hub-cmt-act {
  border: 0;
  background: none;
  color: var(--dash-muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
  padding: 0;
}
.hub-cmt-act:hover,
.hub-cmt-act.on { color: var(--hub); }
.hub-cmt-del { display: inline; }
.hub-cmt-del button { border: 0; background: none; color: var(--dash-muted); font: inherit; font-weight: 650; cursor: pointer; padding: 0; }
.hub-cmt-replies { margin: .1rem 0 0; padding-left: .55rem; border-left: 2px solid #e2e8f0; }
.hub-cmt.is-reply { margin: .3rem 0; }
.hub-cmt.is-reply .hub-cmt-bubble { background: #f8fafc; }
.hub-cmt-form { display: none; gap: .4rem; align-items: flex-start; margin-top: .45rem; }
.hub-thread.is-open .hub-cmt-form { display: flex; }
.hub-cmt-compose { flex: 1; min-width: 0; }
.hub-cmt-replying {
  margin: 0 0 .25rem;
  font-size: .75rem;
  color: var(--dash-muted);
}
.hub-cmt-replying button {
  border: 0;
  background: none;
  color: var(--hub);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.hub-cmt-input {
  width: 100%;
  border: 0;
  background: var(--hub-wash);
  border-radius: 999px;
  padding: .58rem .9rem;
  font: inherit;
  font-size: .86rem;
  outline: none;
  box-sizing: border-box;
}
.hub-cmt-input:focus { background: #e8eaed; }
.hub-cmt-send {
  flex: none;
  width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
  background: var(--hub); color: #fff; display: grid; place-items: center; cursor: pointer;
  margin-top: .15rem;
}
.hub-cmt-send .hub-ico { width: 1rem; height: 1rem; }

.hub-photo-box {
  position: relative;
  border: 1px dashed #bfdbfe;
  border-radius: 14px;
  overflow: hidden;
  background: #eff6ff;
}
.hub-photo-drop { display: grid; place-items: center; gap: .15rem; padding: 1.15rem 1rem; cursor: pointer; text-align: center; }
.hub-photo-drop .hub-tool-ico { font-size: 1.2rem; line-height: 1; background: none; width: auto; height: auto; }
.hub-photo-drop strong { font-size: .88rem; }
.hub-photo-drop small { color: var(--dash-muted); font-size: .74rem; }
.hub-photo-box.has-file .hub-photo-drop { display: none; }
.hub-dlg-preview { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.hub-photo-x {
  position: absolute;
  top: .45rem;
  right: .45rem;
  z-index: 2;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}
.hub-feel-pick {
  display: grid;
  gap: .35rem;
  padding: .45rem .5rem;
  background: #f8fafb;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  animation: hubIn .3s var(--hub-ease);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.hub-feel-pick[hidden] { display: none !important; }
.hub-feel-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.hub-feel-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: .28rem .62rem;
  font: inherit;
  font-size: .76rem;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .16s var(--hub-ease);
}
.hub-feel-chip:hover { border-color: var(--hub-line); }
.hub-feel-chip.is-on { background: var(--hub); color: #fff; border-color: var(--hub); }

.hub-dlg {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0;
  width: min(440px, calc(100vw - 1.5rem));
  box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
  background: #fff;
}
.hub-dlg::backdrop { background: rgba(15, 23, 42, .45); }
.hub-dlg-form { padding: 0 0 1rem; }
.hub-dlg header {
  display: flex;
  align-items: center;
  padding: .9rem 1.05rem;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.hub-dlg-x {
  position: absolute;
  right: .7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  color: var(--dash-muted);
}
.hub-dlg-text {
  width: calc(100% - 2.1rem);
  margin: .7rem 1.05rem .35rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  resize: none;
  min-height: 5rem;
  font: inherit;
  font-size: 1rem;
  outline: none;
  line-height: 1.45;
  padding: .7rem .8rem;
  background: #f8fafc;
}
.hub-dlg-text:focus { border-color: var(--hub); background: #fff; }
.hub-dlg-row { margin: .4rem 1.05rem; font-size: .82rem; font-weight: 650; color: var(--dash-muted); }
.hub-dlg-post { width: calc(100% - 2.1rem); margin: .7rem 1.05rem 0; height: 2.55rem; }
.hub-dlg-help { margin: .7rem 1.05rem .3rem; color: var(--dash-muted); font-size: .86rem; line-height: 1.45; }

.hub-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  padding: 0;
}
.hub-share-sheet[hidden] { display: none !important; }
.hub-share-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .42);
  cursor: pointer;
}
.hub-share-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, .18);
  padding: 0 0 1.1rem;
  animation: hubShareUp .22s var(--hub-ease);
}
@keyframes hubShareUp {
  from { transform: translateY(18px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.hub-share-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1.1rem .55rem;
}
.hub-share-panel header strong { font-size: 1.02rem; }
.hub-share-x {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--dash-muted);
  line-height: 1;
}
.hub-share-hint {
  margin: 0 1.1rem .85rem;
  color: var(--dash-muted);
  font-size: .86rem;
  line-height: 1.45;
}
.hub-share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
  padding: 0 1.1rem;
}
.hub-share-opt {
  display: grid;
  gap: .35rem;
  justify-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: .75rem .4rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .16s ease, background .16s ease, transform .14s ease;
}
.hub-share-opt:hover { border-color: #bfdbfe; background: #eff6ff; }
.hub-share-opt:active { transform: scale(.97); }
.hub-share-opt i {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-style: normal;
  font-size: 1.15rem;
}
.hub-share-opt span { font-size: .78rem; font-weight: 650; color: #334155; }
.hub-colors { display: flex; gap: .4rem; margin-top: .4rem; }
.hub-color input { display: none; }
.hub-color span { width: 1.55rem; height: 1.55rem; border-radius: 50%; display: block; cursor: pointer; }
.hub-color input:checked + span { outline: 2px solid var(--hub); outline-offset: 2px; }
.hub-boost-btn {
  border: 0;
  background: #fffbeb;
  color: #92400e;
  font-weight: 750;
  font-size: .74rem;
  border-radius: 999px;
  padding: .28rem .65rem;
  cursor: pointer;
}
.hub-boost-btn:hover { background: #fde68a; }
.hub-boost-plan {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: .4rem 1.05rem;
  padding: .65rem .7rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
}
.hub-boost-plan:has(input:checked) { border-color: var(--hub); background: #eff6ff; }
.hub-boost-plan span { display: grid; gap: .12rem; }
.hub-boost-plan small { color: var(--dash-muted); font-weight: 500; }

.hub-pulse-view {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0b1220;
  display: grid;
  place-items: center;
  padding: max(.5rem, env(safe-area-inset-top)) .65rem max(.75rem, env(safe-area-inset-bottom));
  animation: hubFade .28s var(--hub-ease);
}
.hub-pulse-view[hidden] { display: none !important; }
.hub-pulse-view .hub-dlg-x {
  position: absolute;
  top: max(.85rem, env(safe-area-inset-top));
  right: .85rem;
  z-index: 3;
  background: rgba(255,255,255,.16);
  color: #fff;
}
.hub-pulse-card {
  position: relative;
  width: min(420px, 100%);
  height: min(780px, calc(100dvh - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  border-radius: 22px;
  padding: 1rem 1rem 1.2rem;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c, var(--hub)) 86%, #fff), var(--c, var(--hub)));
  color: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  overflow: hidden;
  animation: hubPulseIn .34s var(--hub-ease) both;
}
.hub-pulse-card.is-photo {
  background: #0f172a;
}
.hub-pulse-progress {
  position: relative; z-index: 2; margin-bottom: .65rem;
  display: flex; gap: 3px;
}
.hub-pulse-tick {
  display: block; flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.28); overflow: hidden;
}
.hub-pulse-tick::after {
  content: ""; display: block; height: 100%; width: 0; background: #fff;
}
.hub-pulse-tick.is-on::after { animation: hubTick 5s linear forwards; }
.hub-pulse-tick.is-done::after { width: 100%; }
.hub-pulse-media {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  z-index: 0;
}
.hub-pulse-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,.45) 0%, transparent 28%),
    linear-gradient(0deg, rgba(15,23,42,.72) 0%, transparent 42%);
}
.hub-pulse-who {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .85rem;
}
.hub-pulse-who strong { display: block; font-size: .92rem; line-height: 1.2; }
.hub-pulse-who small { display: block; opacity: .78; font-weight: 650; font-size: .72rem; margin-top: .1rem; }
.hub-pulse-card > p {
  position: relative;
  z-index: 2;
  margin: 0;
  align-self: end;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  padding-bottom: .35rem;
}
.hub-pulse-card > p:empty { display: none; }
.hub-pulse-del {
  position: relative;
  z-index: 5;
  margin-top: .85rem;
  align-self: center;
  border: 0;
  border-radius: 999px;
  padding: .45rem .9rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  color: #fff;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.hub-pulse-del:hover { background: rgba(185, 28, 28, .85); }
.hub-pulse-del[hidden] { display: none !important; }
.hub-pulse-hit {
  position: absolute;
  top: 18%;
  bottom: 12%;
  width: 42%;
  border: 0;
  background: transparent;
  z-index: 2;
  cursor: pointer;
}
.hub-pulse-hit-l { left: 0; }
.hub-pulse-hit-r { right: 0; }
@keyframes hubTick { to { width: 100%; } }
@keyframes hubPulseIn {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hub-story-photo {
  display: grid;
  gap: .55rem;
  margin-bottom: .75rem;
}
.hub-story-photo-drop {
  display: grid;
  place-items: center;
  gap: .2rem;
  min-height: 7.5rem;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  padding: 1rem;
  color: #334155;
}
.hub-story-photo-drop span { font-size: 1.45rem; }
.hub-story-photo-drop strong { font-size: .92rem; }
.hub-story-photo-drop small { color: #64748b; font-size: .78rem; }
.hub-story-photo.has-file .hub-story-photo-drop { display: none; }
.hub-story-photo img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.hub-story-photo-clear {
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  border-radius: 999px;
  padding: .4rem .85rem;
  cursor: pointer;
  justify-self: start;
}
.hub-lite {
  position: fixed; inset: 0; z-index: 210; background: rgba(15,23,42,.88);
  display: grid; place-items: center; padding: 1.5rem;
  animation: hubFade .25s var(--hub-ease);
}
.hub-lite[hidden] { display: none !important; }
.hub-lite img { max-width: min(920px, 94vw); max-height: 88vh; border-radius: 12px; }
.hub-lite .hub-dlg-x { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.16); color: #fff; }

.hub-ad { padding: 1rem 1.05rem 1.05rem; }
.hub-net-ad .hub-net-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  margin-top: .35rem;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f5f9;
}
.hub-net-ad .hub-net-slot iframe,
.hub-net-frame {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 250px;
  margin: 0 auto;
  border: 0;
  background: #fff;
}
.hub-admob-slot {
  width: 300px;
  height: 250px;
  max-width: 100%;
  margin: 0 auto;
  background: #f1f5f9;
}
.hub-ad-top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: center;
  margin-bottom: .4rem;
}
.hub-ad-top span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hub-ink);
}
.hub-ad-top em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
  color: #1d4ed8;
  background: var(--hub-soft);
  border-radius: 999px;
  padding: .16rem .5rem;
}
.hub-ad h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.hub-ad-co { margin: .25rem 0 0; color: var(--dash-muted); font-size: .8rem; font-weight: 650; }
.hub-ad-body { margin: .45rem 0 0; font-size: .9rem; line-height: 1.45; }
.hub-ad-img { margin: .7rem -1.05rem; background: #0f172a; }
.hub-ad-img img { display: block; width: 100%; max-height: 200px; object-fit: cover; }
.hub-ticket-go {
  display: inline-flex;
  margin-top: .8rem;
  background: var(--hub);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .5rem .95rem;
  font: inherit;
  font-weight: 750;
  font-size: .84rem;
  cursor: pointer;
  text-decoration: none;
}
.hub-ticket-go:hover { background: #1d4ed8; }
.hub-ad-watch.is-watching .hub-ticket-go { background: #134e4a; }
.hub-watch-track { height: 6px; background: var(--hub-soft); margin: .6rem 0 0; border-radius: 99px; overflow: hidden; }
.hub-watch-track i { display: block; height: 100%; width: 0; background: var(--hub); transition: width linear; }

@keyframes hubIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hubFade { from { opacity: 0; } to { opacity: 1; } }
.hub-chip.hub-pop { transform: scale(1.06); }
.hub-pop-n { animation: hubPop .28s ease; }
@keyframes hubPop { 0% { transform: scale(1); } 45% { transform: scale(1.25); } 100% { transform: scale(1); } }
.hub-toast {
  position: sticky; top: .25rem; z-index: 5;
  background: #042f2e; color: #eff6ff; border-radius: 12px;
  padding: .65rem .85rem; font-size: .86rem; font-weight: 700;
  box-shadow: 0 12px 28px rgba(15,23,42,.16);
}
.hub-toast[hidden] { display: none; }

/* ---- advanced motion layer ---- */
.hub-top {
  transition: none;
}

.hub-feed.is-reveal .hub-note,
.hub-feed.is-reveal .hub-ad {
  opacity: 0;
  transform: translateY(18px) scale(.99);
  animation: none;
  transition: opacity .45s var(--hub-ease), transform .5s var(--hub-ease);
}
.hub-feed.is-reveal .hub-note.is-in,
.hub-feed.is-reveal .hub-ad.is-in {
  opacity: 1;
  transform: none;
}
.hub-note:hover { box-shadow: 0 16px 34px -26px rgba(15, 23, 42, .5); }

.hub-fb-like.is-open:not(.is-settled) .hub-chip,
.hub-fb-like:hover:not(.is-settled) .hub-chip { animation: hubChipUp .34s var(--hub-ease) both; }
.hub-fb-pick form:nth-child(1) .hub-chip { animation-delay: .02s; }
.hub-fb-pick form:nth-child(2) .hub-chip { animation-delay: .06s; }
.hub-fb-pick form:nth-child(3) .hub-chip { animation-delay: .1s; }
.hub-fb-pick form:nth-child(4) .hub-chip { animation-delay: .14s; }
@keyframes hubChipUp {
  from { opacity: 0; transform: translateY(12px) scale(.6); }
  60% { transform: translateY(-3px) scale(1.08); }
  to { opacity: 1; transform: none; }
}

.hub-fb-act.on .hub-fb-emo { animation: hubEmoPop .48s var(--hub-ease); }
@keyframes hubEmoPop {
  0% { transform: scale(.4) rotate(-14deg); }
  55% { transform: scale(1.35) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}

.hub-burst {
  position: absolute;
  pointer-events: none;
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  z-index: 6;
  animation: hubBurst .78s var(--hub-ease) forwards;
}
@keyframes hubBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.5); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -46px))) scale(1.15); }
}

.hub-write.is-sending .hub-write-form { position: relative; }
.hub-write.is-sending .hub-write-form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, transparent 20%, rgba(13, 148, 136, .1) 50%, transparent 80%);
  background-size: 220% 100%;
  animation: hubShimmer 1.05s linear infinite;
  pointer-events: none;
}
@keyframes hubShimmer {
  from { background-position: 200% 0; }
  to { background-position: -60% 0; }
}

.hub-story-tile:not(.add):not(.is-photo)::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -120%;
  width: 60%;
  height: 220%;
  background: linear-gradient(96deg, transparent, rgba(255, 255, 255, .34), transparent);
  transform: rotate(14deg);
  transition: left .6s var(--hub-ease);
  pointer-events: none;
}
.hub-story:hover .hub-story-tile:not(.add):not(.is-photo)::after { left: 130%; }

.hub-earn-bar i { position: relative; overflow: hidden; }
.hub-earn-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  background-size: 240% 100%;
  animation: hubShimmer 2.1s linear infinite;
}
.hub-step { transition: background .24s ease, border-color .24s ease, transform .24s var(--hub-ease); }
.hub-step.is-tap:hover { transform: translateY(-2px); }
.hub-flash { animation: hubFlash 1.5s var(--hub-ease); }
@keyframes hubFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
  25% { box-shadow: 0 0 0 3px rgba(13, 148, 136, .5); }
  70% { box-shadow: 0 0 0 3px rgba(13, 148, 136, .22); }
}

.hub-fresh:not([hidden]) { animation: hubDrop .5s var(--hub-ease) both; }
@keyframes hubDrop {
  0% { opacity: 0; transform: translateY(-16px) scale(.9); }
  62% { transform: translateY(3px) scale(1.03); }
  100% { opacity: 1; transform: none; }
}

.hub-toast:not([hidden]) { animation: hubDrop .42s var(--hub-ease) both; }
.hub-cmt { animation: hubCmtIn .38s var(--hub-ease) both; }
@keyframes hubCmtIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}
.hub-lite img { animation: hubZoomIn .34s var(--hub-ease) both; }
.hub-pulse-card { animation: hubZoomIn .38s var(--hub-ease) both; }
@keyframes hubZoomIn {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: none; }
}
.hub-av { transition: transform .3s var(--hub-ease), box-shadow .3s ease; }
.hub-note-h:hover .hub-av { transform: scale(1.06); }
.hub-photo img { transition: transform .5s var(--hub-ease); }
.hub-photo:hover img { transform: scale(1.02); }
.hub-cmt-send { transition: transform .18s var(--hub-ease), background .2s ease; }
.hub-cmt-send:hover { background: var(--hub-ink); transform: scale(1.06); }
.hub-cmt-send:active { transform: scale(.92); }

@media (max-width: 560px) {
  .hub-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: .4rem .55rem;
  }
  .hub-top > div:first-child {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .hub-top h1 { font-size: 1.22rem; }
  .hub-top p {
    max-width: none;
    font-size: .74rem;
    line-height: 1.35;
  }
  .hub-today {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    text-align: left;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: .4rem .7rem;
    border-radius: 12px;
  }
  .hub-today span { letter-spacing: .03em; }
  .hub-today strong { font-size: .95rem; }
  .hub-today em { margin-left: auto; }
  .hub-write-form { padding: .7rem .75rem .65rem; }
  .hub-write-foot { flex-wrap: wrap; }
  .hub-write-tools { width: 100%; justify-content: flex-start; gap: .15rem; }
  .hub-write.is-open .hub-write-count { display: none; }
  .hub-write.is-open .hub-write-foot .hub-post-btn { width: 100%; }
  .hub-tool { font-size: .76rem; padding: .4rem .45rem; }
  .hub-stories { padding: .65rem .75rem .7rem; }
  .hub-stories-h em {
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub *,
  .hub *::before,
  .hub *::after,
  .hub-lite,
  .hub-pulse-view {
    animation: none !important;
    transition: none !important;
  }
}
/* Guest Hub browse */
body.hub-guest-body {
  margin: 0;
  background: #f4f7f6;
  font-family: Inter, system-ui, sans-serif;
  color: #0f172a;
}
.hub-guest-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1rem;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e2eeea;
  backdrop-filter: blur(10px);
}
.hub-guest-brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
}
.hub-guest-logo {
  height: 1.85rem;
  width: auto;
  display: block;
}
.hub-guest-bar nav {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.hub-guest-bar nav a:not(.btn) {
  color: #5b736e;
  font-weight: 650;
  font-size: .88rem;
}
.hub-guest-cta {
  height: 2.35rem !important;
  padding: 0 .9rem !important;
  font-size: .82rem !important;
  background: #2563eb !important;
}
.hub.hub-guest {
  max-width: 40rem;
  margin: 0 auto;
  padding: .85rem 1rem 2.5rem;
}
.hub-guest-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: .9rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf9, #fff);
  border: 1px solid rgba(13,148,136,.2);
}
.hub-guest-banner strong {
  display: block;
  font-family: Poppins, Inter, sans-serif;
  margin-bottom: .2rem;
}
.hub-guest-banner p {
  margin: 0;
  color: #5b736e;
  font-size: .88rem;
}
.hub-guest-banner .btn {
  background: #2563eb !important;
  white-space: nowrap;
}
.hub-visit-wait {
  align-items: center;
}
.hub-note.is-focus {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.12);
}
.hub-cmt-guest {
  margin-top: .55rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: #f8faf9;
  border: 1px dashed #cfe3de;
  text-align: center;
}
.hub-cmt-guest a {
  color: #2563eb;
  font-weight: 750;
  font-size: .88rem;
}
.hub-guest-foot {
  margin-top: 1.25rem;
  padding: 1.2rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2eeea;
  text-align: center;
  display: grid;
  gap: .65rem;
  justify-items: center;
}
.hub-guest-foot p {
  margin: 0;
  font-weight: 650;
  color: #334155;
}
.hub-guest-foot .btn-primary { background: #2563eb !important; min-width: 10rem; }
.hub-note.is-guest .hub-fb-act { color: #64748b; }
@media (max-width: 560px) {
  .hub-guest-banner { align-items: stretch; }
  .hub-guest-banner .btn { width: 100%; text-align: center; }
}

/* Mobile Hub: Facebook-style edge-to-edge feed (must stay last for cascade) */
@media (max-width: 1099px) {
  .hub-shell,
  .hub-shell-guest {
    max-width: none !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0;
  }
  .hub {
    max-width: none !important;
    width: 100%;
    gap: 0;
    padding-bottom: 0;
  }
  .hub-top {
    padding: .65rem .85rem .55rem;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--hub-line);
  }
  .hub-earn,
  .hub-write,
  .hub-note,
  .hub-ad,
  .hub-empty,
  .hub-stories,
  .hub-guest-banner {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .hub-earn,
  .hub-write,
  .hub-stories,
  .hub-guest-banner,
  .hub-ad,
  .hub-empty,
  .hub-note { margin-bottom: .5rem; }
  .hub-write-form,
  .hub-write-top,
  .hub-write-main,
  .hub-write-foot,
  .hub-note-h,
  .hub-note-body {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.hub-page .dash .main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
  }
  body.hub-page .main-inner { max-width: none; }
  body.hub-guest-body { background: #f8fafc; }

  /* Compact sticky app header on Hub mobile */
  body.hub-page .topbar {
    padding: .55rem .7rem;
    gap: .4rem;
    min-height: 3.25rem;
    box-sizing: border-box;
  }
  body.hub-page .topbar-title {
    flex: 0 1 auto;
    max-width: 4.2rem;
    font-size: .92rem;
  }
  body.hub-page .topbar-right {
    gap: .3rem;
    min-width: 0;
  }
  body.hub-page .rjk-pill {
    max-width: min(36vw, 7.8rem);
    padding: .22rem .42rem .22rem .26rem;
    gap: .22rem;
  }
  body.hub-page .rjk-pill-txt {
    font-size: .68rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.hub-page .rjk-pill .rjk-coin-sm {
    width: 1rem;
    height: 1rem;
  }
  body.hub-page .bell-btn {
    height: 2rem;
    min-width: 2rem;
    padding: 0;
    justify-content: center;
  }
  body.hub-page .avatar {
    width: 2rem;
    height: 2rem;
    font-size: .72rem;
  }
  body.hub-page .dash-menu-btn {
    display: grid !important;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  body.hub-page .dash-menu-btn { display: none !important; }
}

@media (max-width: 380px) {
  body.hub-page .topbar-title { max-width: 3.4rem; }
  body.hub-page .rjk-pill { max-width: min(34vw, 6.8rem); }
  body.hub-page .rjk-pill-txt { font-size: .64rem; }
}

/* Desktop Hub: left banner | feed | right banner. Must stay last.
   Sidebar is docked from 1024px — fit banners in the remaining width
   so a 125% Windows scale still shows both rails and does not clip the feed. */
@media (min-width: 1024px) {
  body.hub-page .dash-stage {
    width: auto !important;
    max-width: none !important;
    margin-left: 16rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: visible;
  }
  body.hub-page .dash .main {
    padding: .7rem .55rem 1.5rem !important;
    overflow-x: visible;
    min-width: 0;
  }
  body.hub-page .main-inner {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    margin: 0;
    overflow-x: clip;
  }
  body.hub-page .hub-shell,
  body.hub-page .hub-shell-guest {
    display: grid !important;
    grid-template-columns: 160px minmax(0, 1fr) 160px !important;
    grid-template-rows: auto;
    align-items: start;
    column-gap: .55rem !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  body.hub-page .hub-sky,
  body.hub-page .hub-sky-left,
  body.hub-page .hub-sky-right {
    display: block !important;
    position: sticky;
    top: 4.6rem;
    width: 160px !important;
    max-width: 160px !important;
    min-width: 160px !important;
    height: 600px;
    margin: 0 !important;
    overflow: hidden;
    z-index: 2;
  }
  body.hub-page .hub-sky-left { grid-column: 1 !important; grid-row: 1 !important; }
  body.hub-page .hub-sky-right { grid-column: 3 !important; grid-row: 1 !important; }
  body.hub-page .hub {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow-x: clip;
  }
  body.hub-page .hub > *,
  body.hub-page .hub-stories,
  body.hub-page .hub-write,
  body.hub-page .hub-note,
  body.hub-page .hub-note-body,
  body.hub-page .hub-body {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  body.hub-page .hub-stories {
    overflow: hidden !important;
  }
  body.hub-page .hub-stories-row {
    overflow-x: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body.hub-page .hub-body,
  body.hub-page .hub-note-body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

html.is-app-shell,
html.is-app-shell body {
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
}
body.is-app-shell.hub-page .hub,
body.is-app-shell.hub-page .hub-note,
body.is-app-shell.hub-page .hub-write {
  touch-action: pan-y;
}
body.is-app-shell.hub-page .hub-stories-row {
  touch-action: pan-x pan-y;
}
body.is-app-shell.hub-page .dash-stage,
body.is-app-shell.hub-page .main,
body.is-app-shell.hub-page .main-inner,
body.is-app-shell.hub-page .hub-shell,
body.is-app-shell.hub-page .hub {
  overflow-x: hidden !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}
body.is-app-shell.hub-page .hub-shell,
body.is-app-shell.hub-page .hub-shell-guest {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  padding: .55rem .85rem 1.35rem;
  margin: 0 auto !important;
}
body.is-app-shell.hub-page .hub {
  display: flex;
  flex-direction: column;
  max-width: 100% !important;
}
body.is-app-shell.hub-page .hub-top,
body.is-app-shell.hub-page .hub-earn,
body.is-app-shell.hub-page .hub-sky,
body.is-app-shell.hub-page .hub-sky-left,
body.is-app-shell.hub-page .hub-sky-right {
  display: none !important;
}
body.is-app-shell.hub-page .hub-stories { order: -2; }
body.is-app-shell.hub-page .hub-write { order: -1; }
body.is-app-shell.hub-page .hub-stories {
  margin-bottom: .7rem;
  border-radius: 20px;
  overflow: hidden;
}
body.is-app-shell.hub-page .hub-stories-row {
  max-width: 100%;
}
body.is-app-shell.hub-page .hub-write {
  border-radius: 20px;
  box-shadow: 0 10px 28px -22px rgba(15,23,42,.18);
}
body.is-app-shell.hub-page .hub-net-ad .hub-net-slot {
  max-width: 100%;
}

.hub-ad-open { display: block; color: inherit; text-decoration: none; }
.hub-ad-open:hover h3 { color: #2563eb; }
.hub-ad { cursor: pointer; }

.hub-pulse-head {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hub-pulse-head .hub-pulse-who { flex: 1; margin: 0; }
.hub-pulse-head .hub-dlg-x {
  position: static;
  width: 2rem;
  height: 2rem;
}
.hub-pulse-more {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
}
.hub-pulse-more[hidden] { display: none !important; }
.hub-pulse-menu {
  position: absolute;
  top: 3.4rem;
  right: .8rem;
  z-index: 8;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.hub-pulse-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  color: #b91c1c;
  font: inherit;
  font-weight: 750;
  padding: .7rem 1rem;
  cursor: pointer;
}
.hub-pulse-heart {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(.4);
  font-style: normal;
  font-size: 5rem;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
}
.hub-pulse-heart.on {
  animation: hubLove .7s ease forwards;
}
@keyframes hubLove {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1); }
}
.hub-pulse-dock {
  position: relative;
  z-index: 6;
  display: flex;
  gap: .45rem;
  align-items: center;
  margin-top: auto;
  padding-top: .55rem;
}
.hub-pulse-like {
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: .45rem .7rem;
  cursor: pointer;
}
.hub-pulse-like.is-on { background: #e11d48; }
.hub-pulse-cmt {
  flex: 1;
  display: flex;
  gap: .35rem;
  min-width: 0;
}
.hub-pulse-cmt input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: .5rem .8rem;
  font: inherit;
  font-size: .86rem;
  background: rgba(255,255,255,.92);
  color: #0f172a;
}
.hub-pulse-cmt button {
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: .45rem .7rem;
  cursor: pointer;
}
.hub-pulse-cmts {
  position: relative;
  z-index: 6;
  max-height: 5.6rem;
  overflow: auto;
  margin-top: .4rem;
  display: grid;
  gap: .2rem;
}
.hub-pulse-cmts p {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hub-pulse-cmts strong { margin-right: .25rem; }
.hub-pulse-hit { z-index: 4; top: 16%; bottom: 26%; }
.hub-pulse-del { display: none !important; }
