* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eaf2ff;
  color: #172033;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  display: grid;
  place-items: center;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone {
  width: min(430px, 100vw);
  min-height: 100vh;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(14, 32, 66, .18);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  width: 112px;
  height: 36px;
  object-fit: contain;
}

.search {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f6fb;
  color: #7b8495;
  text-align: left;
  padding: 0 14px;
  font-size: 13px;
}

.top-action {
  width: 48px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #096be8;
  background: #edf5ff;
  font-size: 13px;
  font-weight: 900;
}

.view {
  height: calc(100vh - 112px);
  overflow: auto;
  padding: 0 16px 98px;
}

body.portal-admin,
body.portal-merchant {
  background: #f4f6fb;
  place-items: stretch;
}

body.portal-admin .phone,
body.portal-merchant .phone {
  width: min(1180px, 100vw);
  box-shadow: none;
}

body.portal-admin .topbar,
body.portal-merchant .topbar,
body.portal-admin .tabs,
body.portal-merchant .tabs {
  display: none;
}

body.portal-admin .view,
body.portal-merchant .view {
  height: 100vh;
  padding: 24px;
}

body.portal-client [data-action="admin"],
body.portal-client [data-action="merchant"],
body.portal-client [data-action="member-manage"],
body.portal-admin [data-action="merchant"],
body.portal-admin [data-action="home"],
body.portal-admin [data-action="restaurants"],
body.portal-admin [data-action="circles"],
body.portal-admin [data-action="member"],
body.portal-admin [data-action="help"],
body.portal-admin [data-action="profile"],
body.portal-merchant [data-action="admin"],
body.portal-merchant [data-action="home"],
body.portal-merchant [data-action="restaurants"],
body.portal-merchant [data-action="circles"],
body.portal-merchant [data-action="member"],
body.portal-merchant [data-action="help"],
body.portal-merchant [data-action="profile"] {
  display: none !important;
}

body[data-route="restaurantDetail"] .tabs {
  display: none;
}

body[data-route="restaurantDetail"] .view {
  height: calc(100vh - 86px);
  padding-bottom: 0;
}

.tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #eef1f6;
  z-index: 20;
}

.tabs button {
  min-width: 0;
  height: 62px;
  border: 0;
  background: transparent;
  color: #263142;
  font-size: 12px;
  font-weight: 800;
}

.tabs button.active {
  color: #096be8;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  line-height: 1.2;
}

h2 {
  margin: 22px 0 12px;
  font-size: 20px;
}

h3 {
  font-size: 16px;
  line-height: 1.35;
}

p {
  color: #5c6675;
  font-size: 13px;
  line-height: 1.55;
}

.muted {
  color: #707b8c;
}

.blue {
  color: #096be8;
}

.red {
  color: #dd1f1f;
}

.hero {
  width: 100%;
  min-height: 148px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #edf5ff;
}

.hero img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.hero-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .32);
}

.hero-copy p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .92);
}

.hero-blue {
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #0874f8, #0058d6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.section-head h2 {
  margin: 0;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #096be8;
  font-weight: 900;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 18px rgba(19, 67, 126, .08);
}

.card img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 12px;
}

.card h3 {
  color: #111827;
}

.offer {
  margin-top: 8px;
  color: #dd1f1f;
  font-size: 13px;
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  padding: 5px 8px;
  border-radius: 8px;
  color: #647084;
  background: #f2f5fa;
  font-size: 12px;
  font-weight: 800;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
}

.chip {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #263142;
  background: #f7f9fc;
  font-size: 13px;
  font-weight: 800;
}

.chip.active {
  color: #fff;
  background: #096be8;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 18px;
}

.promo {
  border: 0;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  background: #f2f7ff;
}

.promo strong {
  display: block;
  color: #111827;
  font-size: 15px;
}

.promo span {
  display: block;
  margin-top: 5px;
  color: #6a7486;
  font-size: 12px;
}

.row-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-card {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  text-align: left;
  box-shadow: inset 0 0 0 1px #edf1f6;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}

.row-card img {
  width: 96px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.detail-cover {
  width: calc(100% + 32px);
  height: 218px;
  margin: 0 -16px;
  object-fit: cover;
  display: block;
}

.back-btn {
  margin: 12px 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #096be8;
  background: #edf5ff;
  font-weight: 900;
}

.detail-panel {
  margin-top: -16px;
  padding: 18px 0 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #096be8;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 900;
}

.info-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f7fbff;
}

.warn-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  color: #86540f;
  background: #fff7e8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric {
  min-width: 0;
  border-radius: 12px;
  padding: 13px 8px;
  background: #f7f9fc;
  text-align: center;
}

.metric strong {
  display: block;
  color: #111827;
  font-size: 18px;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: #707b8c;
  font-size: 12px;
}

.primary,
.ghost,
.danger {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
}

.primary {
  color: #fff;
  background: #096be8;
}

.ghost {
  color: #096be8;
  background: #edf5ff;
}

.link-as-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.danger {
  color: #a41616;
  background: #ffecec;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.action-row button {
  flex: 1;
}

.member-card {
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #177cff, #0058d6);
}

.member-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .86);
}

.qr {
  width: 176px;
  height: 176px;
  margin: 18px auto 10px;
  border-radius: 14px;
  background: #fff;
  display: block;
}

.code-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  color: #172033;
  background: #ffffff;
  text-align: center;
}

.code-box span,
.code-box small {
  display: block;
  color: #707b8c;
  font-size: 12px;
}

.code-box strong {
  display: block;
  margin: 6px 0;
  color: #096be8;
  font-size: 17px;
  word-break: break-all;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: #263142;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  padding: 12px;
  color: #172033;
  background: #fff;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-section {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f7fbff;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #e8eef7;
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row strong {
  display: block;
  color: #111827;
}

.admin-row span {
  display: block;
  margin-top: 4px;
  color: #707b8c;
  font-size: 12px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tool {
  border: 0;
  border-radius: 12px;
  padding: 14px 8px;
  color: #172033;
  background: #f7f9fc;
  font-weight: 900;
}

.empty {
  padding: 24px;
  border-radius: 12px;
  background: #f7f9fc;
  color: #707b8c;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(18px);
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, .92);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 99;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}

.location-row strong,
.location-row span {
  display: block;
}

.location-row strong {
  color: #111827;
  font-size: 17px;
}

.location-row span {
  margin-top: 3px;
  color: #707b8c;
  font-size: 12px;
}

.banner-card {
  width: 100%;
  min-height: 172px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  padding: 0;
  text-align: left;
  background: #0a4a9f;
  box-shadow: 0 12px 30px rgba(9, 107, 232, .18);
}

.banner-card img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
  filter: brightness(.72);
}

.banner-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.banner-copy span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 12px;
  font-weight: 900;
}

.banner-copy p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .9);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 14px;
}

.banner-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #cbd8ec;
}

.banner-dots button.active {
  width: 20px;
  background: #096be8;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  padding: 12px;
  border-radius: 14px;
  background: #f7fbff;
}

.shortcut-item {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #172033;
  display: grid;
  justify-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}

.shortcut-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #096be8;
  background: #e7f1ff;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.home-restaurant-list,
.dish-list,
.review-list {
  display: grid;
  gap: 10px;
}

.home-restaurant {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 18px rgba(19, 67, 126, .08);
}

.home-restaurant img {
  width: 96px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.home-restaurant p {
  margin: 4px 0 8px;
}

.home-restaurant strong {
  color: #dd1f1f;
  font-size: 13px;
}

.content-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.content-card {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 18px rgba(19, 67, 126, .08);
}

.content-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}

.content-card strong,
.content-card span {
  display: block;
  padding: 0 10px;
}

.content-card strong {
  margin-top: 10px;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
}

.content-card span {
  margin: 7px 0 10px;
  color: #707b8c;
  font-size: 12px;
}

.circle-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.circle-mini {
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  background: #f7fbff;
  text-align: left;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
}

.circle-mini img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.circle-mini strong,
.circle-mini span {
  display: block;
}

.circle-mini strong {
  color: #111827;
  font-size: 13px;
}

.circle-mini span {
  margin-top: 4px;
  color: #707b8c;
  font-size: 12px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.business-grid div {
  padding: 12px;
  border-radius: 12px;
  background: #f7fbff;
}

.business-grid strong,
.business-grid span {
  display: block;
}

.business-grid strong {
  color: #111827;
}

.business-grid span {
  margin-top: 5px;
  color: #707b8c;
  font-size: 12px;
}

.dish-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(19, 67, 126, .08);
}

.dish-row img {
  width: 72px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.dish-row strong,
.dish-row span {
  display: block;
}

.dish-row span,
.review-row span {
  margin-top: 4px;
  color: #707b8c;
  font-size: 12px;
}

.dish-row b {
  color: #dd1f1f;
}

.review-row {
  padding: 14px;
  border-radius: 12px;
  background: #f7fbff;
}

.review-row p {
  margin-top: 8px;
}

.identity-panel {
  padding: 14px;
  border-radius: 14px;
  background: #f7fbff;
}

.identity-panel strong,
.identity-panel span {
  display: block;
}

.identity-panel span {
  margin-top: 5px;
  color: #707b8c;
  font-size: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 360px) {
  .grid,
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-grid,
  .circle-mini-grid,
  .business-grid,
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tabs button {
    font-size: 11px;
  }
}

/* Premium product layer */
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(10, 108, 245, .18), transparent 34%),
    linear-gradient(180deg, #f5f8fc 0%, #eaf1fb 100%);
  color: #162033;
}

.phone {
  width: min(440px, 100vw);
  background: #f7f9fc;
  box-shadow: 0 24px 80px rgba(16, 54, 112, .18);
}

.topbar {
  padding: 15px 16px 11px;
  background: rgba(247, 249, 252, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(214, 225, 241, .78);
}

.logo {
  width: 118px;
  height: 38px;
}

.search {
  height: 40px;
  color: #69778c;
  background: #fff;
  border: 1px solid #e2eaf5;
  box-shadow: 0 6px 18px rgba(25, 74, 132, .06);
}

.top-action {
  height: 40px;
  color: #0a6cf5;
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(10, 108, 245, .08);
}

.view {
  height: calc(100vh - 112px);
  padding: 0 16px 104px;
}

.tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 10px 10px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid rgba(214, 225, 241, .9);
  box-shadow: 0 -10px 30px rgba(22, 47, 86, .08);
}

.tabs button {
  height: 54px;
  border-radius: 16px;
  color: #7a8799;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.tabs button.active {
  color: #0a6cf5;
  background: #eaf3ff;
}

.primary,
.ghost,
.danger,
.chip,
.link-btn,
.top-action,
.search,
.back-btn {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.primary:active,
.ghost:active,
.danger:active,
.chip:active,
.link-btn:active,
.top-action:active,
.search:active,
.back-btn:active,
.p-restaurant:active,
.p-service:active,
.p-community:active,
.p-circle-card:active {
  transform: scale(.98);
}

.primary {
  background: linear-gradient(135deg, #0a6cf5, #1592ff);
  box-shadow: 0 10px 22px rgba(10, 108, 245, .22);
}

.ghost {
  color: #0a6cf5;
  background: #eef6ff;
}

.chip {
  color: #607086;
  background: #fff;
  border: 1px solid #e2eaf5;
}

.chip.active {
  color: #fff;
  background: #0a6cf5;
  border-color: #0a6cf5;
}

.p-home,
.p-page,
.p-detail {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.p-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.p-location span,
.p-title-block span,
.p-section-head span,
.p-kicker {
  display: block;
  color: #5d9cff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p-location strong {
  display: block;
  margin-top: 3px;
  color: #14213a;
  font-size: 18px;
}

.p-icon-btn {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  color: #0a6cf5;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(29, 82, 143, .08);
}

.p-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, .34), transparent 20%),
    linear-gradient(145deg, #0a6cf5 0%, #0960d8 54%, #0e84ff 100%);
  box-shadow: 0 24px 45px rgba(10, 108, 245, .24);
}

.p-hero-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .11);
}

.p-hero-content {
  position: relative;
  z-index: 1;
  max-width: 320px;
}

.p-hero-content h1 {
  margin-top: 10px;
  font-size: 25px;
  line-height: 1.24;
}

.p-hero-content p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.p-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.p-hero-actions .primary {
  color: #0a6cf5;
  background: #fff;
  box-shadow: none;
}

.p-hero-actions .ghost {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.p-pass-preview {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px);
}

.p-pass-preview span,
.p-pass-preview small {
  display: block;
  color: rgba(255, 255, 255, .78);
}

.p-pass-preview strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.p-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.p-stats div {
  padding: 14px 10px;
  border: 1px solid #e4edf8;
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  text-align: center;
  box-shadow: 0 10px 26px rgba(25, 74, 132, .06);
}

.p-stats strong,
.p-stats span {
  display: block;
}

.p-stats strong {
  color: #14213a;
  font-size: 19px;
}

.p-stats span {
  margin-top: 4px;
  color: #738196;
  font-size: 12px;
}

.p-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.p-section-head h2,
.p-title-block h1 {
  margin: 5px 0 0;
  color: #14213a;
}

.p-title-block {
  padding: 4px 0;
}

.p-title-block h1 {
  font-size: 27px;
}

.p-title-block p {
  margin-top: 8px;
  color: #66758a;
}

.p-feature-list,
.p-community-list {
  display: grid;
  gap: 12px;
}

.p-restaurant {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  width: 100%;
  border: 1px solid #e4edf8;
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, .92);
  text-align: left;
  box-shadow: 0 14px 34px rgba(25, 74, 132, .08);
}

.p-restaurant.featured {
  grid-template-columns: 1fr;
}

.p-restaurant-media {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  border-radius: 17px;
  background: #eaf3ff;
}

.p-restaurant.featured .p-restaurant-media {
  min-height: 168px;
}

.p-restaurant-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.p-restaurant-media span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 26, 54, .58);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.p-restaurant-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.p-card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.p-card-title h3 {
  color: #14213a;
}

.p-card-title strong {
  color: #0a6cf5;
}

.p-restaurant-body p {
  color: #69778c;
}

.p-restaurant .tag-row {
  margin-top: 0;
}

