﻿:root {
  --bg: #101010;
  --panel: #1d1d1f;
  --panel-2: #232326;
  --text: #f5f7fb;
  --muted: #9aa2ad;
  --line: #343840;
  --brand: #f36b75;
  --brand-2: #d81b4c;
  --soft: rgba(243, 107, 117, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, "Microsoft YaHei", sans-serif;
}

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

button,
a {
  cursor: pointer;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.site-header,
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  background: rgba(24, 24, 25, 0.96);
  backdrop-filter: blur(14px);
}

.site-header {
  grid-template-columns: 180px 1fr 180px;
  padding: 0 24px;
}

.detail-topbar {
  grid-template-columns: 64px 1fr 64px;
  text-align: center;
}

.logo {
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.main-nav a {
  min-width: 78px;
  padding: 10px 14px;
  border-radius: 9px;
  color: #c8ced8;
  text-decoration: none;
}

.main-nav a.active {
  background: var(--soft);
  color: var(--brand);
}

.back-icon,
.share-icon {
  display: grid;
  place-items: center;
  min-height: 56px;
  text-decoration: none;
}

.back-icon {
  font-size: 38px;
}

.share-icon {
  color: var(--brand);
  font-weight: 900;
}

.page-shell {
  width: min(1250px, calc(100% - 28px));
  margin: 20px auto 44px;
}

.home-shell {
  width: min(1250px, calc(100% - 20px));
}

.search-panel,
.admin-card,
.admin-login-card,
.auth-card,
.profile-card,
.profile-content,
.edit-profile-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  gap: 12px;
  margin: 20px auto 34px;
  padding: 10px;
}

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

.search-box input,
.admin-card input,
.admin-card select,
.admin-card textarea,
.admin-login-form input,
.edit-profile-form input,
.edit-profile-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #151517;
  color: var(--text);
}

.admin-card textarea,
.edit-profile-form textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #151517;
  color: var(--text);
}

.primary-btn,
.plain-btn,
.feed-tab,
.action-btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #161616;
}

.plain-btn,
.feed-tab,
.action-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: #d6dce6;
  text-decoration: none;
}

.feed-tabs,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-tab.active,
.action-btn.active {
  border-color: rgba(243, 107, 117, 0.55);
  background: var(--soft);
  color: var(--brand);
}

.location-line {
  color: #cbd4df;
  font-size: 14px;
}

.filter-row select {
  flex: 1 1 150px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: #d6dce6;
}

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

.post-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 107, 117, 0.55);
}

.card-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #0a0a0b;
  aspect-ratio: 3 / 4.25;
}

.card-media img,
.compact-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #25262a, #151517);
  color: var(--brand);
  font-size: 28px;
  font-weight: 900;
}

.card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  display: grid;
  gap: 4px;
  padding: 58px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.verify-badge {
  justify-self: start;
  padding: 2px 6px;
  border-radius: 3px;
  background: #8bd537;
  color: #121212;
  font-size: 11px;
  font-weight: 900;
}

.card-location,
.card-distance,
.detail-sub {
  color: #d6dce6;
  font-size: 12px;
}

.card-overlay h3 {
  margin: 2px 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #ffd75c;
  font-size: 12px;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 7px;
}

.action-btn {
  min-height: 34px;
  padding: 0 6px;
  font-size: 12px;
}

.feed-loader,
.empty,
.feed-skeleton {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.detail-shell {
  width: min(730px, calc(100% - 20px));
}

.post-detail-page {
  overflow: visible;
}

.detail-layout {
  display: grid;
  gap: 16px;
}

.detail-header h1 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.25;
}

.detail-carousel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #030303;
  min-height: 420px;
}

.detail-carousel img {
  display: block;
  max-width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 36px;
}

.carousel-arrow.left {
  left: 16px;
}

.carousel-arrow.right {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.carousel-dots span.active {
  background: #fff;
}

.info-panel,
.detail-content,
.comments,
.recommend-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
}

.detail-info-card {
  display: grid;
  gap: 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(35, 35, 38, 0.98), rgba(25, 25, 27, 0.98));
}

.info-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.info-icon {
  width: 24px;
  text-align: center;
}

.info-value {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.65;
  text-align: right;
  overflow-wrap: anywhere;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.service-tags span,
.muted-value {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 13px;
}

.muted-value {
  background: transparent;
  color: var(--muted);
  padding-right: 0;
}

.contact-unlock-btn {
  min-height: 36px;
}

.contact-value {
  color: #fff;
}

.detail-actions,
.form-actions,
.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-content p {
  margin: 0;
  color: #eef2f7;
  line-height: 1.8;
  white-space: pre-wrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
}

.comment-item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.comment-item span {
  color: var(--muted);
  font-size: 12px;
}

.comment-item button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--brand);
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.comment-form input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #151517;
  color: var(--text);
}

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

.compact-card {
  display: grid;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}

.compact-card .card-media,
.compact-card img {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
}

.compact-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.compact-card small {
  color: var(--muted);
}

.admin-shell {
  width: min(1180px, calc(100% - 20px));
}

.admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.admin-top-actions {
  grid-column: 1 / -1;
}

.admin-card,
.admin-login-card,
.auth-card,
.edit-profile-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.auth-shell {
  display: grid;
  place-items: start center;
  padding-top: 34px;
}

.auth-card {
  width: min(430px, 100%);
}

.auth-card h1 {
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.sms-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: center;
}

.sms-code-row .plain-btn {
  width: 100%;
  min-height: 48px;
  white-space: nowrap;
}

.auth-links,
.profile-auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.auth-links a,
.plain-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  padding: 0;
}

.logged-out-card {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.admin-site-header {
  grid-template-columns: 180px 1fr;
}

.admin-header-title {
  color: var(--text);
  font-weight: 900;
}

.admin-login-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

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

.upload-box,
.map-picker {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px dashed #555b66;
  border-radius: 8px;
  background: #151517;
  color: var(--muted);
  text-align: center;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.upload-box strong,
.map-picker strong {
  color: var(--text);
}

.image-upload-progress {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-top: -4px;
  padding: 0 12px;
  border: 1px solid rgba(255, 122, 135, 0.24);
  border-radius: 8px;
  background: rgba(255, 122, 135, 0.08);
  color: var(--text);
  font-size: 13px;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}

.image-preview-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  touch-action: none;
  user-select: none;
}

.image-preview-item.is-cover {
  border-color: rgba(255, 122, 135, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 122, 135, 0.2), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.image-preview-item.is-dragging {
  opacity: 0.72;
}

.image-preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.image-drag-handle,
.cover-badge {
  position: absolute;
  top: 12px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 15, 17, 0.76);
  color: var(--text);
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.image-drag-handle {
  left: 12px;
  cursor: grab;
}

.cover-badge {
  right: 12px;
  color: var(--brand);
}

.image-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.image-preview-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}

.image-preview-actions button:disabled {
  cursor: default;
  color: var(--muted);
  opacity: 0.72;
}

.image-preview-actions .remove-image {
  color: #ff7a87;
}

.image-preview-empty {
  grid-column: 1 / -1;
}

.field-with-help {
  display: grid;
  gap: 6px;
}

.field-with-help input {
  width: 100%;
}

.helper-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-field > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

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

.admin-field-wide {
  grid-column: span 3;
}

.price-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
}

.price-input-wrap input {
  border: 0;
  background: transparent;
}

.price-input-wrap b {
  padding: 0 12px;
  color: var(--brand);
  font-size: 13px;
  white-space: nowrap;
}

.service-tag-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.service-tag-list {
  display: contents;
}

.service-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid rgba(255, 111, 125, 0.24);
  border-radius: 999px;
  background: rgba(255, 111, 125, 0.12);
  color: var(--text);
  padding: 0 9px 0 11px;
  cursor: pointer;
}

.service-tag-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-tag-chip b {
  color: var(--brand);
}

.service-tag-empty {
  color: var(--muted);
  font-size: 13px;
}

.service-tag-editor input {
  flex: 1 1 160px;
  min-width: 120px;
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0 4px;
}

.confirm-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.confirm-dialog {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  max-width: calc(100vw - 28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #151922;
  color: var(--text);
  padding: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.confirm-dialog h2,
.confirm-dialog p {
  margin: 0;
}

.confirm-dialog-body {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.confirm-dialog-body > strong {
  color: var(--brand);
  font-size: 28px;
}

.confirm-dialog dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.confirm-dialog dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.confirm-dialog dt,
.confirm-dialog dd {
  margin: 0;
}

.confirm-dialog dd {
  color: var(--text);
  font-weight: 850;
}

.confirm-dialog-note {
  font-size: 12px;
}

.confirm-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.danger-confirm {
  background: #ff5969 !important;
}

.mini-post {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151517;
}

.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-list-tools,
.admin-batch-actions,
.admin-success-actions > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-list-tools input,
.admin-list-tools select {
  min-height: 40px;
}

.admin-success-actions {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 122, 135, 0.34);
  border-radius: 8px;
  background: rgba(255, 122, 135, 0.08);
}

.admin-success-actions.hidden {
  display: none;
}

.ghost-primary {
  background: rgba(255, 122, 135, 0.14);
  color: var(--brand);
}

.danger-btn,
.delete-post-btn {
  color: #ff7a87 !important;
}

.admin-post-row {
  grid-template-columns: auto 92px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.admin-check {
  padding-top: 34px;
}

.admin-post-cover {
  width: 92px;
  height: 122px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.admin-post-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-post-titleline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
  font-size: 12px;
}

.status-published {
  color: #6ee7b7;
}

.status-draft,
.status-offline {
  color: #fbbf24;
}

.mini-post h3,
.admin-card h2,
.admin-top-actions h1,
.profile-card h1 {
  margin: 0;
}

.mini-post p {
  margin: 0;
  color: var(--muted);
}

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

.admin-list-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
}

.profile-shell {
  display: grid;
  gap: 14px;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  color: var(--brand);
  font-size: 28px;
  font-weight: 900;
}

.profile-content {
  padding: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  width: min(420px, calc(100% - 24px));
  padding: 12px 14px;
  transform: translateX(-50%) translateY(16px);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  color: #111;
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.location-consent {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

.location-consent-card {
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.location-consent-card h2 {
  margin: 0 0 10px;
}

.location-consent-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

  .admin-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 90px 1fr;
    padding: 0 12px;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .main-nav a {
    min-width: 64px;
    padding-inline: 10px;
  }

  .page-shell {
    width: calc(100% - 14px);
    margin-top: 12px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

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

  .card-overlay {
    bottom: 42px;
    padding: 42px 8px 8px;
  }

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

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

  .detail-carousel {
    min-height: 300px;
  }

  .detail-carousel img {
    max-height: 460px;
  }

  .admin-login-form,
  .auth-form,
  .admin-form-grid,
  .comment-form {
    grid-template-columns: 1fr;
  }

  .admin-post-row {
    grid-template-columns: auto 76px minmax(0, 1fr);
  }

  .admin-post-cover {
    width: 76px;
    height: 100px;
  }

  .admin-list-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }

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

@media (max-width: 390px) {
  .action-btn {
    font-size: 11px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .info-label {
    white-space: normal;
  }

  .info-value,
  .service-tags {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Modern Lin visual system */
:root {
  --bg: #0d0e10;
  --bg-elevated: #121316;
  --panel: rgba(29, 30, 34, 0.92);
  --panel-2: rgba(38, 40, 45, 0.92);
  --panel-3: #181a1f;
  --text: #f7f8fb;
  --muted: #a4adb9;
  --muted-2: #747e8d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --brand: #ff6f7d;
  --brand-2: #e51f58;
  --brand-3: #ffb35c;
  --soft: rgba(255, 111, 125, 0.14);
  --soft-strong: rgba(255, 111, 125, 0.22);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
  --focus: 0 0 0 4px rgba(255, 111, 125, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 111, 125, 0.12), transparent 34vw),
    radial-gradient(circle at 80% 10%, rgba(255, 179, 92, 0.08), transparent 28vw),
    var(--bg);
  font-family: Inter, "Noto Sans SC", "Noto Sans", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

h1,
h2,
h3,
.logo {
  letter-spacing: 0;
}

h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

button,
a,
input,
select,
textarea {
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 111, 125, 0.72) !important;
  box-shadow: var(--focus);
  outline: 0;
}

.site-header,
.detail-topbar {
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 16, 19, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.site-header {
  grid-template-columns: minmax(120px, 180px) 1fr minmax(56px, 180px);
  padding: 0 max(18px, calc((100% - 1250px) / 2));
}

.site-header::after {
  content: "X";
  justify-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 111, 125, 0.34);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 111, 125, 0.24), rgba(255, 179, 92, 0.12));
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-soft);
}

.admin-site-header::after {
  content: "A";
}

.logo {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.main-nav {
  gap: 8px;
}

.main-nav a,
.main-nav span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius);
}

.main-nav a {
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--soft);
  color: #fff;
}

.page-shell {
  margin-top: 28px;
}

.search-panel,
.admin-card,
.admin-login-card,
.auth-card,
.profile-card,
.profile-content,
.edit-profile-form,
.info-panel,
.detail-content,
.comments,
.recommend-section,
.location-consent-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 32, 37, 0.96), rgba(22, 23, 27, 0.94));
  box-shadow: var(--shadow-soft);
}

.search-panel {
  gap: 16px;
  margin: 24px auto 34px;
  padding: 16px;
}

.search-box {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.search-box input,
.admin-card input,
.admin-card select,
.admin-card textarea,
.admin-login-form input,
.auth-form input:not([type="checkbox"]),
.edit-profile-form input,
.edit-profile-form textarea,
.comment-form input,
.filter-row select,
.admin-list-tools input,
.admin-list-tools select {
  min-height: 48px;
  border-radius: var(--radius);
  border-color: var(--line);
  background: rgba(12, 13, 16, 0.78);
  color: var(--text);
}

.search-box input {
  padding-left: 46px;
  background:
    linear-gradient(rgba(12, 13, 16, 0.78), rgba(12, 13, 16, 0.78)),
    radial-gradient(circle at 24px 50%, rgba(255, 111, 125, 0.9) 0 5px, transparent 6px);
}

.primary-btn,
.plain-btn,
.feed-tab,
.action-btn,
.admin-list-actions button,
.contact-unlock-btn {
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 850;
}

.primary-btn {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(229, 31, 88, 0.28);
}

.primary-btn:hover {
  box-shadow: 0 16px 34px rgba(229, 31, 88, 0.36);
}

.plain-btn,
.feed-tab,
.action-btn,
.admin-list-actions button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: #e4e8ef;
}

.plain-btn:hover,
.feed-tab:hover,
.action-btn:hover,
.admin-list-actions button:hover {
  border-color: rgba(255, 111, 125, 0.4);
  background: rgba(255, 111, 125, 0.12);
  color: #fff;
}

.feed-tabs,
.filter-row {
  gap: 10px;
}

.feed-tab.active,
.action-btn.active {
  border-color: rgba(255, 111, 125, 0.62);
  background: var(--soft-strong);
  color: #fff;
}

.location-line {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: #d8dee8;
  font-size: 14px;
}

.feed {
  gap: 18px;
}

.post-card {
  border-radius: var(--radius);
  border-color: rgba(255, 255, 255, 0.09);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  isolation: isolate;
}

.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 111, 125, 0.46);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
}

.card-media {
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 3 / 4.15;
}

.card-overlay {
  bottom: 54px;
  gap: 6px;
  padding: 70px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36) 52%, transparent);
}

.verify-badge,
.status-pill {
  border-radius: 999px;
}

.verify-badge {
  padding: 4px 8px;
  background: rgba(133, 226, 95, 0.92);
  font-size: 11px;
}

.card-overlay h3 {
  font-size: 17px;
  line-height: 1.22;
}

.card-actions {
  gap: 6px;
  padding: 8px;
  background: rgba(15, 16, 19, 0.88);
}

.action-btn {
  min-height: 38px;
  padding: 0 8px;
  font-size: 12px;
}

.feed-loader,
.empty,
.feed-skeleton {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.feed-skeleton {
  position: relative;
  overflow: hidden;
}

.feed-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: lin-shimmer 1.45s infinite;
}

@keyframes lin-shimmer {
  to {
    transform: translateX(100%);
  }
}

.detail-shell {
  width: min(820px, calc(100% - 20px));
}

.detail-header h1 {
  font-size: clamp(24px, 3vw, 34px);
}

.detail-carousel {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.carousel-arrow {
  background: rgba(18, 19, 22, 0.74);
  backdrop-filter: blur(10px);
}

.detail-info-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(34, 36, 41, 0.98), rgba(21, 22, 26, 0.98));
}

.service-tags span,
.tag-row span,
.muted-value {
  border-radius: 999px;
}

.auth-shell {
  min-height: calc(100vh - 120px);
  place-items: center;
}

.auth-card,
.admin-login-card {
  padding: 24px;
}

.auth-card h1,
.admin-login-card h1 {
  font-size: 28px;
}

.auth-links {
  justify-content: space-between;
}

.plain-link:hover,
.auth-links a:hover {
  color: #fff;
}

.profile-shell {
  width: min(920px, calc(100% - 28px));
  gap: 18px;
}

.profile-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.profile-card h1 {
  margin-bottom: 6px;
  font-size: 30px;
}

.avatar {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 111, 125, 0.32);
  background: linear-gradient(145deg, rgba(255, 111, 125, 0.22), rgba(255, 179, 92, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-soft);
}

.profile-content,
.edit-profile-form {
  padding: 22px;
}

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

.profile-stat-card,
.profile-section-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.profile-stat-card {
  display: grid;
  gap: 4px;
}

.profile-stat-card strong {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.profile-stat-card span,
.profile-section-card p {
  color: var(--muted);
}

.profile-section-card {
  grid-column: span 2;
}

.profile-section-card h2 {
  font-size: 18px;
}

.profile-dashboard #userLogoutButton {
  grid-column: 1 / -1;
  justify-self: start;
}

.profile-content h2,
.edit-profile-form h2 {
  margin: 0 0 8px;
}

.logged-out-card {
  min-height: 310px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.profile-auth-actions {
  justify-content: center;
}

.admin-card,
.admin-login-card {
  padding: 20px;
}

.admin-panel {
  gap: 18px;
}

.mini-post,
.admin-post-row {
  border-radius: var(--radius);
  background: rgba(19, 20, 24, 0.78);
}

.admin-post-cover {
  border-radius: var(--radius);
}

.toast {
  min-height: 48px;
  border-radius: var(--radius);
  background: #f7f8fb;
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .site-header {
    min-height: 64px;
    grid-template-columns: 70px 1fr 46px;
    padding: 0 12px;
  }

  .site-header::after {
    width: 38px;
    height: 38px;
  }

  .logo {
    font-size: 22px;
  }

  .main-nav a,
  .main-nav span {
    min-width: 58px;
    min-height: 40px;
    padding: 0 10px;
  }

  .search-panel {
    padding: 12px;
  }

  .feed {
    gap: 10px;
  }

  .card-overlay {
    bottom: 84px;
  }

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

  .profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

  .profile-section-card {
    grid-column: 1 / -1;
  }
}
/* EOF mobile overrides */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell,
  .home-shell,
  .profile-shell,
  .admin-shell,
  .detail-shell {
    width: calc(100% - 24px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .search-box {
    grid-template-columns: 35fr 65fr;
    gap: 8px;
  }

  .search-box input {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-box #clearSearch {
    grid-column: 1;
    width: 100%;
  }

  .search-box button[type="submit"] {
    grid-column: 2;
    width: 100%;
  }

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

  .filter-row select,
  .mobile-filter-toggle {
    width: 100%;
    min-width: 0;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
  }

  .advanced-filter {
    display: none;
  }

  body.filters-expanded .advanced-filter {
    display: block;
  }

  .feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-card {
    width: 100%;
    max-width: 100%;
  }

  .card-media {
    aspect-ratio: 4 / 3;
  }

  .card-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    gap: 4px;
    white-space: nowrap;
  }

  .logged-out-card {
    width: calc(100% - 24px);
    max-width: 420px;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 16px;
  }

  .profile-auth-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-content: stretch;
  }

  .profile-auth-actions .primary-btn,
  .profile-auth-actions .plain-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
  }

  .profile-auth-actions .plain-btn {
    border-color: rgba(255, 111, 125, 0.48);
    background: transparent;
    color: #fff;
  }

  .location-consent {
    padding: 12px;
  }

  .location-consent-card {
    width: calc(100% - 24px);
    max-width: 420px;
    padding: 18px;
  }

  .location-consent-card .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .location-consent-card .plain-btn,
  .location-consent-card .primary-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 20260727 front UI system refresh: authoritative frontend product styles. */
:root {
  --page-bg: #090b10;
  --surface-1: #11141b;
  --surface-2: #171b23;
  --surface-3: #202530;
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.48);
  --brand-color: #ff7184;
  --brand-hover: #ff8393;
  --success-color: #42d77d;
  --danger-color: #ff5d6e;
  --warning-color: #ffb15c;
  --front-radius-xl: 20px;
  --front-radius-lg: 16px;
  --front-radius-md: 12px;
  --front-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  --front-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.18);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body:not([data-page="admin"]) {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--page-bg);
  background-size: 48px 48px;
  color: var(--text-primary);
  font-family: Inter, "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not([data-page="admin"]) img,
body:not([data-page="admin"]) video {
  max-width: 100%;
}

body:not([data-page="admin"]) button,
body:not([data-page="admin"]) a,
body:not([data-page="admin"]) input,
body:not([data-page="admin"]) select,
body:not([data-page="admin"]) textarea {
  -webkit-tap-highlight-color: transparent;
}

body:not([data-page="admin"]) button:focus-visible,
body:not([data-page="admin"]) a:focus-visible,
body:not([data-page="admin"]) input:focus-visible,
body:not([data-page="admin"]) select:focus-visible,
body:not([data-page="admin"]) textarea:focus-visible {
  outline: 2px solid rgba(255, 113, 132, 0.72);
  outline-offset: 2px;
}

body:not([data-page="admin"]) .site-header,
body:not([data-page="admin"]) .detail-topbar {
  min-height: 64px;
  padding-inline: max(16px, calc((100vw - 1360px) / 2 + 24px));
  border-bottom: 1px solid var(--border-color);
  background: rgba(9, 11, 16, 0.84);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.2);
}

body:not([data-page="admin"]) .site-header {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
}

body:not([data-page="admin"]) .site-header::after {
  content: none;
  display: none;
}

body:not([data-page="admin"]) .detail-topbar {
  grid-template-columns: 48px minmax(0, 1fr) 72px;
  gap: 12px;
}

body:not([data-page="admin"]) .logo,
body:not([data-page="admin"]) .share-icon {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--brand-color);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
}

body:not([data-page="admin"]) .logo::before,
body:not([data-page="admin"]) .logo::after {
  content: none;
}

body:not([data-page="admin"]) .share-icon {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

body:not([data-page="admin"]) .back-icon {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 32px;
  line-height: 1;
}

body:not([data-page="admin"]) .back-icon:hover {
  background: rgba(255, 255, 255, 0.07);
}

body:not([data-page="admin"]) .main-nav {
  justify-self: center;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

body:not([data-page="admin"]) .main-nav a {
  min-width: 78px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

body:not([data-page="admin"]) .main-nav a.active {
  background: rgba(255, 113, 132, 0.17);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 113, 132, 0.28);
}

body:not([data-page="admin"]) .page-shell {
  width: min(1360px, calc(100% - 48px));
  margin: 12px auto 52px;
}

body:not([data-page="admin"]) .home-shell {
  width: min(1360px, calc(100% - 48px));
}

body:not([data-page="admin"]) .search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 12px auto 18px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--front-radius-xl);
  background: linear-gradient(180deg, rgba(23, 27, 35, 0.92), rgba(15, 18, 25, 0.9));
  box-shadow: var(--front-shadow-soft);
}

body:not([data-page="admin"]) .search-panel::before {
  content: none;
}

body:not([data-page="admin"]) .search-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 96px;
  gap: 8px;
  align-items: center;
}

body:not([data-page="admin"]) .search-box input,
body:not([data-page="admin"]) .filter-row select,
body:not([data-page="admin"]) .filter-select-button,
body:not([data-page="admin"]) .comment-form textarea,
body:not([data-page="admin"]) .comment-form input:not([type="file"]) {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--front-radius-md);
  background: rgba(8, 10, 15, 0.72);
  color: var(--text-primary);
  box-shadow: none;
}

body:not([data-page="admin"]) .search-box input {
  padding: 0 16px;
  font-size: 15px;
}

body:not([data-page="admin"]) input::placeholder,
body:not([data-page="admin"]) textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

body:not([data-page="admin"]) select {
  color-scheme: dark;
}

body:not([data-page="admin"]) .primary-btn,
body:not([data-page="admin"]) .plain-btn {
  min-height: 44px;
  border-radius: var(--front-radius-md);
  font-weight: 850;
}

body:not([data-page="admin"]) .primary-btn {
  background: linear-gradient(135deg, var(--brand-color), #ef426a);
  box-shadow: none;
}

body:not([data-page="admin"]) .primary-btn:hover {
  background: linear-gradient(135deg, var(--brand-hover), #f05477);
}

body:not([data-page="admin"]) .plain-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-primary);
}

