html, body {
  overflow-x: hidden;
}

.hub-login-logo{
  width:72px;
  height:72px;
  display:block;
  margin:0 auto;
  object-fit:contain;
}

.hub-main-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hub-main-tabs::-webkit-scrollbar {
  display: none;
}
.hub-main-tabs .tab-btn {
  flex: 0 0 auto;
}

.hub-profile-name-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  min-width:0;
}

.hub-profile-edit-inline{
  margin-left: 8px;
  flex-shrink: 0;
}

.hub-profile-guardian-row{
  display:flex;
  align-items:center;
  min-height: 34px;
}

.hub-profile-guardian.guardian-badge{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 12px;
  min-width:0;
  border-radius:999px;
  background:linear-gradient(135deg,#fff8ec 0%,#ffe8d2 100%);
  border:1px solid #f2cfad;
  color:#7a3f12;
  box-shadow:0 10px 24px rgba(183,35,1,.12);
  cursor:pointer;
  user-select:none;
  margin-bottom:2px;
}
.hub-profile-guardian.guardian-badge img{
  width:22px;
  height:22px;
  object-fit:contain;
  filter:drop-shadow(0 2px 4px rgba(122,63,18,.2));
}
.hub-profile-guardian .guardian-meta{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.hub-profile-guardian .guardian-meta strong{
  font-size:12px;
  font-weight:800;
  color:#7a3f12;
  line-height:1.2;
  white-space:nowrap;
}
.hub-profile-guardian .guardian-sub{
  font-size:10px;
  color:rgba(122,63,18,.72);
  line-height:1.2;
  white-space:nowrap;
}
.hub-profile-guardian .guardian-alert{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:700;
  display:none;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
  line-height:1;
}
.hub-profile-guardian .guardian-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:176px;
  display:none;
  flex-direction:column;
  gap:4px;
  padding:6px;
  border-radius:12px;
  background:#0b1022;
  border:1px solid rgba(148,163,184,.25);
  box-shadow:0 18px 36px rgba(0,0,0,.35);
  z-index:40;
}
.hub-profile-guardian .guardian-menu.guardian-menu--open{
  display:flex;
}
.hub-profile-guardian .guardian-menu button{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  padding:8px 10px;
  border-radius:10px;
  background:transparent;
  border:0;
  color:#e2e8f0;
  font-size:12px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}
.hub-profile-guardian .guardian-menu button:hover{
  background:rgba(148,163,184,.12);
}
.hub-profile-guardian .guardian-menu-badge{
  margin-left:auto;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:700;
  display:none;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.hub-profile-guardian--empty{
  text-decoration:none !important;
}

/* ── Hub Order Cards ──────────────────────────────────────────────────────── */
.hub-order-card {
  background: #fff;
  border: 1px solid #e9e8e7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,28,28,0.05);
  margin-bottom: 16px;
}
.hub-order-card--deep-linked{
  border-color: #f5bc7a;
  box-shadow: 0 0 0 3px rgba(245, 188, 122, 0.24), 0 10px 24px rgba(183, 35, 1, 0.12);
  animation: hubOrderDeepLinkedPulse 1.4s ease-out;
}
@keyframes hubOrderDeepLinkedPulse{
  0% { transform: translateY(0); }
  35% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}
.hub-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0efef;
  background: #fafafa;
  gap: 12px;
}
.hub-order-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #1b1c1c;
  letter-spacing: 0.04em;
}
.hub-order-date {
  font-size: 11px;
  color: rgba(27,28,28,0.4);
  margin-left: 10px;
}
.hub-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}
/* Product row */
.hub-product-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #f0efef;
}
.hub-product-img {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e9e8e7;
  background: #f5f3f3;
}
.hub-product-img-placeholder {
  width: 64px; height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f5f3f3;
  border: 1px solid #e9e8e7;
  display: flex; align-items: center; justify-content: center;
  color: #a8a29e;
}
.hub-product-info { flex: 1; min-width: 0; }
.hub-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #1b1c1c;
  line-height: 1.4;
  margin-bottom: 6px;
}
.hub-product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hub-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.hub-tag-phone    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.hub-tag-duration { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.hub-tag-option   { background: #f5f5f7; color: #555;    border: 1px solid #e5e7eb; }
.hub-product-price {
  font-size: 15px;
  font-weight: 800;
  color: #1b1c1c;
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}
/* Info table */
.hub-info-table { padding: 12px 18px; border-bottom: 1px solid #f0efef; display: flex; flex-direction: column; gap: 6px; }
.hub-info-row { display: flex; gap: 12px; font-size: 12px; }
.hub-info-label { color: rgba(27,28,28,0.4); width: 64px; flex-shrink: 0; }
.hub-info-value { color: #1b1c1c; }
/* Timeline */
/* ── Order timeline (vertical) ────────────────────────────────────────────── */
.hub-timeline-wrap { margin: 0 16px 16px; }
.hub-timeline-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid #ebebeb; border-radius: 12px; background: #fafafa; padding: 14px 16px;
  font: inherit; cursor: pointer; color: #1b1c1c; text-align: left;
}
.hub-timeline-toggle-label { font-size: 12px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hub-timeline-toggle-icon { font-size: 20px; line-height: 1; color: #6b7280; }
.hub-timeline { margin-top: 10px; border: 1px solid #ebebeb; border-radius: 12px; background: #fafafa; padding: 14px 16px 16px; }
.hub-steps { display: flex; flex-direction: column; }
.hub-step {
  display: flex; align-items: flex-start; gap: 12px;
  position: relative; padding-bottom: 18px;
}
.hub-step:last-child { padding-bottom: 0; }
/* vertical connector line */
.hub-step::before {
  content: ''; position: absolute;
  left: 10px; top: 22px;
  width: 2px; height: calc(100% - 22px);
  background: #d2d2d7; border-radius: 999px; z-index: 0;
}
.hub-step:last-child::before { display: none; }
.hub-step.is-complete::before { background: #28a745; }
.hub-step-dot {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: #a1a1a6; box-shadow: 0 0 0 3px rgba(161,161,166,.18);
  position: relative; z-index: 1;
}
.hub-step.is-complete .hub-step-dot { background: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,.2); }
.hub-step.is-current  .hub-step-dot { background: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.2); }
.hub-step-content { padding-top: 2px; min-width: 0; }
.hub-step-label { font-size: 13px; font-weight: 600; color: #6b7280; line-height: 1.3; }
.hub-step.is-complete .hub-step-label { color: #374151; }
.hub-step.is-current  .hub-step-label { color: #0071e3; font-weight: 700; }
.hub-step-date { margin-top: 3px; font-size: 11px; font-weight: 500; color: #9ca3af; line-height: 1.5; font-variant-numeric: tabular-nums; }
/* Footer */
.hub-order-footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.hub-detail-link {
  font-size: 11px;
  font-weight: 700;
  color: #b72301;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.hub-detail-link:hover { text-decoration: underline; }
/* Reward / conflict / meeting / result */
/* ── Review reward block ──────────────────────────────────────────────────── */
.hub-order-reward {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0efef;
  background: #f0fdf4;
  flex-wrap: wrap;
}
.hub-order-reward.claimed { background: #f0fdf4; }
.hub-order-reward.pending {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  justify-content: space-between;
  position: relative;
  isolation: isolate;
}
.hub-order-reward.pending::before{
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 8%, rgba(255,255,255,0.55), transparent 38%);
  z-index: -1;
}
.hub-reward-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-reward-icon { font-size: 20px; flex-shrink: 0; }
.hub-order-reward.claimed .hub-reward-icon { color: #16a34a; }
.hub-order-reward.pending  .hub-reward-icon { color: #b45309; }
.hub-reward-title { font-size: 13px; font-weight: 700; color: #78350f; }
.hub-order-reward.claimed .hub-reward-title { color: #15803d; }
.hub-reward-sub { font-size: 11px; color: #92400e; margin-top: 1px; }
.hub-reward-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 16px;
  background: #b72301;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(140, 24, 0, 0.18);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.hub-reward-action-btn:hover { background: #991b0a; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(140, 24, 0, 0.25); }
.hub-reward-action-btn:active { transform: translateY(0); }
.hub-reward-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(183,35,1,0.22), 0 10px 20px rgba(140,24,0,0.2);
}
.hub-reward-action-btn[aria-expanded="true"] { background: #7f1d1d; box-shadow: 0 0 0 2px rgba(127,29,29,0.22); }

/* ── Inline review panel (member hub orders) ────────────────────────────── */
.hub-inline-review {
  width: 100%;
  margin-top: 10px;
  animation: hubReviewReveal .24s ease-out;
}
.hub-inline-review-panel {
  width: 100%;
  border: 1px solid #f5d0a7;
  background: linear-gradient(180deg, #fffef9 0%, #fffaf1 100%);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 30px rgba(163, 86, 17, .08), inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hub-inline-review-panel.is-loading-list { border-color: #efc58f; }
.hub-inline-review-panel.is-submitting { border-color: #e4b172; box-shadow: 0 14px 32px rgba(163, 86, 17, .12), inset 0 1px 0 rgba(255,255,255,.9); }
.hub-inline-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.hub-inline-review-head strong {
  font-size: 13px;
  font-weight: 700;
  color: #7c2d12;
}
.hub-inline-review-count {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
}
.hub-inline-review-hint {
  font-size: 11px;
  color: #92400e;
  margin-bottom: 10px;
}
.hub-inline-review-list {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #f4e2cf;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}
.hub-inline-review-loading,
.hub-inline-review-empty {
  font-size: 12px;
  color: rgba(27,28,28,0.5);
}
.hub-inline-review-panel.is-loading-list .hub-inline-review-list{
  position: relative;
  overflow: hidden;
}
.hub-inline-review-panel.is-loading-list .hub-inline-review-list::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 70%);
  transform: translateX(-100%);
  animation: hubShimmer 1.05s ease-in-out infinite;
  pointer-events: none;
}
.hub-inline-review-item {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
  margin-bottom: 10px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.hub-inline-review-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.hub-inline-review-item:hover{
  transform: translateY(-1px);
  border-color: #e9d4bd;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
.hub-inline-review-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.hub-inline-review-item-head strong {
  font-size: 12px;
  color: #1f2937;
}
.hub-inline-review-item-head span {
  font-size: 10px;
  color: rgba(27,28,28,0.45);
}
.hub-inline-review-item-msg {
  font-size: 12px;
  color: #111827;
  line-height: 1.55;
  white-space: pre-wrap;
}
.hub-inline-review-image {
  display: block;
  margin-top: 8px;
  max-width: 120px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: transform .16s ease, box-shadow .16s ease;
}
.hub-inline-review-image:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,.14);
}
.hub-inline-review-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.hub-inline-review-form input[type="text"],
.hub-inline-review-form textarea {
  width: 100%;
  border: 1px solid #f0d7bd;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  background: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.hub-inline-review-form textarea {
  min-height: 90px;
  resize: vertical;
}
.hub-inline-review-form input[type="text"]:focus,
.hub-inline-review-form textarea:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.18);
  background: #fffdf8;
}
.hub-inline-review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(27,28,28,0.58);
}
.hub-inline-review-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #f3cba0;
  background: #fff8ef;
  color: #9a3412;
  cursor: pointer;
  font-weight: 600;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .1s ease;
}
.hub-inline-review-upload input {
  display: none;
}
.hub-inline-review-upload:hover{
  background: #fff2de;
  border-color: #e8b980;
}
.hub-inline-review-upload:active{
  transform: translateY(1px);
}
.hub-inline-review-submit {
  justify-self: end;
  border: none;
  border-radius: 999px;
  background: #b72301;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(183,35,1,0.16);
  transition: background .16s ease, transform .1s ease, box-shadow .16s ease;
}
.hub-inline-review-submit:hover { background: #991b0a; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(153,27,10,0.25); }
.hub-inline-review-submit:active { transform: translateY(0); }
.hub-inline-review-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(183,35,1,0.2), 0 10px 20px rgba(153,27,10,0.24);
}
.hub-inline-review-submit:disabled { opacity: 0.64; cursor: default; transform: none; box-shadow: none; }
.hub-inline-review-panel.is-submitting .hub-inline-review-submit{
  position: relative;
  color: #ffe3db;
}
.hub-inline-review-panel.is-submitting .hub-inline-review-submit::after{
  content: '';
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.52);
  border-top-color: #fff;
  display: inline-block;
  margin-left: 8px;
  vertical-align: -2px;
  animation: hubSpin .8s linear infinite;
}
.hub-inline-review-status {
  min-height: 18px;
  font-size: 12px;
  color: rgba(27,28,28,0.52);
  transition: color .16s ease;
}
.hub-inline-review-status.is-error { color: #b91c1c; }
.hub-inline-review-status.is-success { color: #166534; }

/* ── Review flow / reward dialogs ───────────────────────────────────────── */
.reward-dialog-modal{
  border: none;
  border-radius: 20px;
  padding: 0;
  width: min(92vw, 560px);
  background: transparent;
  animation: hubDialogFadeIn .18s ease-out;
}
.reward-dialog-modal::backdrop{
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}
.reward-dialog-panel{
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.2);
  padding: 22px 22px 18px;
  animation: hubDialogSlideUp .22s ease-out;
}
.reward-dialog-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.reward-dialog-title{ font-size: 22px; font-weight: 800; color: #0f172a; }
.reward-dialog-close{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .1s ease;
}
.reward-dialog-close:hover{ border-color: #bfcad8; background: #eef2f7; transform: translateY(-1px); }
.reward-dialog-close:active{ transform: translateY(0); }
.reward-dialog-body{ margin-top: 10px; display:grid; gap:10px; color:#334155; font-size:14px; line-height:1.7; }
.reward-dialog-code{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  border:1px dashed #93c5fd;
  border-radius:12px;
  padding:10px 12px;
  background:#eff6ff;
}
.reward-dialog-code strong{ color:#0b3668; font-size:17px; }
.reward-dialog-list{ margin:0; padding-left:18px; display:grid; gap:6px; }
.reward-dialog-actions{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top: 12px; }
.reward-dialog-btn{
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.reward-dialog-btn.primary{ background:#b72301; color:#fff; box-shadow: 0 8px 16px rgba(183,35,1,.18); }
.reward-dialog-btn.primary:hover{ background:#8f1900; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(143,25,0,.25); }
.reward-dialog-btn.ghost{ background:#fff; color:#1f2937; border-color:#d0d8e3; }
.reward-dialog-btn.ghost:hover{ background:#f8fafc; border-color:#b9c6d5; transform: translateY(-1px); }
.review-flow-modal .reward-dialog-panel{ border-radius: 22px; }
.review-flow-chip{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  border:1px solid #c7d2fe;
  background:#eef2ff;
  color:#3730a3;
  font-size:11px;
  font-weight:700;
  padding:4px 10px;
}
.review-flow-title{ font-size:22px; color:#0f172a; line-height:1.25; }
.review-flow-desc{ margin:0; color:#475569; font-size:14px; line-height:1.7; }
.review-flow-meter{
  margin-top: 10px;
  width:100%;
  height:8px;
  background:#e2e8f0;
  border-radius:999px;
  overflow:hidden;
}
.review-flow-meter span{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#3b82f6,#2563eb);
  transition:width .24s ease;
}
.review-flow-status{ margin-top:8px; font-size:13px; font-weight:700; color:#166534; }
.review-flow-steps{ margin:10px 0 0; padding:0; list-style:none; display:grid; gap:8px; }
.review-flow-steps li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  color:#475569;
  font-size:13px;
}
.review-flow-steps .dot{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
}
.review-flow-steps li.is-active{ border-color:#bfdbfe; background:#eff6ff; color:#1e3a8a; }
.review-flow-steps li.is-active .dot{ border-color:#60a5fa; background:#dbeafe; color:#1d4ed8; }
.review-flow-steps li.is-done{ border-color:#86efac; background:#f0fdf4; color:#166534; }
.review-flow-steps li.is-done .dot{ border-color:#4ade80; background:#dcfce7; color:#166534; }
.review-flow-steps li.is-error{ border-color:#fecaca; background:#fff1f2; color:#b91c1c; }
.review-flow-steps li.is-error .dot{ border-color:#fca5a5; background:#fee2e2; color:#b91c1c; }

@media (max-width: 720px){
  .hub-order-reward { padding: 12px 14px; }
  .hub-order-reward.pending .hub-reward-left { width: 100%; }
  .hub-reward-action-btn {
    width: 100%;
    min-height: 38px;
  }
  .hub-inline-review { margin-top: 8px; }
  .hub-inline-review-panel { padding: 12px; border-radius: 10px; }
  .hub-inline-review-item { padding-left: 6px; padding-right: 6px; }
  .hub-inline-review-submit { width: 100%; min-height: 38px; justify-self: stretch; }
  .reward-dialog-modal{ width: min(94vw, 560px); }
  .reward-dialog-panel{ padding: 16px 16px 14px; border-radius: 16px; }
  .reward-dialog-title, .review-flow-title{ font-size: 18px; }
  .reward-dialog-actions{ justify-content: stretch; }
  .reward-dialog-btn{ width: 100%; text-align: center; justify-content: center; }
  .review-flow-steps li{ font-size: 12px; padding: 8px; }
}

@keyframes hubReviewReveal{
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hubShimmer{
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes hubSpin{
  to { transform: rotate(360deg); }
}
@keyframes hubDialogFadeIn{
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hubDialogSlideUp{
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Conflict block ───────────────────────────────────────────────────────── */
.hub-order-conflict { padding: 12px 18px; border-bottom: 1px solid #f0efef; background: #fff1f2; font-size: 12px; color: #be123c; }
.hub-conflict-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hub-conflict-btn { padding: 6px 14px; border: 1px solid #b72301; border-radius: 6px; font-size: 11px; font-weight: 700; color: #b72301; background: #fff; cursor: pointer; }
.hub-conflict-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Meeting link block ───────────────────────────────────────────────────── */
.hub-meeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0efef;
  background: #eff6ff;
  flex-wrap: wrap;
}
.hub-meeting-left { display: flex; align-items: center; gap: 10px; }
.hub-meeting-icon { font-size: 20px; color: #1d4ed8; flex-shrink: 0; }
.hub-meeting-label { font-size: 13px; font-weight: 700; color: #1e3a8a; }
.hub-meeting-join-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 18px;
  background: #1d4ed8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.hub-meeting-join-btn:hover { background: #1e40af; transform: translateY(-1px); }
.hub-result-panel { padding: 14px 18px; border-bottom: 1px solid #f0efef; }
.hub-result-title { font-size: 11px; font-weight: 700; color: rgba(27,28,28,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.hub-result-row { margin-bottom: 10px; }
.hub-result-row-label { font-size: 12px; color: #1b1c1c; margin-bottom: 6px; }
.hub-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-result-btn { padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none; }
.hub-result-btn.primary { background: #1b1c1c; color: #fff; }
.hub-result-btn.ghost   { background: #fff; color: #1b1c1c; border: 1px solid #e9e8e7; }
/* QnA */
.hub-qna-row { border-top: 1px solid #f0efef; }
.hub-qna-btn-bar { display: flex; gap: 8px; padding: 12px 18px; flex-wrap: wrap; }
.hub-qna-btn {
  padding: 7px 14px; border: 1.5px solid #e9e8e7; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #1b1c1c; background: #fff;
  cursor: pointer; display: flex; align-items: center; gap: 6px; transition: border-color .15s;
}
.hub-qna-btn:hover { border-color: #b72301; color: #b72301; }
.hub-qna-badge {
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 999px; background: #e9e8e7; color: rgba(27,28,28,0.5);
}
.hub-qna-badge.has-items { background: #fde68a; color: #92400e; }
.hub-qna-body, .hub-pending-q-body { padding: 0 18px 14px; display: none; }
.hub-qna-item { padding: 10px 0; border-bottom: 1px solid #f5f3f3; }
.hub-qna-item:last-child { border-bottom: none; }
.hub-qna-item-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.hub-qna-role { font-size: 10px; font-weight: 700; color: rgba(27,28,28,0.4); }
.hub-qna-item.admin .hub-qna-role { color: #0071e3; }
.hub-qna-time { font-size: 10px; color: rgba(27,28,28,0.3); }
.hub-qna-text { font-size: 13px; color: #1b1c1c; white-space: pre-wrap; }
.hub-qna-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hub-qna-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #e9e8e7; border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; min-height: 72px; outline: none; transition: border-color .15s; }
.hub-qna-form textarea:focus { border-color: #b72301; }
.hub-qna-send-btn { align-self: flex-end; padding: 7px 18px; background: #1b1c1c; color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.hub-qna-send-btn:disabled { opacity: 0.5; cursor: default; }
.hub-qna-status { font-size: 11px; color: rgba(27,28,28,0.4); padding: 4px 18px; }
/* Pending questions */
.hub-pending-q-item { padding: 10px 0; border-bottom: 1px solid #f5f3f3; }
.hub-pending-q-item:last-child { border-bottom: none; }
.hub-pending-q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.hub-pending-q-idx { font-size: 11px; font-weight: 700; color: #b72301; }
.hub-pending-q-time { font-size: 10px; color: rgba(27,28,28,0.3); }
.hub-pending-q-text { font-size: 13px; color: #1b1c1c; }
.hub-pending-q-hint { font-size: 11px; color: rgba(27,28,28,0.4); margin-bottom: 10px; }
.hub-item-actions { display: flex; gap: 8px; margin-top: 6px; }
.hub-item-actions button { font-size: 11px; padding: 3px 10px; border-radius: 4px; border: 1px solid #e9e8e7; background: #fff; color: rgba(27,28,28,0.5); cursor: pointer; }
.hub-item-actions button:hover { border-color: #b72301; color: #b72301; }
.hub-tz { color: #dc2626; }

/* ── Hub Sub-Tabs (coupon / wishlist) ──────────────────────────────────────── */
.hub-ctab-btn { outline: none !important; border: none; cursor: pointer; }
.hub-ctab-btn:focus, .hub-ctab-btn:focus-visible { outline: none !important; box-shadow: none; }
.hub-ctab-active   { background: #fff !important; color: #b72301 !important; box-shadow: 0 1px 6px rgba(0,0,0,.10) !important; }
.hub-ctab-inactive { background: transparent !important; color: rgba(27,28,28,0.38) !important; }

/* ── Wishlist Cards ─────────────────────────────────────────────────────────── */
.hub-wish-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.hub-wish-card:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,.13), 0 2px 6px rgba(15,23,42,.07);
  transform: translateY(-2px);
}
/* cover */
.hub-wish-cover {
  position: relative; width: 100%; padding-top: 72%; /* ~4:3 ratio */
  background: #f1f5f9; overflow: hidden; flex-shrink: 0;
}
.hub-wish-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center center; display: block;
  transition: transform .45s ease;
}
.hub-wish-card:hover .hub-wish-cover-img { transform: scale(1.04); }
.hub-wish-cover-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
/* rating badge (food) */
.hub-wish-rating {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,251,235,.95); border: 1px solid #fcd34d;
  color: #92400e; border-radius: 999px;
  font-size: 11px; font-weight: 800; padding: 3px 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
}
/* body */
.hub-wish-body {
  padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.hub-wish-name {
  font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hub-wish-meta   { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.hub-wish-chip   { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; font-weight: 600; }
.hub-wish-chip--area { background: #fff7ed; color: #9a3412; }
.hub-wish-price  { font-size: 13px; font-weight: 800; color: #b72301; }
.hub-wish-addr   { font-size: 11px; color: #94a3b8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* footer */
.hub-wish-foot {
  padding: 0 12px 12px; margin-top: auto;
}
/* 查看詳情 button */
.hub-wish-detail-btn {
  display: block; width: 100%; padding: 9px 0; border-radius: 10px;
  border: 1.5px solid #e2e8f0; background: #fff; color: #475569;
  font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: .4px;
  transition: border-color .18s, color .18s, background .18s, box-shadow .18s;
}
.hub-wish-detail-btn:hover {
  border-color: #b72301; color: #b72301; background: #fff7f2;
  box-shadow: 0 4px 12px rgba(183,35,1,.1);
}

/* ── Detail Dialog (food / temple / product) ───────────────────────────────── */
#dlgHubDetail {
  border: none; border-radius: 18px; padding: 0;
  max-width: 560px; width: 92%;
  box-shadow: 0 20px 48px rgba(0,0,0,.28);
  max-height: 92vh; overflow: hidden;
}
#dlgHubDetail::backdrop { background: rgba(15,23,42,.5); backdrop-filter: blur(4px); }
/* modal content shared with food-map / temple-map style */
.modal-body   { padding: 18px; display: grid; gap: 14px; background: #fff; max-height: 88vh; overflow: auto; border-radius: 18px; }
.modal-head   { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.modal-title  { font-size: 18px; font-weight: 800; color: #0f172a; line-height: 1.3; }
.modal-close  { border: none; background: #f1f5f9; border-radius: 10px; padding: 6px 12px; cursor: pointer; color: #0f172a; font-weight: 700; font-size: 12px; white-space: nowrap; }
.modal-close:hover { background: #e2e8f0; }
.modal-tags   { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-chip   { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.modal-embed  { border-radius: 14px; overflow: hidden; background: #f8fafc; border: 1px solid #e2e8f0; }
.modal-embed-inner { max-width: 420px; margin: 0 auto; }
.modal-embed iframe { width: 100%; aspect-ratio: 9/16; border: 0; display: block; background: #fff; }
.modal-embed.yt iframe { aspect-ratio: 16/9; }
.modal-section { display: grid; gap: 6px; font-size: 13px; color: #334155; line-height: 1.7; }
.modal-section strong { color: #0f172a; }
.modal-gallery { display: grid; gap: 8px; }
.modal-gallery-title { font-size: 12px; font-weight: 700; color: #0f172a; }
.modal-gallery-grid  { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.modal-gallery-thumb { border: none; background: none; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; cursor: pointer; }
.modal-gallery-thumb img { width: 100%; height: 72px; object-fit: cover; display: block; transition: transform .2s; }
.modal-gallery-thumb:hover img { transform: scale(1.05); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 140px; }
/* btn styles (used inside modal-actions) */
.modal-body .btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid #e2e8f0;
  background: #fff; font-weight: 700; cursor: pointer; text-decoration: none;
  color: #0f172a; font-family: inherit; font-size: 13px; letter-spacing: .2px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.modal-body .btn:hover   { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(15,23,42,.12); border-color: #cbd5e1; }
.modal-body .btn.primary { background: linear-gradient(135deg,#ff6a3d 0%,#ff9a2f 100%); color: #fff; border-color: transparent; box-shadow: 0 12px 24px rgba(255,106,61,.28); }
.modal-body .btn.primary:hover { box-shadow: 0 14px 28px rgba(255,106,61,.32); }
.modal-body .btn.ghost   { background: #fff7f2; border-color: #ffd9cc; color: #d9480f; }
.modal-body .btn.pill    { border-radius: 999px; padding: 7px 12px; font-size: 12px; flex: 0 0 auto; }
/* product-specific */
.hub-d-big-wrap { border-radius: 14px; overflow: hidden; background: #f8fafc; border: 1px solid #e2e8f0; }
.hub-d-big      { width: 100%; max-height: 300px; object-fit: contain; display: block; }
.hub-d-thumbs   { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-d-thumb    { border: none; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid #e2e8f0; cursor: pointer; width: 60px; height: 60px; flex-shrink: 0; transition: border-color .15s; }
.hub-d-thumb.is-active { border-color: #b72301; }
.hub-d-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-d-price-wrap { display: flex; align-items: baseline; gap: 10px; }
.hub-d-price-old  { font-size: 13px; color: #94a3b8; text-decoration: line-through; }
.hub-d-price-cur  { font-size: 22px; font-weight: 800; color: #b72301; }
.hub-d-select {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; font-size: 13px;
  color: #0f172a; font-family: inherit; cursor: pointer;
}
/* lightbox */
#dlgHubDetailLb { border: none; border-radius: 0; padding: 0; background: transparent; max-width: 100vw; width: 100vw; max-height: 100vh; }
#dlgHubDetailLb::backdrop { background: rgba(15,23,42,.88); }
.hub-det-lb-inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
#dlgHubDetailLbImg { max-width: min(90vw,900px); max-height: 86vh; border-radius: 16px; object-fit: contain; }
#dlgHubDetailLbClose { position: fixed; top: 16px; right: 16px; border: none; border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,.92); color: #0f172a; font-size: 12px; font-weight: 800; cursor: pointer; z-index: 10; }

/* ── Hub Store Dialog ──────────────────────────────────────────────────────── */
.hub-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 40px rgba(27,28,28,0.18);
  width: min(420px, 92vw);
  max-height: 90vh;
  overflow: hidden;
}
.hub-dialog::backdrop {
  background: rgba(27,28,28,0.45);
  backdrop-filter: blur(4px);
}
.hub-dialog-inner {
  display: flex;
  flex-direction: column;
}
.hub-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(27,28,28,0.08);
}
.hub-dialog-close {
  font-size: 20px;
  color: rgba(27,28,28,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.hub-dialog-close:hover {
  color: rgba(27,28,28,0.9);
  background: rgba(27,28,28,0.06);
}
.hub-dialog-body {
  padding: 20px 24px 24px;
}

/* ── Summary Cards ────────────────────────────────────────────────────────── */
.hub-sum-card {
  background: #fff;
  border: 1px solid #e9e8e7;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(27,28,28,0.04);
}
.hub-sum-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.hub-sum-card-label {
  font-size: 14px;
  font-weight: 700;
  color: #1b1c1c;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.hub-sum-card-meta {
  font-size: 11px;
  color: rgba(27,28,28,0.4);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.hub-sum-lock { font-size: 15px; }
.hub-sum-done { color: #16a34a; font-size: 17px; }
.hub-sum-view-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #b72301;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.hub-sum-view-btn:hover { background: #8c1800; }
.hub-sum-unlock-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid #b72301;
  color: #b72301;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.hub-sum-unlock-btn:hover { background: #b72301; color: #fff; }
.hub-sum-preview-txt {
  font-size: 13px;
  color: rgba(27,28,28,0.5);
  line-height: 1.65;
  border-top: 1px solid rgba(27,28,28,0.06);
  padding-top: 12px;
}
.hub-sum-locked-body {
  border-top: 1px solid rgba(27,28,28,0.06);
  padding-top: 12px;
}
.hub-sum-preview-blur {
  font-size: 13px;
  color: rgba(27,28,28,0.4);
  line-height: 1.6;
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  max-height: 52px;
  overflow: hidden;
  margin-bottom: 10px;
}
.hub-sum-unlock-hint {
  font-size: 12px;
  color: rgba(27,28,28,0.45);
  font-weight: 600;
}

/* Summary dialog with iframe */
#dlgHubSummary {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(94vw, 520px);
  height: min(88vh, 820px);
  max-width: min(94vw, 520px);
  max-height: min(88vh, 820px);
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,0.22);
}
#dlgHubSummary::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

/* Summary card action row */
.hub-sum-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(27,28,28,0.06);
}
.hub-sum-task-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: transparent;
  color: #b72301;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1.5px solid #b72301;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.hub-sum-task-btn:hover { background: #b72301; color: #fff; }

/* ── Task Dialog ────────────────────────────────────────────────────────────── */
#dlgHubTask {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(94vw, 480px);
  height: min(88vh, 700px);
  max-width: min(94vw, 480px);
  max-height: min(88vh, 700px);
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,0.22);
}
#dlgHubTask::backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
#dlgHubTaskBody { overflow-y: auto; height: calc(100% - 53px); padding: 16px 20px; }

.hub-task-section {
  border: 1px solid #b7efcf;
  background: linear-gradient(180deg,#f4fff8,#eefcf5);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(34,197,94,.08);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.hub-task-section.is-all-done { border-color:#86efac; background:linear-gradient(180deg,#ecfdf5,#dcfce7); box-shadow:0 10px 22px rgba(22,163,74,.16); }
.hub-task-section.is-bursting { box-shadow:0 12px 28px rgba(22,163,74,.24); }
.hub-task-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.hub-task-head strong { font-size:17px; line-height:1.25; color:#14532d; }
.hub-task-count { display:inline-flex; align-items:center; padding:5px 10px; border-radius:999px; border:1px solid #86efac; background:#dcfce7; color:#166534; font-size:12px; font-weight:800; }
.hub-task-progress-wrap { margin:2px 0 10px; padding:10px 12px; border-radius:12px; border:1px solid #bbf7d0; background:rgba(255,255,255,.6); }
.hub-task-progress-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.hub-task-progress-label { font-size:12px; font-weight:800; color:#166534; }
.hub-task-progress-value { font-size:12px; font-weight:900; color:#15803d; }
.hub-task-progress-track { height:10px; border-radius:999px; background:#dcfce7; overflow:hidden; box-shadow:inset 0 1px 2px rgba(22,163,74,.14); }
.hub-task-progress-bar { display:block; height:100%; width:0; border-radius:999px; background:linear-gradient(90deg,#22c55e 0%,#16a34a 55%,#15803d 100%); box-shadow:0 2px 8px rgba(22,163,74,.25); transition:width .38s cubic-bezier(.22,.61,.36,1); }
.hub-task-encourage { margin:8px 0 0; font-size:13px; line-height:1.6; color:#166534; font-weight:700; }
.hub-task-list { list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.hub-task-item { display:grid; grid-template-columns:30px minmax(0,1fr); gap:10px; align-items:flex-start; padding:4px 0; cursor:pointer; }
.hub-task-check { position:relative; width:24px; height:24px; display:inline-grid; place-items:center; margin-top:1px; }
.hub-task-check input { position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.hub-task-icon { width:24px; height:24px; border-radius:999px; border:2px solid #22c55e; background:#fff; display:inline-flex; align-items:center; justify-content:center; transition:all .2s ease; position:relative; }
.hub-task-icon::after { content:""; width:7px; height:12px; border-right:3px solid #fff; border-bottom:3px solid #fff; transform:rotate(45deg) scale(.35); opacity:0; transition:all .2s ease; }
.hub-task-check input:checked + .hub-task-icon { background:linear-gradient(180deg,#22c55e,#16a34a); box-shadow:0 6px 12px rgba(22,163,74,.28); transform:scale(1.04); }
.hub-task-check input:checked + .hub-task-icon::after { opacity:1; transform:rotate(45deg) scale(1); }
.hub-task-copy { display:grid; gap:4px; min-width:0; }
.hub-task-text { font-size:15px; line-height:1.7; color:#0f172a; word-break:break-word; }
.hub-task-time { font-size:12px; line-height:1.5; color:#475569; font-weight:700; }
.hub-task-item.is-done .hub-task-text { color:#166534; text-decoration:line-through; }
.hub-task-item.is-done .hub-task-time { color:#166534; }
.hub-task-confetti-layer { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.hub-task-confetti { position:absolute; top:-8px; width:8px; height:14px; border-radius:2px; background:linear-gradient(180deg,#86efac,#22c55e); transform:translate3d(0,0,0) rotate(0deg); opacity:0; animation:hubTaskConfetti var(--dur,1.1s) ease-out var(--delay,0s) forwards; }
.hub-task-confetti:nth-child(3n) { background:linear-gradient(180deg,#bbf7d0,#34d399); }
.hub-task-confetti:nth-child(3n+1) { background:linear-gradient(180deg,#fde68a,#f59e0b); }
.hub-task-confetti:nth-child(3n+2) { background:linear-gradient(180deg,#bfdbfe,#3b82f6); }
@keyframes hubTaskConfetti {
  0%{opacity:0;transform:translate3d(0,-10px,0) rotate(0deg);}
  12%{opacity:1;}
  100%{opacity:0;transform:translate3d(var(--drift,0px),170px,0) rotate(var(--rot,120deg));}
}
.hub-sum-dlg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(27,28,28,0.07);
  background: #fbf9f9;
}
#dlgHubSummaryFrame {
  width: 100%;
  height: calc(100% - 53px);
  border: none;
  display: none; /* shown by JS when active */
}

/* ── Avatar upload ────────────────────────────────────────────────────────── */
.hub-avatar-wrap {
  position: relative;
  cursor: pointer;
}
.hub-avatar-wrap:hover .hub-avatar-overlay {
  opacity: 1;
}
.hub-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  gap: 3px;
  user-select: none;
  pointer-events: none;
}
.hub-avatar-overlay .material-symbols-outlined {
  font-size: 22px !important;
}
.hub-avatar-overlay-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .hub-profile-name-row{
    align-items:center;
    gap:8px;
  }
  .hub-profile-edit-inline{
    margin-left: 0;
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
  .hub-profile-guardian.guardian-badge{
    width:auto;
    max-width:100%;
    padding:6px 10px;
    margin-bottom:0;
  }
  .hub-profile-guardian .guardian-meta strong{
    font-size:11px;
  }
  .hub-profile-guardian .guardian-sub{
    font-size:10px;
  }
  .hub-main-tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