.p-offer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.p-offer-row span {
  color: #dd1f1f;
  font-size: 13px;
  font-weight: 900;
}

.p-offer-row b {
  color: #7c8ca1;
  font-size: 12px;
}

.p-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.p-service-grid.large {
  grid-template-columns: 1fr;
}

.p-service {
  min-height: 96px;
  border: 0;
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, #0a6cf5, #55a9ff);
  box-shadow: 0 14px 30px rgba(10, 108, 245, .14);
}

.p-service.cyan {
  background: linear-gradient(135deg, #0785d8, #4cc8f0);
}

.p-service.green {
  background: linear-gradient(135deg, #0e9f6e, #62d2ac);
}

.p-service.rose {
  background: linear-gradient(135deg, #d93f5f, #ff7d99);
}

.p-service.white {
  color: #14213a;
  background: #fff;
  border: 1px solid #e4edf8;
  box-shadow: 0 12px 30px rgba(25, 74, 132, .07);
}

.p-service strong,
.p-service span,
.p-service em {
  display: block;
}

.p-service strong {
  font-size: 16px;
}

.p-service span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  line-height: 1.5;
}

.p-service.white span {
  color: #69778c;
}

.p-service em {
  margin-top: 10px;
  color: #0a6cf5;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.p-community-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 156px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.p-community {
  border: 1px solid #e4edf8;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(25, 74, 132, .07);
}

.p-community img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.p-community strong,
.p-community span {
  display: block;
  padding: 0 12px;
}

.p-community strong {
  margin-top: 11px;
  color: #14213a;
  font-size: 14px;
}

.p-community span {
  margin: 6px 0 12px;
  color: #748399;
  font-size: 12px;
}

.p-filter-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4edf8;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 30px rgba(25, 74, 132, .06);
}

.p-filter-panel label {
  display: block;
  margin-bottom: 8px;
  color: #14213a;
  font-size: 13px;
  font-weight: 900;
}

.p-detail-hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 26px;
  background: #dbe9fb;
}

.p-detail-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: brightness(.72);
}

.p-detail-hero div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.p-detail-hero span {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.p-detail-hero p {
  margin-top: 7px;
  color: rgba(255, 255, 255, .88);
}

.p-detail-card {
  margin-top: -28px;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e4edf8;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 40px rgba(25, 74, 132, .1);
}

.p-score-row,
.p-info-grid,
.p-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.p-score-row div,
.p-info-grid div,
.p-benefit,
.admin-section.premium,
.identity-panel.premium {
  border: 1px solid #e4edf8;
  border-radius: 17px;
  background: #f8fbff;
}

.p-score-row div {
  padding: 12px 8px;
  text-align: center;
}

.p-score-row strong,
.p-score-row span,
.p-info-grid span,
.p-info-grid strong {
  display: block;
}

.p-score-row strong {
  color: #0a6cf5;
  font-size: 19px;
}

.p-score-row span,
.p-info-grid span {
  margin-top: 4px;
  color: #7a8799;
  font-size: 12px;
}

.p-coupon {
  padding: 15px;
  border-radius: 18px;
  color: #14213a;
  background: linear-gradient(135deg, #fff4f5, #eef6ff);
}

.p-coupon span,
.p-coupon strong {
  display: block;
}

.p-coupon span {
  color: #dd1f1f;
  font-size: 12px;
  font-weight: 900;
}

.p-coupon strong {
  margin-top: 5px;
  font-size: 18px;
}

.p-coupon p {
  margin-top: 7px;
}

.p-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-info-grid div {
  padding: 12px;
}

.p-info-grid strong {
  margin-top: 5px;
  color: #14213a;
  font-size: 13px;
  line-height: 1.45;
}

.p-action-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.p-action-bar.standalone {
  margin-top: 0;
}

.dish-row.premium,
.review-row.premium {
  border: 1px solid #e4edf8;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 74, 132, .07);
}

.p-member-card {
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .35), transparent 19%),
    linear-gradient(145deg, #0a6cf5, #0e84ff);
  box-shadow: 0 24px 45px rgba(10, 108, 245, .2);
}

.p-member-card.inactive {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .28), transparent 19%),
    linear-gradient(145deg, #5d8fda, #7cb6ff);
}

.p-member-card span,
.p-member-card p {
  color: rgba(255, 255, 255, .82);
}

.p-member-card h2 {
  margin: 6px 0;
  color: #fff;
  font-size: 28px;
}

.qr.locked {
  filter: blur(5px) grayscale(.4);
  opacity: .76;
}

.p-benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-benefit {
  min-height: 62px;
  border: 1px solid #e4edf8;
  color: #14213a;
  font-weight: 900;
}

.p-service-hero {
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0a6cf5, #56b5ff);
  box-shadow: 0 18px 36px rgba(10, 108, 245, .18);
}

.p-service-hero strong,
.p-service-hero span {
  display: block;
}

.p-service-hero strong {
  font-size: 21px;
}

.p-service-hero span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  line-height: 1.55;
}

.p-circle-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  border: 1px solid #e4edf8;
  border-radius: 22px;
  padding: 10px;
  background: #fff;
  text-align: left;
  box-shadow: 0 14px 34px rgba(25, 74, 132, .08);
}

.p-circle-card img {
  width: 104px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
}

.p-circle-card span {
  color: #0a6cf5;
  font-size: 12px;
  font-weight: 900;
}

.p-circle-card h3 {
  margin-top: 6px;
  color: #14213a;
}

.p-circle-card p {
  margin: 7px 0;
}

.p-profile-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e4edf8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 74, 132, .08);
}

.p-avatar {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #0a6cf5, #62b7ff);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}

.p-profile-head span,
.p-profile-head p {
  color: #69778c;
}

.p-profile-head h1 {
  margin: 5px 0;
  color: #14213a;
}

.chart-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.chart-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4edf8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 74, 132, .08);
}

.chart-card.wide {
  grid-column: 1 / -1;
}

.chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.chart-head strong,
.chart-head span,
.chart-head em {
  display: block;
}

.chart-head strong {
  color: #14213a;
  font-size: 15px;
}

.chart-head span,
.chart-head em {
  margin-top: 4px;
  color: #748399;
  font-size: 11px;
}

.chart-head em {
  margin-top: 0;
  color: #0a6cf5;
  font-style: normal;
  font-weight: 900;
}

.bar-chart {
  display: grid;
  gap: 10px;
}

.compact-chart {
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(58px, .9fr) 1.4fr 28px;
  align-items: center;
  gap: 8px;
}

.bar-row span {
  min-width: 0;
  overflow: hidden;
  color: #536176;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4ff;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a6cf5, #62b7ff);
}

.bar-row b {
  color: #14213a;
  font-size: 12px;
  text-align: right;
}

.chart-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chart-metrics div {
  padding: 12px 8px;
  border-radius: 16px;
  background: #f7fbff;
  text-align: center;
}

.chart-metrics strong,
.chart-metrics span {
  display: block;
}

.chart-metrics strong {
  color: #0a6cf5;
  font-size: 17px;
}

.chart-metrics span {
  margin-top: 5px;
  color: #748399;
  font-size: 12px;
}

@media (max-width: 380px) {
  .p-restaurant,
  .p-circle-card {
    grid-template-columns: 1fr;
  }

  .p-service-grid,
  .p-score-row,
  .p-info-grid,
  .p-action-bar,
  .p-benefit-grid,
  .chart-board {
    grid-template-columns: 1fr;
  }
}

/* Formal web MVP refinements */
.qfl-hero {
  background:
    linear-gradient(180deg, rgba(8, 18, 38, .18), rgba(8, 18, 38, .74)),
    url("../assets/images/home-hero.jpg") center / cover;
}

.qfl-home-feed {
  margin-bottom: 4px;
}

.qfl-post-card img {
  aspect-ratio: 4 / 5;
}

.qfl-service,
.qfl-service-photo,
.qfl-service-hero {
  position: relative;
  overflow: hidden;
}

.qfl-service::before,
.qfl-service-photo::before,
.qfl-service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 38, .18), rgba(8, 18, 38, .78)),
    var(--service-bg, url("../assets/images/help-hero.jpg")) center / cover;
  z-index: 0;
}

.qfl-service > *,
.qfl-service-photo > *,
.qfl-service-hero > * {
  position: relative;
  z-index: 1;
}

.qfl-service-photo {
  min-height: 126px;
  color: #fff;
  border: 0;
  background: #14213a;
}

.qfl-service-photo span,
.qfl-service-photo em {
  color: rgba(255, 255, 255, .86);
}

.qfl-service-photo em {
  color: #fff;
}

.profile-member-tile {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 1px solid #dbe7f6;
  border-radius: 22px;
  background: linear-gradient(145deg, #10203d, #0a6cf5);
  color: #fff;
  text-align: left;
  box-shadow: 0 20px 42px rgba(10, 108, 245, .2);
}

.profile-member-tile img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #fff;
}

.profile-member-tile span,
.profile-member-tile strong,
.profile-member-tile p {
  display: block;
}

.profile-member-tile span,
.profile-member-tile p {
  color: rgba(255, 255, 255, .82);
}

.profile-member-tile strong {
  margin: 5px 0;
  font-size: 24px;
}

.circle-create-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe7f6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 74, 132, .08);
}

.circle-create-card strong,
.circle-create-card span {
  display: block;
}

.circle-create-card span {
  margin-top: 4px;
  color: #748399;
  font-size: 12px;
}

.circle-promo {
  padding: 11px 13px;
  border-radius: 16px;
  color: #0a4f9f;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 900;
}

.advanced-composer small {
  display: block;
  margin-top: 6px;
  color: #748399;
  font-size: 12px;
}

.post-image-preview,
.post-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.post-image-preview img,
.post-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #edf4ff;
}

.admin-console-v3 {
  display: grid;
  gap: 14px;
}

.admin-hero-v3 {
  grid-template-columns: 1fr auto;
}

.admin-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid #dbe7f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(25, 74, 132, .06);
}

.admin-nav button {
  min-height: 38px;
  border: 0;
  border-radius: 13px;
  color: #68788f;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.admin-nav button.active {
  color: #fff;
  background: #14213a;
}

.admin-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.merchant-layout.single {
  grid-template-columns: 1fr;
}

.major-panel {
  padding: 18px;
}

.scan-fallback {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
}

.scan-fallback input {
  color: #fff;
}

.member-live-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe7f6;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #10203d, #0a6cf5);
  box-shadow: 0 22px 46px rgba(10, 108, 245, .2);
}

.member-live-card.inactive {
  background: linear-gradient(145deg, #6a7890, #8fb5e8);
}

.member-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-live-head span,
.member-live-head strong,
.member-live-head em {
  display: block;
}

.member-live-head span,
.member-live-head em,
.member-live-note {
  color: rgba(255, 255, 255, .82);
}

.member-live-head strong {
  margin-top: 5px;
  font-size: 24px;
}

.member-live-head em {
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.member-barcode {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-height: 76px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

.member-barcode i {
  display: block;
  min-height: 52px;
  background: #111827;
  border-radius: 2px;
}

.member-code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-code-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .13);
}

.member-code-grid span,
.member-code-grid strong {
  display: block;
}

.member-code-grid span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.member-code-grid strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 18px;
}

.member-live-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.manual-redeem-card .member-barcode {
  margin-top: 14px;
}

@media (max-width: 520px) {
  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-member-tile,
  .admin-hero-v3,
  .admin-search-row,
  .scan-fallback {
    grid-template-columns: 1fr;
  }

  .member-live-head,
  .member-code-grid {
    grid-template-columns: 1fr;
  }

  .member-live-head {
    display: grid;
  }

  .member-live-head em {
    text-align: left;
  }
}

/* Community and compact discovery refinements */
.p-title-block.compact {
  padding: 0;
}

.p-title-block.compact h1 {
  font-size: 24px;
}

.p-title-block.compact p {
  margin-top: 5px;
}

.p-filter-panel.compact {
  gap: 5px;
  padding: 8px;
  border-radius: 16px;
}

.filter-line {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 6px;
}

.filter-line label {
  margin: 0;
  color: #748399;
  font-size: 12px;
}

.p-filter-panel.compact .chip-row {
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.p-filter-panel.compact .chip {
  min-height: 27px;
  padding: 0 9px;
  white-space: nowrap;
  font-size: 11px;
}

.p-service-grid,
.p-service-grid.large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p-service {
  min-height: 88px;
  padding: 12px 10px;
  border-radius: 18px;
}

.p-service strong {
  font-size: 14px;
}

.p-service span {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
}

.p-service em {
  margin-top: 7px;
  font-size: 11px;
}

.community-page {
  gap: 13px;
}

.community-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.community-head span {
  display: block;
  color: #5d9cff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.community-head h1 {
  margin-top: 4px;
  color: #14213a;
  font-size: 25px;
}

.community-head p {
  margin-top: 5px;
}

.community-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid #e4edf8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 74, 132, .05);
}

.community-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #748399;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.community-tabs button.active {
  color: #fff;
  background: #14213a;
}

.publish-hint {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid #f2d8df;
  border-radius: 16px;
  background: #fff6f8;
}

.publish-hint.authorized {
  border-color: #cfeee3;
  background: #f1fbf7;
}

.publish-hint strong {
  color: #14213a;
  font-size: 13px;
}

.publish-hint span {
  color: #748399;
  font-size: 12px;
}