body:not([data-page="admin"]) .plain-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

body:not([data-page="admin"]) .plain-btn.is-active {
  border-color: rgba(255, 113, 132, 0.28);
  color: #fff;
}

body:not([data-page="admin"]) .location-line {
  grid-column: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-height: 32px;
  padding: 0 2px;
  color: var(--text-secondary);
  font-size: 13px;
}

body:not([data-page="admin"]) .location-line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-color);
}

body:not([data-page="admin"]) .location-status {
  font-weight: 750;
  color: var(--text-primary);
}

body:not([data-page="admin"]) .location-line small {
  color: var(--text-muted);
}

body:not([data-page="admin"]) .location-link {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

body:not([data-page="admin"]) .feed-tabs {
  grid-column: 2;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow-x: auto;
  scrollbar-width: none;
}

body:not([data-page="admin"]) .feed-tabs::-webkit-scrollbar {
  display: none;
}

body:not([data-page="admin"]) .feed-tab {
  min-width: 74px;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 900;
  box-shadow: none;
}

body:not([data-page="admin"]) .feed-tab.active {
  background: rgba(255, 113, 132, 0.17);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 113, 132, 0.32);
}

body:not([data-page="admin"]) .filter-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(150px, 1fr) repeat(4, minmax(132px, 0.85fr));
  gap: 8px;
  align-items: center;
}

body:not([data-page="admin"]) .filter-row select,
body:not([data-page="admin"]) .filter-select-button {
  min-height: 44px;
  height: 44px;
  padding: 0 38px 0 14px;
  border-radius: var(--front-radius-md);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
}

body:not([data-page="admin"]) .filter-row select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

body:not([data-page="admin"]) .filter-select {
  position: relative;
  min-width: 0;
}

body:not([data-page="admin"]) .filter-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body:not([data-page="admin"]) .filter-select-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-page="admin"]) .filter-select-arrow {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

body:not([data-page="admin"]) .filter-select-menu {
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 35;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(17, 20, 27, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

body:not([data-page="admin"]) .filter-select-option {
  min-height: 38px;
  border-radius: 10px;
  color: var(--text-secondary);
}

body:not([data-page="admin"]) .filter-select-option.active {
  background: rgba(255, 113, 132, 0.15);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 113, 132, 0.2);
}

body:not([data-page="admin"]) .active-filter-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

body:not([data-page="admin"]) .active-filter-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 113, 132, 0.24);
  border-radius: 999px;
  background: rgba(255, 113, 132, 0.1);
  color: #ffd6dd;
  font-size: 12px;
  font-weight: 800;
}

body:not([data-page="admin"]) .feed {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

body:not([data-page="admin"]) .feed.is-loading::after {
  content: "正在刷新...";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(17, 20, 27, 0.92);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

body:not([data-page="admin"]) .post-card {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--front-radius-lg);
  background: linear-gradient(180deg, rgba(23, 27, 35, 0.98), rgba(15, 18, 25, 0.98));
  box-shadow: var(--front-shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

body:not([data-page="admin"]) .post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 113, 132, 0.32);
  box-shadow: var(--front-shadow);
  filter: none;
}

body:not([data-page="admin"]) .card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(135deg, #141820, #090b10);
}

body:not([data-page="admin"]) .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.24s ease;
}

body:not([data-page="admin"]) .post-card:hover .card-media img {
  transform: scale(1.025);
}

body:not([data-page="admin"]) .card-media.image-error img {
  opacity: 0;
}

body:not([data-page="admin"]) .card-media.image-error::after {
  content: "XOO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 24px;
  font-weight: 950;
  background: linear-gradient(135deg, #171b23, #0d1017);
}

body:not([data-page="admin"]) .verify-badge,
body:not([data-page="admin"]) .card-media-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

body:not([data-page="admin"]) .verify-badge {
  left: 10px;
}

body:not([data-page="admin"]) .card-media-badge {
  right: 10px;
}

body:not([data-page="admin"]) .card-body {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px 13px 12px;
}

body:not([data-page="admin"]) .card-body h3 {
  min-height: 42px;
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:not([data-page="admin"]) .card-overlay {
  display: none;
}

body:not([data-page="admin"]) .card-location,
body:not([data-page="admin"]) .card-distance,
body:not([data-page="admin"]) .card-meta {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
}

body:not([data-page="admin"]) .card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

body:not([data-page="admin"]) .card-location span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-page="admin"]) .card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body:not([data-page="admin"]) .card-meta strong {
  color: var(--brand-color);
  font-size: 13px;
}

body:not([data-page="admin"]) .card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body:not([data-page="admin"]) .card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 9px;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.025);
}

body:not([data-page="admin"]) .action-btn {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

body:not([data-page="admin"]) .action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body:not([data-page="admin"]) .action-btn.active {
  border-color: rgba(255, 113, 132, 0.22);
  background: rgba(255, 113, 132, 0.1);
  color: #ffd6dd;
}

body:not([data-page="admin"]) .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  vertical-align: middle;
}

body:not([data-page="admin"]) .detail-shell {
  width: min(1160px, calc(100% - 48px));
}

body:not([data-page="admin"]) .detail-layout {
  width: min(1040px, 100%);
  max-width: 1040px;
  display: grid;
  gap: 18px;
  margin-inline: auto;
}

body:not([data-page="admin"]) .detail-header {
  padding: 4px 0 0;
}

body:not([data-page="admin"]) .detail-header h1 {
  margin: 0 0 8px;
  max-width: 100%;
  color: var(--text-primary);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:not([data-page="admin"]) .detail-sub {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

body:not([data-page="admin"]) .detail-carousel,
body:not([data-page="admin"]) .detail-info-card,
body:not([data-page="admin"]) .detail-actions,
body:not([data-page="admin"]) .detail-content,
body:not([data-page="admin"]) .comments,
body:not([data-page="admin"]) .recommend-section,
body:not([data-page="admin"]) .detail-video-panel {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--front-radius-xl);
  background: rgba(17, 20, 27, 0.82);
  box-shadow: var(--front-shadow-soft);
}

body:not([data-page="admin"]) .detail-carousel {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: rgba(11, 13, 18, 0.82);
  touch-action: pan-y;
}

body:not([data-page="admin"]) .detail-carousel-stage {
  position: relative;
  width: 100%;
  height: clamp(460px, 68vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

body:not([data-page="admin"]) .detail-carousel-image,
body:not([data-page="admin"]) .detail-carousel-stage img {
  position: static;
  width: 100%;
  height: 100% !important;
  max-width: 100%;
  max-height: 100% !important;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}

body:not([data-page="admin"]) .carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.68);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body:not([data-page="admin"]) .carousel-arrow.left {
  left: 14px;
}

body:not([data-page="admin"]) .carousel-arrow.right {
  right: 14px;
}

body:not([data-page="admin"]) .carousel-arrow:disabled {
  cursor: default;
  opacity: 0.38;
}

body:not([data-page="admin"]) .carousel-dots,
body:not([data-page="admin"]) .carousel-counter {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 850;
}

body:not([data-page="admin"]) .carousel-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

body:not([data-page="admin"]) .carousel-dot.active {
  width: 24px;
  background: #fff;
}

body:not([data-page="admin"]) .detail-info-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  padding: 14px 18px;
}

body:not([data-page="admin"]) .info-row {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body:not([data-page="admin"]) .info-row-wide,
body:not([data-page="admin"]) .info-row-contact {
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, 0.26fr) minmax(0, 1fr);
}

body:not([data-page="admin"]) .info-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 850;
}

body:not([data-page="admin"]) .info-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--brand-color);
  background: rgba(255, 113, 132, 0.08);
}

body:not([data-page="admin"]) .info-icon .ui-icon {
  width: 16px;
  height: 16px;
}

body:not([data-page="admin"]) .info-value {
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body:not([data-page="admin"]) .service-tags {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

body:not([data-page="admin"]) .service-tags span:not(.muted-value) {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 113, 132, 0.22);
  border-radius: 999px;
  background: rgba(255, 113, 132, 0.1);
  color: #ffd6dd;
  font-size: 12px;
  font-weight: 850;
}

body:not([data-page="admin"]) .muted-value {
  color: var(--text-muted);
  font-weight: 700;
}

body:not([data-page="admin"]) .contact-lock-panel {
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

body:not([data-page="admin"]) .contact-lock-meta {
  display: grid;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

body:not([data-page="admin"]) .contact-lock-meta small {
  color: var(--text-muted);
  font-size: 12px;
}

body:not([data-page="admin"]) .contact-unlocked-panel {
  display: grid;
  gap: 10px;
}

body:not([data-page="admin"]) .contact-unlocked-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

body:not([data-page="admin"]) .contact-unlocked-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

body:not([data-page="admin"]) .contact-unlocked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body:not([data-page="admin"]) .contact-unlocked-actions .plain-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

body:not([data-page="admin"]) .detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

body:not([data-page="admin"]) .detail-actions-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body:not([data-page="admin"]) .detail-actions .plain-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

body:not([data-page="admin"]) .detail-actions .plain-btn.active {
  border-color: rgba(255, 113, 132, 0.28);
  background: rgba(255, 113, 132, 0.12);
  color: #ffd6dd;
}

body:not([data-page="admin"]) .danger-soft {
  color: #ffc0c8;
}

body:not([data-page="admin"]) .detail-content,
body:not([data-page="admin"]) .comments,
body:not([data-page="admin"]) .recommend-section,
body:not([data-page="admin"]) .detail-video-panel {
  padding: 18px;
}

body:not([data-page="admin"]) .detail-content h2,
body:not([data-page="admin"]) .comments h2,
body:not([data-page="admin"]) .recommend-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

body:not([data-page="admin"]) .detail-content p {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.82;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body:not([data-page="admin"]) .comment-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--front-radius-lg);
  background: rgba(8, 10, 15, 0.52);
}

body:not([data-page="admin"]) .comment-form textarea {
  min-height: 112px;
  height: auto;
  padding: 14px;
  resize: vertical;
}

body:not([data-page="admin"]) .comment-form textarea:focus,
body:not([data-page="admin"]) .search-box input:focus,
body:not([data-page="admin"]) .filter-row select:focus,
body:not([data-page="admin"]) .filter-select-button:focus {
  border-color: rgba(255, 113, 132, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 113, 132, 0.12);
}

body:not([data-page="admin"]) .comment-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body:not([data-page="admin"]) .comment-upload-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body:not([data-page="admin"]) .comment-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:not([data-page="admin"]) .comment-image-chip {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-2);
}

body:not([data-page="admin"]) .comment-image-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body:not([data-page="admin"]) .remove-comment-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
}

body:not([data-page="admin"]) .post-list-state,
body:not([data-page="admin"]) .feed-loader,
body:not([data-page="admin"]) .feed-skeleton,
body:not([data-page="admin"]) .post-list-empty,
body:not([data-page="admin"]) .post-list-error {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--front-radius-lg);
  background: rgba(17, 20, 27, 0.82);
  color: var(--text-secondary);
  text-align: center;
  box-shadow: var(--front-shadow-soft);
}

body:not([data-page="admin"]) .post-list-state strong {
  color: var(--text-primary);
  font-size: 18px;
}

body:not([data-page="admin"]) .feed-loader {
  width: min(1360px, 100%);
  margin: 16px auto 0;
  min-height: 54px;
  padding: 0 18px;
}

body:not([data-page="admin"]) .feed-loader[hidden] {
  display: none !important;
}

body:not([data-page="admin"]) .support-fab {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-width: 118px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-color), #ef426a);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(239, 66, 106, 0.3);
}

body:not([data-page="admin"]) .support-widget {
  max-width: min(390px, calc(100vw - 24px));
}

@media (min-width: 1600px) {
  body:not([data-page="admin"]) .page-shell,
  body:not([data-page="admin"]) .home-shell {
    width: min(1440px, calc(100% - 64px));
  }
}

@media (max-width: 1360px) {
  body:not([data-page="admin"]) .feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not([data-page="admin"]) .filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  body:not([data-page="admin"]) .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not([data-page="admin"]) .detail-shell {
    width: min(900px, calc(100% - 40px));
  }

  body:not([data-page="admin"]) .detail-carousel-stage {
    height: clamp(420px, 62vh, 640px);
  }

  body:not([data-page="admin"]) .detail-info-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body:not([data-page="admin"]) .site-header,
  body:not([data-page="admin"]) .detail-topbar {
    min-height: 60px;
    padding-inline: 12px;
  }

  body:not([data-page="admin"]) .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  body:not([data-page="admin"]) .main-nav {
    justify-self: end;
  }

  body:not([data-page="admin"]) .main-nav a {
    min-width: 62px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  body:not([data-page="admin"]) .page-shell,
  body:not([data-page="admin"]) .home-shell,
  body:not([data-page="admin"]) .detail-shell {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  body:not([data-page="admin"]) .search-panel {
    padding: 12px;
    border-radius: 18px;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  body:not([data-page="admin"]) .search-box {
    grid-template-columns: 35fr 65fr;
  }

  body:not([data-page="admin"]) .search-box input {
    grid-column: 1 / -1;
  }

  body:not([data-page="admin"]) .search-box #clearSearch,
  body:not([data-page="admin"]) .search-box button[type="submit"] {
    width: 100%;
  }

  body:not([data-page="admin"]) .feed-tabs {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    justify-content: space-between;
  }

  body:not([data-page="admin"]) .feed-tab {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
  }

  body:not([data-page="admin"]) .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:not([data-page="admin"]) .mobile-filter-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  body:not([data-page="admin"]) .advanced-filter {
    display: none;
  }

  body.filters-expanded:not([data-page="admin"]) .advanced-filter {
    display: block;
  }

  body:not([data-page="admin"]) .filter-select.open .filter-select-menu {
    display: grid;
  }

  body:not([data-page="admin"]) .feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body:not([data-page="admin"]) .card-media {
    aspect-ratio: 4 / 5;
  }

  body:not([data-page="admin"]) .post-card:hover {
    transform: none;
  }

  body:not([data-page="admin"]) .detail-layout {
    width: 100%;
    gap: 14px;
  }

  body:not([data-page="admin"]) .detail-carousel {
    padding: 8px;
    border-radius: 18px;
  }

  body:not([data-page="admin"]) .detail-carousel-stage {
    height: auto;
    max-height: 68vh;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
  }

  body:not([data-page="admin"]) .carousel-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 30px;
  }

  body:not([data-page="admin"]) .carousel-arrow.left {
    left: 8px;
  }

  body:not([data-page="admin"]) .carousel-arrow.right {
    right: 8px;
  }

  body:not([data-page="admin"]) .detail-info-card {
    padding: 12px 14px;
  }

  body:not([data-page="admin"]) .info-row,
  body:not([data-page="admin"]) .info-row-wide,
  body:not([data-page="admin"]) .info-row-contact {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    min-height: 0;
    padding: 12px 0;
  }

  body:not([data-page="admin"]) .contact-lock-panel,
  body:not([data-page="admin"]) .contact-unlocked-row {
    grid-template-columns: 1fr;
  }

  body:not([data-page="admin"]) .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body:not([data-page="admin"]) .detail-actions-left,
  body:not([data-page="admin"]) .detail-actions .plain-btn {
    width: 100%;
  }

  body:not([data-page="admin"]) .detail-actions-left .plain-btn {
    flex: 1 1 0;
  }

  body:not([data-page="admin"]) .support-fab {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-width: 54px;
    width: 54px;
    height: 54px;
    padding: 0;
    font-size: 0;
  }

  body:not([data-page="admin"]) .support-fab::before {
    content: "客服";
    font-size: 13px;
    font-weight: 900;
  }
}

@media (max-width: 430px) {
  body:not([data-page="admin"]) .filter-row {
    grid-template-columns: 1fr;
  }

  body:not([data-page="admin"]) .feed-tab {
    min-height: 38px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not([data-page="admin"]) *,
  body:not([data-page="admin"]) *::before,
  body:not([data-page="admin"]) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 20260727 home-ui-1: homepage interaction polish, share/report surfaces. */
body[data-page="home"]:not([data-page="admin"]) .search-box .plain-btn,
body[data-page="home"]:not([data-page="admin"]) .search-box .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  white-space: nowrap;
}

body[data-page="home"]:not([data-page="admin"]) .post-card {
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

body[data-page="home"]:not([data-page="admin"]) .post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 111, 125, 0.42);
  background: linear-gradient(180deg, rgba(25, 29, 39, 0.98), rgba(16, 18, 24, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 111, 125, 0.08);
}

body[data-page="home"]:not([data-page="admin"]) .card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #06070a;
}

body[data-page="home"]:not([data-page="admin"]) .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 240ms ease;
}

body[data-page="home"]:not([data-page="admin"]) .post-card:hover .card-media img {
  transform: scale(1.035);
}

body[data-page="home"]:not([data-page="admin"]) .card-body {
  gap: 8px;
}

body[data-page="home"]:not([data-page="admin"]) .card-body h3 {
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  transition: color 180ms ease;
}

body[data-page="home"]:not([data-page="admin"]) .post-card:hover .card-body h3 {
  color: #ffd8de;
}

body[data-page="home"]:not([data-page="admin"]) .card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body[data-page="home"]:not([data-page="admin"]) .card-location span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"]:not([data-page="admin"]) .card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

body[data-page="home"]:not([data-page="admin"]) .card-price {
  min-width: 0;
  color: #ffd166;
  font-size: 15px;
  letter-spacing: 0;
}

body[data-page="home"]:not([data-page="admin"]) .card-year,
body[data-page="home"]:not([data-page="admin"]) .card-views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  white-space: nowrap;
}

body[data-page="home"]:not([data-page="admin"]) .card-actions {
  gap: 7px;
  padding: 10px;
}

body[data-page="home"]:not([data-page="admin"]) .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 38px;
  border-radius: 12px;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}

body[data-page="home"]:not([data-page="admin"]) .action-btn:hover {
  transform: translateY(-1px);
}

body[data-page="home"]:not([data-page="admin"]) .more-btn {
  min-width: 76px;
  padding-inline: 10px;
}

body[data-page="home"]:not([data-page="admin"]) .more-btn span {
  display: inline;
  font-size: 12px;
  font-weight: 800;
}

.card-media-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.media-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 5, 8, 0.72);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.media-count-pill.is-video {
  color: #ffd166;
}

.media-count-pill .ui-icon {
  width: 14px;
  height: 14px;
}

.media-count-pill b {
  font-size: 12px;
  line-height: 1;
}

body[data-page="home"]:not([data-page="admin"]) .verify-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(34, 197, 94, 0.86));
  color: #04130d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.post-more-menu {
  position: fixed;
  z-index: 130;
  width: min(220px, calc(100vw - 24px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(20, 23, 31, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

.post-more-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.post-more-menu button:hover {
  background: rgba(255, 111, 125, 0.12);
  color: #fff;
}

.share-modal-backdrop,
.report-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.share-modal-backdrop.hidden,
.report-modal-backdrop.hidden {
  display: none !important;
}

.share-modal,
.report-modal {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: #151922;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.52);
}

.share-modal .eyebrow,
.report-modal .eyebrow {
  margin: 0;
  color: var(--brand-color, #ff6f7d);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.share-modal h2,
.report-modal h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.share-target,
.report-target,
.share-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
}

.share-link-input,
.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #0f1218;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  outline: none;
  box-sizing: border-box;
}

.report-form textarea {
  min-height: 112px;
  resize: vertical;
}

.share-link-input:focus,
.report-form input:focus,
.report-form select:focus,
.report-form textarea:focus {
  border-color: rgba(255, 111, 125, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 111, 125, 0.12);
}

.share-actions,
.report-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-actions .plain-btn,
.share-actions .primary-btn,
.report-form-actions .plain-btn,
.report-form-actions .primary-btn {
  min-height: 42px;
  border-radius: 12px;
}

.report-upload {
  display: grid;
  gap: 8px;
  min-height: 76px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}

.report-upload input {
  font-size: 13px;
}

.report-image-preview {
  display: grid;
  gap: 8px;
}

.report-image-preview span {
  min-width: 0;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-page="admin"]) .support-fab {
  background: linear-gradient(135deg, #ff7f8e, #ef426a);
  color: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

body:not([data-page="admin"]) .support-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 48px rgba(239, 66, 106, 0.42);
  filter: saturate(1.08);
}

.count-bump {
  animation: xoo-count-bump 280ms ease;
}

@keyframes xoo-count-bump {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  body[data-page="home"]:not([data-page="admin"]) .post-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  body[data-page="home"]:not([data-page="admin"]) .card-meta {
    grid-template-columns: 1fr auto;
  }

  body[data-page="home"]:not([data-page="admin"]) .card-views {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body[data-page="home"]:not([data-page="admin"]) .more-btn {
    min-width: 68px;
  }

  .share-modal,
  .report-modal {
    padding: 18px;
    border-radius: 16px;
  }

  .share-actions,
  .report-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body[data-page="home"]:not([data-page="admin"]) #postList.feed,
  body[data-page="home"]:not([data-page="admin"]) .feed {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 20260727 detail-unify-1: keep one detail gallery and one single-column info card across all posts. */
body[data-page="post-detail"]:not([data-page="admin"]) {
  overflow-x: hidden;
}

body[data-page="post-detail"]:not([data-page="admin"]) .detail-shell {
  width: min(1040px, calc(100% - 40px));
  padding-bottom: 96px;
}

body[data-page="post-detail"]:not([data-page="admin"]) .detail-layout {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

body[data-page="post-detail"]:not([data-page="admin"]) .detail-carousel {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 12px;
  padding: 12px;
  overflow: visible;
  border-radius: 18px;
  background: rgba(8, 10, 14, 0.9);
}

body[data-page="post-detail"]:not([data-page="admin"]) .detail-carousel-stage {
  position: relative;
  width: 100%;
  height: clamp(500px, 66vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  touch-action: pan-y;
}

body[data-page="post-detail"]:not([data-page="admin"]) .detail-carousel-image,
body[data-page="post-detail"]:not([data-page="admin"]) .detail-carousel-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: 100%;
  max-height: 100% !important;
  display: block;
  object-fit: contain !important;
  object-position: center;
  background: #000;
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 15, 0.7);
  color: #fff;
  line-height: 1;
  font-size: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-arrow.left {
  left: 16px;
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-arrow.right {
  right: 16px;
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-arrow .ui-icon {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0;
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-pagination {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-dots {
  position: static;
  width: auto;
  max-width: min(100%, 680px);
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  flex: 0 0 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-dot.active,
body[data-page="post-detail"]:not([data-page="admin"]) .carousel-dot[aria-current="true"] {
  width: 24px;
  flex-basis: 24px;
  background: #fff;
}

body[data-page="post-detail"]:not([data-page="admin"]) .carousel-counter {
  position: static;
  min-height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--xoo-text-3);
  font-size: 12px;
  font-weight: 800;
}

body[data-page="post-detail"]:not([data-page="admin"]) .detail-info-card {
  width: 100%;
  max-width: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

body[data-page="post-detail"]:not([data-page="admin"]) .info-row,
body[data-page="post-detail"]:not([data-page="admin"]) .service-row,
body[data-page="post-detail"]:not([data-page="admin"]) .contact-row {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  display: grid !important;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) !important;
  align-items: center;
  gap: 16px;
  padding: 10px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="post-detail"]:not([data-page="admin"]) .info-row:last-child,
body[data-page="post-detail"]:not([data-page="admin"]) .contact-row:last-child {
  border-bottom: 0;
}

body[data-page="post-detail"]:not([data-page="admin"]) .info-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--xoo-text-2);
  font-size: 13px;
  font-weight: 850;
}

body[data-page="post-detail"]:not([data-page="admin"]) .info-value {
  min-width: 0;
  text-align: right;
  color: var(--xoo-text);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body[data-page="post-detail"]:not([data-page="admin"]) .service-tags {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body[data-page="post-detail"]:not([data-page="admin"]) .contact-lock-panel {
  justify-content: end;
}

body[data-page="post-detail"]:not([data-page="admin"]) .support-fab {
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
}

@media (max-width: 1023px) {
  body[data-page="post-detail"]:not([data-page="admin"]) .detail-shell {
    width: min(920px, calc(100% - 32px));
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .detail-carousel-stage {
    height: clamp(420px, 62vh, 640px);
  }
}

@media (max-width: 640px) {
  body[data-page="post-detail"]:not([data-page="admin"]) .detail-shell {
    width: calc(100% - 24px);
    padding-bottom: 88px;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .detail-carousel {
    padding: 8px;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .detail-carousel-stage {
    height: auto;
    max-height: 68vh;
    aspect-ratio: 3 / 4;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .carousel-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .carousel-arrow.left {
    left: 8px;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .carousel-arrow.right {
    right: 8px;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .info-row,
  body[data-page="post-detail"]:not([data-page="admin"]) .contact-row {
    grid-template-columns: 110px minmax(0, 1fr) !important;
    padding: 10px 12px !important;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .service-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px !important;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .service-tags {
    justify-content: flex-start;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .contact-lock-panel {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .info-value {
    text-align: right;
  }

  body[data-page="post-detail"]:not([data-page="admin"]) .support-fab {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .card-media {
    aspect-ratio: 3 / 4;
  }
}

/* XOO unified dark form and responsive polish */
:root {
  --bg-page: #0b0d12;
  --bg-panel: #151922;
  --bg-input: #17181d;
  --border: rgba(255, 255, 255, 0.1);
  --text-main: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.58);
  --danger: #ff5b6f;
  --success: #36d98d;
  --warning: #f6b04d;
}

body,
body[data-page] {
  background: var(--bg-page);
  color: var(--text-main);
}

input:not([type="checkbox"]),
textarea,
select,
.admin-card input,
.admin-card textarea,
.admin-card select,
.auth-form input:not([type="checkbox"]),
.admin-login-form input,
.edit-profile-form input,
.edit-profile-form textarea,
.comment-form textarea,
.comment-form input,
.filter-row select,
.search-box input,
.admin-list-tools input,
.admin-list-tools select,
.report-form input,
.report-form textarea,
.report-form select,
.support-intro input,
.support-intro textarea,
.support-intro select,
.support-composer textarea,
.support-admin-reply textarea,
.support-admin-note input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
  caret-color: var(--brand);
  box-shadow: none;
  appearance: none;
}

select,
.filter-row select,
.admin-list-tools select,
.admin-card select,
.support-intro select,
.report-form select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.65) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

input:focus,
textarea:focus,
select:focus,
.comment-form textarea:focus,
.search-box input:focus,
.filter-row select:focus {
  border-color: rgba(255, 111, 125, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(255, 111, 125, 0.14) !important;
}

textarea {
  resize: vertical;
}

.search-panel,
.comments,
.detail-content,
.info-panel,
.recommend-section,
.profile-card,
.profile-content,
.profile-modern-card,
.profile-menu-card,
.admin-card,
.admin-table-card,
.support-widget,
.support-admin-list-card,
.support-admin-chat-card {
  background: var(--bg-panel);
  border-color: var(--border);
}

.search-box {
  align-items: center;
}

.search-box .primary-btn,
.search-box .plain-btn,
.comment-form-actions .primary-btn,
.comment-form-actions .plain-btn,
.comment-upload-button,
.admin-list-tools button,
.report-admin-controls button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  line-height: 1;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 8px;
}

.comment-form textarea {
  min-height: 96px;
  border-radius: 12px;
  line-height: 1.55;
}

.comment-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-form-actions {
  align-items: center;
}

.comment-upload-button {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
}

.remove-comment-image {
  border: 2px solid var(--bg-panel);
  background: var(--danger);
}

.admin-metric-grid,
.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}

.admin-metric-card {
  min-height: 112px;
  padding: 18px 20px;
  border-radius: 14px;
}

.admin-metric-card span {
  width: auto;
  height: auto;
  display: block;
  padding: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-metric-card strong {
  color: var(--text-main);
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.05;
}

.admin-workspace {
  width: 100%;
  max-width: min(1600px, 100%);
  margin: 0 auto;
}

.admin-list-tools,
.report-admin-controls {
  align-items: center;
  gap: 10px;
}

.admin-data-table {
  width: 100%;
  table-layout: auto;
}

.admin-data-table th,
.admin-data-table td {
  vertical-align: middle;
}

@media (max-width: 768px) {
  .search-box {
    display: grid;
    grid-template-columns: 35fr 65fr;
    gap: 10px;
  }

  .search-box input {
    grid-column: 1 / -1;
  }

  .search-box #clearSearch {
    grid-column: 1;
  }

  .search-box button[type="submit"] {
    grid-column: 2;
  }

  .filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-row .mobile-filter-toggle {
    grid-column: 1 / -1;
  }

  .comment-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-metric-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  .page-shell,
  .home-shell,
  .detail-shell,
  .profile-shell {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .filter-row,
  .comment-form-actions,
  .admin-metric-grid,
  .compact-grid {
    grid-template-columns: 1fr !important;
  }
}

.detail-video-panel,
.video-preview-card,
.profile-checkin-card,
.points-balance-card,
.points-checkin-card,
.points-success-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.detail-video-panel {
  overflow: hidden;
  padding: 12px;
  margin: 16px 0;
}

.detail-video-panel video,
.video-preview-card video {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  background: #05060a;
}

.video-preview {
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
}

.video-preview-card {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  align-items: center;
}

.video-preview-card div,
.profile-post-info,
.profile-comment-row div {
  min-width: 0;
}

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

.video-preview-card small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.58);
  line-height: 1.5;
}

.video-upload-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(236,95,120,.16), rgba(255,255,255,.04)),
    #080a0f;
  color: rgba(255,255,255,.82);
  font-weight: 700;
}

.video-preview-card.is-uploading {
  border-color: rgba(236,95,120,.35);
}

.video-error-message {
  margin-top: 10px;
  color: #ff8a8a;
  font-size: 13px;
}

.comment-thread-list {
  display: grid;
  gap: 14px;
}

.comment-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.comment-item.comment-reply {
  margin-top: 10px;
  margin-left: 20px;
  border-left: 2px solid rgba(255,111,143,.45);
}

.comment-avatar .avatar,
.comment-avatar-image {
  width: 42px;
  height: 42px;
}

.comment-body header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.comment-body header span,
.reply-to {
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.comment-body p {
  margin: 8px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.comment-images,
.comment-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.comment-images.small img,
.comment-image-thumb {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}

.comment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-actions button,
.reply-target button {
  border: 0;
  background: transparent;
  color: #ff6f8f;
  cursor: pointer;
}

.comment-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  box-sizing: border-box;
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.comment-upload-button {
  position: relative;
  overflow: hidden;
}

.comment-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.comment-image-chip {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}

.remove-comment-image {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff4d6d;
  color: #fff;
  font-weight: 800;
}

.reply-target {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(255,111,143,.12);
  color: rgba(255,255,255,.85);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.82);
}

.image-lightbox img {
  max-width: min(100%, 1100px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}

.image-lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 24px;
}

.profile-checkin-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin: 14px auto;
  max-width: 720px;
}

.profile-checkin-card div,
.points-panel {
  display: grid;
  gap: 8px;
}

.profile-post-list,
.profile-comment-list,
.points-panel {
  display: grid;
  gap: 12px;
}

.profile-post-row,
.profile-comment-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.profile-comment-row {
  grid-template-columns: 76px minmax(0, 1fr);
}

.profile-post-cover {
  width: 86px;
  height: 86px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}

.profile-comment-row .profile-post-cover {
  width: 76px;
  height: 76px;
}

.profile-post-cover img,
.profile-post-cover .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-post-info strong,
.profile-comment-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-post-info span,
.profile-post-info small,
.profile-comment-row small,
.profile-mini-empty p,
.points-panel p,
.points-method-grid span {
  color: rgba(255,255,255,.58);
}

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

.profile-clear-button {
  justify-self: end;
}

.points-balance-card,
.points-checkin-card,
.points-success-card {
  padding: 16px;
}

.points-balance-card strong {
  font-size: 34px;
  color: #ff6f8f;
}

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

.points-method-grid div {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.point-method-button {
  margin-top: 10px;
  width: 100%;
}

.contact-lock-panel,
.contact-unlocked-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.contact-lock-panel {
  align-items: start;
}

.contact-unlock-btn {
  justify-self: start;
  min-width: 210px;
}

.contact-lock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}

.contact-lock-meta small {
  color: rgba(255,255,255,.46);
}

.contact-unlocked-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}

.contact-unlocked-row span {
  color: rgba(255,255,255,.58);
}

.contact-unlocked-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255,255,255,.92);
}

.contact-unlocked-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .video-preview-card,
  .profile-post-row,
  .profile-comment-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .profile-post-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .profile-post-actions button,
  .comment-form-actions button,
  .comment-form-actions label {
    flex: 1;
  }

  .comment-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .comment-item.comment-reply {
    margin-left: 8px;
  }

  .comment-avatar .avatar,
  .comment-avatar-image {
    width: 34px;
    height: 34px;
  }

  .profile-checkin-card,
  .comment-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .points-method-grid {
    grid-template-columns: 1fr;
  }

  .contact-unlock-btn {
    width: 100%;
    min-width: 0;
  }

  .contact-unlocked-row {
    grid-template-columns: 1fr;
  }

  .contact-unlocked-actions {
    flex-wrap: wrap;
  }
}

.admin-user-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-user-tools,
.admin-point-tools {
  align-items: center;
}

.admin-user-tools input,
.admin-point-tools input,
.admin-user-tools select,
.admin-point-tools select {
  min-width: 140px;
}

.admin-user-tools input:first-child,
.admin-point-tools input:first-child {
  min-width: 260px;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-user-cell .avatar,
.admin-user-cell .avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.admin-user-cell span,
.admin-users-table td span {
  min-width: 0;
}

.admin-user-cell strong,
.admin-user-cell small,
.admin-users-table td small {
  display: block;
}

.admin-user-cell small,
.admin-users-table td small {
  margin-top: 3px;
  color: var(--admin-muted, rgba(255, 255, 255, 0.55));
  font-size: 12px;
}

.status-pill.user-status-active {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}

.status-pill.user-status-banned {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0 0;
}

.admin-pagination span {
  color: var(--admin-muted, rgba(255, 255, 255, 0.55));
  font-size: 13px;
}

.admin-user-drawer {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.admin-user-drawer.hidden {
  display: none;
}

.admin-user-drawer-panel {
  position: relative;
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  border-left: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
  background: #10131a;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
}

.admin-drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-text, rgba(255, 255, 255, 0.92));
  font-size: 20px;
}

.admin-user-drawer-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 36px;
  margin-bottom: 22px;
}

.admin-user-drawer-head .avatar,
.admin-user-drawer-head .avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.admin-user-drawer-head h2 {
  margin: 0 0 5px;
}

.admin-user-drawer-head p {
  margin: 0 0 8px;
  color: var(--admin-muted, rgba(255, 255, 255, 0.55));
}

.admin-user-detail-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 11px 14px;
  padding: 16px;
  border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-user-detail-grid span {
  color: var(--admin-muted, rgba(255, 255, 255, 0.55));
}

.admin-user-detail-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.admin-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.admin-drawer-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
}

.admin-drawer-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.admin-activity-list {
  display: grid;
  gap: 8px;
}

.admin-activity-list div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-activity-list strong,
.admin-activity-list small {
  display: block;
}

.admin-activity-list small {
  margin-top: 4px;
  color: var(--admin-muted, rgba(255, 255, 255, 0.55));
}

.compact-tools {
  margin-bottom: 12px;
}

.compact-tools input {
  min-width: 130px;
}

.admin-point-user.active {
  border-color: rgba(255, 111, 125, 0.45);
  background: rgba(255, 111, 125, 0.12);
}

@media (max-width: 1180px) {
  .admin-user-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-user-metrics {
    grid-template-columns: 1fr;
  }

  .admin-user-tools input,
  .admin-user-tools select,
  .admin-user-tools button,
  .admin-point-tools input,
  .admin-point-tools select,
  .admin-point-tools button,
  .compact-tools input,
  .compact-tools button {
    width: 100%;
  }

  .admin-user-drawer-panel {
    width: 100%;
    padding: 20px 16px;
  }

  .admin-user-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-pagination {
    justify-content: center;
  }
}

/* Final realtime dashboard overrides */
body[data-page="admin"] .admin-workspace {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

#adminRealtimeView {
  width: 100%;
}

#adminRealtimeView .admin-card {
  max-width: none;
}

@media (min-width: 1200px) {
  body[data-page="admin"] .admin-workspace {
    padding-left: 32px;
    padding-right: 32px;
  }

  .realtime-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .realtime-main-grid {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
}

@media (max-width: 1199px) {
  .realtime-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realtime-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body[data-page="admin"] .admin-workspace {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .realtime-title-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .realtime-title-row .admin-title-actions {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .realtime-title-row .admin-inline-check,
  .realtime-title-row .plain-btn {
    width: 100%;
    justify-content: center;
  }

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

  .realtime-metric-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .admin-session-table {
    overflow-x: auto;
  }
}
@media (max-width: 430px) {
  .realtime-metrics {
    grid-template-columns: 1fr;
  }
}

/* Final realtime dashboard overrides */
body[data-page="admin"] .admin-workspace {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

#adminRealtimeView {
  width: 100%;
}

#adminRealtimeView .admin-card {
  max-width: none;
}

@media (min-width: 1200px) {
  body[data-page="admin"] .admin-workspace {
    padding-left: 32px;
    padding-right: 32px;
  }

  .realtime-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .realtime-main-grid {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
}

@media (max-width: 1199px) {
  .realtime-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realtime-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body[data-page="admin"] .admin-workspace {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .realtime-title-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .realtime-title-row .admin-title-actions {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .realtime-title-row .admin-inline-check,
  .realtime-title-row .plain-btn {
    width: 100%;
    justify-content: center;
  }

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

  .realtime-metric-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .admin-session-table {
    overflow-x: auto;
  }
}

@media (max-width: 430px) {
  .realtime-metrics {
    grid-template-columns: 1fr;
  }
}

/* Realtime dashboard responsive polish */
@media (min-width: 1200px) {
  body[data-page="admin"] .admin-workspace {
    max-width: 1440px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1199px) {
  .realtime-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realtime-main-grid {
    grid-template-columns: 1fr;
  }

  .compact-live-list {
    max-height: 360px;
  }
}

@media (max-width: 767px) {
  body[data-page="admin"] .admin-workspace {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .realtime-title-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .realtime-title-row .admin-title-actions {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .realtime-title-row .admin-inline-check,
  .realtime-title-row .plain-btn {
    width: 100%;
    justify-content: center;
  }

  .realtime-layout {
    gap: 16px;
  }

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

  .realtime-metric-card {
    min-height: 104px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .realtime-metric-card .metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .realtime-metric-card strong {
    font-size: 30px;
  }

  .realtime-events-card,
  .realtime-hot-card,
  .realtime-session-card {
    padding: 16px;
  }

  .realtime-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .live-page-line,
  .hot-page-top {
    align-items: flex-start;
  }

  .live-page-line span,
  .hot-page-top span {
    white-space: nowrap;
  }

  .compact-live-list {
    max-height: 320px;
  }

  .admin-session-table {
    margin-left: -4px;
    margin-right: -4px;
    padding-bottom: 6px;
  }
}

@media (max-width: 430px) {
  .realtime-metrics {
    grid-template-columns: 1fr;
  }
}

/* XOO admin shell refactor */
body[data-page="admin"] {
  background: radial-gradient(circle at 8% 0%, rgba(255, 111, 125, 0.13), transparent 28vw), radial-gradient(circle at 86% 12%, rgba(255, 179, 92, 0.09), transparent 26vw), #0b0d12;
}

body[data-page="admin"] .site-header {
  display: none;
}

body[data-page="admin"].admin-logged-out .admin-topbar {
  grid-template-columns: 1fr auto;
}

body[data-page="admin"].admin-logged-out .admin-global-search,
body[data-page="admin"].admin-logged-out .admin-topbar-actions {
  display: none;
}

body[data-page="admin"].admin-logged-out .admin-shell {
  display: grid;
  place-items: start center;
  min-height: 100vh;
}

.admin-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 17, 0.9);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.admin-brand-group,
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-header-title {
  color: var(--text);
  font-weight: 850;
  white-space: nowrap;
}

.admin-global-search {
  min-width: 0;
}

.admin-global-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 16px;
}

.admin-icon-button,
.admin-avatar,
.admin-report-pill,
.admin-online-pill {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.admin-icon-button,
.admin-avatar {
  width: 42px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.admin-avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 111, 125, 0.34), rgba(255, 179, 92, 0.16));
  font-weight: 900;
}

.admin-online-pill,
.admin-report-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  white-space: nowrap;
}

.admin-report-pill strong,
.admin-online-pill strong {
  color: var(--brand);
}

.admin-account-menu {
  position: fixed;
  right: 20px;
  top: 64px;
  z-index: 100;
  display: grid;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(18, 20, 27, 0.98);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.admin-account-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0 10px;
}

.admin-account-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 72px 0 0;
}

.admin-panel {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.admin-panel.hidden {
  display: none;
}

.admin-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 19, 26, 0.95), rgba(10, 12, 17, 0.94));
  padding: 16px 12px;
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 14px;
  color: var(--muted);
  font-weight: 800;
}

.admin-sidebar-head .admin-icon-button {
  display: none;
}

.admin-side-nav {
  display: grid;
  gap: 6px;
}

.admin-side-nav details {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  padding: 5px;
}

.admin-side-nav summary,
.admin-side-nav button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 750;
}

.admin-side-nav summary {
  display: flex;
  align-items: center;
  color: var(--text);
}

.admin-side-nav button:hover,
.admin-side-nav button.active {
  background: linear-gradient(135deg, rgba(255, 111, 125, 0.18), rgba(255, 179, 92, 0.08));
  color: #fff;
}

.admin-workspace {
  min-width: 0;
  padding: 24px;
}

.admin-view {
  display: grid;
  gap: 18px;
}

.admin-view.hidden {
  display: none;
}

.admin-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-page-title p,
.admin-page-title h1 {
  margin: 0;
}

.admin-page-title p {
  color: var(--brand);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-metric-card {
  display: grid;
  gap: 5px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 31, 39, 0.88), rgba(17, 19, 25, 0.86));
  color: var(--text);
  text-align: left;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.admin-metric-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 111, 125, 0.12);
}

.admin-metric-card strong {
  font-size: 28px;
}

.admin-metric-card em,
.admin-metric-card small {
  font-style: normal;
}

.admin-metric-card small,
.admin-card-head span {
  color: var(--muted);
}

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

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card-head h2 {
  margin: 0;
}

.admin-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 230px;
}

.admin-bar-item {
  display: grid;
  align-items: end;
  gap: 6px;
  height: 210px;
  text-align: center;
  color: var(--muted);
}

.admin-bar-item span {
  align-self: end;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--brand), rgba(255, 179, 92, 0.72));
}

.admin-bar-item em {
  font-style: normal;
  color: var(--text);
}

.admin-status-chart,
.admin-pending-list {
  display: grid;
  gap: 10px;
}

.admin-status-chart div,
.admin-pending-list {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.admin-status-chart div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-pending-list {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-pending-list span {
  color: var(--muted);
}

.admin-mini-list {
  display: grid;
  gap: 8px;
}

.admin-mini-item {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  padding: 9px 12px;
}

.admin-mini-item small {
  color: var(--muted);
}

.admin-table-card {
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.admin-data-table th,
.admin-data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  text-align: left;
  vertical-align: middle;
}

.admin-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #171a21;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.admin-data-table td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.admin-table-cover {
  width: 52px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.admin-table-actions button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 8px;
}

.danger-action {
  color: #ff7a87 !important;
  border-color: rgba(255, 122, 135, 0.32) !important;
}

.admin-publish-form {
  display: grid;
  gap: 14px;
  max-width: 1120px;
}

.admin-publish-form h2 {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-placeholder-card {
  max-width: 760px;
}

.admin-drawer-mask {
  display: none;
}

@media (max-width: 1180px) {
  .admin-topbar {
    grid-template-columns: minmax(220px, 270px) minmax(220px, 1fr) auto;
  }

  .admin-panel {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .admin-sidebar {
    padding-inline: 8px;
  }

  .admin-sidebar-head span,
  .admin-side-nav summary {
    font-size: 0;
  }

  .admin-side-nav button {
    padding-inline: 8px;
    text-align: center;
  }

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

@media (max-width: 768px) {
  .admin-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    min-height: 64px;
    padding: 0 12px;
  }

  .admin-header-title,
  .admin-global-search,
  .admin-online-pill,
  .admin-report-pill,
  .admin-front-link {
    display: none;
  }

  .admin-topbar-actions {
    justify-content: flex-end;
  }

  .admin-shell {
    padding-top: 64px;
  }

  .admin-panel {
    display: block;
    min-height: calc(100vh - 64px);
  }

  .admin-sidebar {
    position: fixed;
    z-index: 120;
    top: 64px;
    left: 0;
    width: min(320px, calc(100% - 48px));
    height: calc(100vh - 64px);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  body.admin-sidebar-open .admin-drawer-mask {
    display: block;
    position: fixed;
    inset: 64px 0 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.55);
  }

  .admin-sidebar-head .admin-icon-button {
    display: inline-grid;
  }

  .admin-sidebar-head span,
  .admin-side-nav summary {
    font-size: inherit;
  }

  .admin-side-nav button {
    text-align: left;
  }

  .admin-workspace {
    padding: 14px 12px 86px;
  }

  .admin-page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-metric-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-list-tools,
  .admin-batch-actions {
    width: 100%;
  }

  .admin-list-tools input,
  .admin-list-tools select,
  .admin-batch-actions button {
    width: 100%;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-field-wide {
    grid-column: auto;
  }

  .confirm-dialog-actions {
    grid-template-columns: 1fr;
  }

  .admin-data-table,
  .admin-data-table thead,
  .admin-data-table tbody,
  .admin-data-table tr,
  .admin-data-table th,
  .admin-data-table td {
    display: block;
    min-width: 0;
  }

  .admin-data-table thead {
    display: none;
  }

  .admin-data-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
  }

  .admin-data-table td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
  }

  .admin-data-table td::before {
    content: attr(data-label);
    color: var(--muted);
  }

  .admin-table-actions {
    min-width: 0;
  }
}

/* XOO admin compact polish */
body[data-page="admin"] {
  --admin-bg: #0b0d12;
  --admin-sidebar: #10131a;
  --admin-card: #151922;
  --admin-input: #0f1218;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-text: rgba(255, 255, 255, 0.92);
  --admin-muted: rgba(255, 255, 255, 0.55);
  --admin-accent: #ff6f7d;
  background: var(--admin-bg);
  color: var(--admin-text);
  font-size: 14px;
}

body[data-page="admin"] .primary-btn {
  min-height: 40px;
  border-radius: 8px;
  background: var(--admin-accent);
  box-shadow: none;
}

body[data-page="admin"] .plain-btn,
body[data-page="admin"] select,
body[data-page="admin"] input,
body[data-page="admin"] textarea {
  min-height: 40px;
  border-radius: 8px;
}

.admin-topbar {
  grid-template-columns: 220px minmax(260px, 600px) 1fr;
  min-height: 64px;
  padding: 0 24px;
  background: rgba(11, 13, 18, 0.94);
  box-shadow: none;
}

.admin-brand-group {
  gap: 8px;
}

.admin-brand-group .logo {
  min-width: 72px;
  min-height: 38px;
  padding: 5px 10px;
  border-radius: 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 23px;
}

.admin-brand-group .logo::after {
  display: none;
}

.admin-header-title {
  font-size: 14px;
}

.admin-search-toggle {
  display: none;
}

.admin-global-search {
  width: min(100%, 600px);
}

.admin-global-search input {
  min-height: 40px;
  border-radius: 8px;
  background: var(--admin-input);
}

.admin-topbar-actions {
  justify-content: flex-end;
}

.admin-icon-button,
.admin-avatar,
.admin-online-pill {
  min-height: 38px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.admin-icon-button,
.admin-avatar {
  width: 38px;
}

.admin-notify-button {
  position: relative;
}

.admin-notify-button span {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--admin-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.admin-account-menu {
  top: 56px;
  border-radius: 12px;
  background: #151922;
}

.admin-account-menu a,
.admin-account-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--admin-text);
  text-decoration: none;
  padding: 0 10px;
}

.admin-shell {
  padding-top: 64px;
}

.admin-panel {
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  top: 64px;
  width: 220px;
  height: calc(100vh - 64px);
  padding: 14px 10px;
  background: var(--admin-sidebar);
}

.admin-sidebar-head {
  padding: 6px 8px 12px;
}

.admin-side-nav {
  gap: 2px;
}

.admin-side-nav details {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.admin-side-nav summary,
.admin-side-nav button {
  position: relative;
  min-height: 44px;
  border-radius: 8px;
  color: var(--admin-muted);
  font-size: 14px;
  font-weight: 650;
}

.admin-side-nav summary::after {
  content: "鈱?;
  margin-left: auto;
  transition: transform 0.18s ease;
}

.admin-side-nav details:not([open]) summary::after {
  transform: rotate(-90deg);
}

.admin-side-nav details button {
  min-height: 38px;
  padding-left: 26px;
  font-size: 13px;
}

.admin-side-nav button:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--admin-text);
}

.admin-side-nav button.active {
  background: rgba(255, 111, 125, 0.08);
  color: var(--admin-accent);
}

.admin-side-nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--admin-accent);
}

.admin-workspace {
  width: 100%;
  max-width: none;
  padding: 24px 28px;
}

.admin-page-title {
  min-height: 44px;
}

.admin-page-title h1 {
  font-size: 30px;
}

.admin-page-title small {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
}

.admin-card,
.admin-filter-panel {
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-card);
  box-shadow: none;
}

.admin-filter-panel {
  padding: 16px;
}

.admin-list-header {
  display: grid;
  gap: 12px;
}

.admin-list-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-list-tools input {
  width: 280px;
}

.admin-list-tools select {
  width: 150px;
}

.admin-list-tools button {
  width: auto;
  min-width: 82px;
}

.admin-advanced-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-advanced-filters.hidden {
  display: none;
}

.admin-advanced-filters input {
  width: 220px;
}

.admin-batch-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-batch-actions select {
  width: 180px;
  color: var(--admin-text);
}

.admin-batch-actions button {
  width: auto;
}

.admin-batch-actions select option[value="delete"] {
  color: #ff6b6b;
}

.admin-table-card {
  width: 100%;
  padding: 16px;
}

.admin-data-table {
  min-width: 1000px;
}

.admin-data-table th,
.admin-data-table td {
  padding: 10px 9px;
}

.admin-data-table thead th {
  background: #11151d;
}

.admin-table-cover {
  width: 48px;
  height: 62px;
}

.status-published {
  color: #69d89b;
}

.status-draft,
.status-offline,
.status-pending {
  color: #f6a84f;
}

.status-rejected {
  color: #ff6b6b;
}

.admin-table-actions {
  align-items: center;
  gap: 6px;
  min-width: 132px;
}

.admin-table-actions > button,
.admin-row-more > button {
  min-height: 32px;
  border-radius: 8px;
}

.admin-row-more {
  position: relative;
}

.admin-data-table .table-checkbox-column {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: center;
}

.admin-data-table .table-actions-column {
  width: 174px;
  min-width: 174px;
  max-width: 174px;
}

.admin-data-table th.table-checkbox-column,
.admin-data-table td.table-checkbox-column {
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--admin-card);
}