.floating-publish {
  position: sticky;
  top: 6px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px 10px 13px;
  border: 1px solid rgba(10, 108, 245, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 32px rgba(25, 74, 132, .14);
  backdrop-filter: blur(16px);
}

.floating-publish strong,
.floating-publish span {
  display: block;
}

.floating-publish strong {
  color: #14213a;
  font-size: 13px;
}

.floating-publish span {
  margin-top: 3px;
  color: #748399;
  font-size: 12px;
}

.floating-publish .primary {
  min-height: 36px;
  padding: 0 15px;
}

.xhs-feed {
  column-count: 2;
  column-gap: 10px;
}

.xhs-post-card {
  width: 100%;
  display: inline-block;
  break-inside: avoid;
  margin: 0 0 10px;
  border: 1px solid #e4edf8;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(25, 74, 132, .07);
}

.xhs-post-card img {
  width: 100%;
  height: auto;
  min-height: 126px;
  max-height: 210px;
  object-fit: cover;
  display: block;
}

.xhs-post-body {
  padding: 10px;
}

.xhs-post-body strong {
  display: block;
  color: #14213a;
  font-size: 13px;
  line-height: 1.38;
}

.xhs-post-body p {
  display: -webkit-box;
  margin-top: 6px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
}

.xhs-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.xhs-author span,
.xhs-author em {
  color: #748399;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.xhs-author em {
  color: #dd1f1f;
}

.p-community-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.p-circle-card {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
}

.p-circle-card img {
  width: 100%;
  height: 112px;
  border-radius: 15px;
}

.p-circle-card h3 {
  font-size: 14px;
}

.p-circle-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
}

.p-circle-card .tag-row {
  display: none;
}

.publish-lock {
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, #14213a, #0a6cf5);
  box-shadow: 0 22px 46px rgba(20, 33, 58, .2);
}

.publish-lock span,
.publish-lock p {
  color: rgba(255, 255, 255, .82);
}

.publish-lock h1 {
  margin-top: 10px;
  color: #fff;
}

.publish-lock p {
  margin-top: 10px;
}

.post-composer {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4edf8;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 74, 132, .08);
}

.dm-panel {
  display: grid;
  gap: 10px;
}

.dm-row,
.dm-note {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(25, 74, 132, .06);
}

.dm-note {
  grid-template-columns: 1fr;
}

.dm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #0a6cf5, #62b7ff);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.dm-row strong,
.dm-row span,
.dm-note strong,
.dm-note span {
  display: block;
}

.dm-row span,
.dm-note span {
  margin-top: 4px;
  color: #748399;
  font-size: 12px;
}

.merchant-console,
.video-feed-page {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.merchant-hero,
.scanner-card {
  padding: 20px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, #0a6cf5, #56b5ff);
  box-shadow: 0 22px 46px rgba(10, 108, 245, .18);
}

.merchant-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.merchant-hero span,
.scanner-card span {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.merchant-hero h1,
.scanner-card h1 {
  margin-top: 7px;
  color: #fff;
}

.merchant-hero p,
.scanner-card p {
  margin-top: 7px;
  color: rgba(255, 255, 255, .86);
}

.merchant-layout,
.finance-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.merchant-panel,
.finance-board,
.platform-card {
  padding: 14px;
  border: 1px solid #e4edf8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 74, 132, .08);
}

.compact-form {
  gap: 9px;
}

.api-box {
  display: grid;
  gap: 7px;
}

.api-box code,
.api-json {
  display: block;
  padding: 10px;
  border-radius: 12px;
  color: #0a6cf5;
  background: #f2f7ff;
  font-size: 12px;
  white-space: pre-wrap;
}

.api-json {
  margin: 10px 0 0;
  color: #536176;
}

.auth-switch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.auth-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e4edf8;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(25, 74, 132, .08);
}

.auth-card span {
  color: #0a6cf5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.auth-card h1,
.auth-card h2 {
  margin: 0;
}

.merchant-panel input[type="file"],
.admin-section input[type="file"],
.auth-card input[type="file"] {
  padding: 10px;
}

.qr-video {
  display: none;
  width: 100%;
  max-height: 220px;
  margin-top: 12px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, .16);
}

.qr-video.show {
  display: block;
}

.scan-frame {
  position: relative;
  height: 190px;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.scan-frame i {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, .9);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.platform-card strong,
.platform-card span,
.platform-card p {
  display: block;
}

.platform-card strong {
  color: #14213a;
}

.platform-card span {
  margin-top: 8px;
  color: #0a6cf5;
  font-size: 18px;
  font-weight: 900;
}

.platform-card p {
  margin-top: 7px;
  color: #748399;
  font-size: 12px;
  line-height: 1.5;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finance-summary div {
  padding: 12px;
  border-radius: 16px;
  background: #f7fbff;
}

.finance-summary strong,
.finance-summary span {
  display: block;
}

.finance-summary strong {
  color: #0a6cf5;
  font-size: 18px;
}

.finance-summary span {
  margin-top: 4px;
  color: #748399;
  font-size: 12px;
}

.community-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.community-tabs button {
  font-size: 11px;
}

.xhs-post-card {
  position: relative;
}

.video-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 33, 58, .72);
  font-size: 11px;
  font-weight: 900;
}

.video-feed {
  display: grid;
  gap: 14px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #14213a;
  box-shadow: 0 20px 48px rgba(20, 33, 58, .2);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 620px;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.video-copy strong,
.video-copy span {
  display: block;
}

.video-copy p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .86);
}

.video-copy span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.video-cover {
  background: #000;
}

.source-note,
.import-draft {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fbff;
  color: #536176;
  font-size: 12px;
}

.import-draft {
  margin-top: 0;
  border: 1px solid #e4edf8;
}

.import-draft strong,
.import-draft span {
  display: block;
}

.import-draft span {
  margin-top: 5px;
}

.import-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.rights-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #536176;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 380px) {
  .p-service-grid,
  .p-service-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .p-community-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merchant-hero,
  .merchant-layout,
  .finance-board,
  .platform-grid,
  .import-row {
    grid-template-columns: 1fr;
  }
}

/* Visual cleanup: black-gold member surfaces and icon-based services */
.qfl-hero,
.p-member-card,
.p-member-card.inactive,
.profile-member-tile,
.p-pass-preview {
  background: #0b0905;
  border-color: rgba(212, 175, 86, .46);
  box-shadow: 0 22px 48px rgba(17, 12, 4, .22);
}

.qfl-hero {
  background:
    linear-gradient(145deg, #070604 0%, #11100c 58%, #2b210f 100%);
}

.qfl-hero::after,
.p-hero-card::after {
  background: rgba(212, 175, 86, .13);
}

.p-pass-preview,
.profile-member-tile {
  border: 1px solid rgba(212, 175, 86, .5);
}

.p-pass-preview {
  background: rgba(10, 8, 5, .72);
  backdrop-filter: blur(16px);
}

.p-pass-preview span,
.p-pass-preview small,
.profile-member-tile span,
.profile-member-tile p,
.p-member-card span,
.p-member-card p {
  color: rgba(247, 228, 180, .82);
}

.p-pass-preview strong,
.profile-member-tile strong,
.p-member-card h2 {
  color: #f8df9d;
}

.p-member-card {
  border: 1px solid rgba(212, 175, 86, .42);
}

.p-member-card .code-box {
  border: 1px solid rgba(212, 175, 86, .32);
  background: #fffaf0;
}

.p-member-card .code-box strong {
  color: #76551c;
}

.profile-member-tile {
  background: #0b0905;
}

.qfl-service,
.qfl-service-photo,
.p-service.white.qfl-service-photo {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 7px;
  min-height: 104px;
  color: #182033;
  background: #fffdfa;
  border: 1px solid rgba(219, 202, 164, .55);
  box-shadow: 0 12px 26px rgba(34, 28, 15, .07);
}

.qfl-service::before,
.qfl-service-photo::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(182, 138, 51, .14), transparent 34%),
    linear-gradient(145deg, #fffdfa 0%, #f9f2e2 100%);
}

.qfl-service-hero::before {
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 175, 86, .16), transparent 34%),
    linear-gradient(145deg, #12100a 0%, #20180a 100%);
}

.service-mini-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: var(--service-accent, #b68a33);
  box-shadow: 0 8px 18px rgba(182, 138, 51, .18);
}

.service-mini-icon img {
  width: 19px;
  height: 19px;
  display: block;
  object-fit: contain;
}

.qfl-service strong,
.qfl-service-photo strong,
.p-service.white.qfl-service-photo strong {
  margin-top: 1px;
  color: #182033;
}

.qfl-service span,
.qfl-service-photo span,
.p-service.white.qfl-service-photo span {
  margin-top: 0;
  color: #667085;
}

.qfl-service em,
.qfl-service-photo em,
.p-service.white.qfl-service-photo em {
  color: #8a651e;
}

.service-blue,
.qfl-service.blue {
  --service-accent: #5b8def;
}

.service-cyan,
.qfl-service.cyan {
  --service-accent: #1aa6b7;
}

.service-rose,
.qfl-service.rose {
  --service-accent: #c95c72;
}

.service-green,
.qfl-service.green {
  --service-accent: #1b9b74;
}

.service-gold {
  --service-accent: #b68a33;
}

/* Service cards v2: centered real icons, calmer cards, unique theme colors */
.qfl-service,
.qfl-service-photo,
.p-service.white.qfl-service-photo {
  --service-accent: #b68a33;
  --service-dark: #77571e;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #f8f3e8;
  --service-border: rgba(183, 151, 90, .26);
  min-height: 124px;
  padding: 13px 12px 12px;
  border-radius: 20px;
  border: 1px solid var(--service-border);
  color: #172033;
  background: linear-gradient(145deg, var(--service-bg-top), var(--service-bg-bottom));
  box-shadow: 0 10px 26px rgba(24, 32, 48, .055);
  text-align: left;
  align-content: start;
  gap: 7px;
}

.qfl-service::before,
.qfl-service-photo::before {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, .8), transparent 30%),
    linear-gradient(145deg, var(--service-bg-top), var(--service-bg-bottom));
}

.service-mini-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 11px;
  background: var(--service-accent);
  box-shadow: 0 8px 18px rgba(24, 32, 48, .08);
  margin: 0 0 2px;
}

.service-mini-icon img {
  width: 18px;
  height: 18px;
}

.qfl-service strong,
.qfl-service-photo strong,
.p-service.white.qfl-service-photo strong {
  margin: 0;
  color: #172033;
  font-size: 15px;
  line-height: 1.22;
  letter-spacing: 0;
}

.qfl-service span,
.qfl-service-photo span,
.p-service.white.qfl-service-photo span {
  margin: 0;
  color: #687486;
  font-size: 11px;
  line-height: 1.42;
  word-break: keep-all;
  overflow-wrap: normal;
}

.qfl-service em,
.qfl-service-photo em,
.p-service.white.qfl-service-photo em {
  margin-top: auto;
  color: var(--service-dark);
  font-size: 11px;
  line-height: 1;
}

.service-rent {
  --service-accent: #4f80e8;
  --service-dark: #315ba7;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eef5ff;
  --service-border: #dbe8ff;
}

.service-wifi {
  --service-accent: #18a6a7;
  --service-dark: #08787c;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eafafa;
  --service-border: #d2efef;
}

.service-moving {
  --service-accent: #c95c72;
  --service-dark: #934153;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f3;
  --service-border: #f2d7de;
}

.service-home {
  --service-accent: #b88a32;
  --service-dark: #7b5a1e;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff6e5;
  --service-border: #eadbb7;
}

.service-repair {
  --service-accent: #188f8b;
  --service-dark: #0b6865;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #edf9f7;
  --service-border: #d1ebe8;
}

.service-school {
  --service-accent: #5e7ce2;
  --service-dark: #4058ac;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #f1f4ff;
  --service-border: #dbe2ff;
}

.service-cram {
  --service-accent: #1f9d66;
  --service-dark: #127048;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eef9f3;
  --service-border: #d4ebdf;
}

.service-dining {
  --service-accent: #bf5678;
  --service-dark: #8d3c57;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f6;
  --service-border: #f0d6e0;
}

.service-translation {
  --service-accent: #169873;
  --service-dark: #0d6f54;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #edf9f4;
  --service-border: #d2ecdf;
}

.service-secondhand {
  --service-accent: #7467df;
  --service-dark: #5147a9;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #f4f2ff;
  --service-border: #dfdcfb;
}

.service-career {
  --service-accent: #d0872f;
  --service-dark: #8f5c1e;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff4e5;
  --service-border: #efd9b9;
}

.service-visa {
  --service-accent: #bd5b8a;
  --service-dark: #883f64;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f7;
  --service-border: #edd4e1;
}

.service-default {
  --service-accent: #a27a2b;
}

.p-service .service-mini-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-service.service-rent {
  --service-accent: #4f80e8;
  --service-dark: #315ba7;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eef5ff;
  --service-border: #dbe8ff;
}

.p-service.service-wifi {
  --service-accent: #18a6a7;
  --service-dark: #08787c;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eafafa;
  --service-border: #d2efef;
}

.p-service.service-moving {
  --service-accent: #c95c72;
  --service-dark: #934153;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f3;
  --service-border: #f2d7de;
}

.p-service.service-home {
  --service-accent: #b88a32;
  --service-dark: #7b5a1e;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff6e5;
  --service-border: #eadbb7;
}

.p-service.service-repair {
  --service-accent: #188f8b;
  --service-dark: #0b6865;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #edf9f7;
  --service-border: #d1ebe8;
}

.p-service.service-school {
  --service-accent: #5e7ce2;
  --service-dark: #4058ac;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #f1f4ff;
  --service-border: #dbe2ff;
}

.p-service.service-cram {
  --service-accent: #1f9d66;
  --service-dark: #127048;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eef9f3;
  --service-border: #d4ebdf;
}

.p-service.service-dining {
  --service-accent: #bf5678;
  --service-dark: #8d3c57;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f6;
  --service-border: #f0d6e0;
}

.p-service.service-translation {
  --service-accent: #169873;
  --service-dark: #0d6f54;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #edf9f4;
  --service-border: #d2ecdf;
}

.p-service.service-secondhand {
  --service-accent: #7467df;
  --service-dark: #5147a9;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #f4f2ff;
  --service-border: #dfdcfb;
}

.p-service.service-career {
  --service-accent: #d0872f;
  --service-dark: #8f5c1e;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff4e5;
  --service-border: #efd9b9;
}

.p-service.service-visa {
  --service-accent: #bd5b8a;
  --service-dark: #883f64;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f7;
  --service-border: #edd4e1;
}

.p-service.white.service-rent,
.p-service.qfl-service.service-rent {
  --service-accent: #4f80e8;
  --service-dark: #315ba7;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eef5ff;
  --service-border: #dbe8ff;
}

.p-service.white.service-wifi,
.p-service.qfl-service.service-wifi {
  --service-accent: #18a6a7;
  --service-dark: #08787c;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eafafa;
  --service-border: #d2efef;
}