.admin-data-table th.table-actions-column,
.admin-data-table td.table-actions-column {
  position: sticky;
  left: 48px;
  z-index: 5;
  background: var(--admin-card);
  box-shadow: 10px 0 18px rgba(0, 0, 0, 0.16);
}

.admin-data-table thead th.table-checkbox-column,
.admin-data-table thead th.table-actions-column {
  z-index: 9;
  background: #11151d;
}

.admin-data-table td.table-actions-column {
  padding-right: 8px;
}

.admin-data-table td.table-checkbox-column input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--admin-accent);
}

.admin-data-table .table-actions-column .admin-table-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.admin-data-table .table-actions-column .admin-table-actions > button {
  min-height: 30px;
  padding: 0 8px;
  white-space: nowrap;
}

.admin-row-menu {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 20;
  display: grid;
  min-width: 142px;
  padding: 6px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #181c25;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.admin-row-menu.hidden {
  display: none;
}

.admin-row-menu button {
  justify-content: flex-start;
  min-height: 34px;
  border: 0;
  background: transparent;
  text-align: left;
}

.admin-empty-state {
  height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--admin-muted);
  text-align: center;
}

.admin-empty-state span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-accent);
}

.admin-empty-state h2,
.admin-empty-state p {
  margin: 0;
}

.admin-empty-state h2 {
  color: var(--admin-text);
  font-size: 20px;
}

.admin-pagination {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-dashboard-grid,
.admin-metric-grid {
  gap: 16px;
}

.admin-metric-card {
  min-height: 120px;
  border-radius: 12px;
  background: var(--admin-card);
}

@media (max-width: 1180px) {
  .admin-topbar {
    grid-template-columns: 220px minmax(240px, 1fr) auto;
  }

  .admin-panel {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-sidebar-head span,
  .admin-side-nav summary {
    font-size: inherit;
  }

  .admin-side-nav button {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .admin-topbar {
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
    padding: 0 12px;
  }

  .admin-search-toggle {
    display: inline-grid;
  }

  .admin-topbar .logo {
    min-width: 66px;
  }

  .admin-sidebar {
    top: 64px;
    width: min(300px, calc(100% - 48px));
  }

  .admin-workspace {
    padding: 16px 12px 82px;
  }

  .admin-list-tools input,
  .admin-list-tools select,
  .admin-list-tools button,
  .admin-advanced-filters input {
    width: 100%;
  }

  .admin-batch-actions {
    position: sticky;
    bottom: 10px;
    z-index: 30;
    padding: 10px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: rgba(21, 25, 34, 0.94);
    backdrop-filter: blur(14px);
  }

  .admin-batch-actions select {
    flex: 1;
    width: auto;
  }

  .admin-data-table tr {
    background: var(--admin-card);
  }

  .admin-data-table td {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .admin-row-menu {
    position: fixed;
    right: 14px;
    left: 14px;
    top: auto;
    bottom: 74px;
  }
}

/* Mobile audit polish */
.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-toggle {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong, rgba(255, 255, 255, 0.14));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #fff);
  font-weight: 800;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.profile-upload-control {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 88px;
  padding: 14px;
  border: 1px dashed rgba(255, 111, 125, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.profile-upload-control span {
  font-weight: 900;
}

.profile-upload-control small {
  color: var(--muted, #a5a7b0);
}

.empty {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 84px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .password-field {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
}

/* Absolute final mobile overrides: keep this block at EOF */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell,
  .home-shell,
  .profile-shell,
  .admin-shell,
  .detail-shell {
    width: calc(100% - 24px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .search-box {
    grid-template-columns: 35fr 65fr;
    gap: 8px;
  }

  .search-box input {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-box #clearSearch {
    grid-column: 1;
    width: 100%;
  }

  .search-box button[type="submit"] {
    grid-column: 2;
    width: 100%;
  }

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

  .filter-row select,
  .mobile-filter-toggle {
    width: 100%;
    min-width: 0;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
  }

  .advanced-filter {
    display: none;
  }

  body.filters-expanded .advanced-filter {
    display: block;
  }

  .feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-card {
    width: 100%;
    max-width: 100%;
  }

  .card-media {
    aspect-ratio: 4 / 3;
  }

  .card-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    gap: 4px;
    white-space: nowrap;
  }

  .logged-out-card {
    width: calc(100% - 24px);
    max-width: 420px;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 16px;
  }

  .profile-auth-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-content: stretch;
  }

  .profile-auth-actions .primary-btn,
  .profile-auth-actions .plain-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
  }

  .profile-auth-actions .plain-btn {
    border-color: rgba(255, 111, 125, 0.48);
    background: transparent;
    color: #fff;
  }
}

@media (max-width: 430px) {
  .card-media {
    aspect-ratio: 3 / 4;
  }
}

/* Final mobile layout overrides */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell,
  .home-shell,
  .profile-shell,
  .admin-shell,
  .detail-shell {
    width: calc(100% - 24px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .search-box {
    grid-template-columns: 35fr 65fr;
    gap: 8px;
  }

  .search-box input {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-box #clearSearch {
    grid-column: 1;
    width: 100%;
  }

  .search-box button[type="submit"] {
    grid-column: 2;
    width: 100%;
  }

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

  .filter-row select,
  .mobile-filter-toggle {
    width: 100%;
    min-width: 0;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
  }

  .advanced-filter {
    display: none;
  }

  body.filters-expanded .advanced-filter {
    display: block;
  }

  .feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-card {
    width: 100%;
    max-width: 100%;
  }

  .card-media {
    aspect-ratio: 4 / 3;
  }

  .card-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    gap: 4px;
    white-space: nowrap;
  }

  .logged-out-card {
    width: calc(100% - 24px);
    max-width: 420px;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 16px;
  }

  .profile-auth-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-content: stretch;
  }

  .profile-auth-actions .primary-btn,
  .profile-auth-actions .plain-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
  }

  .profile-auth-actions .plain-btn {
    border-color: rgba(255, 111, 125, 0.48);
    background: transparent;
    color: #fff;
  }
}

@media (max-width: 430px) {
  .card-media {
    aspect-ratio: 3 / 4;
  }
}

/* Mobile-first responsive repair */
.mobile-filter-toggle {
  display: none;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell,
  .home-shell,
  .profile-shell,
  .admin-shell,
  .detail-shell {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto 32px;
  }

  .site-header {
    min-height: 64px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 12px;
  }

  .main-nav {
    min-width: 0;
    justify-self: center;
    overflow: hidden;
  }

  .main-nav a,
  .main-nav span {
    min-width: 56px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .search-panel,
  .admin-card,
  .admin-login-card,
  .auth-card,
  .profile-card,
  .profile-content,
  .edit-profile-form,
  .detail-info-card,
  .detail-content,
  .comments,
  .recommend-section {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }

  .search-panel {
    gap: 12px;
    padding: 12px;
    margin: 12px auto 18px;
  }

  .search-box {
    display: grid;
    grid-template-columns: 35fr 65fr;
    gap: 8px;
  }

  .search-box input {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 50px;
  }

  .search-box #clearSearch {
    grid-column: 1;
    width: 100%;
  }

  .search-box button[type="submit"] {
    grid-column: 2;
    width: 100%;
  }

  .feed-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .feed-tab {
    width: 100%;
    min-width: 0;
    padding: 0 4px;
    font-size: 13px;
  }

  .filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .filter-row select,
  .mobile-filter-toggle {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  #cityFilter,
  #districtFilter {
    grid-column: span 1;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
  }

  .advanced-filter {
    display: none;
  }

  body.filters-expanded .advanced-filter {
    display: block;
  }

  .feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-card {
    width: 100%;
    border-radius: 16px;
  }

  .card-media {
    aspect-ratio: 4 / 3;
    border-radius: 16px 16px 0 0;
  }

  .card-media img {
    object-position: center;
  }

  .card-overlay {
    bottom: 52px;
    padding: 58px 12px 12px;
  }

  .card-overlay h3 {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .card-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .action-btn {
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .action-btn span:first-child {
    font-size: 15px;
    line-height: 1;
  }

  .auth-shell {
    width: 100%;
    min-height: auto;
    padding: 12px 0 28px;
    place-items: start center;
  }

  .logged-out-card {
    width: calc(100% - 24px);
    max-width: 420px;
    min-height: auto;
    margin: 0 auto;
    padding: 22px 16px;
    gap: 12px;
  }

  .profile-auth-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-auth-actions .primary-btn,
  .profile-auth-actions .plain-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
  }

  .profile-auth-actions .plain-btn {
    border-color: rgba(255, 111, 125, 0.48);
    background: transparent;
    color: #fff;
  }

  .profile-card,
  .profile-dashboard,
  .edit-profile-form {
    width: 100%;
  }

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

  .profile-section-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .profile-auth-actions {
    justify-content: center;
  }

  .profile-auth-actions .primary-btn,
  .profile-auth-actions .plain-btn {
    width: 140px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
  }
}

@media (max-width: 430px) {
  .card-media {
    aspect-ratio: 3 / 4;
  }

  .search-panel::before {
    display: none;
  }
}

@media (max-width: 360px) {
  .page-shell,
  .home-shell,
  .profile-shell,
  .admin-shell,
  .detail-shell {
    width: calc(100% - 24px);
  }

  .action-btn {
    font-size: 11px;
    gap: 3px;
  }
}

/* Lin 2026 product UI refactor */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --surface-glass: rgba(21, 23, 28, 0.72);
  --surface-card: rgba(26, 28, 34, 0.86);
  --surface-raised: rgba(35, 38, 46, 0.9);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.34);
  --shadow-hover: 0 26px 70px rgba(0, 0, 0, 0.46);
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 111, 125, 0.07), transparent 360px),
    radial-gradient(circle at 18% -8%, rgba(255, 111, 125, 0.2), transparent 32vw),
    radial-gradient(circle at 82% 8%, rgba(88, 166, 255, 0.13), transparent 30vw),
    #0b0c0f;
  color: #f7f8fb;
  font-family: Inter, "HarmonyOS Sans SC", "Noto Sans SC", "Noto Sans", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 68%);
}

.site-header,
.detail-topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(9, 10, 13, 0.66);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.site-header {
  grid-template-columns: 160px minmax(0, 1fr) 160px;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 86px;
  min-height: 42px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 111, 125, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 111, 125, 0.16), rgba(255, 179, 92, 0.07)),
    rgba(255, 255, 255, 0.045);
  color: transparent;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 10px 28px rgba(255, 111, 125, 0.1);
}

.logo::before {
  content: "XOO";
  background: linear-gradient(135deg, var(--brand), #ff8a98 48%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 28px rgba(255, 111, 125, 0.24);
}

.logo::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-3);
  box-shadow: 0 0 16px rgba(255, 179, 92, 0.72);
}

.main-nav {
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  justify-self: center;
}

.main-nav a,
.main-nav span {
  min-width: 86px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 850;
}

.main-nav a.active {
  background: linear-gradient(135deg, rgba(255, 111, 125, 0.22), rgba(255, 179, 92, 0.1));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-header::after {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 111, 125, 0.28), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.page-shell {
  margin-top: var(--space-5);
}

.home-shell {
  width: min(1280px, calc(100% - 28px));
}

.search-panel {
  position: relative;
  gap: var(--space-4);
  margin: var(--space-5) auto var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border-color: var(--hairline-strong);
  background: linear-gradient(180deg, rgba(26, 28, 34, 0.86), rgba(16, 18, 22, 0.82));
  box-shadow: var(--shadow-card);
}

.search-panel::before {
  content: "XOO";
  position: absolute;
  right: 18px;
  top: 14px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 42px;
  font-weight: 950;
  pointer-events: none;
}

.search-box {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--space-3);
}

.search-box input {
  min-height: 56px;
  border-radius: 18px;
  font-size: 16px;
}

.primary-btn,
.plain-btn,
.feed-tab,
.action-btn,
.admin-list-actions button,
.contact-unlock-btn {
  min-height: 48px;
  border-radius: 14px;
}

.primary-btn {
  background: linear-gradient(135deg, #ff7b87, #eb2f61 48%, #c9184a);
  color: #fff;
}

.plain-btn,
.feed-tab,
.action-btn,
.admin-list-actions button {
  background: rgba(255, 255, 255, 0.06);
}

.feed-tabs {
  padding: 4px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.feed-tab {
  border-color: transparent;
  background: transparent;
}

.feed-tab.active {
  background: rgba(255, 111, 125, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.filter-row {
  gap: var(--space-3);
}

.filter-row select {
  min-height: 48px;
  border-radius: 14px;
}

.feed {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.post-card {
  border-radius: 18px;
  border-color: var(--hairline);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
  transition: transform 0.22s var(--easing), box-shadow 0.22s var(--easing), border-color 0.22s var(--easing), filter 0.22s var(--easing);
}

.post-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(255, 111, 125, 0.5);
  box-shadow: var(--shadow-hover);
  filter: saturate(1.05);
}

.card-media {
  border-radius: 18px 18px 0 0;
  aspect-ratio: 3 / 4.05;
}

.card-media img {
  transition: transform 0.4s var(--easing);
}

.post-card:hover .card-media img {
  transform: scale(1.045);
}

.card-overlay {
  bottom: 58px;
  padding: 86px 14px 14px;
}

.card-overlay h3 {
  font-size: 16px;
  font-weight: 950;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.card-location,
.card-distance {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

.card-actions {
  gap: var(--space-2);
  padding: var(--space-2);
  background: rgba(10, 11, 14, 0.92);
}

.action-btn {
  min-height: 40px;
  border-radius: 12px;
  font-size: 12px;
}

.detail-shell {
  width: min(880px, calc(100% - 24px));
}

.detail-layout {
  gap: var(--space-5);
}

.detail-header {
  padding: 0 var(--space-1);
}

.detail-carousel,
.detail-info-card,
.detail-content,
.comments,
.recommend-section {
  border-radius: var(--radius-lg);
  border-color: var(--hairline);
  box-shadow: var(--shadow-card);
}

.detail-carousel {
  min-height: 460px;
}

.info-row {
  padding: 16px 2px;
}

.service-tags span,
.tag-row span {
  min-height: 32px;
  background: rgba(255, 111, 125, 0.13);
  border: 1px solid rgba(255, 111, 125, 0.16);
}

.auth-card,
.admin-login-card,
.profile-card,
.profile-content,
.edit-profile-form,
.admin-card {
  border-radius: var(--radius-xl);
  border-color: var(--hairline-strong);
  background: linear-gradient(180deg, rgba(28, 30, 37, 0.88), rgba(17, 19, 24, 0.86));
  box-shadow: var(--shadow-card);
}

.auth-card,
.admin-login-card {
  padding: var(--space-6);
}

.auth-card h1,
.admin-login-card h1 {
  font-size: 32px;
}

.auth-form,
.admin-login-form,
.edit-profile-form {
  gap: var(--space-3);
}

.auth-form input:not([type="checkbox"]),
.admin-login-form input,
.edit-profile-form input,
.edit-profile-form textarea,
.admin-card input,
.admin-card select,
.admin-card textarea {
  min-height: 50px;
  border-radius: 14px;
}

.profile-shell {
  width: min(980px, calc(100% - 28px));
  gap: var(--space-5);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-6);
}

.profile-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 125, 0.2), transparent 68%);
  pointer-events: none;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
}

.profile-dashboard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.profile-stat-card,
.profile-section-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.2s var(--easing), background 0.2s var(--easing);
}

.profile-stat-card:hover,
.profile-section-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.075);
}

.profile-stat-card strong {
  font-size: 30px;
}

.admin-shell {
  width: min(1320px, calc(100% - 28px));
}

.admin-panel {
  grid-template-columns: minmax(380px, 0.95fr) minmax(440px, 1.05fr);
  gap: var(--space-5);
}

.admin-top-actions {
  padding: var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--surface-glass);
}

.admin-card {
  padding: var(--space-5);
}

.admin-form-grid {
  gap: var(--space-3);
}

.upload-box,
.map-picker {
  min-height: 128px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.mini-post,
.admin-post-row {
  border-radius: var(--radius-lg);
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.045);
}

.admin-post-row {
  padding: var(--space-4);
}

.admin-post-cover {
  width: 104px;
  height: 132px;
  border-radius: var(--radius);
}

.status-pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
}

.admin-title-actions,
.admin-report-metrics,
.admin-report-grid,
.admin-points-layout,
.admin-media-actions,
.admin-banner-form {
  display: grid;
  gap: 12px;
}

.admin-title-actions {
  grid-auto-flow: column;
  align-items: center;
}

.admin-report-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.admin-report-metric,
.admin-sub-card,
.admin-point-user,
.admin-transaction-item,
.admin-media-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 24, 0.72);
  border-radius: 12px;
}

.admin-report-metric {
  padding: 16px;
}

.admin-report-metric span,
.admin-region-item small,
.admin-top-post small,
.admin-media-info small,
.admin-rule-row small,
.admin-point-user small,
.admin-transaction-item small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.admin-report-metric strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 26px;
}

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

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

.admin-sub-card {
  padding: 18px;
}

.admin-sub-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.admin-chart-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  align-items: end;
  min-height: 220px;
  gap: 10px;
}

.admin-chart-bar {
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  min-height: 200px;
  text-align: center;
  gap: 6px;
}

.admin-chart-bar span {
  display: block;
  width: 100%;
  max-width: 34px;
  margin: 0 auto;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #ff6f7d, #d91b4c);
}

.admin-chart-bar small,
.admin-chart-bar em {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-style: normal;
}

.admin-region-list,
.admin-top-posts,
.admin-point-users,
.admin-transaction-list,
.admin-rule-list {
  display: grid;
  gap: 10px;
}

.admin-region-item {
  display: grid;
  gap: 6px;
}

.admin-region-item span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-region-item i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff6f7d;
}

.admin-top-post,
.admin-point-user {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.admin-top-post img,
.admin-top-post i {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #151922;
}

.admin-top-post i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}

.admin-points-layout {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.admin-point-user {
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
}

.admin-point-user .avatar,
.admin-point-user .avatar-fallback {
  width: 44px;
  height: 44px;
}

.admin-point-user span,
.admin-media-info,
.admin-rule-row span {
  min-width: 0;
}

.admin-point-user strong,
.admin-media-info strong,
.admin-rule-row strong,
.admin-top-post strong {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-point-user em,
.admin-point-user i {
  font-style: normal;
  white-space: nowrap;
}

.admin-point-user em {
  color: #ff6f7d;
  font-weight: 800;
}

.admin-transaction-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 6px 12px;
  padding: 12px;
}

.admin-transaction-item strong {
  grid-row: span 2;
  color: #53d18a;
}

.admin-transaction-item.negative strong {
  color: #ff6f7d;
}

.admin-adjust-form,
.admin-rule-row {
  display: grid;
  gap: 10px;
}

.admin-adjust-form {
  margin-top: 16px;
}

.admin-rule-row {
  grid-template-columns: minmax(0, 1fr) 130px 120px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.admin-media-card {
  overflow: hidden;
  padding: 10px;
}

.admin-media-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.admin-media-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #0f1218;
}

.admin-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-info {
  display: grid;
  gap: 4px;
  padding: 10px 2px;
}

.admin-media-actions {
  grid-template-columns: repeat(3, 1fr);
}

.admin-media-actions button {
  min-height: 34px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-banner-form {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
}

.admin-loading,
.admin-empty-inline,
.admin-error-state {
  padding: 24px;
  color: rgba(255, 255, 255, 0.64);
  text-align: center;
}

.admin-error-state h2 {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
}

.admin-empty-state.compact {
  min-height: 160px;
  padding: 28px;
}

.admin-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  white-space: nowrap;
}

.admin-live-list {
  display: grid;
  gap: 10px;
}

.admin-live-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(15, 18, 24, 0.72);
}

.admin-live-item strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-live-item span,
.admin-live-item small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
}

.realtime-metrics .admin-report-metric strong {
  font-size: 28px;
}

body[data-page="admin"] .admin-workspace {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

#adminRealtimeView {
  width: 100%;
}

.realtime-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.realtime-title-copy {
  min-width: 0;
}

.realtime-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 111, 125, 0.28);
  border-radius: 12px;
  background: rgba(255, 111, 125, 0.08);
  color: rgba(255, 214, 218, 0.96);
  font-size: 13px;
}

.realtime-layout {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  transition: opacity 0.18s ease;
}

.realtime-layout.is-refreshing {
  opacity: 0.72;
}

.realtime-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.realtime-metric-card {
  min-height: 110px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.realtime-metric-card .metric-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 111, 125, 0.12);
  color: #ff8a96;
  font-weight: 900;
}

.realtime-metric-card span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.realtime-metric-card strong {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(30px, 2.4vw, 36px);
  line-height: 1;
  letter-spacing: 0;
}

.realtime-metric-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.realtime-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.realtime-events-card,
.realtime-hot-card,
.realtime-session-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(21, 25, 34, 0.76);
  box-shadow: none;
}

.realtime-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.realtime-card-head h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.realtime-card-head span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  white-space: nowrap;
}

.compact-live-list {
  max-height: 430px;
  overflow: auto;
  gap: 0;
}

.compact-live-item {
  display: grid;
  gap: 7px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
  background: transparent;
}

.compact-live-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.compact-live-item:last-child {
  border-bottom: 0;
}

.live-page-line,
.live-meta-line,
.hot-page-top {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.live-page-line strong,
.hot-page-top strong {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-page-line span {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 111, 125, 0.1);
  color: #ff9ca6;
  font-size: 12px;
}

.live-meta-line {
  flex-wrap: wrap;
}

.live-meta-line small {
  color: rgba(255, 255, 255, 0.48);
}

.admin-hot-pages {
  display: grid;
  gap: 14px;
}

.admin-hot-page {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hot-page-top em {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.hot-page-top span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
}

.hot-page-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hot-page-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6f7d, rgba(255, 111, 125, 0.45));
}

.admin-hot-page small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-session-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-session-table .admin-data-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
}

.admin-session-table th,
.admin-session-table td {
  height: 48px;
  vertical-align: middle;
}

.admin-session-table th:nth-child(1),
.admin-session-table td:nth-child(1) {
  width: 120px;
}

.admin-session-table th:nth-child(2),
.admin-session-table td:nth-child(2) {
  width: auto;
}

.admin-session-table th:nth-child(3),
.admin-session-table td:nth-child(3) {
  width: 130px;
}

.admin-session-table th:nth-child(4),
.admin-session-table td:nth-child(4),
.admin-session-table th:nth-child(5),
.admin-session-table td:nth-child(5) {
  width: 170px;
}

.admin-session-table th:nth-child(6),
.admin-session-table td:nth-child(6) {
  width: 110px;
}

.admin-session-table code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.session-page-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-page-cell small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skeleton-card {
  position: relative;
  min-height: 110px;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  animation: realtimeSkeleton 1.2s infinite;
}

@keyframes realtimeSkeleton {
  to {
    transform: translateX(100%);
  }
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(247, 248, 251, 0.94);
  backdrop-filter: blur(18px);
}

@media (max-width: 1080px) {
  .feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .admin-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    grid-template-columns: 72px minmax(0, 1fr) 44px;
  }

  .main-nav {
    padding: 4px;
  }

  .main-nav a,
  .main-nav span {
    min-width: 58px;
    min-height: 38px;
    padding: 0 10px;
  }

  .site-header::after {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .page-shell,
  .home-shell {
    width: calc(100% - 16px);
    margin-top: var(--space-3);
  }

  .search-panel {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
  }

  .feed-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .feed-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
  }

  .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .post-card {
    border-radius: var(--radius);
  }

  .card-media {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .card-overlay {
    bottom: 84px;
    padding: 70px 10px 10px;
  }

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

  .detail-carousel {
    min-height: 300px;
  }

  .auth-card,
  .admin-login-card,
  .profile-card,
  .profile-content,
  .edit-profile-form,
  .admin-card {
    border-radius: var(--radius-lg);
    padding: var(--space-4);
  }

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

  .profile-section-card {
    grid-column: 1 / -1;
  }

  .admin-report-metrics,
  .admin-report-grid,
  .admin-points-layout,
  .admin-banner-form {
    grid-template-columns: 1fr;
  }

  .admin-rule-row,
  .admin-point-user,
  .admin-top-post {
    grid-template-columns: 1fr;
  }

  .admin-media-grid {
    grid-template-columns: 1fr;
  }
}

/* EOF mobile overrides */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell,
  .home-shell,
  .profile-shell,
  .admin-shell,
  .detail-shell {
    width: calc(100% - 24px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .search-box {
    grid-template-columns: 35fr 65fr;
    gap: 8px;
  }

  .search-box input {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-box #clearSearch {
    grid-column: 1;
    width: 100%;
  }

  .search-box button[type="submit"] {
    grid-column: 2;
    width: 100%;
  }

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

  .filter-row select,
  .mobile-filter-toggle {
    width: 100%;
    min-width: 0;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
  }

  .advanced-filter {
    display: none;
  }

  body.filters-expanded .advanced-filter {
    display: block;
  }

  .feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-card {
    width: 100%;
    max-width: 100%;
  }

  .card-media {
    aspect-ratio: 4 / 3;
  }

  .card-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    gap: 4px;
    white-space: nowrap;
  }

  .logged-out-card {
    width: calc(100% - 24px);
    max-width: 420px;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 16px;
  }

  .profile-auth-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-content: stretch;
  }

  .profile-auth-actions .primary-btn,
  .profile-auth-actions .plain-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
  }

  .profile-auth-actions .plain-btn {
    border-color: rgba(255, 111, 125, 0.48);
    background: transparent;
    color: #fff;
  }
}

@media (max-width: 430px) {
  .card-media {
    aspect-ratio: 3 / 4;
  }
}
/* Admin post table: mobile card mode must not keep desktop sticky columns. */
@media (max-width: 768px) {
  .admin-data-table .table-checkbox-column,
  .admin-data-table .table-actions-column,
  .admin-data-table th.table-checkbox-column,
  .admin-data-table td.table-checkbox-column,
  .admin-data-table th.table-actions-column,
  .admin-data-table td.table-actions-column {
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: left;
    background: transparent;
    box-shadow: none;
  }

  .admin-data-table td.table-checkbox-column input {
    justify-self: start;
  }

  .admin-data-table .table-actions-column .admin-table-actions {
    width: 100%;
    overflow-x: auto;
  }
}

/* 20260723: admin live list states and detail carousel polish */
.admin-list-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px;
  color: var(--admin-muted, var(--muted));
  text-align: center;
}

.admin-list-state span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-accent, var(--brand));
}

.admin-loading-state span {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--admin-accent, var(--brand));
  border-radius: 50%;
  animation: xoo-spin 0.85s linear infinite;
}

.admin-list-state h2,
.admin-list-state p {
  margin: 0;
}

.admin-pagination {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-pagination-actions {
  display: inline-flex;
  gap: 8px;
}

@keyframes xoo-spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-topbar {
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
}

.detail-topbar > * {
  align-self: center;
  min-width: 0;
}

.detail-shell {
  width: min(920px, calc(100% - 32px));
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.detail-layout {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.detail-header h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.detail-carousel,
.detail-info-card {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.detail-carousel {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030407;
  touch-action: pan-y;
}

.detail-carousel-image,
.detail-carousel img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  display: block;
  object-fit: contain;
  background: #030407;
}

.detail-carousel.image-error .detail-carousel-image {
  opacity: 0;
}

.detail-carousel.image-error::after {
  content: "鍥剧墖鍔犺浇澶辫触";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #08090d;
}

.carousel-arrow {
  top: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.68);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(243, 107, 117, 0.78);
  outline: none;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.carousel-arrow.left {
  left: 16px;
}

.carousel-arrow.right {
  right: 16px;
}

.carousel-dots {
  left: 50%;
  bottom: 14px;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 6;
}

.carousel-dots::-webkit-scrollbar {
  display: none;
}

.carousel-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease, transform 160ms ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  outline: none;
}

.carousel-dot.active {
  width: 22px;
  background: #fff;
}

@media (max-width: 767px) {
  .detail-topbar {
    min-height: 60px;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    padding-inline: 10px;
  }

  .detail-shell {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .detail-carousel {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .carousel-arrow.left {
    left: 8px;
  }

  .carousel-arrow.right {
    right: 8px;
  }

  .carousel-dots {
    bottom: 10px;
    gap: 6px;
  }
}

/* 20260725: desktop detail gallery must preserve original image ratio. */
.detail-carousel {
  display: grid;
  gap: 12px;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  touch-action: pan-y;
}

.detail-carousel-stage {
  position: relative;
  width: 100%;
  height: clamp(520px, 68vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.detail-carousel-image,
.detail-carousel-stage img,
.detail-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: 100%;
  max-height: 100% !important;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.detail-carousel.image-error::after {
  display: none;
}

.detail-carousel.image-error .detail-carousel-stage::after {
  content: "鍥剧墖鍔犺浇澶辫触";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #08090d;
}

.carousel-dots {
  position: static;
  left: auto;
  bottom: auto;
  max-width: 100%;
  transform: none;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  padding: 2px 16px 0;
}

@media (min-width: 1024px) {
  .detail-shell,
  .detail-layout,
  .detail-carousel,
  .detail-info-card {
    width: min(920px, calc(100vw - 80px));
    max-width: 920px;
  }

  .detail-carousel-stage {
    height: clamp(520px, 68vh, 760px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .detail-carousel-stage {
    height: clamp(480px, 62vh, 660px);
  }
}

@media (max-width: 767px) {
  .detail-carousel {
    gap: 10px;
  }

  .detail-carousel-stage {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }

  .carousel-dots {
    bottom: auto;
    padding-top: 0;
  }
}

/* 20260726: unified home filters, feed states, and detail carousel alignment. */
.filter-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) repeat(4, minmax(138px, 1fr));
  align-items: center;
  gap: 12px;
}

.filter-row select,
.filter-select {
  width: 100%;
  min-width: 0;
}

.filter-row select,
.filter-select-button {
  height: 48px;
  min-height: 48px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  background-color: var(--bg-input, #17181d);
  color: var(--text-main, #f5f5f7);
  font-size: 14px;
  font-weight: 800;
}

.filter-select {
  position: relative;
  flex: 1 1 150px;
}

.filter-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0 14px;
  cursor: pointer;
}

.filter-select-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-select-arrow {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1;
  transition: transform 160ms ease;
}

.filter-select.open .filter-select-arrow {
  transform: rotate(180deg);
}

.filter-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: none;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  background: #17181d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.filter-select.open .filter-select-menu {
  display: grid;
  gap: 4px;
}

.filter-select-option {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.filter-select-option:hover,
.filter-select-option:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.filter-select-option.active {
  background: rgba(255, 111, 125, 0.18);
  color: #ff7b8c;
}

.post-list-state,
.feed-loader,
.feed-skeleton,
.post-list-empty,
.post-list-error {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 18px);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted, rgba(255, 255, 255, 0.58));
  text-align: center;
  box-sizing: border-box;
}

.post-list-state strong {
  color: var(--text-main, #f5f5f7);
  font-size: 17px;
}

.post-list-state span {
  color: var(--muted, rgba(255, 255, 255, 0.58));
  font-size: 14px;
}

.feed-loader[hidden] {
  display: none !important;
}

.detail-carousel {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  touch-action: pan-y;
}

.detail-carousel-stage {
  position: relative;
  width: 100%;
  height: clamp(520px, 68vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.detail-carousel-image,
.detail-carousel-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: 100%;
  max-height: 100% !important;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.detail-carousel.image-error::after {
  display: none;
}

.detail-carousel.image-error .detail-carousel-stage::after {
  content: "图片加载失败";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #08090d;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  transform: translateY(-50%);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.72);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.carousel-arrow.left {
  left: 16px;
}

.carousel-arrow.right {
  right: 16px;
}

.carousel-dots {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 100%;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  transform: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.carousel-dots::-webkit-scrollbar {
  display: none;
}

.carousel-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.carousel-dot.active {
  width: 22px;
  background: #fff;
}

@media (min-width: 1024px) {
  .detail-shell,
  .detail-layout,
  .detail-carousel,
  .detail-info-card {
    width: min(920px, calc(100vw - 80px));
    max-width: 920px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-carousel-stage {
    height: clamp(460px, 62vh, 660px);
  }
}

@media (max-width: 767px) {
  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-row select,
  .filter-select,
  .mobile-filter-toggle {
    width: 100%;
    min-width: 0;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
  }

  .advanced-filter {
    display: none;
  }

  body.filters-expanded .advanced-filter {
    display: block;
  }

  .filter-select.open .filter-select-menu {
    display: grid;
  }

  .detail-carousel {
    gap: 10px;
  }

  .detail-carousel-stage {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 30px;
  }

  .carousel-arrow.left {
    left: 8px;
  }

  .carousel-arrow.right {
    right: 8px;
  }

  .post-list-state,
  .feed-loader,
  .feed-skeleton,
  .post-list-empty,
  .post-list-error {
    min-height: 112px;
    padding: 18px;
  }
}

/* 20260727 final frontend UI guard: keep this block last. */
:root {
  --xoo-bg-page: #080a0f;
  --xoo-surface-1: #11141b;
  --xoo-surface-2: #171b23;
  --xoo-surface-3: #1d222c;
  --xoo-border: rgba(255, 255, 255, 0.1);
  --xoo-border-strong: rgba(255, 255, 255, 0.16);
  --xoo-text: rgba(255, 255, 255, 0.94);
  --xoo-text-2: rgba(255, 255, 255, 0.66);
  --xoo-text-3: rgba(255, 255, 255, 0.44);
  --xoo-brand: #f36b7b;
  --xoo-brand-2: #ef426a;
  --xoo-danger: #ff6578;
  --xoo-success: #3ed18f;
  --xoo-radius-xl: 20px;
  --xoo-radius-lg: 16px;
  --xoo-radius-md: 12px;
  --xoo-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  --xoo-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body:not([data-page="admin"]) {
  background:
    radial-gradient(circle at 18% -10%, rgba(243, 107, 123, 0.1), transparent 30%),
    linear-gradient(180deg, #0a0c11 0%, var(--xoo-bg-page) 42%, #07090d 100%);
  color: var(--xoo-text);
  font-family: Inter, "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body:not([data-page="admin"]) *,
body:not([data-page="admin"]) *::before,
body:not([data-page="admin"]) *::after {
  box-sizing: border-box;
}

body:not([data-page="admin"]) img,
body:not([data-page="admin"]) video,
body:not([data-page="admin"]) canvas {
  max-width: 100%;
}

body:not([data-page="admin"]) button,
body:not([data-page="admin"]) a,
body:not([data-page="admin"]) input,
body:not([data-page="admin"]) select,
body:not([data-page="admin"]) textarea {
  -webkit-tap-highlight-color: transparent;
}

body:not([data-page="admin"]) button:focus-visible,
body:not([data-page="admin"]) a:focus-visible,
body:not([data-page="admin"]) input:focus-visible,
body:not([data-page="admin"]) select:focus-visible,
body:not([data-page="admin"]) textarea:focus-visible {
  outline: 2px solid rgba(243, 107, 123, 0.7);
  outline-offset: 2px;
}

body:not([data-page="admin"]) .site-header,
body:not([data-page="admin"]) .detail-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  padding-inline: max(16px, calc((100vw - 1440px) / 2 + 24px));
  border-bottom: 1px solid var(--xoo-border);
  background: rgba(8, 10, 15, 0.86);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: none;
}

body:not([data-page="admin"]) .site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

body:not([data-page="admin"]) .site-header::after,
body:not([data-page="admin"]) .logo::before,
body:not([data-page="admin"]) .logo::after {
  content: none !important;
  display: none !important;
}

body:not([data-page="admin"]) .detail-topbar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
}

body:not([data-page="admin"]) .logo,
body:not([data-page="admin"]) .share-icon {
  width: auto;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--xoo-brand);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
}

body:not([data-page="admin"]) .share-icon {
  justify-content: flex-end;
}

body:not([data-page="admin"]) .back-icon {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--xoo-text);
  font-size: 32px;
  line-height: 1;
}

body:not([data-page="admin"]) .back-icon:hover {
  background: rgba(255, 255, 255, 0.07);
}

body:not([data-page="admin"]) .main-nav {
  justify-self: center;
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--xoo-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow-x: auto;
  scrollbar-width: none;
}

body:not([data-page="admin"]) .main-nav::-webkit-scrollbar {
  display: none;
}

body:not([data-page="admin"]) .main-nav a {
  min-width: 78px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--xoo-text-2);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

body:not([data-page="admin"]) .main-nav a.active {
  background: rgba(243, 107, 123, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(243, 107, 123, 0.28);
}

body:not([data-page="admin"]) .page-shell {
  width: min(1440px, calc(100% - 48px));
  max-width: 1440px;
  margin: 12px auto 56px;
}

body:not([data-page="admin"]) .home-shell {
  width: min(1440px, calc(100% - 48px));
}

body:not([data-page="admin"]) .search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  margin: 12px auto 18px;
  padding: 12px;
  border: 1px solid var(--xoo-border);
  border-radius: var(--xoo-radius-xl);
  background: linear-gradient(180deg, rgba(23, 27, 35, 0.92), rgba(13, 16, 23, 0.92));
  box-shadow: var(--xoo-shadow-soft);
}

body:not([data-page="admin"]) .search-panel::before {
  content: none !important;
}

body:not([data-page="admin"]) .search-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 96px;
  align-items: center;
  gap: 8px;
}

body:not([data-page="admin"]) .search-box input,
body:not([data-page="admin"]) .filter-row select,
body:not([data-page="admin"]) .filter-select-button,
body:not([data-page="admin"]) .comment-form textarea,
body:not([data-page="admin"]) .comment-form input:not([type="file"]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--xoo-border);
  border-radius: var(--xoo-radius-md);
  background: rgba(8, 10, 15, 0.72);
  color: var(--xoo-text);
  box-shadow: none;
}

body:not([data-page="admin"]) .search-box input {
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
}

body:not([data-page="admin"]) input::placeholder,
body:not([data-page="admin"]) textarea::placeholder {
  color: var(--xoo-text-3);
}

body:not([data-page="admin"]) select {
  color-scheme: dark;
}

body:not([data-page="admin"]) .primary-btn,
body:not([data-page="admin"]) .plain-btn {
  min-height: 44px;
  border-radius: var(--xoo-radius-md);
  font-weight: 850;
}

body:not([data-page="admin"]) .primary-btn {
  background: linear-gradient(135deg, var(--xoo-brand), var(--xoo-brand-2));
  color: #fff;
  box-shadow: none;
}

body:not([data-page="admin"]) .primary-btn:hover {
  filter: brightness(1.05);
}

body:not([data-page="admin"]) .plain-btn {
  border: 1px solid var(--xoo-border);
  background: rgba(255, 255, 255, 0.065);
  color: var(--xoo-text);
}

body:not([data-page="admin"]) .plain-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

body:not([data-page="admin"]) .plain-btn.is-active,
body:not([data-page="admin"]) .plain-btn.active {
  border-color: rgba(243, 107, 123, 0.3);
  background: rgba(243, 107, 123, 0.12);
  color: #ffd9df;
}

body:not([data-page="admin"]) .location-line {
  grid-column: 1;
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0 2px;
  color: var(--xoo-text-2);
  font-size: 13px;
}

body:not([data-page="admin"]) .location-line::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--xoo-brand);
}

body:not([data-page="admin"]) .location-status {
  font-weight: 760;
  color: var(--xoo-text);
}

body:not([data-page="admin"]) .location-line small {
  color: var(--xoo-text-3);
}

body:not([data-page="admin"]) .location-link {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--xoo-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--xoo-text-2);
  font-size: 12px;
  font-weight: 820;
}

body:not([data-page="admin"]) .feed-tabs {
  grid-column: 2;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--xoo-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow-x: auto;
  scrollbar-width: none;
}

body:not([data-page="admin"]) .feed-tabs::-webkit-scrollbar {
  display: none;
}

body:not([data-page="admin"]) .feed-tab {
  min-width: 74px;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--xoo-text-2);
  font-weight: 900;
  box-shadow: none;
  white-space: nowrap;
}

body:not([data-page="admin"]) .feed-tab.active {
  background: rgba(243, 107, 123, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(243, 107, 123, 0.32);
}

body:not([data-page="admin"]) .filter-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(158px, 1fr) minmax(138px, 0.82fr) minmax(148px, 0.9fr) minmax(148px, 0.9fr) minmax(148px, 0.9fr);
  align-items: center;
  gap: 8px;
}

body:not([data-page="admin"]) .mobile-filter-toggle {
  display: none;
}

body:not([data-page="admin"]) .filter-row select,
body:not([data-page="admin"]) .filter-select,
body:not([data-page="admin"]) .filter-select-button {
  width: 100%;
  min-width: 0;
}

body:not([data-page="admin"]) .filter-row select,
body:not([data-page="admin"]) .filter-select-button {
  padding: 0 38px 0 14px;
  font-size: 14px;
  font-weight: 820;
  text-overflow: ellipsis;
}

body:not([data-page="admin"]) .filter-row select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

body:not([data-page="admin"]) .filter-select {
  position: relative;
}

body:not([data-page="admin"]) .filter-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

body:not([data-page="admin"]) .filter-select-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-page="admin"]) .filter-select-arrow {
  flex: 0 0 auto;
  color: var(--xoo-text-2);
  line-height: 1;
  transition: transform 160ms ease;
}

body:not([data-page="admin"]) .filter-select.open .filter-select-arrow {
  transform: rotate(180deg);
}

body:not([data-page="admin"]) .filter-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 35;
  display: none;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--xoo-border);
  border-radius: 14px;
  background: rgba(17, 20, 27, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

body:not([data-page="admin"]) .filter-select.open .filter-select-menu {
  display: grid;
  gap: 4px;
}

body:not([data-page="admin"]) .filter-select-option {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--xoo-text-2);
  font-size: 14px;
  font-weight: 820;
  text-align: left;
  cursor: pointer;
}

body:not([data-page="admin"]) .filter-select-option:hover,
body:not([data-page="admin"]) .filter-select-option:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

body:not([data-page="admin"]) .filter-select-option.active {
  background: rgba(243, 107, 123, 0.15);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(243, 107, 123, 0.22);
}

body:not([data-page="admin"]) .active-filter-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

body:not([data-page="admin"]) .active-filter-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(243, 107, 123, 0.25);
  border-radius: 999px;
  background: rgba(243, 107, 123, 0.1);
  color: #ffd9df;
  font-size: 12px;
  font-weight: 820;
}

body:not([data-page="admin"]) .feed {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

body:not([data-page="admin"]) .feed.is-loading::after {
  content: "正在刷新...";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid var(--xoo-border);
  border-radius: 999px;
  background: rgba(17, 20, 27, 0.92);
  color: var(--xoo-text-2);
  font-size: 12px;
  font-weight: 820;
}

body:not([data-page="admin"]) .post-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--xoo-border);
  border-radius: var(--xoo-radius-lg);
  background: linear-gradient(180deg, rgba(23, 27, 35, 0.98), rgba(13, 16, 23, 0.98));
  box-shadow: var(--xoo-shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body:not([data-page="admin"]) .post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 107, 123, 0.34);
  box-shadow: var(--xoo-shadow);
  filter: none;
}

body:not([data-page="admin"]) .card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(135deg, #151922, #080a0f);
}

body:not([data-page="admin"]) .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.24s ease;
}

body:not([data-page="admin"]) .post-card:hover .card-media img {
  transform: scale(1.025);
}

body:not([data-page="admin"]) .card-media.image-error img {
  opacity: 0;
}

body:not([data-page="admin"]) .card-media.image-error::after {
  content: "XOO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 24px;
  font-weight: 950;
  background: linear-gradient(135deg, #171b23, #0d1017);
}

body:not([data-page="admin"]) .card-overlay {
  display: none !important;
}

body:not([data-page="admin"]) .verify-badge,
body:not([data-page="admin"]) .card-media-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

body:not([data-page="admin"]) .verify-badge {
  left: 10px;
}

body:not([data-page="admin"]) .card-media-badge {
  right: 10px;
}

body:not([data-page="admin"]) .card-body {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px 13px 12px;
}

body:not([data-page="admin"]) .card-body h3 {
  min-height: 42px;
  margin: 0;
  color: var(--xoo-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:not([data-page="admin"]) .card-location,
body:not([data-page="admin"]) .card-distance,
body:not([data-page="admin"]) .card-meta {
  min-width: 0;
  color: var(--xoo-text-2);
  font-size: 12px;
  font-weight: 760;
}

body:not([data-page="admin"]) .card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

body:not([data-page="admin"]) .card-location span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not([data-page="admin"]) .card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body:not([data-page="admin"]) .card-meta strong {
  color: var(--xoo-brand);
  font-size: 13px;
}

body:not([data-page="admin"]) .card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body:not([data-page="admin"]) .card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 9px;
  border-top: 1px solid var(--xoo-border);
  background: rgba(255, 255, 255, 0.025);
}

body:not([data-page="admin"]) .action-btn {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--xoo-text-2);
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

body:not([data-page="admin"]) .action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body:not([data-page="admin"]) .action-btn.active {
  border-color: rgba(243, 107, 123, 0.25);
  background: rgba(243, 107, 123, 0.12);
  color: #ffd9df;
}

body:not([data-page="admin"]) .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  vertical-align: middle;
}

body:not([data-page="admin"]) .post-list-state,
body:not([data-page="admin"]) .feed-loader,
body:not([data-page="admin"]) .feed-skeleton,
body:not([data-page="admin"]) .post-list-empty,
body:not([data-page="admin"]) .post-list-error {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--xoo-border);
  border-radius: var(--xoo-radius-lg);
  background: rgba(17, 20, 27, 0.82);
  color: var(--xoo-text-2);
  text-align: center;
  box-shadow: var(--xoo-shadow-soft);
}

body:not([data-page="admin"]) .post-list-state strong {
  color: var(--xoo-text);
  font-size: 18px;
}

body:not([data-page="admin"]) .post-list-state span {
  color: var(--xoo-text-2);
  font-size: 14px;
}

body:not([data-page="admin"]) .feed-loader {
  width: min(1440px, 100%);
  margin: 16px auto 0;
  min-height: 54px;
  padding: 0 18px;
}

body:not([data-page="admin"]) .feed-loader[hidden] {
  display: none !important;
}

body:not([data-page="admin"]) .detail-shell {
  width: min(1180px, calc(100% - 48px));
}

body:not([data-page="admin"]) .detail-layout {
  width: min(1040px, 100%);
  max-width: 1040px;
  display: grid;
  gap: 18px;
  margin-inline: auto;
}

body:not([data-page="admin"]) .detail-header {
  padding: 4px 0 0;
}

body:not([data-page="admin"]) .detail-header h1 {
  margin: 0 0 8px;
  max-width: 100%;
  color: var(--xoo-text);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:not([data-page="admin"]) .detail-sub {
  color: var(--xoo-text-3);
  font-size: 13px;
  font-weight: 760;
}

body:not([data-page="admin"]) .detail-carousel,
body:not([data-page="admin"]) .detail-info-card,
body:not([data-page="admin"]) .detail-actions,
body:not([data-page="admin"]) .detail-content,
body:not([data-page="admin"]) .comments,
body:not([data-page="admin"]) .recommend-section,
body:not([data-page="admin"]) .detail-video-panel {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--xoo-border);
  border-radius: var(--xoo-radius-xl);
  background: rgba(17, 20, 27, 0.82);
  box-shadow: var(--xoo-shadow-soft);
}

body:not([data-page="admin"]) .detail-carousel {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: rgba(11, 13, 18, 0.82);
  overflow: visible;
  touch-action: pan-y;
}

body:not([data-page="admin"]) .detail-carousel-stage {
  --carousel-image-width: 100%;
  position: relative;
  width: 100%;
  height: clamp(460px, 68vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

body:not([data-page="admin"]) .detail-carousel-image,
body:not([data-page="admin"]) .detail-carousel-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: 100%;
  max-height: 100% !important;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}

body:not([data-page="admin"]) .detail-carousel.image-error::after {
  display: none;
}

body:not([data-page="admin"]) .detail-carousel.image-error .detail-carousel-stage::after {
  content: "图片加载失败";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--xoo-text-2);
  background: #08090d;
}

body:not([data-page="admin"]) .carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.68);
  color: #fff;
  font-size: 0;
  line-height: 1;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body:not([data-page="admin"]) .carousel-arrow .ui-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body:not([data-page="admin"]) .carousel-arrow.left {
  left: max(12px, calc((100% - var(--carousel-image-width, 100%)) / 2 + 12px));
}

body:not([data-page="admin"]) .carousel-arrow.right {
  right: max(12px, calc((100% - var(--carousel-image-width, 100%)) / 2 + 12px));
}

body:not([data-page="admin"]) .carousel-arrow:hover {
  background: rgba(243, 107, 123, 0.74);
}

body:not([data-page="admin"]) .carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

body:not([data-page="admin"]) .carousel-arrow:disabled {
  cursor: default;
  opacity: 0.38;
  pointer-events: none;
}

body:not([data-page="admin"]) .carousel-dots,
body:not([data-page="admin"]) .carousel-counter {
  position: static;
  width: 100%;
  max-width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--xoo-text-2);
  font-size: 13px;
  font-weight: 850;
  overflow-x: auto;
  scrollbar-width: none;
}