.p-service.white.service-moving,
.p-service.qfl-service.service-moving {
  --service-accent: #c95c72;
  --service-dark: #934153;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f3;
  --service-border: #f2d7de;
}

.p-service.white.service-home,
.p-service.qfl-service.service-home {
  --service-accent: #b88a32;
  --service-dark: #7b5a1e;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff6e5;
  --service-border: #eadbb7;
}

.p-service.white.service-repair,
.p-service.qfl-service.service-repair {
  --service-accent: #188f8b;
  --service-dark: #0b6865;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #edf9f7;
  --service-border: #d1ebe8;
}

.p-service.white.service-school,
.p-service.qfl-service.service-school {
  --service-accent: #5e7ce2;
  --service-dark: #4058ac;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #f1f4ff;
  --service-border: #dbe2ff;
}

.p-service.white.service-cram,
.p-service.qfl-service.service-cram {
  --service-accent: #1f9d66;
  --service-dark: #127048;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #eef9f3;
  --service-border: #d4ebdf;
}

.p-service.white.service-dining,
.p-service.qfl-service.service-dining {
  --service-accent: #bf5678;
  --service-dark: #8d3c57;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f6;
  --service-border: #f0d6e0;
}

.p-service.white.service-translation,
.p-service.qfl-service.service-translation {
  --service-accent: #169873;
  --service-dark: #0d6f54;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #edf9f4;
  --service-border: #d2ecdf;
}

.p-service.white.service-secondhand,
.p-service.qfl-service.service-secondhand {
  --service-accent: #7467df;
  --service-dark: #5147a9;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #f4f2ff;
  --service-border: #dfdcfb;
}

.p-service.white.service-career,
.p-service.qfl-service.service-career {
  --service-accent: #d0872f;
  --service-dark: #8f5c1e;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff4e5;
  --service-border: #efd9b9;
}

.p-service.white.service-visa,
.p-service.qfl-service.service-visa {
  --service-accent: #bd5b8a;
  --service-dark: #883f64;
  --service-bg-top: #ffffff;
  --service-bg-bottom: #fff0f7;
  --service-border: #edd4e1;
}

/* Balanced home structure: restaurants become a second-level home entry */
.home-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-priority-card {
  min-height: 94px;
  padding: 12px 10px;
  border: 1px solid rgba(218, 228, 242, .86);
  border-radius: 20px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 26px rgba(25, 74, 132, .055);
}

.home-priority-card span,
.home-priority-card strong,
.home-priority-card em {
  display: block;
}