body:not([data-page="admin"]) .carousel-dots::-webkit-scrollbar {
  display: none;
}

body:not([data-page="admin"]) .carousel-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

body:not([data-page="admin"]) .carousel-dot.active {
  width: 24px;
  background: #fff;
}

body:not([data-page="admin"]) .detail-info-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  padding: 14px 18px;
}

body:not([data-page="admin"]) .info-row {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body:not([data-page="admin"]) .info-row-wide,
body:not([data-page="admin"]) .info-row-contact {
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, 0.26fr) minmax(0, 1fr);
}

body:not([data-page="admin"]) .info-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--xoo-text-2);
  font-size: 13px;
  font-weight: 850;
}

body:not([data-page="admin"]) .info-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--xoo-brand);
  background: rgba(243, 107, 123, 0.08);
}

body:not([data-page="admin"]) .info-icon .ui-icon {
  width: 16px;
  height: 16px;
}

body:not([data-page="admin"]) .info-value {
  min-width: 0;
  color: var(--xoo-text);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body:not([data-page="admin"]) .service-tags {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

body:not([data-page="admin"]) .service-tags span:not(.muted-value) {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(243, 107, 123, 0.24);
  border-radius: 999px;
  background: rgba(243, 107, 123, 0.11);
  color: #ffd9df;
  font-size: 12px;
  font-weight: 850;
}

body:not([data-page="admin"]) .muted-value {
  color: var(--xoo-text-3);
  font-weight: 740;
}

body:not([data-page="admin"]) .contact-lock-panel {
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

body:not([data-page="admin"]) .contact-lock-meta {
  display: grid;
  gap: 4px;
  color: var(--xoo-text-2);
  font-size: 13px;
  line-height: 1.45;
}

body:not([data-page="admin"]) .contact-lock-meta small {
  color: var(--xoo-text-3);
  font-size: 12px;
}

body:not([data-page="admin"]) .contact-unlocked-panel {
  display: grid;
  gap: 10px;
}

body:not([data-page="admin"]) .contact-unlocked-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--xoo-border);
  border-radius: var(--xoo-radius-md);
  background: rgba(255, 255, 255, 0.035);
}

body:not([data-page="admin"]) .contact-unlocked-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

body:not([data-page="admin"]) .contact-unlocked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body:not([data-page="admin"]) .contact-unlocked-actions .plain-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

body:not([data-page="admin"]) .detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

body:not([data-page="admin"]) .detail-actions-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body:not([data-page="admin"]) .detail-actions .plain-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

body:not([data-page="admin"]) .danger-soft {
  color: #ffc0c8;
}

body:not([data-page="admin"]) .detail-content,
body:not([data-page="admin"]) .comments,
body:not([data-page="admin"]) .recommend-section,
body:not([data-page="admin"]) .detail-video-panel {
  padding: 18px;
}

body:not([data-page="admin"]) .detail-content h2,
body:not([data-page="admin"]) .comments h2,
body:not([data-page="admin"]) .recommend-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

body:not([data-page="admin"]) .detail-content p {
  margin: 0;
  color: var(--xoo-text);
  font-size: 16px;
  line-height: 1.82;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body:not([data-page="admin"]) .comment-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--xoo-border);
  border-radius: var(--xoo-radius-lg);
  background: rgba(8, 10, 15, 0.52);
}

body:not([data-page="admin"]) .comment-form textarea {
  min-height: 112px;
  height: auto;
  padding: 14px;
  resize: vertical;
}

body:not([data-page="admin"]) .comment-form textarea:focus,
body:not([data-page="admin"]) .search-box input:focus,
body:not([data-page="admin"]) .filter-row select:focus,
body:not([data-page="admin"]) .filter-select-button:focus {
  border-color: rgba(243, 107, 123, 0.5);
  box-shadow: 0 0 0 4px rgba(243, 107, 123, 0.12);
  outline: none;
}

body:not([data-page="admin"]) .comment-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body:not([data-page="admin"]) .comment-form-actions .plain-btn,
body:not([data-page="admin"]) .comment-form-actions .primary-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body:not([data-page="admin"]) .comment-upload-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body:not([data-page="admin"]) .comment-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:not([data-page="admin"]) .comment-image-chip {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--xoo-border);
  border-radius: var(--xoo-radius-md);
  background: var(--xoo-surface-2);
}

body:not([data-page="admin"]) .comment-image-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body:not([data-page="admin"]) .remove-comment-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
}

body:not([data-page="admin"]) .support-fab {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-width: 118px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--xoo-brand), var(--xoo-brand-2));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(239, 66, 106, 0.3);
}

body:not([data-page="admin"]) .support-widget {
  max-width: min(390px, calc(100vw - 24px));
}

@media (min-width: 1600px) {
  body:not([data-page="admin"]) .page-shell,
  body:not([data-page="admin"]) .home-shell {
    width: min(1440px, calc(100% - 64px));
  }
}

@media (max-width: 1360px) {
  body:not([data-page="admin"]) .feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not([data-page="admin"]) .filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  body:not([data-page="admin"]) .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not([data-page="admin"]) .detail-shell {
    width: min(920px, calc(100% - 40px));
  }

  body:not([data-page="admin"]) .detail-carousel-stage {
    height: clamp(420px, 62vh, 640px);
  }

  body:not([data-page="admin"]) .detail-info-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body:not([data-page="admin"]) .site-header,
  body:not([data-page="admin"]) .detail-topbar {
    min-height: 60px;
    padding-inline: 12px;
  }

  body:not([data-page="admin"]) .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  body:not([data-page="admin"]) .main-nav {
    justify-self: end;
  }

  body:not([data-page="admin"]) .main-nav a {
    min-width: 62px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  body:not([data-page="admin"]) .page-shell,
  body:not([data-page="admin"]) .home-shell,
  body:not([data-page="admin"]) .detail-shell {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  body:not([data-page="admin"]) .search-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  body:not([data-page="admin"]) .search-box {
    grid-template-columns: 35fr 65fr;
  }

  body:not([data-page="admin"]) .search-box input {
    grid-column: 1 / -1;
  }

  body:not([data-page="admin"]) .search-box #clearSearch,
  body:not([data-page="admin"]) .search-box button[type="submit"] {
    width: 100%;
  }

  body:not([data-page="admin"]) .feed-tabs {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    justify-content: space-between;
  }

  body:not([data-page="admin"]) .feed-tab {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 10px;
  }

  body:not([data-page="admin"]) .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:not([data-page="admin"]) .mobile-filter-toggle {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  body:not([data-page="admin"]) .advanced-filter {
    display: none;
  }

  body.filters-expanded:not([data-page="admin"]) .advanced-filter {
    display: block;
  }

  body:not([data-page="admin"]) .filter-select.open .filter-select-menu {
    display: grid;
  }

  body:not([data-page="admin"]) .feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body:not([data-page="admin"]) .card-media {
    aspect-ratio: 4 / 5;
  }

  body:not([data-page="admin"]) .post-card:hover {
    transform: none;
  }

  body:not([data-page="admin"]) .detail-layout {
    width: 100%;
    gap: 14px;
  }

  body:not([data-page="admin"]) .detail-carousel {
    padding: 8px;
    border-radius: 18px;
  }

  body:not([data-page="admin"]) .detail-carousel-stage {
    height: auto;
    max-height: 68vh;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
  }

  body:not([data-page="admin"]) .carousel-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  body:not([data-page="admin"]) .carousel-arrow.left {
    left: max(8px, calc((100% - var(--carousel-image-width, 100%)) / 2 + 8px));
  }

  body:not([data-page="admin"]) .carousel-arrow.right {
    right: max(8px, calc((100% - var(--carousel-image-width, 100%)) / 2 + 8px));
  }

  body:not([data-page="admin"]) .detail-info-card {
    padding: 12px 14px;
  }

  body:not([data-page="admin"]) .info-row,
  body:not([data-page="admin"]) .info-row-wide,
  body:not([data-page="admin"]) .info-row-contact {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    min-height: 0;
    padding: 12px 0;
  }

  body:not([data-page="admin"]) .contact-lock-panel,
  body:not([data-page="admin"]) .contact-unlocked-row {
    grid-template-columns: 1fr;
  }

  body:not([data-page="admin"]) .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body:not([data-page="admin"]) .detail-actions-left,
  body:not([data-page="admin"]) .detail-actions .plain-btn {
    width: 100%;
  }

  body:not([data-page="admin"]) .detail-actions-left .plain-btn {
    flex: 1 1 0;
  }

  body:not([data-page="admin"]) .comment-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body:not([data-page="admin"]) .support-fab {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-width: 54px;
    width: 54px;
    height: 54px;
    padding: 0;
    font-size: 0;
  }

  body:not([data-page="admin"]) .support-fab::before {
    content: "客服";
    font-size: 13px;
    font-weight: 900;
  }
}

@media (max-width: 430px) {
  body:not([data-page="admin"]) .filter-row {
    grid-template-columns: 1fr;
  }

  body:not([data-page="admin"]) .feed-tab {
    min-height: 38px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not([data-page="admin"]) *,
  body:not([data-page="admin"]) *::before,
  body:not([data-page="admin"]) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* 20260728 stable-2: unified homepage custom dropdown filters. */
body[data-page="home"] .filter-native-source,
body[data-page="home"] .filter-row > select[hidden],
body[data-page="home"] .filter-row > input[type="hidden"] {
  display: none !important;
}

body[data-page="home"] .filter-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  grid-template-columns: none !important;
}

body[data-page="home"] .search-panel {
  position: relative;
  z-index: 30;
}

body[data-page="home"] .filter-row .mobile-filter-toggle {
  display: none;
}

body[data-page="home"] .filter-select {
  position: relative;
  min-width: 0;
  width: auto;
  flex: 0 1 160px;
  max-width: 100%;
  isolation: isolate;
}

body[data-page="home"] .filter-select-city,
body[data-page="home"] .filter-select-district {
  flex-basis: 260px;
}

body[data-page="home"] .filter-select-service {
  flex-basis: 170px;
}

body[data-page="home"] .filter-select.open {
  z-index: 90;
}

body[data-page="home"] .advanced-filter {
  display: block;
}

body[data-page="home"] .filter-select-button {
  width: 100%;
  min-width: 100%;
  height: 46px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body[data-page="home"] .filter-select-button span:first-child {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

body[data-page="home"] .filter-select-button:hover,
body[data-page="home"] .filter-select.open .filter-select-button {
  border-color: rgba(255, 113, 132, 0.35);
  background: linear-gradient(180deg, rgba(255, 113, 132, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-page="home"] .filter-select-button:focus-visible {
  outline: 0;
  border-color: rgba(255, 113, 132, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 113, 132, 0.16);
}

body[data-page="home"] .filter-select.is-disabled .filter-select-button,
body[data-page="home"] .filter-select-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

body[data-page="home"] .filter-select-arrow {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  transform: translateY(-1px);
  transition: transform 0.18s ease;
}

body[data-page="home"] .filter-select.open .filter-select-arrow {
  transform: translateY(-1px) rotate(180deg);
}

body[data-page="home"] .filter-select-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: auto;
  z-index: 80;
  width: max(100%, max-content);
  min-width: 220px;
  max-width: min(520px, calc(100vw - 28px));
  max-height: 310px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(17, 20, 28, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

body[data-page="home"] .filter-select.open .filter-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

body[data-page="home"] .filter-select-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  max-width: 100%;
  transition: background 0.16s ease, color 0.16s ease;
}

body[data-page="home"] .filter-select-option:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .filter-select-option.active {
  background: rgba(255, 113, 132, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 113, 132, 0.24);
}

body[data-page="home"] .filter-select-service .filter-select-menu {
  width: min(420px, calc(100vw - 28px));
}

body[data-page="home"] .filter-service-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px;
}

body[data-page="home"] .filter-service-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body[data-page="home"] .filter-service-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 113, 132, 0.28);
  color: #fff;
}

body[data-page="home"] .filter-service-chip.active {
  border-color: rgba(255, 113, 132, 0.45);
  background: rgba(255, 113, 132, 0.18);
  color: #fff;
}

body[data-page="home"] .filter-select-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .filter-select-actions .plain-btn,
body[data-page="home"] .filter-select-actions .primary-btn {
  min-height: 38px;
  height: 38px;
  border-radius: 10px;
}

@media (max-width: 767px) {
  body[data-page="home"] .filter-row {
    display: flex !important;
    flex-wrap: wrap;
    grid-template-columns: none !important;
    gap: 8px;
  }

  body[data-page="home"] .filter-select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  body[data-page="home"] .filter-select-city,
  body[data-page="home"] .filter-select-district {
    flex-basis: 100%;
  }

  body[data-page="home"] .filter-row .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 100%;
  }

  body[data-page="home"] .advanced-filter {
    display: none;
  }

  body.filters-expanded[data-page="home"] .advanced-filter {
    display: block;
  }

  body[data-page="home"] .filter-select-button {
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding-inline: 13px;
    font-size: 13px;
  }

  body[data-page="home"] .filter-select-button span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-page="home"] .filter-select-menu {
    width: min(320px, calc(100vw - 24px));
  }

  body[data-page="home"] .filter-select:nth-of-type(even) .filter-select-menu {
    left: auto;
    right: 0;
    transform-origin: top right;
  }
}

/* 20260728 home-refresh-grid-1: final homepage list width, empty state, and card media constraints. */
body[data-page="home"] .page-shell,
body[data-page="home"] .home-shell,
body[data-page="home"] .posts-container {
  width: min(1200px, calc(100% - 32px));
  max-width: 1200px;
  margin-inline: auto;
  box-sizing: border-box;
  min-width: 0;
}

body[data-page="home"] .search-panel {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  box-sizing: border-box;
}

body[data-page="home"] #postList.feed {
  display: grid !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

body[data-page="home"] #postList.feed .post-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body[data-page="home"] #postList.feed .post-card > * {
  min-width: 0;
}

body[data-page="home"] #postList.feed .card-media {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body[data-page="home"] #postList.feed .card-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

body[data-page="home"] #postList.feed .post-list-state,
body[data-page="home"] #postList.feed .feed-skeleton,
body[data-page="home"] #postList.feed .post-list-empty,
body[data-page="home"] #postList.feed .post-list-error {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 132px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

body[data-page="home"] #feedLoader.feed-loader {
  width: min(1200px, calc(100% - 32px));
  max-width: 1200px;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  body[data-page="home"] .page-shell,
  body[data-page="home"] .home-shell,
  body[data-page="home"] .posts-container,
  body[data-page="home"] .search-panel,
  body[data-page="home"] #postList.feed {
    max-width: 1200px !important;
  }

  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body[data-page="home"] .page-shell,
  body[data-page="home"] .home-shell,
  body[data-page="home"] .posts-container,
  body[data-page="home"] .search-panel {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="home"] #feedLoader.feed-loader {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 359px) {
  body[data-page="home"] #postList.feed {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Higher-specificity override for older mobile single-column feed rules. */
body[data-page="home"]:not([data-page="admin"]) #postList.feed {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 1400px) {
  body[data-page="home"]:not([data-page="admin"]) #postList.feed {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1399px) {
  body[data-page="home"]:not([data-page="admin"]) #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body[data-page="home"]:not([data-page="admin"]) #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 359px) {
  body[data-page="home"]:not([data-page="admin"]) #postList.feed {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
.profile-verification-card {
  gap: 16px;
}

.verification-panel {
  display: grid;
  gap: 18px;
}

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

.verification-summary > div,
.verification-bind-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 14px;
}

.verification-summary span {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  margin-bottom: 6px;
}

.verification-summary strong {
  color: rgba(255,255,255,.92);
  font-size: 15px;
}

.verification-hint {
  margin: 0;
  color: rgba(255,255,255,.62);
  line-height: 1.6;
}

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

.verification-bind-card {
  display: grid;
  gap: 12px;
}

.verification-bind-card h3 {
  margin: 0;
  font-size: 16px;
}

.verification-bind-card input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.verification-code-row .plain-btn {
  min-width: 120px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .verification-summary,
  .verification-bind-grid {
    grid-template-columns: 1fr;
  }

  .verification-code-row {
    grid-template-columns: 1fr;
  }

  .verification-code-row .plain-btn {
    width: 100%;
  }
}

/* XOO profile community redesign */
body[data-page="profile"] .profile-shell {
  width: min(1400px, calc(100% - 48px));
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 0 42px;
}

.profile-community-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  animation: profileFadeUp 200ms ease both;
}

@keyframes profileFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-community-sidebar,
.profile-hero-card,
.profile-community-card,
.profile-section-panel,
.profile-community-logged-out {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    #11141b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.profile-community-card,
.profile-hero-card,
.profile-sidebar-item,
.profile-quick-card,
.profile-point-tile,
.profile-sidebar-logout {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.profile-community-card:hover,
.profile-hero-card:hover,
.profile-quick-card:hover,
.profile-point-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 143, 0.28);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34);
}

.profile-community-sidebar {
  position: sticky;
  top: 86px;
  min-height: calc(100vh - 112px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-sidebar-heading {
  padding: 8px 10px 10px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-sidebar-list {
  display: grid;
  gap: 4px;
}

.profile-sidebar-item,
.profile-sidebar-logout {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.profile-sidebar-item .ui-icon,
.profile-sidebar-logout .ui-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.profile-sidebar-item:hover,
.profile-sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.94);
}

.profile-sidebar-item.active {
  position: relative;
  background: linear-gradient(90deg, rgba(255, 111, 143, 0.22), rgba(255, 255, 255, 0.035));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 111, 143, 0.16);
}

.profile-sidebar-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: #ff6f8f;
}

.profile-sidebar-logout {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
}

.profile-community-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.profile-hero-card {
  position: relative;
  min-height: 230px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  overflow: hidden;
}

.profile-hero-card::after {
  content: "";
  position: absolute;
  inset: -40% -12% auto auto;
  width: 56%;
  height: 220%;
  background: radial-gradient(circle, rgba(255, 111, 143, 0.24), rgba(255, 111, 143, 0) 66%);
  pointer-events: none;
}

.profile-hero-avatar-wrap {
  position: relative;
  z-index: 1;
}

.profile-hero-avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36);
}

.profile-avatar-camera {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a96, #df2d69);
  color: #fff;
  border: 2px solid #11141b;
  box-shadow: 0 12px 28px rgba(223, 45, 105, 0.28);
  cursor: pointer;
}

.profile-avatar-camera .ui-icon {
  width: 18px;
  height: 18px;
}

.profile-hero-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-hero-name-row h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.profile-vip-badge,
.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.profile-vip-badge {
  background: linear-gradient(135deg, #ff7a96, #df2d69);
  color: #fff;
}

.profile-verified-badge {
  color: #ffc0cf;
  background: rgba(255, 111, 143, 0.13);
  border: 1px solid rgba(255, 111, 143, 0.22);
}

.profile-verified-badge .ui-icon {
  width: 14px;
  height: 14px;
}

.profile-hero-uid,
.profile-hero-bio {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.55;
}

.profile-hero-bio {
  max-width: 640px;
  overflow-wrap: anywhere;
}

.profile-hero-points {
  width: min(380px, 100%);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-hero-points span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.profile-hero-points strong {
  display: block;
  margin-top: 4px;
  color: #ff6f8f;
  font-size: 34px;
  line-height: 1;
}

.profile-hero-actions {
  position: relative;
  z-index: 1;
  justify-self: end;
}

.profile-hero-actions .primary-btn,
.profile-community-card .primary-btn,
.profile-detail-panel .primary-btn,
.profile-detail-panel .plain-btn {
  min-height: 44px;
  border-radius: 12px;
}

.profile-section-panel {
  padding: 24px;
}

.profile-section-title {
  margin-bottom: 16px;
}

.profile-section-title span {
  display: block;
  color: #ff6f8f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.profile-section-title h2 {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(22px, 2vw, 30px);
}

#profileInlineContent {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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

.profile-community-card {
  padding: 20px;
  min-width: 0;
}

.profile-feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  min-height: 142px;
}

.profile-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ff6f8f;
  background: rgba(255, 111, 143, 0.14);
}

.profile-card-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.profile-feature-copy h3,
.profile-card-heading h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
}

.profile-feature-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
}

.profile-feature-stats {
  display: flex;
  gap: 18px;
  align-items: center;
}

.profile-feature-stats > div {
  min-width: 84px;
}

.profile-feature-stats > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-feature-stats span,
.profile-security-lines span {
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  white-space: nowrap;
}

.profile-feature-stats strong,
.profile-security-lines strong {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  white-space: nowrap;
}

.profile-security-lines {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.profile-security-lines button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.profile-security-lines .ui-icon {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.42);
}

.profile-security-lines .is-ok {
  color: #54d38a;
}

.profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-card-heading span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

.profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.profile-quick-card {
  min-height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.profile-quick-card .ui-icon {
  width: 34px;
  height: 34px;
  color: #ff6f8f;
  filter: drop-shadow(0 10px 22px rgba(255, 111, 143, 0.28));
}

.profile-quick-card strong {
  font-size: 15px;
}

.profile-quick-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.profile-points-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}

.profile-point-tile {
  min-height: 106px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title arrow"
    "icon text arrow";
  gap: 2px 14px;
  align-items: center;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  cursor: pointer;
}

.profile-point-tile:last-child {
  border-right: 0;
}

.profile-point-tile > span {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ff6f8f;
  background: rgba(255, 111, 143, 0.14);
}

.profile-point-tile strong {
  grid-area: title;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
}

.profile-point-tile em {
  grid-area: text;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-style: normal;
}

.profile-point-tile > .ui-icon {
  grid-area: arrow;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.42);
}

.profile-point-tile.is-primary {
  background: linear-gradient(135deg, rgba(255, 111, 143, 0.16), rgba(255, 255, 255, 0.02));
}

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

.profile-detail-panel > div,
.profile-placeholder-panel {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-detail-panel span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.profile-detail-panel strong {
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.profile-placeholder-panel {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.profile-placeholder-panel > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ff6f8f;
  background: rgba(255, 111, 143, 0.14);
}

.profile-placeholder-panel .ui-icon {
  width: 28px;
  height: 28px;
}

.profile-placeholder-panel strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.profile-placeholder-panel p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

.profile-community-logged-out {
  width: min(520px, 100%);
  margin: 42px auto;
  padding: 34px;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.profile-community-empty-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 111, 143, 0.26), rgba(255, 255, 255, 0.06));
  color: #ff7a96;
  font-size: 24px;
  font-weight: 950;
}

.profile-community-logged-out h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(24px, 3vw, 32px);
}

.profile-community-logged-out p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

@media (max-width: 1200px) {
  body[data-page="profile"] .profile-shell {
    width: min(100% - 32px, 1120px);
  }

  .profile-community-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .profile-overview-grid,
  .profile-feature-card {
    grid-template-columns: 1fr;
  }

  .profile-feature-stats {
    justify-content: space-between;
  }

  .profile-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-points-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-point-tile:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] .profile-shell {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .profile-community-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-community-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 12px;
  }

  .profile-sidebar-heading {
    display: none;
  }

  .profile-sidebar-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .profile-sidebar-item {
    min-height: 42px;
    justify-content: center;
    padding: 0 8px;
  }

  .profile-sidebar-item span {
    white-space: nowrap;
  }

  .profile-sidebar-logout {
    margin-top: 8px;
    justify-content: center;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 24px 18px;
  }

  .profile-hero-name-row {
    justify-content: center;
  }

  .profile-hero-points {
    margin-left: auto;
    margin-right: auto;
  }

  .profile-hero-actions {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .profile-section-panel {
    padding: 16px;
  }

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

  .profile-quick-grid,
  .profile-points-strip,
  .profile-detail-panel {
    grid-template-columns: 1fr;
  }

  .profile-point-tile {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .profile-point-tile:last-child {
    border-bottom: 0;
  }

  .profile-feature-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-feature-stats > div + div {
    padding-left: 12px;
  }

  .profile-community-logged-out {
    margin: 18px auto;
    padding: 24px 18px;
  }
}

/* XOO profile proportion pass 2 */
body[data-page="profile"] .profile-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  box-sizing: border-box;
  display: block;
  place-items: initial;
}

.profile-community-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.profile-community-sidebar {
  top: 88px;
  min-height: calc(100vh - 120px);
  padding: 16px;
  border-radius: 16px;
  background: #171a22;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.profile-sidebar-item,
.profile-sidebar-logout {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 14px;
}

.profile-sidebar-item.active {
  background: rgba(255, 111, 143, 0.14);
  box-shadow: none;
}

.profile-sidebar-item.active::before {
  top: 11px;
  bottom: 11px;
}

.profile-community-main {
  gap: 24px;
}

.profile-hero-card {
  min-height: 220px;
  max-height: 238px;
  grid-template-columns: auto minmax(0, 1fr) 132px;
  gap: 28px;
  padding: 24px 32px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 111, 143, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    #171a22;
  border-color: rgba(255, 255, 255, 0.07);
}

.profile-hero-card::after {
  opacity: 0.55;
}

.profile-hero-avatar {
  width: 118px;
  height: 118px;
}

.profile-avatar-camera {
  width: 34px;
  height: 34px;
}

.profile-hero-name-row h1 {
  font-size: clamp(30px, 2.35vw, 34px);
}

.profile-hero-uid,
.profile-hero-bio {
  font-size: 14px;
  margin-top: 8px;
}

.profile-hero-points {
  width: auto;
  max-width: 360px;
  margin-top: 14px;
  padding-top: 12px;
}

.profile-hero-points strong {
  font-size: 28px;
}

.profile-hero-actions {
  align-self: center;
  justify-self: center;
}

.profile-hero-actions .primary-btn {
  width: 120px;
  padding-inline: 0;
}

.profile-section-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-section-title {
  display: none;
}

#profileInlineContent {
  gap: 24px;
}

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

.profile-community-card,
.profile-quick-card,
.profile-point-tile,
.profile-detail-panel > div,
.profile-placeholder-panel {
  background: #171a22;
  border-color: rgba(255, 255, 255, 0.07);
}

.profile-feature-card {
  min-height: 158px;
  grid-template-columns: 46px minmax(0, 1fr) auto 104px;
  gap: 14px;
  padding: 24px;
  align-items: center;
}

.profile-feature-copy {
  min-width: 0;
}

.profile-feature-copy h3 {
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-feature-copy p {
  max-width: 220px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.profile-feature-stats {
  gap: 12px;
}

.profile-feature-stats > div {
  min-width: 72px;
}

.profile-feature-stats span,
.profile-security-lines span {
  font-size: 12px;
}

.profile-feature-stats strong,
.profile-security-lines strong {
  font-size: 20px;
}

.profile-feature-card .primary-btn {
  width: 104px;
  padding-inline: 0;
}

.profile-security-lines {
  min-width: 128px;
}

.profile-quick-section {
  display: grid;
  gap: 16px;
}

.profile-quick-section .profile-card-heading {
  margin: 0;
}

.profile-quick-section .profile-card-heading h3 {
  font-size: 20px;
}

.profile-quick-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.profile-quick-card {
  min-height: 144px;
  border-radius: 14px;
  background: #1d2029;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.profile-quick-card .ui-icon {
  width: 31px;
  height: 31px;
}

.profile-quick-card strong {
  font-size: 16px;
}

.profile-quick-card span {
  font-size: 13px;
}

.profile-points-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-point-tile {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: #171a22;
}

.profile-point-tile:last-child,
.profile-point-tile:nth-child(2n) {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-point-tile.is-primary {
  background:
    linear-gradient(135deg, rgba(255, 111, 143, 0.13), rgba(255, 255, 255, 0.025)),
    #171a22;
}

.profile-point-tile.is-primary em {
  color: #ff6f8f;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.profile-point-tile strong {
  font-size: 14px;
}

.profile-point-tile em {
  white-space: nowrap;
}

@media (min-width: 1201px) {
  .profile-community-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  body[data-page="profile"] .profile-shell {
    max-width: 1180px;
    padding: 24px;
  }

  .profile-community-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

  .profile-community-sidebar {
    position: sticky;
    top: 88px;
    min-height: calc(100vh - 120px);
  }

  .profile-hero-card {
    grid-template-columns: auto minmax(0, 1fr);
    max-height: none;
  }

  .profile-hero-actions {
    grid-column: 2;
    justify-self: start;
  }

  .profile-overview-grid,
  .profile-feature-card {
    grid-template-columns: 1fr;
  }

  .profile-feature-card {
    min-height: 160px;
  }

  .profile-feature-stats {
    width: 100%;
  }

  .profile-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-points-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body[data-page="profile"] .profile-shell {
    width: 100%;
    padding: 16px;
  }

  .profile-community-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-community-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 12px;
  }

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

  .profile-hero-card {
    min-height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 18px;
  }

  .profile-hero-avatar {
    width: 110px;
    height: 110px;
  }

  .profile-hero-name-row h1 {
    font-size: 28px;
  }

  .profile-overview-grid,
  .profile-feature-card {
    grid-template-columns: 1fr;
  }

  .profile-feature-card {
    min-height: auto;
    padding: 24px;
  }

  .profile-feature-copy p {
    max-width: none;
  }

  .profile-feature-card .primary-btn,
  .profile-hero-actions .primary-btn {
    width: 100%;
  }

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

  .profile-quick-card {
    min-height: 138px;
  }

  .profile-points-strip {
    grid-template-columns: 1fr;
  }

  .profile-point-tile {
    min-height: 108px;
  }
}

/* XOO User Center V2 - design mockup alignment */
body[data-page="profile"] {
  --profile-bg: #090c12;
  --profile-panel: #141821;
  --profile-panel-2: #1b202b;
  --profile-line: rgba(255, 255, 255, 0.075);
  --profile-line-soft: rgba(255, 255, 255, 0.045);
  --profile-text: rgba(255, 255, 255, 0.94);
  --profile-muted: rgba(255, 255, 255, 0.58);
  --profile-faint: rgba(255, 255, 255, 0.38);
  --profile-brand: #ff5f8a;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 95, 138, 0.13), transparent 30%),
    radial-gradient(circle at 82% 2%, rgba(94, 144, 255, 0.08), transparent 28%),
    var(--profile-bg);
}

body[data-page="profile"] .profile-shell {
  max-width: 1440px;
  padding: 24px 32px 56px;
}

body[data-page="profile"] .profile-community-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

body[data-page="profile"] .profile-community-sidebar {
  top: 88px;
  width: 260px;
  min-height: calc(100vh - 120px);
  padding: 18px 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #121720;
  border: 1px solid var(--profile-line);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

body[data-page="profile"] .profile-sidebar-heading {
  padding: 8px 12px 12px;
  color: var(--profile-faint);
}

body[data-page="profile"] .profile-sidebar-list {
  gap: 5px;
}

body[data-page="profile"] .profile-sidebar-item,
body[data-page="profile"] .profile-sidebar-logout {
  min-height: 46px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.74);
}

body[data-page="profile"] .profile-sidebar-item.active {
  background: rgba(255, 95, 138, 0.15);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 95, 138, 0.08);
}

body[data-page="profile"] .profile-sidebar-item.active::before {
  top: 10px;
  bottom: 10px;
  background: var(--profile-brand);
}

body[data-page="profile"] .profile-community-main {
  gap: 24px;
}

body[data-page="profile"] .profile-hero-card {
  min-height: 206px;
  max-height: 226px;
  grid-template-columns: 118px minmax(0, 1fr) 132px;
  gap: 26px;
  padding: 24px 30px;
  border: 1px solid var(--profile-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 95, 138, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(42, 52, 70, 0.82), rgba(20, 24, 33, 0.94)),
    #151923;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

body[data-page="profile"] .profile-hero-card:hover,
body[data-page="profile"] .profile-community-card:hover,
body[data-page="profile"] .profile-quick-card:hover,
body[data-page="profile"] .profile-point-tile:hover,
body[data-page="profile"] .profile-v2-post-card:hover,
body[data-page="profile"] .profile-v2-comment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.38);
}

body[data-page="profile"] .profile-hero-avatar {
  width: 112px;
  height: 112px;
}

body[data-page="profile"] .profile-avatar-camera {
  width: 34px;
  height: 34px;
}

body[data-page="profile"] .profile-hero-name-row h1 {
  font-size: clamp(28px, 2.2vw, 34px);
  letter-spacing: 0;
}

body[data-page="profile"] .profile-hero-uid,
body[data-page="profile"] .profile-hero-bio {
  margin-top: 7px;
  font-size: 14px;
}

body[data-page="profile"] .profile-hero-points {
  display: grid;
  grid-template-columns: auto auto;
  width: fit-content;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
}

body[data-page="profile"] .profile-hero-points strong {
  font-size: 30px;
}

body[data-page="profile"] .profile-hero-actions .primary-btn {
  width: 120px;
  min-height: 42px;
}

body[data-page="profile"] .profile-section-panel {
  min-width: 0;
}

body[data-page="profile"] #profileInlineContent {
  gap: 24px;
}

body[data-page="profile"] .profile-overview-grid {
  gap: 18px;
}

body[data-page="profile"] .profile-community-card {
  padding: 24px;
  border: 1px solid var(--profile-line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    var(--profile-panel);
}

body[data-page="profile"] .profile-feature-card {
  min-height: 154px;
  grid-template-columns: 50px minmax(170px, 1fr) minmax(180px, auto) 112px;
  gap: 18px;
}

body[data-page="profile"] .profile-card-icon,
body[data-page="profile"] .profile-point-tile > span {
  color: var(--profile-brand);
  background: linear-gradient(145deg, rgba(255, 95, 138, 0.2), rgba(255, 255, 255, 0.04));
}

body[data-page="profile"] .profile-feature-copy h3,
body[data-page="profile"] .profile-card-heading h3 {
  font-size: 18px;
  color: var(--profile-text);
}

body[data-page="profile"] .profile-feature-copy p {
  max-width: 260px;
  color: var(--profile-muted);
}

body[data-page="profile"] .profile-quick-section {
  gap: 16px;
}

body[data-page="profile"] .profile-quick-grid {
  gap: 16px;
}

body[data-page="profile"] .profile-quick-card {
  min-height: 148px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 95, 138, 0.12), transparent 52%),
    var(--profile-panel-2);
  border-color: var(--profile-line-soft);
}

body[data-page="profile"] .profile-quick-card .ui-icon {
  width: 32px;
  height: 32px;
}

body[data-page="profile"] .profile-quick-card strong {
  font-size: 16px;
}

body[data-page="profile"] .profile-points-strip {
  gap: 14px;
}

body[data-page="profile"] .profile-point-tile {
  min-height: 116px;
  border-radius: 16px;
  background: var(--profile-panel);
  border-color: var(--profile-line);
}

body[data-page="profile"] .profile-point-tile.is-primary em {
  font-size: 32px;
}

body[data-page="profile"] .profile-compact-user {
  display: grid;
  grid-template-columns: 42px 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 6px 2px 0;
}

body[data-page="profile"] .profile-compact-back {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--profile-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--profile-text);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

body[data-page="profile"] .profile-compact-back:hover {
  transform: translateX(-2px);
  background: rgba(255, 95, 138, 0.12);
}

body[data-page="profile"] .profile-compact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.74);
}

body[data-page="profile"] .profile-compact-user strong,
body[data-page="profile"] .profile-compact-user span {
  display: block;
}

body[data-page="profile"] .profile-compact-user strong {
  color: var(--profile-text);
  font-size: 16px;
}

body[data-page="profile"] .profile-compact-user span {
  margin-top: 4px;
  color: var(--profile-muted);
  font-size: 13px;
}

body[data-page="profile"] .profile-module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 18px;
}

body[data-page="profile"] .profile-module-header h2 {
  margin: 0;
  color: var(--profile-text);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.16;
}

body[data-page="profile"] .profile-module-header p {
  margin: 8px 0 0;
  color: var(--profile-muted);
  font-size: 14px;
}

body[data-page="profile"] .profile-module-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-page="profile"] .profile-module-count,
body[data-page="profile"] .profile-module-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--profile-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
}

body[data-page="profile"] .profile-module-chip[aria-disabled="true"] {
  opacity: 0.72;
  cursor: default;
}

body[data-page="profile"] .profile-v2-post-list,
body[data-page="profile"] .profile-v2-comment-list {
  gap: 18px;
}

body[data-page="profile"] .profile-v2-post-card,
body[data-page="profile"] .profile-v2-comment-card {
  grid-template-columns: 112px minmax(0, 1fr) 144px;
  gap: 18px;
  min-height: 132px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--profile-panel);
  border: 1px solid var(--profile-line);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

body[data-page="profile"] .profile-post-cover,
body[data-page="profile"] .profile-v2-comment-card .profile-post-cover {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: #090c12;
}

body[data-page="profile"] .profile-post-cover img,
body[data-page="profile"] .profile-post-cover .image-placeholder {
  border-radius: inherit;
}

body[data-page="profile"] .profile-post-info {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
}

body[data-page="profile"] .profile-post-info strong,
body[data-page="profile"] .profile-comment-main strong {
  color: var(--profile-text);
  font-size: 17px;
  font-weight: 820;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body[data-page="profile"] .profile-post-primary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--profile-muted);
  font-size: 13px;
}

body[data-page="profile"] .profile-post-primary-meta b {
  color: var(--profile-brand);
  font-weight: 860;
}

body[data-page="profile"] .profile-post-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

body[data-page="profile"] .profile-post-tags span {
  max-width: 120px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="profile"] .profile-post-info small,
body[data-page="profile"] .profile-comment-main small {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  color: var(--profile-faint);
  font-size: 12px;
}

body[data-page="profile"] .profile-post-info small .ui-icon {
  width: 14px;
  height: 14px;
}

body[data-page="profile"] .profile-post-actions {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 12px;
  min-width: 0;
}

body[data-page="profile"] .profile-post-actions .plain-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
}

body[data-page="profile"] .profile-post-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 760;
}

body[data-page="profile"] .profile-post-state .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--profile-brand);
  fill: currentColor;
}

body[data-page="profile"] .profile-v2-comment-card {
  grid-template-columns: 96px minmax(0, 1fr) 134px;
}

body[data-page="profile"] .profile-v2-comment-card .profile-post-cover {
  width: 96px;
  height: 96px;
}

body[data-page="profile"] .profile-comment-main {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

body[data-page="profile"] .profile-comment-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body[data-page="profile"] .profile-module-empty {
  min-height: 260px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 95, 138, 0.12), transparent 48%),
    var(--profile-panel);
  border: 1px solid var(--profile-line);
}

body[data-page="profile"] .points-panel,
body[data-page="profile"] .profile-messages-panel {
  gap: 18px;
}

body[data-page="profile"] .points-balance-card,
body[data-page="profile"] .points-checkin-card,
body[data-page="profile"] .points-success-card,
body[data-page="profile"] .profile-message-summary {
  border: 1px solid var(--profile-line);
  border-radius: 16px;
  background: var(--profile-panel);
}

body[data-page="profile"] .points-balance-card,
body[data-page="profile"] .profile-message-summary {
  padding: 22px;
}

body[data-page="profile"] .points-checkin-card,
body[data-page="profile"] .points-success-card {
  padding: 20px;
}

body[data-page="profile"] .points-balance-card strong {
  color: var(--profile-brand);
}

body[data-page="profile"] .profile-message-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body[data-page="profile"] .profile-message-summary strong {
  color: var(--profile-text);
  font-size: 18px;
}

body[data-page="profile"] .profile-message-summary p {
  margin: 8px 0 0;
  color: var(--profile-muted);
}

body[data-page="profile"] .profile-message-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1200px) and (min-width: 769px) {
  body[data-page="profile"] .profile-community-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-community-sidebar {
    width: 220px;
  }

  body[data-page="profile"] .profile-feature-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-feature-stats,
  body[data-page="profile"] .profile-security-lines,
  body[data-page="profile"] .profile-feature-card .primary-btn {
    grid-column: 1 / -1;
  }

  body[data-page="profile"] .profile-v2-post-card,
  body[data-page="profile"] .profile-v2-comment-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-post-actions {
    grid-column: 2;
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
  }
}

@media (max-width: 768px) {
  body[data-page="profile"] {
    padding-bottom: 94px;
  }

  body[data-page="profile"] .profile-shell {
    padding: 14px 14px 104px;
  }

  body[data-page="profile"] .profile-community-layout {
    display: flex;
    flex-direction: column;
  }

  body[data-page="profile"] .profile-community-sidebar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    top: auto;
    z-index: 90;
    width: auto;
    min-height: 0;
    padding: 8px;
    border-radius: 18px;
    backdrop-filter: blur(18px);
  }

  body[data-page="profile"] .profile-sidebar-heading,
  body[data-page="profile"] .profile-sidebar-logout {
    display: none;
  }

  body[data-page="profile"] .profile-sidebar-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body[data-page="profile"] .profile-sidebar-list::-webkit-scrollbar {
    display: none;
  }

  body[data-page="profile"] .profile-sidebar-item {
    min-height: 54px;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 7px 8px;
    font-size: 11px;
  }

  body[data-page="profile"] .profile-sidebar-item .ui-icon {
    width: 19px;
    height: 19px;
  }

  body[data-page="profile"] .profile-sidebar-item.active::before {
    left: 50%;
    top: auto;
    bottom: 4px;
    width: 18px;
    height: 3px;
    transform: translateX(-50%);
  }

  body[data-page="profile"] .profile-hero-card {
    min-height: 0;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 22px 18px;
  }

  body[data-page="profile"] .profile-hero-avatar {
    width: 94px;
    height: 94px;
  }

  body[data-page="profile"] .profile-hero-points {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="profile"] .profile-overview-grid,
  body[data-page="profile"] .profile-feature-card,
  body[data-page="profile"] .profile-points-strip {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .profile-feature-card {
    min-height: 0;
    padding: 20px;
  }

  body[data-page="profile"] .profile-feature-stats {
    width: 100%;
  }

  body[data-page="profile"] .profile-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .profile-quick-card {
    min-height: 124px;
  }

  body[data-page="profile"] .profile-module-header,
  body[data-page="profile"] .profile-message-summary {
    display: grid;
  }

  body[data-page="profile"] .profile-module-actions,
  body[data-page="profile"] .profile-message-actions {
    justify-content: start;
  }

  body[data-page="profile"] .profile-compact-user {
    grid-template-columns: 38px 46px minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-compact-avatar {
    width: 46px;
    height: 46px;
  }

  body[data-page="profile"] .profile-v2-post-card,
  body[data-page="profile"] .profile-v2-comment-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  body[data-page="profile"] .profile-post-cover,
  body[data-page="profile"] .profile-v2-comment-card .profile-post-cover {
    width: 88px;
    height: 104px;
  }

  body[data-page="profile"] .profile-post-actions {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: space-between;
    justify-items: stretch;
  }

  body[data-page="profile"] .profile-post-actions .plain-btn {
    min-width: 112px;
  }

  body[data-page="profile"] .profile-post-primary-meta,
  body[data-page="profile"] .profile-post-info small {
    gap: 6px;
  }
}

@media (max-width: 430px) {
  body[data-page="profile"] .profile-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  body[data-page="profile"] .profile-module-actions {
    width: 100%;
  }

  body[data-page="profile"] .profile-module-count,
  body[data-page="profile"] .profile-module-chip {
    flex: 1 1 auto;
  }

  body[data-page="profile"] .profile-v2-post-card,
  body[data-page="profile"] .profile-v2-comment-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-post-cover,
  body[data-page="profile"] .profile-v2-comment-card .profile-post-cover {
    width: 78px;
    height: 94px;
  }
}

/* XOO User Center V2.2 - UX refinement and design system pass */
body[data-page="profile"] {
  --ds-bg: #090c12;
  --ds-panel: #151a23;
  --ds-panel-raised: #1b212c;
  --ds-panel-soft: #111721;
  --ds-border: rgba(255, 255, 255, 0.07);
  --ds-border-soft: rgba(255, 255, 255, 0.045);
  --ds-text: rgba(255, 255, 255, 0.94);
  --ds-muted: rgba(255, 255, 255, 0.6);
  --ds-faint: rgba(255, 255, 255, 0.38);
  --ds-brand: #ff5f8a;
  --ds-brand-2: #ff7a9d;
  --ds-success: #52d273;
  --ds-warning: #f6b74c;
  --ds-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --ds-shadow-hover: 0 24px 64px rgba(0, 0, 0, 0.38);
  --ds-radius: 16px;
  --ds-radius-sm: 12px;
  color: var(--ds-text);
}

body[data-page="profile"] .profile-shell {
  width: min(1440px, 100%);
  padding-top: 22px;
}

body[data-page="profile"] .profile-community-main {
  gap: 22px;
}

body[data-page="profile"] .profile-hero-card {
  min-height: 178px;
  max-height: 196px;
  grid-template-columns: 110px minmax(0, 1fr) 126px;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  overflow: hidden;
}

body[data-page="profile"] .profile-hero-card::after {
  opacity: 0.48;
}

body[data-page="profile"] .profile-hero-avatar {
  width: 106px;
  height: 106px;
}

body[data-page="profile"] .profile-hero-name-row {
  align-items: center;
  gap: 10px;
}

body[data-page="profile"] .profile-hero-name-row h1 {
  font-size: clamp(26px, 2vw, 32px);
  line-height: 1.12;
}

body[data-page="profile"] .profile-hero-uid,
body[data-page="profile"] .profile-hero-bio {
  margin-top: 6px;
}

body[data-page="profile"] .profile-hero-points {
  margin-top: 12px;
  padding-top: 11px;
}

body[data-page="profile"] .profile-hero-points span {
  font-size: 13px;
  color: var(--ds-muted);
}

body[data-page="profile"] .profile-hero-points strong {
  font-size: 28px;
  color: var(--ds-brand);
}

body[data-page="profile"] .profile-hero-actions {
  justify-self: end;
}

body[data-page="profile"] .primary-btn,
body[data-page="profile"] .plain-btn,
body[data-page="profile"] .profile-module-chip,
body[data-page="profile"] .profile-module-count,
body[data-page="profile"] .profile-compact-edit {
  border-radius: var(--ds-radius-sm);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

body[data-page="profile"] .primary-btn,
body[data-page="profile"] .profile-compact-edit {
  border: 0;
  background: linear-gradient(135deg, var(--ds-brand), #df3e72);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 95, 138, 0.22);
}

body[data-page="profile"] .primary-btn:hover,
body[data-page="profile"] .profile-compact-edit:hover,
body[data-page="profile"] .plain-btn:hover {
  transform: translateY(-1px) scale(1.02);
}

body[data-page="profile"] .primary-btn:active,
body[data-page="profile"] .profile-compact-edit:active,
body[data-page="profile"] .plain-btn:active {
  transform: translateY(0) scale(0.98);
}

body[data-page="profile"] .plain-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

body[data-page="profile"] .profile-community-card,
body[data-page="profile"] .profile-v2-post-card,
body[data-page="profile"] .profile-v2-comment-card,
body[data-page="profile"] .profile-compact-user,
body[data-page="profile"] .profile-module-header {
  border-color: var(--ds-border);
  box-shadow: var(--ds-shadow);
}

body[data-page="profile"] .profile-community-card,
body[data-page="profile"] .profile-v2-post-card,
body[data-page="profile"] .profile-v2-comment-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.016)),
    var(--ds-panel);
}

body[data-page="profile"] .profile-overview-grid {
  gap: 20px;
}

body[data-page="profile"] .profile-feature-card {
  min-height: 144px;
  grid-template-columns: 52px minmax(0, 1fr) minmax(110px, auto) 104px;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  overflow: hidden;
}

body[data-page="profile"] .profile-card-icon {
  width: 52px;
  height: 52px;
}

body[data-page="profile"] .profile-feature-copy {
  min-width: 0;
}

body[data-page="profile"] .profile-feature-copy h3 {
  margin-bottom: 8px;
}

body[data-page="profile"] .profile-feature-copy p {
  max-width: 260px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body[data-page="profile"] .profile-feature-stats {
  justify-content: flex-end;
  min-width: 0;
  gap: 12px;
}

body[data-page="profile"] .profile-feature-stats > div {
  min-width: 0;
  width: 56px;
  text-align: center;
}

body[data-page="profile"] .profile-feature-card > .primary-btn {
  width: 96px;
  min-width: 96px;
  justify-self: end;
  white-space: nowrap;
  padding-inline: 0;
}

body[data-page="profile"] .profile-security-lines {
  min-width: 0;
  width: 132px;
  gap: 6px;
}

body[data-page="profile"] .profile-security-lines button {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 2px;
  min-width: 0;
}

body[data-page="profile"] .profile-security-lines strong {
  color: var(--ds-faint);
}

body[data-page="profile"] .profile-security-lines strong.is-ok {
  color: var(--ds-success);
}

body[data-page="profile"] .profile-quick-section {
  margin-top: 2px;
}

body[data-page="profile"] .profile-quick-section .profile-card-heading {
  margin-bottom: 16px;
}

body[data-page="profile"] .profile-quick-card {
  position: relative;
  min-height: 142px;
  align-content: center;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

body[data-page="profile"] .profile-quick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.78;
  background:
    radial-gradient(circle at 50% 0%, var(--tone-glow, rgba(255, 95, 138, 0.18)), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

body[data-page="profile"] .profile-quick-card:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.11);
}

body[data-page="profile"] .profile-quick-card .ui-icon {
  width: 34px;
  height: 34px;
  color: var(--tone, var(--ds-brand));
  filter: drop-shadow(0 8px 16px var(--tone-shadow, rgba(255, 95, 138, 0.18)));
}

body[data-page="profile"] .profile-quick-card.tone-purple {
  --tone: #a78bfa;
  --tone-glow: rgba(167, 139, 250, 0.18);
  --tone-shadow: rgba(167, 139, 250, 0.22);
}

body[data-page="profile"] .profile-quick-card.tone-pink {
  --tone: #ff5f8a;
  --tone-glow: rgba(255, 95, 138, 0.2);
  --tone-shadow: rgba(255, 95, 138, 0.25);
}

body[data-page="profile"] .profile-quick-card.tone-blue {
  --tone: #60a5fa;
  --tone-glow: rgba(96, 165, 250, 0.18);
  --tone-shadow: rgba(96, 165, 250, 0.22);
}

body[data-page="profile"] .profile-quick-card.tone-cyan {
  --tone: #2dd4bf;
  --tone-glow: rgba(45, 212, 191, 0.16);
  --tone-shadow: rgba(45, 212, 191, 0.2);
}

body[data-page="profile"] .profile-quick-card.tone-orange {
  --tone: #fb923c;
  --tone-glow: rgba(251, 146, 60, 0.16);
  --tone-shadow: rgba(251, 146, 60, 0.2);
}

body[data-page="profile"] .profile-quick-card.tone-green {
  --tone: #4ade80;
  --tone-glow: rgba(74, 222, 128, 0.16);
  --tone-shadow: rgba(74, 222, 128, 0.2);
}

body[data-page="profile"] .profile-points-strip {
  min-height: 112px;
  padding: 18px 20px;
}

body[data-page="profile"] .profile-point-tile {
  min-height: 94px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.035);
}