.home-priority-card span {
  color: var(--home-entry-color, #0a6cf5);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

.home-priority-card strong {
  margin-top: 8px;
  color: #172033;
  font-size: 15px;
  line-height: 1.18;
}

.home-priority-card em {
  margin-top: 7px;
  color: #6d7888;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.home-priority-card.dining {
  --home-entry-color: #bf5678;
  background: linear-gradient(145deg, #fff, #fff3f7);
}

.home-priority-card.service {
  --home-entry-color: #18a6a7;
  background: linear-gradient(145deg, #fff, #eefafa);
}

.home-priority-card.community {
  --home-entry-color: #7467df;
  background: linear-gradient(145deg, #fff, #f4f2ff);
}

.home-priority-card:active {
  transform: scale(.98);
}

/* Member code navigation and profile entry */
.tabs button.member-tab {
  position: relative;
  height: 64px;
  margin-top: -16px;
  color: #f8df9d;
  background: linear-gradient(145deg, #080704 0%, #17130a 58%, #3a2a10 100%);
  border: 1px solid rgba(212, 175, 86, .55);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(17, 12, 4, .24);
}

.tabs button.member-tab.active {
  color: #fff2c8;
  background: linear-gradient(145deg, #050403 0%, #151009 55%, #4a3513 100%);
}

.tabs button.member-tab::before {
  content: "";
  display: block;
  width: 20px;
  height: 4px;
  margin: 0 auto 5px;
  border-radius: 999px;
  background: rgba(248, 223, 157, .9);
}

.member-entry-tile {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  min-height: 132px;
  background:
    radial-gradient(circle at 88% 16%, rgba(248, 223, 157, .16), transparent 28%),
    linear-gradient(145deg, #070604 0%, #11100b 58%, #2b210f 100%);
}

.member-entry-mark {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(248, 223, 157, .5);
  border-radius: 20px;
  background: rgba(248, 223, 157, .1);
}

.member-entry-mark span,
.member-entry-mark strong,
.member-entry-tile em {
  display: block;
}

.member-entry-mark span {
  color: rgba(248, 223, 157, .76);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.member-entry-mark strong {
  margin-top: 4px;
  color: #f8df9d;
  font-size: 22px;
  line-height: 1;
}

.member-entry-tile em {
  align-self: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: #1a1308;
  background: #f8df9d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.profile-member-tile.member-entry-tile img {
  display: none;
}

.member-live-card,
.member-live-card.inactive {
  border-color: rgba(212, 175, 86, .46);
  background:
    radial-gradient(circle at 88% 12%, rgba(248, 223, 157, .16), transparent 30%),
    linear-gradient(145deg, #070604 0%, #11100b 58%, #2b210f 100%);
  box-shadow: 0 22px 48px rgba(17, 12, 4, .24);
}

.member-live-head strong,
.member-code-grid strong {
  color: #f8df9d;
}

.member-barcode {
  border: 1px solid rgba(248, 223, 157, .3);
  background: #fffaf0;
}

.member-barcode i {
  background: #14100a;
}

@media (max-width: 520px) {
  .profile-member-tile.member-entry-tile {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }
}

/* Front-stage navigation and home balance */
.tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 8px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(250, 252, 255, .94);
  border-top: 1px solid rgba(220, 229, 242, .82);
  box-shadow: 0 -18px 44px rgba(32, 56, 92, .10);
  backdrop-filter: blur(18px);
}

.tabs button {
  position: relative;
  display: grid;
  place-items: center;
  height: 50px;
  border-radius: 18px;
  color: #6f7a8d;
  font-size: 12px;
  letter-spacing: .01em;
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tabs button:not(.member-tab)::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.tabs button:not(.member-tab).active {
  color: var(--tab-accent, #0a6cf5);
  background: linear-gradient(180deg, #ffffff 0%, var(--tab-bg, #eef6ff) 100%);
  box-shadow: inset 0 0 0 1px rgba(216, 226, 240, .88), 0 10px 24px rgba(30, 84, 160, .10);
}

.tabs button:not(.member-tab).active::before {
  background: var(--tab-accent, #0a6cf5);
}

.tabs button[data-tab="home"] {
  --tab-accent: #bf5678;
  --tab-bg: #fff3f7;
}

.tabs button[data-tab="help"] {
  --tab-accent: #18a6a7;
  --tab-bg: #eefafa;
}

.tabs button[data-tab="circles"] {
  --tab-accent: #7467df;
  --tab-bg: #f4f2ff;
}

.tabs button[data-tab="profile"] {
  --tab-accent: #7d8798;
  --tab-bg: #f3f6fb;
}

.tabs button.member-tab {
  height: 58px;
  margin-top: -15px;
  border-radius: 20px;
}

.tabs button:active,
.p-hero-actions button:active,
.home-priority-card:active,
.link-btn:active {
  transform: translateY(1px) scale(.985);
}

.qfl-home {
  display: grid;
  gap: 15px;
}

.qfl-home .p-location,
.qfl-home .p-stats,
.qfl-home .p-section-head,
.qfl-home .p-feature-list,
.qfl-home .p-service-grid,
.qfl-home .xhs-feed {
  margin-top: 0;
}

.qfl-home .qfl-hero {
  min-height: 264px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(248, 223, 157, .26), transparent 30%),
    radial-gradient(circle at 22% 88%, rgba(255, 255, 255, .10), transparent 28%),
    linear-gradient(145deg, #050403 0%, #151009 54%, #3b2a10 100%);
  box-shadow: 0 26px 52px rgba(17, 12, 4, .24);
}

.qfl-home .p-hero-content h1 {
  max-width: 310px;
  font-size: 28px;
  letter-spacing: 0;
}

.qfl-home .p-hero-content p {
  max-width: 330px;
  font-size: 13px;
  line-height: 1.65;
}

.qfl-home .p-hero-actions {
  margin-top: 20px;
}

.qfl-home .p-hero-actions button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.qfl-home .p-hero-actions .primary {
  color: #1c1408;
  background: linear-gradient(135deg, #f8df9d, #fff6d8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.qfl-home .p-hero-actions .ghost {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.qfl-home .p-pass-preview {
  max-width: 236px;
  border-color: rgba(248, 223, 157, .38);
  background: rgba(5, 4, 3, .52);
}

.home-priority-grid {
  margin-top: -2px;
}

.home-priority-card {
  position: relative;
  min-height: 100px;
  padding: 13px 11px 12px;
  border-radius: 22px;
  border-color: rgba(220, 229, 242, .86);
  box-shadow: 0 14px 30px rgba(26, 59, 103, .07);
}

.home-priority-card::before {
  content: "";
  display: block;
  width: 24px;
  height: 4px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: var(--home-entry-color, #0a6cf5);
}

.home-priority-card strong {
  margin-top: 0;
  font-size: 15px;
}

.home-priority-card.dining {
  background: linear-gradient(145deg, #ffffff 0%, #fff5f8 100%);
}

.home-priority-card.service {
  background: linear-gradient(145deg, #ffffff 0%, #effafa 100%);
}

.home-priority-card.community {
  background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
}

.compact-head {
  padding-top: 2px;
}

.compact-head h2 {
  font-size: 20px;
}

.home-dining-list .p-restaurant {
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(25, 74, 132, .08);
}

.home-dining-list .p-restaurant.featured .p-restaurant-media {
  min-height: 178px;
}

.home-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-service-grid .p-service {
  min-height: 118px;
  padding: 12px 10px;
  border-radius: 20px;
}

.home-service-grid .p-service .service-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 15px;
}

.home-service-grid .p-service strong {
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.18;
}

.home-service-grid .p-service span {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
}

.compact-feed {
  padding-bottom: 2px;
}

.link-btn {
  padding: 7px 11px;
  border-radius: 999px;
  color: #0a6cf5;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 950;
}

@media (max-width: 430px) {
  .tabs {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .tabs button {
    height: 48px;
    font-size: 11px;
  }

  .tabs button.member-tab {
    height: 56px;
    margin-top: -14px;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.qfl-service-wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.qfl-service-wall .qfl-service-photo {
  min-height: 136px;
  padding: 12px 10px;
  border-radius: 21px;
}

.qfl-service-wall .qfl-service-photo .service-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.qfl-service-wall .qfl-service-photo strong {
  font-size: 15px;
  line-height: 1.2;
}

.qfl-service-wall .qfl-service-photo span,
.qfl-service-wall .qfl-service-photo em {
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 360px) {
  .qfl-service-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Community IA refresh */
.tabs button {
  grid-template-rows: 20px 1fr;
  gap: 3px;
  line-height: 1;
}

.tabs button img {
  width: 19px;
  height: 19px;
  opacity: .58;
  filter: grayscale(1);
}

.tabs button span {
  display: block;
}

.tabs button:not(.member-tab).active img {
  opacity: .95;
  filter: none;
}

.tabs button[data-tab="home"] {
  --tab-accent: #266ef1;
  --tab-bg: #eef5ff;
}

.tabs button[data-tab="restaurants"] {
  --tab-accent: #bf5678;
  --tab-bg: #fff3f7;
}

.tabs button[data-tab="help"] {
  --tab-accent: #18a6a7;
  --tab-bg: #eefafa;
}

.tabs button.member-tab {
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
}

.tabs button.member-tab::before {
  display: none;
}

.tabs button.member-tab em {
  display: block;
  color: #f8df9d;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .16em;
}

.tabs button.member-tab span {
  font-size: 13px;
  font-weight: 950;
}

.home-priority-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-priority-card {
  min-height: 92px;
  padding: 12px 9px;
}

.home-priority-card.home {
  --home-entry-color: #266ef1;
  background: linear-gradient(145deg, #ffffff 0%, #eef5ff 100%);
}

.home-priority-card span {
  font-size: 9px;
}

.home-priority-card strong {
  font-size: 14px;
}

.home-priority-card em {
  font-size: 10px;
}

.home-circle-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-circle-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(224, 231, 242, .92);
  border-radius: 20px;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(25, 74, 132, .065);
}

.home-circle-card img {
  width: 100%;
  height: 104px;
  border-radius: 15px;
  object-fit: cover;
}

.home-circle-card strong,
.home-circle-card span {
  display: block;
}

.home-circle-card strong {
  color: #162033;
  font-size: 14px;
}

.home-circle-card span {
  color: #748399;
  font-size: 11px;
  font-weight: 800;
}

.circle-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.circle-add-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #14213a, #266ef1);
  box-shadow: 0 14px 28px rgba(38, 110, 241, .22);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.circle-promo.slim {
  padding: 9px 12px;
  border-radius: 15px;
  color: #695018;
  background: #fff7df;
}

.circle-grid-v4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.circle-detail-page .detail-cover {
  height: 210px;
  border-radius: 26px;
}

.circle-owner-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #e4edf8;
  border-radius: 18px;
  background: #f8fbff;
}

.circle-owner-card strong,
.circle-owner-card span {
  display: block;
}

.circle-owner-card strong {
  color: #14213a;
  font-size: 14px;
}

.circle-owner-card span {
  margin-top: 4px;
  color: #66758a;
  font-size: 12px;
  line-height: 1.45;
}

.compact-create {
  gap: 12px;
}

.dm-page .community-tabs {
  margin-bottom: 4px;
}

.dm-search {
  height: 40px;
  display: grid;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #9aa4b5;
  background: #f3f6fb;
  font-size: 13px;
}

.xhs-dm-panel .dm-row {
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(25, 74, 132, .055);
}

.xhs-dm-panel .dm-row.priority {
  border-color: #f2d8df;
  background: #fff7f9;
}

.xhs-dm-panel .dm-row.soft {
  background: #fbfdff;
}

.xhs-dm-panel .dm-row em {
  color: #97a3b5;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.service-choice-grid,
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-detail-hero p {
  color: rgba(255, 255, 255, .88);
}

.service-choice-card,
.carrier-card,
.service-post-panel,
.service-consult-panel {
  border: 1px solid #e4edf8;
  border-radius: 20px;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(25, 74, 132, .065);
}

.service-choice-card,
.carrier-card {
  min-height: 104px;
  padding: 14px;
}

.service-choice-card strong,
.service-choice-card span,
.service-choice-card em,
.carrier-card strong,
.carrier-card span,
.service-post-panel strong,
.service-post-panel span,
.service-consult-panel strong,
.service-consult-panel span {
  display: block;
}

.service-choice-card strong,
.carrier-card strong,
.service-post-panel strong,
.service-consult-panel strong {
  color: #14213a;
  font-size: 15px;
}

.service-choice-card span,
.carrier-card span,
.service-post-panel span,
.service-consult-panel span {
  margin-top: 7px;
  color: #66758a;
  font-size: 12px;
  line-height: 1.45;
}

.service-choice-card em {
  margin-top: 10px;
  color: #0a6cf5;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.service-post-panel,
.service-consult-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.restaurant-detail-polished .p-detail-hero {
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(15, 38, 75, .2);
}

.restaurant-detail-polished .p-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, .68) 100%);
  pointer-events: none;
}

.restaurant-detail-polished .p-detail-hero > div {
  z-index: 1;
}

.restaurant-detail-kicker {
  display: grid;
  gap: 6px;
  padding: 13px;
  border-radius: 18px;
  color: #241806;
  background: linear-gradient(145deg, #fff6d8, #f8df9d);
}

.restaurant-detail-kicker span,
.restaurant-detail-kicker strong {
  display: block;
}

.restaurant-detail-kicker span {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
}

.restaurant-detail-kicker strong {
  font-size: 15px;
  line-height: 1.35;
}

/* Dianping-style home and dining refresh */
.qfl-dp-home,
.dianping-page {
  margin: 0 -16px;
  padding: 0 14px 96px;
  color: #172033;
  background: #fff;
}

.home-city-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 10px;
  scrollbar-width: none;
}

.home-city-tabs::-webkit-scrollbar,
.dp-chip-scroll::-webkit-scrollbar,
.dp-channel-tabs::-webkit-scrollbar {
  display: none;
}

.home-city-tabs button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #566175;
  font-size: 16px;
  font-weight: 850;
}

.home-city-tabs button.active {
  position: relative;
  color: #162033;
  font-size: 18px;
  font-weight: 950;
}

.home-city-tabs button.active::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff5a3d;
}

.home-dp-search,
.dp-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1.5px solid #ff7148;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(255, 102, 61, .09);
}

.home-dp-search input,
.dp-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #172033;
  font-size: 14px;
  font-weight: 750;
  outline: 0;
}

.home-dp-search button[type="submit"],
.dp-search button {
  height: 36px;
  min-width: 66px;
  margin-right: 2px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8b3d, #ff533d);
  font-size: 14px;
  font-weight: 950;
}

.coin-btn {
  height: 34px;
  margin-left: 4px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: #c96b03;
  background: #fff4cf;
  font-size: 12px;
  font-weight: 950;
}

.home-entry-grid,
.dp-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  row-gap: 17px;
  column-gap: 6px;
  padding: 18px 0 14px;
}

.dp-entry {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #293349;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.dp-entry span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff3df, #ffe0bb);
  box-shadow: 0 8px 18px rgba(255, 126, 50, .13);
}

.dp-entry span img {
  width: 24px;
  height: 24px;
}

.dp-entry.green span { background: linear-gradient(145deg, #e8fff4, #c8f0db); }
.dp-entry.blue span,
.dp-entry.sky span { background: linear-gradient(145deg, #eef6ff, #cfe6ff); }
.dp-entry.cyan span { background: linear-gradient(145deg, #e9fbff, #c9f2f4); }
.dp-entry.rose span,
.dp-entry.red span { background: linear-gradient(145deg, #fff0f4, #ffd5df); }
.dp-entry.gold span { background: linear-gradient(145deg, #fff6d5, #ffe4a8); }
.dp-entry.purple span { background: linear-gradient(145deg, #f4f1ff, #ded8ff); }
.dp-entry.slate span { background: linear-gradient(145deg, #f3f6fb, #dbe3ef); }

.home-rank-grid,
.dp-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 12px;
}

.home-rank-card,
.dp-promo {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #f0e7df;
  border-radius: 13px;
  background: linear-gradient(145deg, #fffdfa, #fff7f0);
  text-align: left;
}

.home-rank-card.warm,
.dp-promo.warm {
  background: linear-gradient(145deg, #fff8f9, #fff1eb);
}

.home-rank-card span,
.dp-promo span {
  color: #141b2c;
  font-size: 15px;
  font-weight: 950;
}

.home-rank-card strong,
.home-rank-card em,
.dp-promo strong,
.dp-promo em {
  display: block;
  margin-top: 5px;
}

.home-rank-card strong,
.dp-promo strong {
  color: #172033;
  font-size: 14px;
  line-height: 1.25;
}

.home-rank-card em,
.dp-promo em {
  color: #f16a3f;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.home-rank-card img,
.dp-promo img {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
}

.home-feature-strip {
  display: grid;
  gap: 8px;
  margin: 5px 0 14px;
}

.home-feature-strip button {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 15px;
  background: #fbfcff;
  text-align: left;
}

.home-feature-strip strong {
  color: #172033;
  font-size: 15px;
}

.home-feature-strip span {
  color: #6d7788;
  font-size: 12px;
}

.home-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 10px;
}

.home-feed-head strong,
.home-feed-head span {
  display: block;
}

.home-feed-head strong {
  color: #172033;
  font-size: 18px;
  font-weight: 950;
}

.home-feed-head span {
  margin-top: 3px;
  color: #778194;
  font-size: 12px;
}

.home-feed-head button {
  min-width: 58px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8b3d, #ff533d);
  font-size: 13px;
  font-weight: 950;
}

.home-waterfall {
  column-count: 2;
  column-gap: 8px;
}

.qfl-water-card {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  margin: 0 0 8px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  break-inside: avoid;
}

.qfl-water-card img {
  width: 100%;
  height: 214px;
  display: block;
  object-fit: cover;
}

.qfl-water-card.short img {
  height: 154px;
}

.qfl-water-body {
  padding: 9px 10px 10px;
}

.qfl-water-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #172033;
  font-size: 14px;
  line-height: 1.38;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.qfl-water-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: #758196;
  font-size: 12px;
}

.qfl-water-meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.qfl-water-meta em {
  flex: 0 0 auto;
  color: #7f8797;
  font-style: normal;
}

.dp-head {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 6px 0 10px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.dp-title-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.dp-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.dp-title-row span {
  display: block;
  margin-top: 5px;
  color: #5f6a7b;
  font-size: 12px;
  font-weight: 800;
}

.dp-back {
  width: 30px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.dp-map {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #273246;
  font-size: 11px;
  font-weight: 850;
}

.dp-map img {
  width: 18px;
  height: 18px;
}

.dp-search {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 15px;
}

.dp-channel-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  margin-top: 6px;
  padding: 4px 0 9px;
}

.dp-channel-tabs button {
  flex: 0 0 auto;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 15px;
  font-weight: 900;
}

.dp-channel-tabs button.active {
  color: #111827;
  font-size: 18px;
}

.dp-channel-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #ff6a3d;
  transform: translateX(-50%);
}

.dp-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 0 8px;
  border-top: 1px solid #f1f3f6;
}

.dp-filter-row button {
  height: 30px;
  border: 0;
  background: transparent;
  color: #3f495c;
  font-size: 13px;
  font-weight: 850;
}

.dp-chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
}

.dp-chip-scroll button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #3f495c;
  background: #f5f6f8;
  font-size: 12px;
  font-weight: 850;
}

.dp-chip-scroll button.active {
  color: #ff603d;
  background: #fff0e9;
}

.dp-shop-list {
  display: grid;
  gap: 0;
  background: #fff;
}

.dp-shop-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0f2f5;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: #fff;
  text-align: left;
}

.dianping-page .dp-entry-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 4px;
  row-gap: 10px;
}

.dianping-page .dp-entry {
  gap: 6px;
  font-size: 11px;
}

.dianping-page .dp-entry span {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.dianping-page .dp-entry span img {
  width: 21px;
  height: 21px;
}

.dp-shop-cover img {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  object-fit: cover;
}

.dp-shop-body {
  min-width: 0;
}

.dp-shop-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.dp-shop-title h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.25;
}

.dp-shop-title span {
  flex: 0 0 auto;
  color: #bc8a2c;
  font-size: 12px;
  font-weight: 850;
}

.dp-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: #4b5563;
  font-size: 12px;
}

.dp-rating b {
  color: #ff6a3d;
  font-size: 11px;
  letter-spacing: -1px;
}

.dp-rating strong {
  color: #ff6a3d;
  font-size: 13px;
}

.dp-rating em {
  color: #111827;
  font-style: normal;
}

.dp-shop-body p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
}

.dp-shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.dp-shop-tags span {
  padding: 3px 6px;
  border-radius: 4px;
  color: #bc5b32;
  background: #fff3ed;
  font-size: 11px;
  font-weight: 850;
}

.dp-shop-quote {
  overflow: hidden;
  margin-top: 8px;
  color: #2f3747;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dp-coupon {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #e95b35;
  font-size: 12px;
}

.dp-coupon span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #ff6a3d;
  font-size: 11px;
  font-weight: 950;
}

.dp-coupon strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 370px) {
  .home-entry-grid,
  .dp-entry-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 2px;
  }

  .dp-entry span {
    width: 41px;
    height: 41px;
  }

  .dp-shop-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .dp-shop-cover img {
    width: 96px;
    height: 96px;
  }
}

/* Blue product direction and Dianping detail refresh */
.mine-entry {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: #0b63e5;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 950;
}

.topbar {
  gap: 8px;
}

.logo {
  width: 96px;
}

.qfl-dp-home,
.dianping-page {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 22%);
}

.home-city-tabs {
  gap: 10px;
  justify-content: space-between;
  padding-top: 10px;
}

.home-city-tabs button {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #506078;
  background: #eef5ff;
  font-size: 14px;
}

.home-city-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #1b75ff, #0b55d9);
  font-size: 15px;
}

.home-city-tabs button.active::after {
  display: none;
}

.home-dp-search,
.dp-search {
  border-color: #2f7fff;
  box-shadow: 0 10px 24px rgba(47, 127, 255, .12);
}

.home-dp-search button[type="submit"],
.dp-search button,
.home-feed-head button {
  background: linear-gradient(135deg, #2f8cff, #0a5de8);
}

.coin-btn {
  color: #0b63e5;
  background: #e8f2ff;
}

.home-benefit-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 12px -14px 2px;
  padding: 0 14px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-benefit-carousel::-webkit-scrollbar {
  display: none;
}

.home-benefit-slide {
  flex: 0 0 82%;
  min-height: 122px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #176ff2, #073fba);
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 16px 34px rgba(18, 91, 220, .18);
}

.home-benefit-slide.indigo {
  background: linear-gradient(135deg, #3456f3, #1a2e96);
}

.home-benefit-slide.cyan {
  background: linear-gradient(135deg, #0b9bdc, #075aab);
}

.home-benefit-slide.navy {
  background: linear-gradient(135deg, #173b77, #071b44);
}

.home-benefit-slide span,
.home-benefit-slide strong,
.home-benefit-slide em {
  display: block;
}

.home-benefit-slide span {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.home-benefit-slide strong {
  margin-top: 7px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.home-benefit-slide em {
  margin-top: 7px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.home-benefit-slide img {
  width: 96px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
}

.dp-entry span {
  background: linear-gradient(145deg, #eaf4ff, #cfe5ff);
  box-shadow: 0 8px 18px rgba(47, 127, 255, .12);
}

.dp-entry.indigo span,
.dp-entry.purple span,
.dp-entry.violet span {
  background: linear-gradient(145deg, #eff2ff, #d8ddff);
}

.dp-entry.cyan span,
.dp-entry.teal span,
.dp-entry.sky span {
  background: linear-gradient(145deg, #e8fbff, #cdefff);
}

.dp-entry.navy span,
.dp-entry.slate span {
  background: linear-gradient(145deg, #eef4fb, #d9e5f2);
}

.home-rank-card,
.dp-promo {
  border-color: #dbeaff;
  background: linear-gradient(145deg, #ffffff, #f3f8ff);
}

.home-rank-card.warm,
.dp-promo.warm {
  background: linear-gradient(145deg, #ffffff, #eef6ff);
}

.home-rank-card em,
.dp-promo em {
  color: #0b63e5;
}

.dp-channel-tabs button.active::after {
  background: #1d74ff;
}

.dp-chip-scroll button.active {
  color: #0b63e5;
  background: #e9f3ff;
}

.dp-coupon,
.dp-rating strong {
  color: #0b63e5;
}

.dp-coupon span {
  background: #1d74ff;
}

.tabs button img {
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) invert(40%) sepia(11%) saturate(828%) hue-rotate(178deg) brightness(89%) contrast(86%) !important;
}

.tabs button:not(.member-tab).active img {
  filter: brightness(0) saturate(100%) invert(35%) sepia(95%) saturate(2514%) hue-rotate(207deg) brightness(101%) contrast(97%) !important;
}

.tabs button[data-tab="restaurants"] {
  --tab-accent: #0b63e5;
  --tab-bg: #eef6ff;
}

.post-circle-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #0b63e5;
  background: #eaf3ff;
  font-size: 10px;
  font-weight: 950;
}

.qfl-water-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: #607089;
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.profile-drawer.open {
  pointer-events: auto;
}

.profile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 48, .28);
  opacity: 0;
  transition: opacity .2s ease;
}

.profile-drawer.open .profile-drawer-backdrop {
  opacity: 1;
}

.profile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(346px, 88vw);
  height: 100%;
  overflow: auto;
  padding: 18px;
  background: #fff;
  box-shadow: -22px 0 50px rgba(14, 42, 88, .22);
  transform: translateX(104%);
  transition: transform .24s ease;
}

.profile-drawer.open .profile-drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head button {
  border: 0;
  color: #5b6b82;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.drawer-head span {
  color: #12213a;
  font-size: 18px;
  font-weight: 950;
}

.drawer-user-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(145deg, #eef6ff, #ffffff);
}

.drawer-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2f8cff, #0a5de8);
  font-size: 24px;
  font-weight: 950;
}

.drawer-user-card strong,
.drawer-user-card span {
  display: block;
}

.drawer-user-card strong {
  color: #12213a;
  font-size: 18px;
}

.drawer-user-card span {
  margin-top: 5px;
  color: #66758a;
  font-size: 12px;
}

.drawer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.drawer-stats div {
  padding: 11px 8px;
  border-radius: 16px;
  background: #f5f9ff;
  text-align: center;
}

.drawer-stats strong,
.drawer-stats span {
  display: block;
}

.drawer-stats strong {
  color: #0b63e5;
  font-size: 15px;
}

.drawer-stats span {
  margin-top: 4px;
  color: #6c7890;
  font-size: 11px;
}

.drawer-menu {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.drawer-menu button {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e2ecfa;
  border-radius: 15px;
  color: #13223a;
  background: #fff;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
}

.dp-detail-page {
  margin: 0 -16px;
  padding: 0 0 88px;
  background: #f5f6f8;
  color: #111827;
}

.dp-detail-hero {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  color: #fff;
  background: #12325f;
}

.dp-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 23, 48, .25), rgba(7, 24, 52, .72));
}

.dp-detail-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.dp-detail-actions div {
  display: flex;
  gap: 8px;
}

.dp-detail-actions button {
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .28);
  font-size: 17px;
  font-weight: 950;
}

.dp-warm-tip {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 26px;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  background: rgba(4, 20, 45, .45);
  backdrop-filter: blur(10px);
}

.dp-warm-tip strong {
  color: #dcecff;
  font-size: 18px;
}

.dp-warm-tip span {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  line-height: 1.45;
}

.dp-business-card {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding: 17px 16px 14px;
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.dp-business-card h1 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.dp-business-rating,
.dp-subscore,
.dp-hours-row,
.dp-address-row,
.dp-detail-tabs,
.dp-section-title {
  display: flex;
  align-items: center;
}

.dp-business-rating {
  gap: 6px;
  margin-top: 9px;
  font-size: 13px;
}

.dp-business-rating b {
  color: #ff7a45;
  letter-spacing: -1px;
}

.dp-business-rating strong {
  color: #0b63e5;
}

.dp-business-rating em {
  color: #111827;
  font-style: normal;
}

.dp-subscore {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 9px;
  color: #323b4d;
  font-size: 13px;
}

.dp-subscore em {
  margin-left: auto;
  color: #667085;
  font-style: normal;
}

.dp-business-tags,
.dp-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.dp-business-tags span,
.dp-service-tags span {
  padding: 4px 7px;
  border-radius: 5px;
  color: #0b63e5;
  background: #edf5ff;
  font-size: 11px;
  font-weight: 850;
}

.dp-service-tags span {
  color: #68758a;
  background: #f4f6f9;
}

.dp-hours-row {
  gap: 8px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #eef1f5;
  font-size: 13px;
}

.dp-hours-row strong {
  color: #0b63e5;
}

.dp-hours-row button {
  margin-left: auto;
  border: 0;
  color: #778293;
  background: transparent;
}

.dp-address-row {
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #eef1f5;
}

.dp-address-row div {
  flex: 1;
  min-width: 0;
}

.dp-address-row strong,
.dp-address-row span {
  display: block;
}

.dp-address-row strong {
  color: #1f2937;
  font-size: 14px;
}

.dp-address-row span {
  margin-top: 4px;
  color: #778293;
  font-size: 12px;
}

.dp-address-row button {
  width: 44px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: #0b63e5;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 900;
}

.dp-detail-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  justify-content: space-around;
  height: 54px;
  background: #fff;
  border-top: 1px solid #f0f2f6;
  border-bottom: 1px solid #eef1f5;
}

.dp-detail-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.dp-detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: #0b63e5;
  transform: translateX(-50%);
}

.dp-deal-section,
.dp-dish-section,
.dp-review-section {
  margin-top: 10px;
  padding: 15px 14px;
  background: #fff;
}

.dp-section-title {
  justify-content: space-between;
  margin-bottom: 12px;
}

.dp-section-title strong {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.dp-section-title span {
  color: #8a95a6;
  font-size: 12px;
}

.dp-deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dp-deal-card {
  overflow: hidden;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fff;
}

.dp-deal-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.dp-deal-card strong {
  display: block;
  min-height: 44px;
  padding: 9px 9px 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.dp-deal-card div {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px 0;
}

.dp-deal-card b,
.dp-deal-row b {
  color: #0b63e5;
  font-size: 16px;
}

.dp-deal-card span,
.dp-deal-row del {
  color: #9aa3b2;
  font-size: 12px;
}

.dp-deal-card button,
.dp-deal-row button {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #0b63e5;
  font-size: 12px;
  font-weight: 950;
}

.dp-deal-card button {
  height: 28px;
  padding: 0 10px;
}

.dp-deal-card em {
  display: block;
  padding: 5px 9px 10px;
  color: #768296;
  font-size: 12px;
  font-style: normal;
}

.dp-deal-list {
  margin-top: 10px;
}

.dp-deal-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f2f5;
}

.dp-deal-row img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.dp-deal-row strong,
.dp-deal-row span,
.dp-deal-row b {
  display: block;
}

.dp-deal-row strong {
  color: #111827;
  font-size: 14px;
}

.dp-deal-row span {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
}

.dp-deal-row b {
  margin-top: 5px;
}

.dp-deal-row em {
  color: #0b63e5;
  font-size: 12px;
  font-style: normal;
}

.dp-deal-row button {
  height: 30px;
}

.dp-dish-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dp-dish-scroll div {
  flex: 0 0 112px;
}

.dp-dish-scroll img {
  width: 112px;
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
}

.dp-dish-scroll strong,
.dp-dish-scroll span {
  display: block;
}

.dp-dish-scroll strong {
  margin-top: 7px;
  color: #111827;
  font-size: 13px;
}

.dp-dish-scroll span {
  margin-top: 3px;
  color: #0b63e5;
  font-size: 12px;
  font-weight: 900;
}

.dp-review-card {
  padding: 12px 0;
  border-top: 1px solid #f0f2f5;
}

.dp-review-card strong {
  color: #111827;
  font-size: 14px;
}

.dp-review-card p {
  margin: 8px 0 0;
  color: #4c596e;
  font-size: 13px;
  line-height: 1.5;
}

.dp-review-card span {
  display: block;
  margin-top: 6px;
  color: #8a95a6;
  font-size: 12px;
}

.dp-detail-bottom {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(430px, 100vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #edf1f6;
  transform: translateX(-50%);
}

.dp-detail-bottom button {
  height: 40px;
  border: 0;
  border-radius: 14px;
  color: #15233b;
  background: #f4f8ff;
  font-size: 13px;
  font-weight: 950;
}

/* Softer blue palette and expanded community states */
.home-city-tabs button.active,
.home-dp-search button[type="submit"],
.dp-search button,
.home-feed-head button,
.drawer-avatar,
.dp-deal-card button,
.dp-deal-row button {
  background: linear-gradient(135deg, #75b7ff, #4b92f4);
}

.home-benefit-slide {
  background: linear-gradient(135deg, #7fc0ff, #4c91ee);
  box-shadow: 0 16px 34px rgba(94, 158, 238, .18);
}

.home-benefit-slide.indigo {
  background: linear-gradient(135deg, #93a8ff, #6f8af4);
}

.home-benefit-slide.cyan {
  background: linear-gradient(135deg, #8bdfff, #58aceb);
}

.home-benefit-slide.navy {
  background: linear-gradient(135deg, #72aaf4, #3f70c8);
}

.home-dp-search,
.dp-search {
  border-color: #72b4ff;
  box-shadow: 0 10px 24px rgba(98, 168, 245, .12);
}

.coin-btn,
.mine-entry,
.top-action,
.post-circle-pill,
.dp-business-tags span,
.dp-address-row button {
  color: #3f82df;
  background: #eef7ff;
}

.dp-chip-scroll button.active,
.dp-coupon span,
.dp-detail-tabs button.active::after {
  background: #68aef9;
}

.dp-coupon,
.dp-business-rating strong,
.dp-hours-row strong,
.dp-deal-card b,
.dp-deal-row b,
.dp-deal-row em,
.dp-dish-scroll span,
.drawer-stats strong,
.home-rank-card em,
.dp-promo em {
  color: #3f82df;
}

.profile-drawer-panel {
  left: 0;
  right: auto;
  width: min(260px, 58vw);
  box-shadow: 22px 0 50px rgba(14, 42, 88, .18);
  transform: translateX(-104%);
}

.profile-drawer.open .profile-drawer-panel {
  transform: translateX(0);
}

.drawer-user-card {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 12px;
}

.drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 21px;
}

.drawer-user-card strong {
  font-size: 15px;
}

.drawer-menu button {
  height: 42px;
  font-size: 13px;
}

.author-list {
  display: grid;
  gap: 10px;
}

.author-row,
.author-mini {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2edf8;
  border-radius: 18px;
  background: #fff;
  text-align: left;
}

.author-row strong,
.author-row span,
.author-mini strong,
.author-mini em {
  display: block;
}

.author-row strong,
.author-mini strong {
  color: #14213a;
  font-size: 14px;
}

.author-row span,
.author-mini em {
  margin-top: 4px;
  color: #6a778d;
  font-size: 12px;
  font-style: normal;
}

.author-row em {
  color: #4b92f4;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.xhs-author-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px -4px 10px;
  padding: 8px 4px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.author-mini {
  flex: 1;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 6px;
  border: 0;
}

.author-mini span,
.author-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #85c2ff, #4b92f4);
  font-weight: 950;
}

.author-mini span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.primary.compact {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}

.author-hero {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dcecff;
  border-radius: 22px;
  background: linear-gradient(145deg, #f7fbff, #ffffff);
}

.author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  font-size: 28px;
}

.author-hero h1 {
  margin: 0;
  color: #14213a;
  font-size: 22px;
}

.author-hero p {
  margin: 7px 0 0;
  color: #617087;
  font-size: 12px;
  line-height: 1.45;
}

.author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.author-stats span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #3f82df;
  background: #edf7ff;
  font-size: 11px;
  font-weight: 900;
}

.profile-open-note,
.circle-apply-form,
.member-use-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dcecff;
  border-radius: 20px;
  background: #fff;
}

.profile-open-note strong,
.profile-open-note span {
  display: block;
}

.profile-open-note strong {
  color: #14213a;
  font-size: 15px;
}

.profile-open-note span {
  margin-top: 6px;
  color: #65758c;
  font-size: 12px;
  line-height: 1.45;
}

.member-use-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.member-use-stats div {
  padding: 12px 8px;
  border-radius: 16px;
  background: #f2f8ff;
  text-align: center;
}

.member-use-stats strong,
.member-use-stats span {
  display: block;
}

.member-use-stats strong {
  color: #3f82df;
  font-size: 18px;
}

.member-use-stats span {
  margin-top: 4px;
  color: #65758c;
  font-size: 11px;
}

.member-restaurant-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 12px -14px -2px;
  padding: 0 14px 2px;
}

.member-restaurant-strip button {
  flex: 0 0 138px;
  border: 1px solid #e2edf8;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  text-align: left;
}

.member-restaurant-strip img {
  width: 100%;
  height: 82px;
  object-fit: cover;
}

.member-restaurant-strip strong,
.member-restaurant-strip span {
  display: block;
  padding: 0 9px;
}

.member-restaurant-strip strong {
  margin-top: 8px;
  color: #14213a;
  font-size: 13px;
}

.member-restaurant-strip span {
  margin: 5px 0 10px;
  color: #3f82df;
  font-size: 11px;
  line-height: 1.35;
}

.member-live-card {
  transform: scale(1.03);
  transform-origin: top center;
}

.member-barcode {
  min-height: 96px;
}

@media (max-width: 430px) {
  .home-priority-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-priority-card {
    border-radius: 18px;
  }

  .home-priority-card::before {
    width: 18px;
  }
}

.dp-filter-panel {
  display: grid;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid #e6edf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 91, 148, .05);
}

.dp-filter-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.dp-filter-head strong {
  color: #13223a;
  font-size: 15px;
}

.dp-filter-head span {
  overflow: hidden;
  color: #718097;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-filter-head button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #4e8ee8;
  background: #edf6ff;
  font-size: 12px;
  font-weight: 900;
}

.dp-filter-group {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.dp-filter-label {
  padding-top: 6px;
  color: #8a96a8;
  font-size: 12px;
  font-weight: 900;
}

.dp-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 104px;
  overflow-y: auto;
  padding-right: 2px;
}

.dp-filter-chips.compact {
  max-height: 72px;
}

.dp-filter-chips.sort {
  max-height: none;
}

.dp-filter-chips button {
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #3f495c;
  background: #f4f7fb;
  font-size: 12px;
  font-weight: 850;
}

.dp-filter-chips button.active {
  color: #fff;
  background: linear-gradient(135deg, #7dbdff, #4d91eb);
  box-shadow: 0 8px 16px rgba(77, 145, 235, .2);
}

.post-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: #fff;
}

.post-search-card input {
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f4f7fb;
  padding: 0 14px;
  color: #17243a;
  font-size: 13px;
  outline: none;
}

.post-search-card button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.post-search-card button[type="submit"] {
  color: #fff;
  background: #4d91eb;
}

.post-search-card .ghost {
  color: #60728a;
  background: #edf3fb;
}

.xhs-author-list {
  gap: 12px;
}

.xhs-follow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.author-profile-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.author-profile-link p {
  margin: 5px 0 0;
  color: #7a879a;
  font-size: 12px;
  line-height: 1.35;
}

.mini-follow {
  align-self: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}

.xhs-media-frame {
  position: relative;
  margin: 0 -16px;
  background: #0f1726;
}

.xhs-media-frame .detail-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0;
}

.xhs-media-frame span {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 38, .56);
  font-size: 12px;
  font-weight: 900;
}

.xhs-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.xhs-topic-row button {
  border: 0;
  padding: 0;
  color: #2b5f9f;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.xhs-post-date {
  margin-top: 12px;
  color: #8a96a8;
  font-size: 12px;
}

.xhs-comments {
  margin: 12px -16px 70px;
  padding: 16px;
  border-top: 8px solid #f5f7fb;
  background: #fff;
}

.xhs-comment-title {
  color: #17243a;
  font-size: 15px;
  font-weight: 950;
}

.xhs-comment-input,
.xhs-bottom-comment {
  display: grid;
  align-items: center;
  gap: 8px;
}

.xhs-comment-input {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  margin-top: 12px;
}

.xhs-comment-input span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: #cfdced;
  font-weight: 950;
}

.xhs-comment-input input,
.xhs-bottom-comment input {
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f4f6f9;
  padding: 0 14px;
  color: #1a2638;
  outline: none;
}

.xhs-comment-input button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: #4d91eb;
  font-weight: 900;
}

.xhs-comment-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.xhs-comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.xhs-comment strong {
  display: block;
  color: #7a879a;
  font-size: 13px;
  font-weight: 850;
}

.xhs-comment strong em {
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: #ff6f91;
  font-size: 10px;
  font-style: normal;
}

.xhs-comment p {
  margin: 5px 0 0;
  color: #1d293d;
  font-size: 14px;
  line-height: 1.45;
}

.xhs-comment span {
  display: block;
  margin-top: 6px;
  color: #8a96a8;
  font-size: 12px;
}

.xhs-comment > button {
  border: 0;
  color: #8a96a8;
  background: transparent;
  font-size: 12px;
}

.xhs-bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 9px;
  align-items: center;
  margin: 0 -16px -18px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #edf1f7;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px);
}

.xhs-bottom-comment {
  grid-template-columns: minmax(0, 1fr) auto;
}

.xhs-bottom-comment button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: #4d91eb;
  font-size: 12px;
  font-weight: 900;
}

.xhs-bottom-bar > button {
  min-width: 44px;
  border: 0;
  color: #17243a;
  background: transparent;
  font-size: 18px;
  font-weight: 900;
}

.xhs-bottom-bar > button span {
  margin-left: 2px;
  font-size: 12px;
}

.xhs-bottom-bar > button img {
  width: 21px;
  height: 21px;
  vertical-align: -5px;
}

.xhs-bottom-bar > button.active {
  color: #ff5d7d;
}

@media (max-width: 390px) {
  .dp-filter-group {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .post-search-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .post-search-card .ghost {
    grid-column: 1 / -1;
  }
}

/* v8 reference-style polish: lighter, clearer, more universal */
:root {
  --qfl-blue: #347ee8;
  --qfl-blue-soft: #eaf4ff;
  --qfl-ink: #17243a;
  --qfl-muted: #718096;
  --qfl-line: #e4edf7;
  --qfl-bg: #f3f8ff;
  --qfl-card: #ffffff;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(88, 157, 245, .16), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--qfl-bg) 100%);
  color: var(--qfl-ink);
}

.phone {
  background: rgba(248, 251, 255, .96);
}

.topbar {
  border-bottom: 0;
  background: rgba(248, 251, 255, .92);
  backdrop-filter: blur(18px);
}

.topbar .search,
.home-dp-search input,
.dp-search input,
.post-search-card input {
  background: #f1f6fd;
  box-shadow: inset 0 0 0 1px rgba(210, 224, 242, .7);
}

.home-city-tabs {
  gap: 4px;
  margin: 2px -2px 10px;
  padding: 0 2px 2px;
}

.home-city-tabs button {
  min-width: auto;
  height: 34px;
  padding: 0 12px;
  color: #68788d;
  font-size: 14px;
}

.home-city-tabs button.active {
  color: var(--qfl-blue);
}

.home-city-tabs button.active::after {
  width: 16px;
  height: 3px;
  background: var(--qfl-blue);
}

.home-dp-search {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-dp-search .coin-btn {
  display: none;
}

.home-dp-search input {
  height: 40px;
  border-radius: 999px;
  font-size: 13px;
}

.home-dp-search button[type="submit"],
.dp-search button,
.post-search-card button[type="submit"] {
  height: 40px;
  min-width: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5aa6ff, #347ee8);
}

.home-benefit-carousel {
  margin-top: 12px;
  padding-bottom: 2px;
}

.home-benefit-slide {
  flex-basis: 88%;
  min-height: 118px;
  border: 1px solid rgba(216, 229, 246, .9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(40, 91, 148, .08);
}

.home-benefit-slide img {
  width: 112px;
  border-radius: 18px;
}

.home-entry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 8px;
  margin-top: 14px;
}

.home-entry-grid .qfl-entry {
  min-height: 72px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-entry-grid .qfl-entry span {
  width: 42px;
  height: 42px;
  margin: 0 auto 6px;
  border-radius: 16px;
  background: #eef6ff;
}

.home-entry-grid .qfl-entry strong {
  color: #26354d;
  font-size: 12px;
  line-height: 1.2;
}

.home-rank-grid {
  gap: 10px;
}

.home-rank-card {
  min-height: 92px;
  border: 1px solid var(--qfl-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 91, 148, .06);
}

.home-feed-head {
  margin-top: 16px;
  padding: 0 2px;
}

.home-feed-head strong {
  font-size: 18px;
}

.home-waterfall,
.xhs-feed {
  column-gap: 10px;
}

.qfl-water-card,
.xhs-post-card {
  overflow: hidden;
  border: 1px solid #e6edf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 91, 148, .05);
}

.qfl-water-card img,
.xhs-post-card > img {
  border-radius: 0;
}

.qfl-water-body,
.xhs-post-body {
  padding: 10px;
}

.qfl-water-body strong,
.xhs-post-body strong {
  color: var(--qfl-ink);
  font-size: 14px;
  line-height: 1.35;
}

.qfl-water-body p,
.xhs-post-body p {
  color: #5f6f83;
  font-size: 12px;
  line-height: 1.45;
}

.dianping-page {
  padding-top: 0;
}

.dp-head {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 -16px 10px;
  padding: 8px 16px 10px;
  background: rgba(248, 251, 255, .94);
  backdrop-filter: blur(18px);
}

.dp-title-row h1 {
  color: var(--qfl-ink);
  font-size: 25px;
}

.dp-title-row span {
  color: #68788d;
}

.dp-map {
  min-width: 52px;
  height: 38px;
  border-radius: 14px;
  color: #346fca;
  background: #fff;
  box-shadow: 0 6px 16px rgba(40, 91, 148, .08);
}

.dp-search {
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.dp-search input {
  height: 42px;
  border-radius: 999px;
}

.dp-entry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 8px;
  margin-top: 10px;
}

.dp-entry-grid .dp-entry {
  min-height: 68px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dp-entry-grid .dp-entry span {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #eef6ff;
}

.dp-entry-grid .dp-entry strong {
  font-size: 12px;
}

.dp-promo-grid {
  gap: 10px;
}

.dp-promo {
  border: 1px solid var(--qfl-line);
  border-radius: 18px;
  background: #fff;
}

.dp-channel-tabs {
  margin: 10px -16px 0;
  padding: 0 16px 6px;
  background: transparent;
}

.dp-channel-tabs button {
  height: 38px;
  padding: 0 12px;
  color: #5c6d82;
  font-size: 14px;
}

.dp-channel-tabs button.active {
  color: var(--qfl-blue);
}

.dp-filter-panel {
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(40, 91, 148, .05);
}

.dp-filter-group {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
}

.dp-filter-label {
  padding-top: 0;
}

.dp-filter-chips,
.dp-filter-chips.compact,
.dp-filter-chips.sort {
  flex-wrap: nowrap;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.dp-filter-chips button {
  flex: 0 0 auto;
  height: 32px;
  background: #f3f7fc;
}

.dp-shop-list {
  gap: 10px;
  background: transparent;
}

.dp-shop-card {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid #e4edf7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 91, 148, .06);
}

.dp-shop-cover img {
  height: 112px;
  border-radius: 16px;
}

.dp-shop-title h3 {
  font-size: 16px;
}

.dp-rating b {
  color: #347ee8;
}

.dp-shop-tags {
  gap: 5px;
}

.dp-shop-tags span,
.dp-coupon {
  border-radius: 8px;
  background: #eef6ff;
}

.dp-coupon span {
  background: #347ee8;
}

.dp-detail-page {
  background: #f7fbff;
}

.dp-detail-hero {
  height: 300px;
  margin: 0 -16px;
  border-radius: 0 0 28px 28px;
}

.dp-detail-hero > img {
  height: 100%;
  object-fit: cover;
}

.dp-detail-actions {
  padding: 10px 14px;
}

.dp-detail-actions button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 38, .36);
  backdrop-filter: blur(12px);
}

.dp-warm-tip {
  display: none;
}

.dp-business-card {
  position: relative;
  z-index: 2;
  margin: -32px 0 12px;
  border: 1px solid #e4edf7;
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(40, 91, 148, .1);
}

.dp-business-card h1 {
  font-size: 25px;
}

.dp-detail-tabs {
  position: sticky;
  top: 62px;
  z-index: 4;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.dp-deal-section,
.dp-dish-section,
.dp-review-section,
.member-use-panel,
.p-stats > div {
  border: 1px solid #e4edf7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(40, 91, 148, .05);
}

.member-live-card {
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 231, 156, .22), transparent 24%),
    linear-gradient(135deg, #080b12 0%, #171923 58%, #050608 100%);
  color: #fff;
  box-shadow: 0 20px 38px rgba(9, 15, 28, .22);
}

.member-live-head span,
.member-live-note {
  color: rgba(255, 255, 255, .72);
}

.member-live-head strong {
  color: #f8d98a;
  font-size: 20px;
}

.member-barcode {
  border-radius: 18px;
  background: #fff;
}

.member-code-grid {
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}

.member-code-grid span {
  color: rgba(255, 255, 255, .62);
}

.member-code-grid strong {
  color: #fff;
}

.community-page .community-head {
  padding: 4px 2px 0;
}

.community-tabs {
  border-radius: 18px;
  background: #fff;
}

.community-tabs button.active {
  background: var(--qfl-blue);
}

.circle-grid-v4 {
  gap: 12px;
}

.p-circle-card {
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(40, 91, 148, .06);
}

.tabs {
  border-top: 1px solid rgba(221, 232, 247, .88);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
}

.tabs button {
  min-height: 54px;
}

.tabs button.member-tab {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(52, 126, 232, .24);
}

@media (max-width: 390px) {
  .home-entry-grid,
  .dp-entry-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 5px;
  }

  .home-entry-grid .qfl-entry strong,
  .dp-entry-grid .dp-entry strong {
    font-size: 11px;
  }

  .dp-shop-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

/* v9 structural reference match */
body[data-route="restaurants"] .topbar,
body[data-route="restaurantDetail"] .topbar,
body[data-route="member"] .topbar,
body[data-route="postDetail"] .topbar {
  display: none;
}

body[data-route="restaurants"] .view,
body[data-route="member"] .view {
  height: calc(100vh - 76px);
  padding-top: 10px;
}

body[data-route="restaurantDetail"] .view,
body[data-route="postDetail"] .view {
  height: 100vh;
  padding-top: 0;
}

body[data-route="home"] .topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px 18px 8px;
}

body[data-route="home"] .topbar .search {
  display: none;
}

body[data-route="home"] .topbar .logo {
  justify-self: center;
  width: 126px;
}

body[data-route="home"] .mine-entry,
body[data-route="home"] .top-action {
  width: auto;
  min-width: 44px;
  background: transparent;
  color: #16243a;
}

body[data-route="home"] .view {
  height: calc(100vh - 106px);
  padding-top: 0;
}

body[data-route="home"] .home-benefit-carousel,
body[data-route="home"] .home-rank-grid {
  display: none;
}

body[data-route="restaurants"] .dp-entry-grid,
body[data-route="restaurants"] .dp-promo-grid {
  display: none;
}

body[data-route="restaurants"] .dp-head {
  margin-top: -10px;
  padding-top: 14px;
}

.member-cert-page {
  min-height: 100%;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.member-cert-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
}

.member-cert-nav button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #16243a;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.member-cert-nav button:first-child {
  font-size: 28px;
}

.member-cert-nav strong {
  text-align: center;
  color: #14213a;
  font-size: 18px;
  font-weight: 950;
}

.member-vip-plate {
  position: relative;
  min-height: 118px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 28%, rgba(252, 215, 127, .22), transparent 25%),
    linear-gradient(135deg, #05070d 0%, #161922 58%, #050608 100%);
  box-shadow: 0 18px 38px rgba(8, 14, 28, .22);
}

.member-vip-plate::after {
  content: "";
  position: absolute;
  inset: 12px 14px auto auto;
  width: 128px;
  height: 82px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  transform: rotate(-18deg);
}

.member-vip-plate span,
.member-vip-plate strong {
  display: block;
  position: relative;
  z-index: 1;
}

.member-vip-plate span {
  color: #f8d98a;
  font-size: 19px;
  font-weight: 950;
}

.member-vip-plate strong {
  margin-top: 7px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.member-vip-plate em {
  position: absolute;
  right: 24px;
  top: 22px;
  color: rgba(255, 255, 255, .08);
  font-size: 56px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 1px;
}

.member-vip-plate small {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #4a3611;
  background: #f8d98a;
  font-size: 11px;
  font-weight: 900;
}

.member-time-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  color: #66758a;
  font-size: 14px;
  font-weight: 850;
}

.member-time-line button {
  border: 0;
  color: #347ee8;
  background: transparent;
  font-weight: 950;
}

.member-barcode-panel {
  padding: 16px;
  border: 1px solid #e4edf7;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 26px rgba(40, 91, 148, .06);
}

.member-barcode-panel .member-barcode {
  min-height: 134px;
  border: 0;
  border-radius: 14px;
}

.member-barcode-panel strong {
  display: block;
  margin-top: 10px;
  color: #1d293d;
  font-size: 16px;
  letter-spacing: 1px;
}

.member-profile-card,
.member-input-code {
  display: grid;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e4edf7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 91, 148, .05);
}

.member-profile-card {
  grid-template-columns: 48px minmax(0, 1fr);
}

.member-profile-card strong,
.member-profile-card span,
.member-profile-card em,
.member-input-code span,
.member-input-code strong {
  display: block;
}

.member-profile-card strong {
  color: #14213a;
  font-size: 16px;
}

.member-profile-card span {
  margin-top: 4px;
  color: #a77b25;
  font-size: 12px;
  font-weight: 900;
}

.member-profile-card em {
  margin-top: 4px;
  color: #718096;
  font-size: 12px;
  font-style: normal;
}

.member-input-code {
  grid-template-columns: minmax(0, 1fr) auto;
}

.member-input-code span {
  color: #718096;
  font-size: 12px;
}

.member-input-code strong {
  margin-top: 6px;
  color: #17243a;
  font-size: 28px;
  letter-spacing: 2px;
}

.member-input-code button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #347ee8;
  background: #eaf4ff;
  padding: 0 12px;
  font-weight: 900;
}

body[data-route="home"] .home-waterfall {
  margin-top: 10px;
}

body[data-route="home"] .home-entry-grid {
  margin-top: 12px;
  padding: 2px 0 8px;
}

body[data-route="home"] .home-feed-head {
  margin-top: 12px;
}

.tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

/* v10 mobile H5 containment */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.phone,
.view {
  max-width: 100vw;
  overflow-x: hidden;
}

body[data-route="member"] {
  background: #f8fbff;
  place-items: start center;
}

body[data-route="member"] .phone {
  width: min(430px, 100vw);
  max-width: 100vw;
  min-height: 100svh;
  background: #f8fbff;
}

body[data-route="member"] .view {
  width: 100%;
  height: calc(100svh - 76px);
  padding: 0 14px 92px;
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-route="member"] .member-cert-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  overflow-x: hidden;
  padding-top: 6px;
}

body[data-route="member"] .member-cert-page > * {
  min-width: 0;
  max-width: 100%;
}

body[data-route="member"] .member-cert-nav {
  margin: 0 0 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

body[data-route="member"] .member-cert-nav strong {
  min-width: 0;
  font-size: 17px;
}

body[data-route="member"] .member-cert-nav button {
  white-space: nowrap;
}

body[data-route="member"] .member-vip-plate {
  min-height: 112px;
  padding: 20px;
  border-radius: 22px;
}

body[data-route="member"] .member-vip-plate em {
  right: 18px;
  top: 18px;
  font-size: 48px;
}

body[data-route="member"] .member-vip-plate small {
  right: 14px;
  bottom: 14px;
}

body[data-route="member"] .member-time-line {
  margin: 14px 0 8px;
}

body[data-route="member"] .member-barcode-panel {
  padding: 14px;
  border-radius: 22px;
}

body[data-route="member"] .member-barcode-panel .member-barcode {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 112px;
  justify-content: center;
  overflow: hidden;
  gap: clamp(1px, .45vw, 2px);
  padding: 10px 8px;
}

body[data-route="member"] .member-barcode i {
  flex: 0 1 auto;
  max-width: 3px;
}

body[data-route="member"] .member-barcode-panel strong,
body[data-route="member"] .member-profile-card em,
body[data-route="member"] .member-input-code strong {
  overflow-wrap: anywhere;
}

body[data-route="member"] .member-input-code {
  grid-template-columns: minmax(0, 1fr) auto;
}

body[data-route="member"] .member-input-code strong {
  font-size: clamp(22px, 7vw, 28px);
  letter-spacing: 1px;
}

body[data-route="member"] .p-stats,
body[data-route="member"] .member-use-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-route="member"] .member-restaurant-strip {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 -2px;
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

body[data-route="member"] .member-restaurant-strip::-webkit-scrollbar {
  display: none;
}

@media (max-width: 360px) {
  body[data-route="member"] .view {
    padding-right: 12px;
    padding-left: 12px;
  }

  body[data-route="member"] .member-cert-nav {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  body[data-route="member"] .member-cert-nav button:last-child {
    font-size: 12px;
  }
}

/* v12 product polish: brighter home, usable community flows, mobile detail pages */
body[data-route="home"] .home-benefit-carousel {
  display: flex;
}

body[data-route="home"] .home-city-tabs {
  display: none;
}

body[data-route="home"] .home-entry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 7px;
  margin-top: 14px;
  padding-bottom: 12px;
}

body[data-route="home"] .home-entry-grid .qfl-entry {
  min-height: 76px;
}

body[data-route="home"] .home-entry-grid .qfl-entry span {
  width: 46px;
  height: 46px;
  box-shadow: 0 10px 18px rgba(38, 112, 210, .14);
}

body[data-route="home"] .qfl-entry.blue span { background: linear-gradient(145deg, #dff0ff, #7dbdff); }
body[data-route="home"] .qfl-entry.orange span { background: linear-gradient(145deg, #fff0d8, #ffad5f); }
body[data-route="home"] .qfl-entry.purple span { background: linear-gradient(145deg, #f0e9ff, #a98cff); }
body[data-route="home"] .qfl-entry.sky span { background: linear-gradient(145deg, #e8f8ff, #8bd6ff); }
body[data-route="home"] .qfl-entry.rose span { background: linear-gradient(145deg, #fff0f6, #ff8dae); }
body[data-route="home"] .qfl-entry.cyan span { background: linear-gradient(145deg, #e8fbff, #60d4e8); }
body[data-route="home"] .qfl-entry.gold span { background: linear-gradient(145deg, #fff7d9, #ffc857); }
body[data-route="home"] .qfl-entry.green span { background: linear-gradient(145deg, #e9fff4, #68d391); }
body[data-route="home"] .qfl-entry.teal span { background: linear-gradient(145deg, #e4fffb, #4fd1c5); }
body[data-route="home"] .qfl-entry.navy span { background: linear-gradient(145deg, #eaf2ff, #6b8cff); }
body[data-route="home"] .qfl-entry.indigo span { background: linear-gradient(145deg, #edf0ff, #7f9cf5); }
body[data-route="home"] .qfl-entry.violet span { background: linear-gradient(145deg, #f4edff, #b794f4); }
body[data-route="home"] .qfl-entry.red span { background: linear-gradient(145deg, #fff0f0, #ff7a7a); }

body[data-route="home"] .home-entry-grid .qfl-entry strong {
  color: #16243a;
  font-weight: 950;
}

body[data-route="home"] .home-feed-head button {
  color: #347ee8;
  background: #eaf4ff;
}

.home-restaurant-head {
  margin-top: 18px;
}

.home-restaurant-list {
  display: grid;
  gap: 10px;
}

.home-restaurant-tile {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
  border: 1px solid #e4edf7;
  border-radius: 18px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 20px rgba(40, 91, 148, .06);
}

.home-restaurant-tile img {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.home-restaurant-tile span,
.home-restaurant-tile strong,
.home-restaurant-tile em,
.home-restaurant-tile p {
  display: block;
}

.home-restaurant-tile span {
  color: #347ee8;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.home-restaurant-tile strong {
  margin-top: 3px;
  color: #16243a;
  font-size: 15px;
}

.home-restaurant-tile em {
  margin-top: 4px;
  color: #68788d;
  font-size: 12px;
  font-style: normal;
}

.home-restaurant-tile p {
  margin: 7px 0 0;
  color: #347ee8;
  font-size: 12px;
  font-weight: 900;
}

body[data-route="circles"] .topbar,
body[data-route="help"] .topbar,
body[data-route="profile"] .topbar {
  grid-template-columns: 52px minmax(0, 1fr) 52px;
}

body[data-route="circles"] .topbar .search,
body[data-route="help"] .topbar .search,
body[data-route="profile"] .topbar .search {
  display: none;
}

body[data-route="circles"] .topbar .logo,
body[data-route="help"] .topbar .logo,
body[data-route="profile"] .topbar .logo {
  justify-self: center;
}

.message-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
}

.message-panel.open {
  display: block;
}

.message-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 25, 42, .12);
  backdrop-filter: blur(2px);
}

.message-popover {
  position: absolute;
  top: 76px;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  width: min(330px, calc(100vw - 28px));
  max-height: 60vh;
  overflow: auto;
  border: 1px solid #dbe8f7;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 60px rgba(23, 36, 58, .18);
}

.message-popover-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 8px;
}

.message-popover-head span,
.message-popover-head strong {
  display: block;
}

.message-popover-head span {
  color: #347ee8;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
}

.message-popover-head strong {
  margin-top: 4px;
  color: #17243a;
  font-size: 17px;
}

.message-popover-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #65758b;
  background: #f1f6fd;
  font-size: 18px;
  font-weight: 900;
}

.message-popover-list {
  display: grid;
  gap: 8px;
  padding: 8px 12px 14px;
}

.message-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fbff;
}

.message-mini-row strong,
.message-mini-row span,
.message-mini-row em {
  display: block;
}

.message-mini-row strong {
  color: #16243a;
  font-size: 13px;
}

.message-mini-row span {
  margin-top: 4px;
  color: #68788d;
  font-size: 12px;
  line-height: 1.35;
}

.message-mini-row em {
  color: #8a96a8;
  font-size: 11px;
  font-style: normal;
}

.post-search-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid #e4edf7;
  border-radius: 999px;
  background: #fff;
  color: #718096;
  text-align: left;
  box-shadow: 0 8px 18px rgba(40, 91, 148, .05);
}

.post-search-trigger em {
  color: #347ee8;
  font-style: normal;
  font-weight: 950;
}

.post-search-result-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: -2px 0 12px;
  padding: 9px 12px;
  border-radius: 14px;
  color: #347ee8;
  background: #eaf4ff;
  font-size: 12px;
  font-weight: 900;
}

.post-search-result-note button {
  border: 0;
  color: #347ee8;
  background: transparent;
  font-weight: 950;
}

.community-fab {
  position: fixed;
  right: max(20px, calc((100vw - 430px) / 2 + 20px));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 30;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #5aa6ff, #347ee8);
  box-shadow: 0 16px 30px rgba(52, 126, 232, .28);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.community-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.circle-switch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.circle-switch-row button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #60728a;
  background: #eef5fd;
  font-size: 12px;
  font-weight: 950;
}

.circle-switch-row button.active {
  color: #fff;
  background: linear-gradient(135deg, #5aa6ff, #347ee8);
}

.post-search-page,
.circle-apply-page {
  padding-top: 12px;
}

.small-back {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 24px;
}

.hot-topic-panel,
.circle-apply-hero,
.circle-apply-form.standalone {
  border: 1px solid #e4edf7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 91, 148, .06);
}

.hot-topic-panel {
  padding: 14px;
}

.hot-topic-panel strong {
  display: block;
  margin-bottom: 10px;
  color: #17243a;
  font-size: 16px;
}

.hot-topic-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-topic-panel button {
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #347ee8;
  background: #eaf4ff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.circle-apply-hero {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  margin-top: 10px;
}

.circle-apply-hero img {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  object-fit: cover;
}

.circle-apply-hero span,
.circle-apply-hero h1,
.circle-apply-hero p {
  display: block;
  margin: 0;
}

.circle-apply-hero span {
  color: #347ee8;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.circle-apply-hero h1 {
  margin-top: 5px;
  color: #17243a;
  font-size: 20px;
}

.circle-apply-hero p {
  margin-top: 6px;
  color: #68788d;
  font-size: 12px;
  line-height: 1.4;
}

.circle-apply-form.standalone {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
}

body[data-route="postDetail"] .tabs,
body[data-route="postSearch"] .tabs,
body[data-route="circleApply"] .tabs {
  display: none;
}

body[data-route="postSearch"] .topbar,
body[data-route="circleApply"] .topbar {
  display: none;
}

body[data-route="postSearch"] .view,
body[data-route="circleApply"] .view {
  height: 100vh;
  padding-top: 0;
}

.xhs-detail-page {
  position: relative;
  padding-bottom: 96px;
}

body[data-route="postDetail"] .xhs-detail-page > .back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9;
  width: 38px;
  height: 38px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 18px rgba(15, 23, 38, .12);
}

body[data-route="postDetail"] .xhs-detail-page > .back-btn::before {
  content: "‹";
  color: #17243a;
  font-size: 28px;
  line-height: 38px;
}

body[data-route="postDetail"] .xhs-author-head {
  padding-left: 42px;
}

body[data-route="postDetail"] .xhs-comments .xhs-comment-input {
  display: none;
}

body[data-route="postDetail"] .xhs-bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  margin: 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.dp-coupon-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .34), transparent 34%),
    linear-gradient(135deg, #347ee8, #76b7ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(52, 126, 232, .24);
}

.dp-coupon-large span,
.dp-coupon-large strong,
.dp-coupon-large em {
  display: block;
}

.dp-coupon-large span {
  font-size: 12px;
  font-weight: 950;
  opacity: .86;
}

.dp-coupon-large strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.25;
}

.dp-coupon-large em {
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
  opacity: .86;
}

.dp-coupon-large button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #347ee8;
  background: #fff;
  padding: 0 14px;
  font-weight: 950;
  white-space: nowrap;
}

.dp-dish-scroll button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.member-history-panel {
  border: 1px solid #e4edf7;
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(40, 91, 148, .05);
}

.member-history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.member-history-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #f7fbff;
}

.member-history-row img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.member-history-row strong,
.member-history-row span,
.member-history-row em {
  display: block;
}

.member-history-row strong {
  color: #17243a;
  font-size: 13px;
}

.member-history-row span {
  margin-top: 4px;
  color: #718096;
  font-size: 12px;
}

.member-history-row em {
  color: #a77b25;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

body[data-route="member"] .member-barcode-panel .member-barcode {
  gap: 1px;
}

body[data-route="member"] .member-barcode i {
  max-width: 2px;
}

.qfl-service-hero .action-row,
.qfl-service-hero .primary,
.qfl-service-hero .ghost {
  white-space: nowrap;
}