body[data-page="profile"] .profile-point-tile + .profile-point-tile {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.045);
}

body[data-page="profile"] .profile-point-tile.is-primary em {
  font-size: 30px;
  color: var(--ds-brand);
}

body[data-page="profile"] .profile-compact-user {
  min-height: 112px;
  grid-template-columns: 40px 58px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--ds-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 95, 138, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    var(--ds-panel);
}

body[data-page="profile"] .profile-compact-avatar {
  width: 58px;
  height: 58px;
}

body[data-page="profile"] .profile-compact-copy {
  min-width: 0;
}

body[data-page="profile"] .profile-compact-copy strong {
  font-size: 18px;
  line-height: 1.25;
}

body[data-page="profile"] .profile-compact-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

body[data-page="profile"] .profile-compact-meta span {
  width: auto;
  margin: 0;
  color: var(--ds-muted);
  font-size: 13px;
}

body[data-page="profile"] .profile-compact-meta span + span {
  color: var(--ds-brand);
  font-weight: 800;
}

body[data-page="profile"] .profile-compact-edit {
  min-height: 38px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

body[data-page="profile"] .profile-module-header {
  margin: 0 0 22px;
  padding: 2px 2px 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}

body[data-page="profile"] .profile-module-header h2 {
  font-size: clamp(28px, 2.1vw, 32px);
  line-height: 1.12;
}

body[data-page="profile"] .profile-module-header p {
  margin-top: 8px;
}

body[data-page="profile"] .profile-module-count {
  color: var(--ds-brand);
  background: rgba(255, 95, 138, 0.1);
  border-color: rgba(255, 95, 138, 0.18);
}

body[data-page="profile"] .profile-module-chip {
  background: rgba(255, 255, 255, 0.055);
}

body[data-page="profile"] .profile-v2-post-list,
body[data-page="profile"] .profile-v2-comment-list {
  gap: 20px;
}

body[data-page="profile"] .profile-v2-post-card,
body[data-page="profile"] .profile-v2-comment-card {
  grid-template-columns: 128px minmax(0, 1fr) 150px;
  min-height: 154px;
  padding: 16px;
  gap: 20px;
  cursor: pointer;
}

body[data-page="profile"] .profile-v2-post-card:hover,
body[data-page="profile"] .profile-v2-comment-card:hover {
  border-color: rgba(255, 95, 138, 0.16);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 95, 138, 0.1), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    var(--ds-panel);
}

body[data-page="profile"] .profile-v2-post-card:hover .profile-post-info strong,
body[data-page="profile"] .profile-v2-comment-card:hover .profile-comment-main strong {
  color: #fff;
}

body[data-page="profile"] .profile-post-cover {
  width: 128px;
  height: 122px;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body[data-page="profile"] .profile-v2-comment-card .profile-post-cover {
  width: 108px;
  height: 108px;
}

body[data-page="profile"] .profile-post-info strong,
body[data-page="profile"] .profile-comment-main strong {
  font-size: 18px;
  letter-spacing: 0;
}

body[data-page="profile"] .profile-post-primary-meta {
  row-gap: 7px;
}

body[data-page="profile"] .profile-post-primary-meta b {
  font-size: 14px;
}

body[data-page="profile"] .profile-post-tags span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

body[data-page="profile"] .profile-post-actions {
  align-content: center;
}

body[data-page="profile"] .profile-post-state {
  color: rgba(255, 255, 255, 0.78);
}

body[data-page="profile"] .profile-post-actions .plain-btn {
  min-width: 104px;
  border-color: rgba(255, 255, 255, 0.075);
}

body[data-page="profile"] .profile-module-empty {
  min-height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
}

body[data-page="profile"] .profile-module-empty::before {
  content: none;
}

body[data-page="profile"] .profile-empty-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ds-brand);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(145deg, rgba(255, 95, 138, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body[data-page="profile"] .profile-empty-icon .ui-icon {
  width: 34px;
  height: 34px;
}

body[data-page="profile"] .profile-module-empty strong {
  color: var(--ds-text);
  font-size: 20px;
  line-height: 1.3;
}

body[data-page="profile"] .profile-module-empty p {
  max-width: 360px;
  margin: 0;
  color: var(--ds-muted);
  line-height: 1.7;
}

body[data-page="profile"] .profile-module-empty .primary-btn {
  min-width: 136px;
  margin-top: 4px;
}

@media (max-width: 1200px) and (min-width: 769px) {
  body[data-page="profile"] .profile-hero-card {
    grid-template-columns: 104px minmax(0, 1fr) 118px;
    max-height: none;
    gap: 20px;
  }

  body[data-page="profile"] .profile-hero-actions {
    grid-column: 3;
    justify-self: end;
  }

  body[data-page="profile"] .profile-feature-card {
    grid-template-columns: 50px minmax(0, 1fr) 96px;
  }

  body[data-page="profile"] .profile-feature-stats,
  body[data-page="profile"] .profile-security-lines {
    grid-column: 2 / -1;
    justify-content: start;
    width: auto;
  }

  body[data-page="profile"] .profile-feature-card > .primary-btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  body[data-page="profile"] .profile-v2-post-card,
  body[data-page="profile"] .profile-v2-comment-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-post-cover {
    width: 116px;
    height: 116px;
  }

  body[data-page="profile"] .profile-post-actions {
    grid-column: 2;
    grid-auto-flow: column;
    justify-content: start;
  }
}

@media (max-width: 768px) {
  body[data-page="profile"] .profile-hero-card {
    max-height: none;
    padding: 20px 18px;
  }

  body[data-page="profile"] .profile-feature-card {
    grid-template-columns: 48px minmax(0, 1fr) 96px;
    gap: 14px;
  }

  body[data-page="profile"] .profile-feature-stats,
  body[data-page="profile"] .profile-security-lines {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: start;
  }

  body[data-page="profile"] .profile-feature-card .primary-btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  body[data-page="profile"] .profile-compact-user {
    min-height: 104px;
    grid-template-columns: 34px 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }

  body[data-page="profile"] .profile-compact-edit {
    grid-column: auto;
    justify-self: end;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  body[data-page="profile"] .profile-module-header {
    gap: 14px;
  }

  body[data-page="profile"] .profile-module-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .profile-module-count {
    grid-column: 1 / -1;
  }

  body[data-page="profile"] .profile-v2-post-card,
  body[data-page="profile"] .profile-v2-comment-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 136px;
    gap: 13px;
  }

  body[data-page="profile"] .profile-post-cover,
  body[data-page="profile"] .profile-v2-comment-card .profile-post-cover {
    width: 92px;
    height: 108px;
  }

  body[data-page="profile"] .profile-post-info strong,
  body[data-page="profile"] .profile-comment-main strong {
    font-size: 16px;
  }

  body[data-page="profile"] .profile-post-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  body[data-page="profile"] .profile-module-actions {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="profile"] .profile-v2-post-card,
  body[data-page="profile"] .profile-v2-comment-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-post-cover,
  body[data-page="profile"] .profile-v2-comment-card .profile-post-cover {
    width: 82px;
    height: 100px;
  }
}

/* XOO profile structural alignment pass */
body[data-page="profile"] {
  --header-height: 64px;
}

body[data-page="profile"] .profile-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body[data-page="profile"] .profile-community-layout,
body[data-page="profile"] .user-center-layout {
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
  margin: 24px auto 60px;
  padding: 0;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  box-sizing: border-box;
}

body[data-page="profile"] .profile-community-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  left: auto;
  right: auto;
  width: 100%;
  min-width: 0;
  height: fit-content;
  min-height: calc(100vh - var(--header-height) - 48px);
  margin: 0;
  align-self: start;
  transform: none;
  box-sizing: border-box;
}

body[data-page="profile"] .profile-community-main,
body[data-page="profile"] .main-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: none;
  box-sizing: border-box;
}

body[data-page="profile"] .profile-community-main > *,
body[data-page="profile"] .profile-hero-card,
body[data-page="profile"] .profile-section-panel,
body[data-page="profile"] #profileInlineContent,
body[data-page="profile"] .profile-overview-grid,
body[data-page="profile"] .profile-quick-section,
body[data-page="profile"] .profile-quick-grid,
body[data-page="profile"] .profile-points-strip,
body[data-page="profile"] .profile-community-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

body[data-page="profile"] .profile-section-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="profile"] #profileInlineContent {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body[data-page="profile"] .profile-hero-card {
  min-height: 190px;
  max-height: 206px;
  grid-template-columns: 112px minmax(0, 1fr) 120px;
  gap: 24px;
  padding: 22px 28px;
}

body[data-page="profile"] .profile-hero-avatar {
  width: 110px;
  height: 110px;
}

body[data-page="profile"] .profile-hero-actions {
  justify-self: end;
  align-self: center;
}

body[data-page="profile"] .profile-hero-actions .primary-btn {
  width: 120px;
  min-width: 120px;
}

body[data-page="profile"] .profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

body[data-page="profile"] .profile-feature-card {
  min-height: 132px;
  height: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(118px, auto) 104px;
  gap: 16px;
  align-items: center;
  justify-content: stretch;
  padding: 24px;
  overflow: hidden;
}

body[data-page="profile"] .profile-feature-copy {
  min-width: 0;
}

body[data-page="profile"] .profile-feature-copy h3 {
  white-space: nowrap;
}

body[data-page="profile"] .profile-feature-copy p {
  max-width: 260px;
  margin-top: 8px;
  overflow-wrap: normal;
}

body[data-page="profile"] .profile-feature-stats {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

body[data-page="profile"] .profile-feature-stats > div {
  width: 56px;
  min-width: 0;
  text-align: center;
}

body[data-page="profile"] .profile-security-lines {
  width: 132px;
  min-width: 0;
}

body[data-page="profile"] .profile-security-lines button {
  width: 100%;
  min-width: 0;
}

body[data-page="profile"] .profile-feature-card > .primary-btn {
  width: 104px;
  min-width: 104px;
  justify-self: end;
  align-self: center;
  white-space: nowrap;
  padding-inline: 0;
}

body[data-page="profile"] .profile-quick-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body[data-page="profile"] .profile-quick-section .profile-card-heading {
  margin: 0;
}

body[data-page="profile"] .profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="profile"] .profile-points-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 1180px) and (min-width: 901px) {
  body[data-page="profile"] .profile-community-layout,
  body[data-page="profile"] .user-center-layout {
    width: min(1120px, calc(100% - 48px));
    grid-template-columns: 244px minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-feature-card {
    min-height: 150px;
    grid-template-columns: 50px minmax(0, 1fr) 104px;
  }

  body[data-page="profile"] .profile-feature-stats,
  body[data-page="profile"] .profile-security-lines {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: start;
    width: auto;
  }

  body[data-page="profile"] .profile-feature-card > .primary-btn {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  body[data-page="profile"] .profile-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="profile"] .profile-points-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] .profile-community-layout,
  body[data-page="profile"] .user-center-layout {
    width: min(100% - 32px, 720px);
    margin: 16px auto 48px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="profile"] .profile-community-sidebar {
    position: static;
    width: 100%;
    min-height: 0;
  }

  body[data-page="profile"] .profile-overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="profile"] .profile-feature-card {
    min-height: 132px;
    grid-template-columns: 52px minmax(0, 1fr) 104px;
  }

  body[data-page="profile"] .profile-feature-stats,
  body[data-page="profile"] .profile-security-lines {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: auto;
  }

  body[data-page="profile"] .profile-feature-card > .primary-btn {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  body[data-page="profile"] .profile-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="profile"] .profile-points-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-page="profile"] .profile-community-layout,
  body[data-page="profile"] .user-center-layout {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  body[data-page="profile"] .profile-hero-card {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
    padding: 22px 18px;
  }

  body[data-page="profile"] .profile-hero-actions {
    width: 100%;
    justify-self: stretch;
  }

  body[data-page="profile"] .profile-hero-actions .primary-btn {
    width: 100%;
    min-width: 0;
  }

  body[data-page="profile"] .profile-feature-card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 20px;
  }

  body[data-page="profile"] .profile-feature-stats,
  body[data-page="profile"] .profile-security-lines,
  body[data-page="profile"] .profile-feature-card > .primary-btn {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    justify-self: stretch;
  }

  body[data-page="profile"] .profile-feature-card > .primary-btn {
    min-width: 0;
  }

  body[data-page="profile"] .profile-quick-grid,
  body[data-page="profile"] .profile-points-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  body[data-page="profile"] .profile-quick-grid,
  body[data-page="profile"] .profile-points-strip {
    grid-template-columns: 1fr;
  }
}

/* Profile polish: check-in layout, removed settings block, and per-card hover only. */
body[data-page="profile"] .profile-overview-grid {
  align-items: stretch;
}

body[data-page="profile"] .checkin-card {
  min-height: 124px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) max-content 108px;
  align-items: center;
  column-gap: 20px;
  padding: 24px;
  box-sizing: border-box;
}

body[data-page="profile"] .checkin-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

body[data-page="profile"] .checkin-icon {
  flex: 0 0 52px;
}

body[data-page="profile"] .checkin-copy {
  min-width: 0;
}

body[data-page="profile"] .checkin-title {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="profile"] .checkin-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}

body[data-page="profile"] .checkin-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

body[data-page="profile"] .checkin-stat {
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

body[data-page="profile"] .stat-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="profile"] .stat-value {
  color: rgba(255, 255, 255, 0.95);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

body[data-page="profile"] .checkin-button,
body[data-page="profile"] .profile-overview-grid > .profile-feature-card > .primary-btn {
  width: 108px;
  min-width: 108px;
  height: 46px;
  flex-shrink: 0;
  white-space: nowrap;
  justify-self: end;
  padding-inline: 0;
}

body[data-page="profile"] .profile-overview-grid > .profile-feature-card {
  min-height: 124px;
  height: 100%;
  align-self: stretch;
}

body[data-page="profile"] .profile-overview-grid > .profile-feature-card .profile-feature-copy,
body[data-page="profile"] .profile-overview-grid > .profile-feature-card .profile-security-lines {
  min-width: 0;
}

body[data-page="profile"] .interactive-card {
  transform-origin: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

body[data-page="profile"] .interactive-card:hover {
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}

body[data-page="profile"] .profile-quick-grid:hover,
body[data-page="profile"] .points-grid:hover,
body[data-page="profile"] .profile-points-strip:hover {
  transform: none;
}

body[data-page="profile"] .profile-quick-grid:hover .interactive-card:not(:hover),
body[data-page="profile"] .points-grid:hover .interactive-card:not(:hover),
body[data-page="profile"] .profile-points-strip:hover .interactive-card:not(:hover) {
  transform: none;
}

body[data-page="profile"] .points-grid,
body[data-page="profile"] .profile-points-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body[data-page="profile"] .profile-point-tile {
  min-width: 0;
  will-change: transform;
}

@media (max-width: 1180px) {
  body[data-page="profile"] .checkin-card {
    grid-template-columns: 1fr 108px;
    row-gap: 18px;
    column-gap: 20px;
  }

  body[data-page="profile"] .checkin-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-left: 68px;
  }

  body[data-page="profile"] .checkin-button {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-page="profile"] .points-grid,
  body[data-page="profile"] .profile-points-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-page="profile"] .checkin-card {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding: 20px;
  }

  body[data-page="profile"] .checkin-stats {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }

  body[data-page="profile"] .checkin-button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

@media (max-width: 360px) {
  body[data-page="profile"] .points-grid,
  body[data-page="profile"] .profile-points-strip {
    grid-template-columns: 1fr;
  }
}

/* Profile points/check-in split, 2026-07-30 */
body[data-page="profile"] .points-center-panel,
body[data-page="profile"] .daily-checkin-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

body[data-page="profile"] .points-checkin-unified {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  scroll-margin-top: 96px;
}

body[data-page="profile"] .points-checkin-heading {
  padding: 0 4px;
}

body[data-page="profile"] .points-checkin-unified.is-profile-highlight .daily-checkin-hero {
  border-color: rgba(255, 95, 138, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 95, 138, 0.22), 0 22px 54px rgba(255, 95, 138, 0.16);
  animation: profileCheckinPulse 1.4s ease;
}

@keyframes profileCheckinPulse {
  0% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}

body[data-page="profile"] .points-overview-section,
body[data-page="profile"] .points-ledger-card,
body[data-page="profile"] .points-rules-card,
body[data-page="profile"] .daily-checkin-hero,
body[data-page="profile"] .checkin-calendar-card,
body[data-page="profile"] .checkin-rewards-card,
body[data-page="profile"] .daily-checkin-records,
body[data-page="profile"] .daily-checkin-rules {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: #171a22;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body[data-page="profile"] .points-overview-section,
body[data-page="profile"] .points-ledger-card,
body[data-page="profile"] .points-rules-card,
body[data-page="profile"] .daily-checkin-records,
body[data-page="profile"] .daily-checkin-rules {
  padding: 24px;
}

body[data-page="profile"] .points-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

body[data-page="profile"] .points-overview-card {
  display: flex;
  min-width: 0;
  min-height: 128px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: #1d2029;
}

body[data-page="profile"] .points-overview-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

body[data-page="profile"] .points-overview-card strong,
body[data-page="profile"] .points-balance-card strong {
  display: block;
  margin: 0;
  color: var(--profile-brand);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 700;
  line-height: 1;
}

body[data-page="profile"] .points-balance-card strong {
  font-size: clamp(36px, 3.4vw, 40px);
}

body[data-page="profile"] .points-overview-card p,
body[data-page="profile"] .points-contact-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.5;
}

body[data-page="profile"] .points-quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="profile"] .points-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #1d2029;
  color: var(--profile-text);
  text-align: left;
  cursor: pointer;
}

body[data-page="profile"] .points-item-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 95, 138, 0.14);
  color: var(--profile-brand);
}

body[data-page="profile"] .points-item strong,
body[data-page="profile"] .points-item em {
  min-width: 0;
  font-style: normal;
}

body[data-page="profile"] .points-item strong {
  grid-column: 2;
  color: var(--profile-text);
  font-size: 15px;
}

body[data-page="profile"] .points-item em {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

body[data-page="profile"] .points-item > .ui-icon:last-child {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: rgba(255, 255, 255, 0.42);
}

body[data-page="profile"] .point-transaction-list > div {
  position: relative;
  padding-right: 82px;
}

body[data-page="profile"] .point-transaction-list em {
  position: absolute;
  top: 18px;
  right: 16px;
  font-style: normal;
  font-weight: 700;
}

body[data-page="profile"] .point-transaction-list em.is-income {
  color: #57d68d;
}

body[data-page="profile"] .point-transaction-list em.is-expense {
  color: var(--profile-brand);
}

body[data-page="profile"] .points-contact-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 95, 138, 0.08);
  border: 1px solid rgba(255, 95, 138, 0.14);
}

body[data-page="profile"] .points-contact-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--profile-text);
}

body[data-page="profile"] .daily-checkin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 204px;
  align-items: center;
  gap: 32px;
  min-height: 214px;
  padding: 34px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 95, 138, 0.18), transparent 36%),
    #171a22;
}

body[data-page="profile"] .daily-checkin-summary {
  min-width: 0;
}

body[data-page="profile"] .daily-checkin-date {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--profile-brand);
  font-size: 13px;
  font-weight: 700;
}

body[data-page="profile"] .daily-checkin-summary h2 {
  margin: 0 0 10px;
  color: var(--profile-text);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

body[data-page="profile"] .daily-checkin-summary p,
body[data-page="profile"] .daily-checkin-summary small {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

body[data-page="profile"] .daily-checkin-summary strong {
  color: var(--profile-text);
}

body[data-page="profile"] .checkin-main-button {
  display: flex;
  width: 204px;
  min-width: 204px;
  height: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6f8f, #d92e6a);
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 95, 138, 0.26);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

body[data-page="profile"] .checkin-main-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 42px rgba(255, 95, 138, 0.34);
}

body[data-page="profile"] .checkin-main-button:disabled {
  cursor: default;
  opacity: 0.78;
}

body[data-page="profile"] .checkin-main-button strong {
  font-size: 20px;
}

body[data-page="profile"] .checkin-main-button span {
  font-size: 14px;
  opacity: 0.86;
}

body[data-page="profile"] .daily-checkin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
}

body[data-page="profile"] .checkin-calendar-card,
body[data-page="profile"] .checkin-rewards-card {
  padding: 24px;
}

body[data-page="profile"] .reward-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

body[data-page="profile"] .checkin-rewards-card .profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="profile"] .checkin-calendar-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

body[data-page="profile"] .checkin-calendar-card header strong {
  color: var(--profile-text);
  font-size: 18px;
}

body[data-page="profile"] .checkin-calendar-card header button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1d2029;
  color: var(--profile-text);
  cursor: pointer;
}

body[data-page="profile"] .checkin-calendar-card header button:disabled {
  cursor: default;
  opacity: 0.35;
}

body[data-page="profile"] .checkin-weekdays,
body[data-page="profile"] .checkin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

body[data-page="profile"] .checkin-weekdays {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  text-align: center;
}

body[data-page="profile"] .checkin-day {
  position: relative;
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

body[data-page="profile"] .checkin-day.is-outside {
  background: transparent;
}

body[data-page="profile"] .checkin-day.is-signed {
  background: rgba(255, 95, 138, 0.18);
  color: #fff;
}

body[data-page="profile"] .checkin-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 95, 138, 0.72);
}

body[data-page="profile"] .checkin-day.is-today.is-signed {
  background: var(--profile-brand);
}

body[data-page="profile"] .checkin-day.is-missed {
  color: rgba(255, 255, 255, 0.28);
}

body[data-page="profile"] .checkin-day.is-future {
  color: rgba(255, 255, 255, 0.38);
}

body[data-page="profile"] .checkin-day em {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-style: normal;
  font-size: 10px;
}

body[data-page="profile"] .checkin-reward-track,
body[data-page="profile"] .reward-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

body[data-page="profile"] .reward-list::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 31px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 95, 138, 0.45), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

body[data-page="profile"] .checkin-reward-node,
body[data-page="profile"] .reward-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 138px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 14px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #1d2029;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

body[data-page="profile"] .checkin-reward-node span,
body[data-page="profile"] .reward-marker {
  display: grid;
  position: relative;
  z-index: 1;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

body[data-page="profile"] .checkin-reward-node.is-done span {
  background: var(--profile-brand);
  color: #fff;
}

body[data-page="profile"] .checkin-reward-node strong {
  max-width: 100%;
  color: var(--profile-text);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="profile"] .checkin-reward-node small,
body[data-page="profile"] .checkin-reward-node em {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="profile"] .reward-points {
  margin-top: 10px;
}

body[data-page="profile"] .reward-progress {
  margin-top: 6px;
  margin-bottom: 0;
}

body[data-page="profile"] .daily-checkin-rules ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

@media (max-width: 1180px) {
  body[data-page="profile"] .points-overview-grid,
  body[data-page="profile"] .points-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .daily-checkin-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .checkin-reward-track,
  body[data-page="profile"] .reward-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  body[data-page="profile"] .checkin-reward-track,
  body[data-page="profile"] .reward-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="profile"] .reward-list::before {
    display: none;
  }
}

@media (max-width: 768px) {
  body[data-page="profile"] .points-overview-section,
  body[data-page="profile"] .points-ledger-card,
  body[data-page="profile"] .points-rules-card,
  body[data-page="profile"] .daily-checkin-records,
  body[data-page="profile"] .daily-checkin-rules,
  body[data-page="profile"] .checkin-calendar-card,
  body[data-page="profile"] .checkin-rewards-card {
    padding: 18px;
  }

  body[data-page="profile"] .daily-checkin-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  body[data-page="profile"] .checkin-main-button {
    min-width: 0;
    width: 100%;
    height: 96px;
    border-radius: 18px;
  }

  body[data-page="profile"] .points-overview-grid,
  body[data-page="profile"] .points-quick-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .checkin-reward-track,
  body[data-page="profile"] .reward-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    padding-bottom: 0;
  }
}

@media (max-width: 520px) {
  body[data-page="profile"] .checkin-reward-track,
  body[data-page="profile"] .reward-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  body[data-page="profile"] .checkin-weekdays,
  body[data-page="profile"] .checkin-calendar-grid {
    gap: 5px;
  }

  body[data-page="profile"] .checkin-day {
    min-height: 36px;
    border-radius: 10px;
  }

  body[data-page="profile"] .point-transaction-list > div {
    padding-right: 0;
  }

  body[data-page="profile"] .point-transaction-list em {
    position: static;
    margin-top: 6px;
  }
}
