:root {
  --xoo-brand-50: #fff1f6;
  --xoo-brand-100: #ffe0eb;
  --xoo-brand-200: #ffc2d8;
  --xoo-brand-300: #ff93b8;
  --xoo-brand-400: #ff6a9d;
  --xoo-brand-500: #ff4f8b;
  --xoo-brand-600: #e93e79;
  --xoo-brand-700: #c92f65;
  --xoo-purple-400: #a66cff;
  --xoo-purple-500: #8c52ff;
  --xoo-purple-600: #7540e8;
  --xoo-bg-page: #0b0e14;
  --xoo-bg-sidebar: #10141c;
  --xoo-bg-header: rgba(11, 14, 20, 0.88);
  --xoo-surface-1: #131821;
  --xoo-surface-2: #181e29;
  --xoo-surface-3: #202735;
  --xoo-surface-hover: #242c3a;
  --xoo-surface-active: #2a3242;
  --xoo-border-subtle: rgba(255, 255, 255, 0.06);
  --xoo-border-default: rgba(255, 255, 255, 0.1);
  --xoo-border-strong: rgba(255, 255, 255, 0.16);
  --xoo-border-brand: rgba(255, 79, 139, 0.42);
  --xoo-text-primary: #f7f8fa;
  --xoo-text-secondary: #c3c9d4;
  --xoo-text-tertiary: #8a93a3;
  --xoo-text-disabled: #5f6878;
  --xoo-text-inverse: #11141a;
  --xoo-success: #45d483;
  --xoo-success-bg: rgba(69, 212, 131, 0.12);
  --xoo-warning: #ffb84d;
  --xoo-warning-bg: rgba(255, 184, 77, 0.12);
  --xoo-danger: #ff626d;
  --xoo-danger-bg: rgba(255, 98, 109, 0.12);
  --xoo-info: #63a7ff;
  --xoo-info-bg: rgba(99, 167, 255, 0.12);
  --xoo-overlay: rgba(0, 0, 0, 0.62);
  --xoo-gradient-brand: linear-gradient(135deg, #ff4f8b 0%, #a66cff 100%);
  --xoo-gradient-hero:
    radial-gradient(circle at 20% 20%, rgba(255, 79, 139, 0.18), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(166, 108, 255, 0.15), transparent 42%),
    linear-gradient(135deg, #181c29 0%, #121722 100%);
  --xoo-space-1: 4px;
  --xoo-space-2: 8px;
  --xoo-space-3: 12px;
  --xoo-space-4: 16px;
  --xoo-space-5: 20px;
  --xoo-space-6: 24px;
  --xoo-space-8: 32px;
  --xoo-space-10: 40px;
  --xoo-space-12: 48px;
  --xoo-space-16: 64px;
  --xoo-radius-sm: 8px;
  --xoo-radius-md: 12px;
  --xoo-radius-lg: 16px;
  --xoo-radius-xl: 20px;
  --xoo-radius-pill: 999px;
  --xoo-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.18);
  --xoo-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.24);
  --xoo-shadow-lg: 0 18px 52px rgba(0, 0, 0, 0.34);
  --xoo-shadow-brand: 0 10px 30px rgba(255, 79, 139, 0.18);
  --xoo-duration-fast: 120ms;
  --xoo-duration-normal: 220ms;
  --xoo-duration-slow: 320ms;
  --xoo-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: dark;
}

/* Recharge center: scoped to profile points page. */
body[data-page="profile"] .xoo-recharge-center {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

body[data-page="profile"] .xoo-recharge-head,
body[data-page="profile"] .xoo-recharge-membership-card,
body[data-page="profile"] .xoo-recharge-order-card,
body[data-page="profile"] .xoo-recharge-product-card {
  border: 1px solid rgba(174, 115, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(24, 28, 39, 0.96), rgba(17, 20, 31, 0.92));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

body[data-page="profile"] .xoo-recharge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

body[data-page="profile"] .xoo-recharge-head span,
body[data-page="profile"] .xoo-recharge-product-copy span,
body[data-page="profile"] .xoo-recharge-membership-card span {
  display: block;
  color: rgba(209, 198, 232, 0.72);
  font-size: 12px;
}

body[data-page="profile"] .xoo-recharge-head h3 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

body[data-page="profile"] .xoo-recharge-head p,
body[data-page="profile"] .xoo-recharge-product-copy p,
body[data-page="profile"] .xoo-recharge-order-head span,
body[data-page="profile"] .xoo-recharge-membership-card p {
  margin: 0;
  color: rgba(226, 219, 241, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

body[data-page="profile"] .xoo-recharge-assets {
  min-width: 112px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(168, 92, 255, 0.13);
  text-align: center;
}

body[data-page="profile"] .xoo-recharge-assets strong {
  display: block;
  color: #ff5da0;
  font-size: 28px;
  line-height: 1;
}

body[data-page="profile"] .xoo-recharge-assets span {
  margin-top: 6px;
}

body[data-page="profile"] .xoo-recharge-membership-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

body[data-page="profile"] .xoo-recharge-membership-card strong {
  display: block;
  margin: 5px 0;
  color: #fff;
  font-size: 20px;
}

body[data-page="profile"] .xoo-recharge-membership-card em,
body[data-page="profile"] .xoo-recharge-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(87, 226, 146, 0.13);
  color: #6effaa;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

body[data-page="profile"] .xoo-recharge-product-section h4,
body[data-page="profile"] .xoo-recharge-order-head h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

body[data-page="profile"] .xoo-recharge-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="profile"] .xoo-recharge-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

body[data-page="profile"] .xoo-recharge-product-copy strong {
  display: block;
  margin: 5px 0;
  color: #fff;
  font-size: 17px;
}

body[data-page="profile"] .xoo-recharge-product-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

body[data-page="profile"] .xoo-recharge-product-meta b {
  color: #ff5da0;
  font-size: 22px;
}

body[data-page="profile"] .xoo-recharge-product-meta em {
  color: rgba(226, 219, 241, 0.72);
  font-size: 12px;
  font-style: normal;
}

body[data-page="profile"] .xoo-recharge-buy-btn,
body[data-page="profile"] .xoo-recharge-mini-btn {
  grid-column: 1 / -1;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #ff5da0);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body[data-page="profile"] .xoo-recharge-buy-btn:disabled,
body[data-page="profile"] .xoo-recharge-mini-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

body[data-page="profile"] .xoo-recharge-order-card {
  padding: 16px;
}

body[data-page="profile"] .xoo-recharge-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

body[data-page="profile"] .xoo-recharge-table-wrap {
  overflow-x: auto;
}

body[data-page="profile"] .xoo-recharge-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

body[data-page="profile"] .xoo-recharge-table th,
body[data-page="profile"] .xoo-recharge-table td {
  padding: 11px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(241, 236, 255, 0.84);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

body[data-page="profile"] .xoo-recharge-table th {
  color: rgba(209, 198, 232, 0.66);
  font-weight: 600;
}

body[data-page="profile"] .xoo-recharge-status.is-pending {
  background: rgba(255, 193, 92, 0.12);
  color: #ffd28a;
}

body[data-page="profile"] .xoo-recharge-empty {
  color: rgba(226, 219, 241, 0.64);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  body[data-page="profile"] .xoo-recharge-head,
  body[data-page="profile"] .xoo-recharge-membership-card,
  body[data-page="profile"] .xoo-recharge-order-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="profile"] .xoo-recharge-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile center tabs, points modal and compact list refinements. */
body[data-page="profile"] .profile-sidebar-item {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  line-height: 1 !important;
}

body[data-page="profile"] .profile-sidebar-item.active::before {
  left: 0 !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 3px !important;
  height: auto !important;
  border-radius: 999px !important;
}

body[data-page="profile"] .profile-content-tabs,
body[data-page="profile"] .profile-overview-tabs {
  position: relative !important;
  z-index: 4 !important;
}

body[data-page="profile"] a.profile-content-tab,
body[data-page="profile"] a.profile-content-tab:hover,
body[data-page="profile"] a.profile-content-tab:focus {
  text-decoration: none !important;
}

body[data-page="profile"] [data-profile-overview-tab],
body[data-page="profile"] [data-profile-action],
body[data-page="profile"] [data-points-modal-open] {
  pointer-events: auto !important;
}

body[data-page="profile"] a.profile-content-tab,
body[data-page="profile"] a.profile-content-tab:hover,
body[data-page="profile"] a.profile-content-tab:focus {
  text-decoration: none !important;
}

body[data-page="profile"] .profile-section-title h2,
body[data-page="profile"] .profile-page-header h1,
body[data-page="profile"] .profile-module-title {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

body[data-page="profile"] .profile-post-row {
  align-items: center !important;
}

body[data-page="profile"] .profile-post-info h4 {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 700 !important;
}

body[data-page="profile"] .profile-post-primary-meta {
  display: block !important;
  margin-top: 6px !important;
  font-size: 13px !important;
  line-height: 20px !important;
  color: rgba(226, 232, 255, 0.68) !important;
  white-space: normal !important;
}

body[data-page="profile"] .profile-post-date {
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 18px !important;
  color: rgba(226, 232, 255, 0.5) !important;
}

body[data-page="profile"] .xoo-points-compact {
  display: grid !important;
  gap: 16px !important;
}

body[data-page="profile"] .xoo-points-summary-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body[data-page="profile"] .xoo-points-summary-card {
  min-height: 118px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(181, 130, 255, 0.18) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(164, 99, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(24, 29, 43, 0.96), rgba(13, 17, 28, 0.92)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 7px !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}

body[data-page="profile"] .xoo-points-summary-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 84, 170, 0.32) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

body[data-page="profile"] .xoo-points-summary-card span {
  font-size: 13px !important;
  line-height: 18px !important;
  color: rgba(226, 232, 255, 0.62) !important;
}

body[data-page="profile"] .xoo-points-summary-card strong {
  font-size: 21px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

body[data-page="profile"] .xoo-points-balance-clean strong b {
  font-size: 32px !important;
  line-height: 38px !important;
  font-weight: 800 !important;
  color: #ff4f98 !important;
}

body[data-page="profile"] .xoo-points-summary-card em {
  font-style: normal !important;
  font-size: 12px !important;
  line-height: 18px !important;
  color: rgba(226, 232, 255, 0.54) !important;
}

body[data-page="profile"] .xoo-points-action-row {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
}

body[data-page="profile"] .xoo-points-soft-btn {
  height: 38px !important;
  min-width: 92px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(196, 128, 255, 0.34) !important;
  background: rgba(157, 95, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease !important;
}

body[data-page="profile"] .xoo-points-soft-btn:hover {
  background: rgba(255, 77, 184, 0.16) !important;
  border-color: rgba(255, 77, 184, 0.52) !important;
  color: #fff !important;
}

body.profile-modal-open {
  overflow: hidden !important;
}

body[data-page="profile"] .xoo-profile-modal.hidden {
  display: none !important;
}

body[data-page="profile"] .xoo-profile-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 16px !important;
}

body[data-page="profile"] .xoo-profile-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  border: 0 !important;
  background: rgba(2, 4, 12, 0.68) !important;
  backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
}

body[data-page="profile"] .xoo-profile-modal-panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(600px, calc(100vw - 32px)) !important;
  max-height: min(70vh, 720px) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(190, 132, 255, 0.24) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(185, 99, 255, 0.18), transparent 42%),
    rgba(16, 20, 32, 0.96) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
}

body[data-page="profile"] .xoo-profile-modal-panel header {
  height: 58px !important;
  padding: 0 18px 0 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body[data-page="profile"] .xoo-profile-modal-panel h3 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

body[data-page="profile"] .xoo-profile-modal-close {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body[data-page="profile"] .xoo-profile-modal-body {
  max-height: calc(min(70vh, 720px) - 58px) !important;
  padding: 18px !important;
  overflow: auto !important;
}

body[data-page="profile"] .xoo-profile-modal-body::-webkit-scrollbar,
body[data-page="profile"] .xoo-rule-dialog-list::-webkit-scrollbar {
  width: 6px !important;
}

body[data-page="profile"] .xoo-profile-modal-body::-webkit-scrollbar-thumb,
body[data-page="profile"] .xoo-rule-dialog-list::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(194, 96, 255, 0.45) !important;
}

body[data-page="profile"] .xoo-rule-dialog-list {
  display: grid !important;
  gap: 10px !important;
}

body[data-page="profile"] .xoo-rule-dialog-item {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body[data-page="profile"] .xoo-rule-dialog-item i {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(137, 89, 255, 0.34), rgba(255, 77, 152, 0.26)) !important;
  color: #fff !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body[data-page="profile"] .xoo-rule-dialog-item strong {
  display: block !important;
  margin-bottom: 4px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body[data-page="profile"] .xoo-rule-dialog-item p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 20px !important;
  color: rgba(226, 232, 255, 0.62) !important;
}

@media (max-width: 1100px) {
  body[data-page="profile"] .xoo-points-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body[data-page="profile"] .xoo-points-summary-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="profile"] .xoo-points-summary-card {
    min-height: 104px !important;
    padding: 14px 16px !important;
  }

  body[data-page="profile"] .xoo-points-action-row {
    flex-wrap: nowrap !important;
  }

  body[data-page="profile"] .xoo-points-soft-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  body[data-page="profile"] .xoo-profile-modal-panel {
    width: calc(100vw - 32px) !important;
    max-height: 70vh !important;
  }
}

/* FINAL: shared home/profile header and page container. */
body[data-page="home"],
body[data-page="profile"] {
  --page-bg: #080b12;
  --header-bg: rgba(8, 11, 18, 0.78);
  --panel-bg: rgba(18, 23, 33, 0.92);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f7f8ff;
  --text-secondary: rgba(226, 231, 244, 0.72);
  --accent-purple: #9b5cff;
  --accent-pink: #ff4f8b;
  --page-max-width: 1280px;
  --header-height: 64px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --site-logo-size: 25px;
  --site-logo-weight: 950;
  --site-nav-height: 56px;
  --site-nav-padding: 8px;
  --site-nav-item-height: 40px;
  --site-nav-item-width: 78px;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 83, 147, 0.12), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(120, 97, 255, 0.10), transparent 30%),
    linear-gradient(180deg, var(--page-bg) 0%, #0b1018 54%, var(--page-bg) 100%) !important;
}

body[data-page="home"] .site-header,
body[data-page="profile"] .site-header {
  width: 100% !important;
  max-width: none !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  margin: 0 !important;
  padding: 0 max(24px, calc((100vw - var(--page-max-width)) / 2)) !important;
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) 180px !important;
  align-items: center !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 0 !important;
  background: var(--header-bg) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
}

body[data-page="home"] .site-header .logo,
body[data-page="profile"] .site-header .logo {
  justify-self: start !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: transparent !important;
  background: linear-gradient(135deg, #ffffff 0%, #dcb8ff 36%, var(--accent-pink) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: 0 0 26px rgba(168, 92, 255, 0.22) !important;
  font-size: var(--site-logo-size) !important;
  font-weight: var(--site-logo-weight) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

body[data-page="home"] .main-nav,
body[data-page="profile"] .main-nav {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: var(--site-nav-height) !important;
  height: var(--site-nav-height) !important;
  padding: var(--site-nav-padding) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)), rgba(13, 16, 26, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.18) !important;
  overflow: visible !important;
}

body[data-page="home"] .main-nav a,
body[data-page="profile"] .main-nav a {
  width: var(--site-nav-item-width) !important;
  min-width: var(--site-nav-item-width) !important;
  height: var(--site-nav-item-height) !important;
  min-height: var(--site-nav-item-height) !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.70) !important;
  filter: none !important;
  text-shadow: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transform: none !important;
}

body[data-page="home"] .main-nav a::before,
body[data-page="home"] .main-nav a::after,
body[data-page="profile"] .main-nav a::before,
body[data-page="profile"] .main-nav a::after {
  content: none !important;
  display: none !important;
}

body[data-page="home"] .main-nav a:hover,
body[data-page="profile"] .main-nav a:hover,
body[data-page="home"] .main-nav a.active,
body[data-page="profile"] .main-nav a.active {
  color: #fff !important;
  border-color: rgba(197, 119, 255, 0.46) !important;
  background: linear-gradient(135deg, rgba(126, 79, 255, 0.30), rgba(255, 93, 174, 0.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 8px 18px rgba(104, 58, 191, 0.20) !important;
}

body[data-page="home"] .site-header::after,
body[data-page="profile"] .site-header::after,
body[data-page="home"] .site-header .logo::before,
body[data-page="home"] .site-header .logo::after,
body[data-page="profile"] .site-header .logo::before,
body[data-page="profile"] .site-header .logo::after {
  content: none !important;
  display: none !important;
}

body[data-page="home"] .page-shell,
body[data-page="profile"] .page-shell,
body[data-page="profile"] .profile-shell,
body[data-page="home"] .home-shell {
  width: min(var(--page-max-width), calc(100% - 48px)) !important;
  max-width: var(--page-max-width) !important;
  margin: 24px auto 56px !important;
}

body[data-page="profile"] .profile-community-layout,
body[data-page="profile"] .user-center-layout {
  max-width: var(--page-max-width) !important;
}

@media (max-width: 899px) {
  body[data-page="home"],
  body[data-page="profile"] {
    --header-height: 58px;
    --site-logo-size: 23px;
    --site-nav-height: 48px;
    --site-nav-padding: 7px;
    --site-nav-item-height: 34px;
    --site-nav-item-width: 64px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    padding-inline: 14px !important;
    grid-template-columns: 92px minmax(0, 1fr) 16px !important;
  }

  body[data-page="home"] .page-shell,
  body[data-page="profile"] .page-shell,
  body[data-page="profile"] .profile-shell,
  body[data-page="home"] .home-shell {
    width: calc(100% - 28px) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="home"],
  body[data-page="profile"] {
    --site-logo-size: 22px;
    --site-nav-item-width: 58px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    grid-template-columns: 72px minmax(0, 1fr) 0 !important;
  }
}

/* Home/mobile polish: keep shared container alignment and mobile region picker state clear. */
body[data-page="home"] .home-shell {
  display: grid !important;
  gap: 18px !important;
}

body[data-page="home"] .search-panel,
body[data-page="home"] #postList.feed,
body[data-page="home"] #feedLoader.feed-loader {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.xoo-front-v2[data-page="home"] #postList.feed,
body[data-page="home"] #postList.feed {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

body[data-page="home"] .region-switch-city {
  display: none;
}

@media (max-width: 1279px) {
  body.xoo-front-v2[data-page="home"] #postList.feed,
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 899px) {
  body.xoo-front-v2[data-page="home"] #postList.feed,
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-inline: 14px !important;
  }

  body[data-page="home"] .site-header .logo,
  body[data-page="profile"] .site-header .logo {
    flex: 0 0 auto !important;
    justify-self: auto !important;
  }

  body[data-page="home"] .main-nav,
  body[data-page="profile"] .main-nav {
    flex: 0 0 auto !important;
    justify-self: auto !important;
    margin-left: auto !important;
  }
}

@media (max-width: 720px) {
  body.region-mobile-open #activeFilters {
    display: none !important;
  }

  body[data-page="home"] .filter-select-city.open .region-district-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 50px !important;
    padding: 0 4px 10px !important;
  }

  body[data-page="home"] .filter-select-city.open .region-switch-city {
    min-width: 108px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(211, 154, 255, 0.34);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  body[data-page="home"] .region-mobile-step-provinces .region-switch-city {
    display: none !important;
  }
}

@media (max-width: 560px) {
  body.xoo-front-v2[data-page="home"] #postList.feed,
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Shared final header override. Keep home and profile page chrome identical. */
body[data-page="home"],
body[data-page="profile"] {
  --page-bg: #080b12;
  --header-bg: rgba(8, 11, 18, 0.78);
  --panel-bg: rgba(18, 23, 33, 0.92);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f7f8ff;
  --text-secondary: rgba(226, 231, 244, 0.72);
  --accent-purple: #9b5cff;
  --accent-pink: #ff4f8b;
  --page-max-width: 1280px;
  --header-height: 64px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --site-logo-size: 25px;
  --site-logo-weight: 950;
  --site-nav-height: 56px;
  --site-nav-padding: 8px;
  --site-nav-item-height: 40px;
  --site-nav-item-width: 78px;
}

body[data-page="home"] .site-header,
body[data-page="profile"] .site-header {
  width: 100% !important;
  max-width: none !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  margin: 0 !important;
  padding: 0 max(24px, calc((100vw - var(--page-max-width)) / 2)) !important;
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) 180px !important;
  align-items: center !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 0 !important;
  background: var(--header-bg) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
}

body[data-page="home"] .site-header .logo,
body[data-page="profile"] .site-header .logo {
  justify-self: start !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: transparent !important;
  background: linear-gradient(135deg, #ffffff 0%, #dcb8ff 36%, var(--accent-pink) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: 0 0 26px rgba(168, 92, 255, 0.22) !important;
  font-size: var(--site-logo-size) !important;
  font-weight: var(--site-logo-weight) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

body[data-page="home"] .main-nav,
body[data-page="profile"] .main-nav {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: var(--site-nav-height) !important;
  height: var(--site-nav-height) !important;
  padding: var(--site-nav-padding) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)), rgba(13, 16, 26, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.18) !important;
  overflow: visible !important;
}

body[data-page="home"] .main-nav a,
body[data-page="profile"] .main-nav a {
  width: var(--site-nav-item-width) !important;
  min-width: var(--site-nav-item-width) !important;
  height: var(--site-nav-item-height) !important;
  min-height: var(--site-nav-item-height) !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.70) !important;
  filter: none !important;
  text-shadow: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transform: none !important;
}

body[data-page="home"] .main-nav a::before,
body[data-page="home"] .main-nav a::after,
body[data-page="profile"] .main-nav a::before,
body[data-page="profile"] .main-nav a::after {
  content: none !important;
  display: none !important;
}

body[data-page="home"] .main-nav a:hover,
body[data-page="profile"] .main-nav a:hover,
body[data-page="home"] .main-nav a.active,
body[data-page="profile"] .main-nav a.active {
  color: #fff !important;
  border-color: rgba(197, 119, 255, 0.46) !important;
  background: linear-gradient(135deg, rgba(126, 79, 255, 0.30), rgba(255, 93, 174, 0.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 8px 18px rgba(104, 58, 191, 0.20) !important;
}

body[data-page="home"] .page-shell,
body[data-page="profile"] .page-shell,
body[data-page="profile"] .profile-shell,
body[data-page="home"] .home-shell {
  width: min(var(--page-max-width), calc(100% - 48px)) !important;
  max-width: var(--page-max-width) !important;
  margin: 24px auto 56px !important;
}

body[data-page="profile"] .profile-community-layout,
body[data-page="profile"] .user-center-layout {
  max-width: var(--page-max-width) !important;
}

@media (max-width: 899px) {
  body[data-page="home"],
  body[data-page="profile"] {
    --header-height: 58px;
    --site-logo-size: 23px;
    --site-nav-height: 48px;
    --site-nav-padding: 7px;
    --site-nav-item-height: 34px;
    --site-nav-item-width: 64px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    padding-inline: 14px !important;
    grid-template-columns: 92px minmax(0, 1fr) 16px !important;
  }

  body[data-page="home"] .page-shell,
  body[data-page="profile"] .page-shell,
  body[data-page="profile"] .profile-shell,
  body[data-page="home"] .home-shell {
    width: calc(100% - 28px) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="home"],
  body[data-page="profile"] {
    --site-logo-size: 22px;
    --site-nav-item-width: 58px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    grid-template-columns: 72px minmax(0, 1fr) 0 !important;
  }
}

/* Final shared site chrome: home/profile must keep identical header geometry. */
body[data-page="home"],
body[data-page="profile"] {
  --page-bg: #080b12;
  --header-bg: rgba(8, 11, 18, 0.78);
  --panel-bg: rgba(18, 23, 33, 0.92);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f7f8ff;
  --text-secondary: rgba(226, 231, 244, 0.72);
  --accent-purple: #9b5cff;
  --accent-pink: #ff4f8b;
  --page-max-width: 1280px;
  --header-height: 64px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --site-logo-size: 25px;
  --site-logo-weight: 950;
  --site-nav-height: 56px;
  --site-nav-padding: 8px;
  --site-nav-item-height: 40px;
  --site-nav-item-width: 78px;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 83, 147, 0.12), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(120, 97, 255, 0.10), transparent 30%),
    linear-gradient(180deg, var(--page-bg) 0%, #0b1018 54%, var(--page-bg) 100%) !important;
}

body[data-page="home"] .site-header,
body[data-page="profile"] .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  width: 100% !important;
  max-width: none !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  margin: 0 !important;
  padding: 0 max(24px, calc((100vw - var(--page-max-width)) / 2)) !important;
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) 180px !important;
  align-items: center !important;
  gap: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 0 !important;
  background: var(--header-bg) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
}

body[data-page="home"] .site-header::after,
body[data-page="profile"] .site-header::after,
body[data-page="home"] .site-header .logo::before,
body[data-page="home"] .site-header .logo::after,
body[data-page="profile"] .site-header .logo::before,
body[data-page="profile"] .site-header .logo::after,
body[data-page="home"] .main-nav a::before,
body[data-page="home"] .main-nav a::after,
body[data-page="profile"] .main-nav a::before,
body[data-page="profile"] .main-nav a::after {
  content: none !important;
  display: none !important;
}

body[data-page="home"] .site-header .logo,
body[data-page="profile"] .site-header .logo {
  justify-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: transparent !important;
  background: linear-gradient(135deg, #ffffff 0%, #dcb8ff 36%, var(--accent-pink) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: 0 0 26px rgba(168, 92, 255, 0.22) !important;
  font-size: var(--site-logo-size) !important;
  font-weight: var(--site-logo-weight) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transform: none !important;
}

body[data-page="home"] .main-nav,
body[data-page="profile"] .main-nav {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-height: var(--site-nav-height) !important;
  height: var(--site-nav-height) !important;
  padding: var(--site-nav-padding) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(13, 16, 26, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  overflow: visible !important;
}

body[data-page="home"] .main-nav a,
body[data-page="profile"] .main-nav a {
  position: relative !important;
  width: var(--site-nav-item-width) !important;
  min-width: var(--site-nav-item-width) !important;
  height: var(--site-nav-item-height) !important;
  min-height: var(--site-nav-item-height) !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.70) !important;
  filter: none !important;
  text-shadow: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transform: none !important;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease !important;
}

body[data-page="home"] .main-nav a:hover,
body[data-page="profile"] .main-nav a:hover,
body[data-page="home"] .main-nav a.active,
body[data-page="profile"] .main-nav a.active {
  color: #fff !important;
  border-color: rgba(197, 119, 255, 0.46) !important;
  background: linear-gradient(135deg, rgba(126, 79, 255, 0.30), rgba(255, 93, 174, 0.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 8px 18px rgba(104, 58, 191, 0.20) !important;
}

body[data-page="profile"] .profile-top-spacer {
  display: block !important;
  min-width: 0 !important;
}

body[data-page="home"] .page-shell,
body[data-page="profile"] .page-shell,
body[data-page="profile"] .profile-shell,
body[data-page="home"] .home-shell {
  width: min(var(--page-max-width), calc(100% - 48px)) !important;
  max-width: var(--page-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[data-page="home"] .page-shell,
body[data-page="home"] .home-shell,
body[data-page="profile"] .profile-shell {
  margin-top: 24px !important;
}

body[data-page="profile"] .profile-shell {
  padding-top: 0 !important;
}

body[data-page="profile"] .profile-community-layout,
body[data-page="profile"] .user-center-layout {
  max-width: var(--page-max-width) !important;
}

@media (max-width: 899px) {
  body[data-page="home"],
  body[data-page="profile"] {
    --header-height: 58px;
    --site-logo-size: 23px;
    --site-nav-height: 48px;
    --site-nav-padding: 7px;
    --site-nav-item-height: 34px;
    --site-nav-item-width: 64px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    padding-inline: 14px !important;
    grid-template-columns: 92px minmax(0, 1fr) 16px !important;
  }

  body[data-page="home"] .page-shell,
  body[data-page="profile"] .page-shell,
  body[data-page="profile"] .profile-shell,
  body[data-page="home"] .home-shell {
    width: calc(100% - 28px) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="home"],
  body[data-page="profile"] {
    --site-logo-size: 22px;
    --site-nav-item-width: 58px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    grid-template-columns: 72px minmax(0, 1fr) 0 !important;
  }

  body[data-page="home"] .main-nav,
  body[data-page="profile"] .main-nav {
    justify-self: end !important;
    gap: 6px !important;
  }

  body[data-page="home"] .main-nav a,
  body[data-page="profile"] .main-nav a {
    padding-inline: 12px !important;
    font-size: 13px !important;
  }
}

/* Global header and container unification --------------------------------- */
:root {
  --page-bg: #080b12;
  --header-bg: rgba(8, 11, 18, 0.78);
  --panel-bg: rgba(18, 23, 33, 0.92);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f7f8ff;
  --text-secondary: rgba(226, 231, 244, 0.72);
  --accent-purple: #9b5cff;
  --accent-pink: #ff4f8b;
  --page-max-width: 1280px;
  --header-height: 64px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --site-logo-size: 25px;
  --site-logo-weight: 950;
  --site-nav-height: 56px;
  --site-nav-padding: 8px;
  --site-nav-item-height: 40px;
  --site-nav-item-width: 78px;
}

body[data-page="home"],
body[data-page="profile"] {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 83, 147, 0.12), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(120, 97, 255, 0.10), transparent 30%),
    linear-gradient(180deg, var(--page-bg) 0%, #0b1018 54%, var(--page-bg) 100%) !important;
}

body[data-page="home"] .site-header,
body[data-page="profile"] .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  width: 100% !important;
  max-width: none !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  margin: 0 !important;
  padding: 0 max(24px, calc((100vw - var(--page-max-width)) / 2)) !important;
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) 180px !important;
  align-items: center !important;
  gap: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 0 !important;
  background: var(--header-bg) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
}

body[data-page="home"] .site-header::after,
body[data-page="profile"] .site-header::after,
body[data-page="home"] .site-header .logo::before,
body[data-page="home"] .site-header .logo::after,
body[data-page="profile"] .site-header .logo::before,
body[data-page="profile"] .site-header .logo::after {
  content: none !important;
  display: none !important;
}

body[data-page="home"] .site-header .logo,
body[data-page="profile"] .site-header .logo {
  justify-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: transparent !important;
  background: linear-gradient(135deg, #ffffff 0%, #dcb8ff 36%, var(--accent-pink) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: 0 0 26px rgba(168, 92, 255, 0.22) !important;
  font-size: var(--site-logo-size) !important;
  font-weight: var(--site-logo-weight) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transform: none !important;
}

body[data-page="home"] .main-nav,
body[data-page="profile"] .main-nav {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-height: var(--site-nav-height) !important;
  height: var(--site-nav-height) !important;
  padding: var(--site-nav-padding) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(13, 16, 26, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  overflow: visible !important;
}

body[data-page="home"] .main-nav a,
body[data-page="profile"] .main-nav a {
  position: relative !important;
  width: var(--site-nav-item-width) !important;
  min-width: var(--site-nav-item-width) !important;
  height: var(--site-nav-item-height) !important;
  min-height: var(--site-nav-item-height) !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.70) !important;
  filter: none !important;
  text-shadow: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transform: none !important;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease !important;
}

body[data-page="home"] .main-nav a::before,
body[data-page="home"] .main-nav a::after,
body[data-page="profile"] .main-nav a::before,
body[data-page="profile"] .main-nav a::after {
  content: none !important;
  display: none !important;
}

body[data-page="home"] .main-nav a:hover,
body[data-page="profile"] .main-nav a:hover,
body[data-page="home"] .main-nav a.active,
body[data-page="profile"] .main-nav a.active {
  color: #fff !important;
  border-color: rgba(197, 119, 255, 0.46) !important;
  background: linear-gradient(135deg, rgba(126, 79, 255, 0.30), rgba(255, 93, 174, 0.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 8px 18px rgba(104, 58, 191, 0.20) !important;
}

body[data-page="profile"] .profile-top-spacer {
  display: block !important;
  min-width: 0 !important;
}

body[data-page="home"] .page-shell,
body[data-page="profile"] .page-shell,
body[data-page="profile"] .profile-shell,
body[data-page="home"] .home-shell {
  width: min(var(--page-max-width), calc(100% - 48px)) !important;
  max-width: var(--page-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[data-page="home"] .page-shell,
body[data-page="home"] .home-shell {
  margin-top: 24px !important;
}

body[data-page="profile"] .profile-shell {
  margin-top: 24px !important;
  padding-top: 0 !important;
}

body[data-page="profile"] .profile-community-layout,
body[data-page="profile"] .user-center-layout {
  max-width: var(--page-max-width) !important;
}

@media (max-width: 899px) {
  :root {
    --header-height: 58px;
    --site-logo-size: 23px;
    --site-nav-height: 48px;
    --site-nav-padding: 7px;
    --site-nav-item-height: 34px;
    --site-nav-item-width: 64px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    padding-inline: 14px !important;
    grid-template-columns: 92px minmax(0, 1fr) 16px !important;
  }

  body[data-page="home"] .page-shell,
  body[data-page="profile"] .page-shell,
  body[data-page="profile"] .profile-shell,
  body[data-page="home"] .home-shell {
    width: calc(100% - 28px) !important;
  }
}

@media (max-width: 520px) {
  :root {
    --site-logo-size: 22px;
    --site-nav-item-width: 58px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    grid-template-columns: 72px minmax(0, 1fr) 0 !important;
  }

  body[data-page="home"] .main-nav,
  body[data-page="profile"] .main-nav {
    justify-self: end !important;
    gap: 6px !important;
  }

  body[data-page="home"] .main-nav a,
  body[data-page="profile"] .main-nav a {
    padding-inline: 12px !important;
    font-size: 13px !important;
  }
}

/* Profile dashboard visual tightening: align with the provided reference density. */
body[data-page="profile"] .main-nav a.active::after {
  display: none !important;
  content: none !important;
}

body[data-page="profile"] .main-nav a {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  line-height: 42px !important;
}

body[data-page="profile"] .profile-shell,
body[data-page="profile"] .profile-community-layout {
  gap: 18px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard {
  gap: 16px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card {
  min-height: 178px !important;
  padding: 24px 30px !important;
  border-radius: 14px !important;
  align-items: center !important;
  gap: 22px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-identity {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 22px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-avatar-wrap,
body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-avatar {
  width: 96px !important;
  height: 96px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-avatar {
  font-size: 30px !important;
  line-height: 1 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-name-row {
  gap: 10px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-name-row h1 {
  font-size: 24px !important;
  line-height: 30px !important;
  font-weight: 750 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-verified-badge {
  height: 26px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  line-height: 26px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-uid,
body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-bio {
  margin-top: 6px !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta {
  margin-top: 24px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item {
  min-width: 158px !important;
  padding-right: 22px !important;
  margin-right: 22px !important;
  grid-template-columns: 22px auto auto !important;
  gap: 9px !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item .ui-icon {
  width: 21px !important;
  height: 21px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item strong {
  font-size: 14px !important;
  line-height: 20px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-outline-btn {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  line-height: 42px !important;
  gap: 8px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-outline-btn .ui-icon {
  width: 17px !important;
  height: 17px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid {
  gap: 16px !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.82fr) minmax(0, 1.36fr) !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-core-card,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .checkin-card,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-feature-card {
  min-height: 164px !important;
  padding: 18px 20px !important;
  border-radius: 14px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-head,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-head {
  gap: 12px !important;
  min-height: 38px !important;
  align-items: center !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-card-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-card-icon .ui-icon {
  width: 19px !important;
  height: 19px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-head h3,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-head h3 {
  font-size: 18px !important;
  line-height: 24px !important;
  font-weight: 750 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-points-value {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin-top: 2px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-points-value strong,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stat .stat-value {
  font-size: 34px !important;
  line-height: 38px !important;
  font-weight: 800 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-points-value span,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stat .stat-label {
  margin-left: 0 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-card p,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stat small,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-card > p {
  font-size: 13px !important;
  line-height: 19px !important;
  margin: 0 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-link {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  line-height: 38px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-card {
  grid-template-columns: minmax(0, 1fr) 126px !important;
  grid-template-areas:
    "head head"
    "stats action"
    "note note" !important;
  align-content: center !important;
  gap: 12px 14px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stats {
  width: auto !important;
  justify-self: start !important;
  align-self: center !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stat {
  width: auto !important;
  grid-template-columns: auto auto !important;
  gap: 6px !important;
  align-items: baseline !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-button {
  width: 118px !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 42px !important;
  align-self: center !important;
  justify-self: end !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-feature-card {
  align-content: center !important;
  gap: 14px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-head {
  grid-template-columns: 36px auto minmax(0, 1fr) !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-level {
  font-size: 13px !important;
  line-height: 20px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-lines {
  margin-top: 6px !important;
  height: auto !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row {
  min-height: 82px !important;
  grid-template-rows: 22px 20px 20px !important;
  gap: 6px !important;
  padding: 0 12px !important;
  align-content: center !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row .ui-icon {
  width: 20px !important;
  height: 20px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row span,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row strong {
  font-size: 13px !important;
  line-height: 19px !important;
  font-weight: 650 !important;
}

body[data-page="profile"] .profile-content-board {
  margin-top: 0 !important;
  border-radius: 14px !important;
}

@media (max-width: 1440px) {
  body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card {
    min-height: 166px !important;
    padding: 22px 26px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-feature-card {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  body[data-page="profile"] .main-nav a {
    height: 38px !important;
    min-height: 38px !important;
    line-height: 38px !important;
    padding: 0 14px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card {
    padding: 16px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-core-card,
  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .checkin-card,
  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-feature-card {
    min-height: auto !important;
    padding: 16px !important;
  }
}

/* Targeted profile cleanup: no redesign, only the seven requested fixes. */
body[data-page="profile"] .main-nav a,
body[data-page="profile"] .main-nav a.active {
  text-shadow: none !important;
  filter: none !important;
  transform: none !important;
  -webkit-font-smoothing: antialiased !important;
  backface-visibility: hidden !important;
}

body[data-page="profile"] .main-nav a::before,
body[data-page="profile"] .main-nav a::after,
body[data-page="profile"] .main-nav a.active::before,
body[data-page="profile"] .main-nav a.active::after {
  text-shadow: none !important;
  filter: none !important;
}

body[data-page="profile"] .main-nav a.active::after {
  display: none !important;
  opacity: 0 !important;
  content: none !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card::after {
  display: none !important;
  opacity: 0 !important;
  content: none !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-outline-btn,
body[data-page="profile"] .profile-community-main.is-dashboard .profile-outline-btn:hover,
body[data-page="profile"] .profile-community-main.is-dashboard .profile-outline-btn:focus {
  box-shadow: none !important;
  filter: none !important;
  background: rgba(13, 18, 30, 0.52) !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-outline-btn::before,
body[data-page="profile"] .profile-community-main.is-dashboard .profile-outline-btn::after {
  display: none !important;
  content: none !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid {
  gap: 14px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-core-card,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .checkin-card,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-feature-card {
  min-height: 152px !important;
  padding: 16px 18px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-head h3,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-head h3 {
  font-size: 17px !important;
  line-height: 22px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-points-value strong,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stat .stat-value {
  font-size: 31px !important;
  line-height: 35px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-card {
  grid-template-columns: minmax(0, 1fr) 116px !important;
  gap: 10px 12px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stats {
  padding-left: 16px !important;
  transform: translateX(8px) !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stat {
  justify-content: start !important;
  align-items: baseline !important;
  gap: 6px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stat small {
  margin-top: 0 !important;
  padding-left: 1px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-button {
  width: 112px !important;
  height: 40px !important;
  min-height: 40px !important;
  line-height: 40px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row {
  min-height: 74px !important;
  gap: 5px !important;
}

body[data-page="profile"] .profile-content-board-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  min-height: 56px !important;
  padding-right: 18px !important;
}

body[data-page="profile"] .profile-content-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

body[data-page="profile"] .profile-content-tab {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 64px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 44px !important;
  text-align: center !important;
  text-shadow: none !important;
  filter: none !important;
}

body[data-page="profile"] .profile-content-tab.active::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  width: 54px !important;
  height: 3px !important;
  border-radius: 999px !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(90deg, #a35cff, #ff4f98) !important;
}

body[data-page="profile"] .profile-sort-chip,
body[data-page="profile"] .profile-post-more-btn {
  display: none !important;
}

body[data-page="profile"] .profile-post-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  padding-right: 4px !important;
}

body[data-page="profile"] .profile-post-detail-btn {
  margin-left: 0 !important;
}

@media (max-width: 1440px) {
  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-core-card,
  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .checkin-card,
  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-feature-card {
    min-height: 146px !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.xoo-ui-scope {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  color: var(--xoo-text-primary);
}

.xoo-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 32px;
}

.xoo-card {
  border: 1px solid var(--xoo-border-subtle);
  border-radius: var(--xoo-radius-lg);
  background: var(--xoo-surface-1);
  box-shadow: var(--xoo-shadow-sm);
}

.xoo-card--elevated {
  background: var(--xoo-surface-2);
  box-shadow: var(--xoo-shadow-md);
}

.xoo-card--hero {
  border-radius: var(--xoo-radius-xl);
  background: var(--xoo-gradient-hero);
}

.xoo-interactive {
  cursor: pointer;
  transform-origin: center;
  transition:
    transform var(--xoo-duration-normal) var(--xoo-ease-standard),
    border-color var(--xoo-duration-normal) var(--xoo-ease-standard),
    background-color var(--xoo-duration-normal) var(--xoo-ease-standard),
    box-shadow var(--xoo-duration-normal) var(--xoo-ease-standard);
}

.xoo-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--xoo-border-strong);
  background-color: var(--xoo-surface-2);
  box-shadow: var(--xoo-shadow-md);
}

.xoo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--xoo-radius-md);
  color: var(--xoo-text-primary);
  font: 600 14px/1.25 inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--xoo-duration-fast) var(--xoo-ease-standard),
    filter var(--xoo-duration-fast) var(--xoo-ease-standard),
    border-color var(--xoo-duration-fast) var(--xoo-ease-standard),
    background-color var(--xoo-duration-fast) var(--xoo-ease-standard),
    box-shadow var(--xoo-duration-fast) var(--xoo-ease-standard);
}

.xoo-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.xoo-button:active {
  transform: scale(0.98);
}

.xoo-button:focus-visible,
.xoo-input:focus-visible,
.xoo-select:focus-visible,
.xoo-checkbox:focus-visible,
.xoo-radio:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 79, 139, 0.22);
}

.xoo-button:disabled,
.xoo-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.xoo-button--primary {
  background: var(--xoo-gradient-brand);
  box-shadow: var(--xoo-shadow-brand);
}

.xoo-button--secondary {
  border-color: var(--xoo-border-default);
  background: var(--xoo-surface-2);
}

.xoo-button--ghost {
  border-color: transparent;
  background: transparent;
}

.xoo-button--danger {
  background: var(--xoo-danger);
}

.xoo-button--success {
  background: var(--xoo-success);
  color: var(--xoo-text-inverse);
}

.xoo-button--small {
  min-height: 32px;
  padding-inline: 12px;
  border-radius: var(--xoo-radius-sm);
  font-size: 13px;
}

.xoo-button--large {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 15px;
}

.xoo-input,
.xoo-select,
.xoo-textarea {
  width: 100%;
  border: 1px solid var(--xoo-border-default);
  border-radius: var(--xoo-radius-md);
  background: var(--xoo-surface-1);
  color: var(--xoo-text-primary);
  font: 400 14px/1.4 inherit;
  transition:
    border-color var(--xoo-duration-fast) var(--xoo-ease-standard),
    background-color var(--xoo-duration-fast) var(--xoo-ease-standard),
    box-shadow var(--xoo-duration-fast) var(--xoo-ease-standard);
}

.xoo-input,
.xoo-select {
  min-height: 44px;
  padding: 0 14px;
}

.xoo-textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.xoo-input::placeholder,
.xoo-textarea::placeholder {
  color: var(--xoo-text-tertiary);
}

.xoo-input:hover,
.xoo-select:hover,
.xoo-textarea:hover {
  border-color: var(--xoo-border-strong);
}

.xoo-tag,
.xoo-badge,
.xoo-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: var(--xoo-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--xoo-text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.xoo-tag.is-selected,
.xoo-badge--brand {
  border-color: var(--xoo-border-brand);
  background: rgba(255, 79, 139, 0.16);
  color: var(--xoo-brand-300);
}

.xoo-status--success {
  border-color: rgba(69, 212, 131, 0.18);
  background: var(--xoo-success-bg);
  color: var(--xoo-success);
}

.xoo-status--warning {
  border-color: rgba(255, 184, 77, 0.2);
  background: var(--xoo-warning-bg);
  color: var(--xoo-warning);
}

.xoo-status--danger {
  border-color: rgba(255, 98, 109, 0.2);
  background: var(--xoo-danger-bg);
  color: var(--xoo-danger);
}

.xoo-status--info {
  border-color: rgba(99, 167, 255, 0.2);
  background: var(--xoo-info-bg);
  color: var(--xoo-info);
}

.xoo-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.xoo-empty strong {
  display: block;
  color: var(--xoo-text-primary);
  font-size: 18px;
  margin-bottom: 8px;
}

.xoo-empty p {
  max-width: 420px;
  margin: 0;
  color: var(--xoo-text-tertiary);
  font-size: 14px;
  line-height: 1.6;
}

.xoo-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--xoo-radius-md);
  background: var(--xoo-surface-2);
}

.xoo-skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: xooSkeleton 1.2s linear infinite;
}

@keyframes xooSkeleton {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1024px) {
  .xoo-container {
    padding-inline: 20px;
  }
}

@media (max-width: 768px) {
  .xoo-container {
    padding-inline: 16px;
  }

  .xoo-input,
  .xoo-select,
  .xoo-textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* XOO Design System V1 migration: Profile / Points Center */
body[data-page="profile"] .xoo-points-page {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: var(--xoo-space-5);
}

body[data-page="profile"] .xoo-points-success {
  display: flex;
  align-items: center;
  gap: var(--xoo-space-3);
  padding: 14px 16px;
  border-color: rgba(69, 212, 131, 0.24);
  background: rgba(69, 212, 131, 0.1);
}

body[data-page="profile"] .xoo-points-success strong {
  color: var(--xoo-success);
}

body[data-page="profile"] .xoo-points-overview {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: var(--xoo-space-4);
  width: 100%;
  min-width: 0;
}

body[data-page="profile"] .xoo-points-balance,
body[data-page="profile"] .xoo-points-stat {
  display: flex;
  min-width: 0;
  min-height: 136px;
  flex-direction: column;
  justify-content: center;
  gap: var(--xoo-space-3);
  padding: var(--xoo-space-5);
}

body[data-page="profile"] .xoo-points-balance {
  position: relative;
  overflow: hidden;
}

body[data-page="profile"] .xoo-points-balance::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 16px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.76), transparent 18%),
    radial-gradient(circle at 55% 58%, rgba(255, 184, 77, 0.96), rgba(255, 79, 139, 0.38) 62%, transparent 64%);
  opacity: 0.86;
  filter: drop-shadow(0 18px 34px rgba(255, 184, 77, 0.18));
}

body[data-page="profile"] .xoo-points-balance > * {
  position: relative;
  z-index: 1;
}

body[data-page="profile"] .xoo-points-balance span,
body[data-page="profile"] .xoo-points-stat span {
  color: var(--xoo-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

body[data-page="profile"] .xoo-points-balance strong {
  color: #ffd281;
  font-size: clamp(34px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1;
}

body[data-page="profile"] .xoo-points-stat strong {
  color: var(--xoo-brand-400);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.05;
}

body[data-page="profile"] .xoo-points-stat em {
  color: var(--xoo-text-tertiary);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

body[data-page="profile"] .xoo-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--xoo-space-4);
  margin-bottom: var(--xoo-space-4);
}

body[data-page="profile"] .xoo-section-head h3 {
  margin: 0;
  color: var(--xoo-text-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

body[data-page="profile"] .xoo-section-head p {
  margin: 7px 0 0;
  color: var(--xoo-text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

body[data-page="profile"] .xoo-points-checkin {
  display: flex;
  flex-direction: column;
  gap: var(--xoo-space-5);
  min-width: 0;
  scroll-margin-top: 96px;
}

body[data-page="profile"] .xoo-points-checkin.is-profile-highlight .xoo-checkin-hero {
  border-color: var(--xoo-border-brand);
  box-shadow: 0 0 0 1px rgba(255, 79, 139, 0.24), var(--xoo-shadow-lg);
}

body[data-page="profile"] .xoo-checkin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  min-height: 220px;
  align-items: center;
  gap: var(--xoo-space-8);
  padding: var(--xoo-space-8);
  overflow: hidden;
}

body[data-page="profile"] .xoo-checkin-copy {
  min-width: 0;
}

body[data-page="profile"] .xoo-eyebrow {
  display: inline-flex;
  margin-bottom: var(--xoo-space-2);
  color: var(--xoo-brand-400);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="profile"] .xoo-checkin-copy > strong {
  display: block;
  color: var(--xoo-text-secondary);
  font-size: 14px;
  font-weight: 700;
}

body[data-page="profile"] .xoo-checkin-copy h3 {
  margin: 12px 0 10px;
  color: var(--xoo-text-primary);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

body[data-page="profile"] .xoo-checkin-copy p {
  margin: 0;
  color: var(--xoo-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

body[data-page="profile"] .xoo-checkin-copy b {
  color: var(--xoo-text-primary);
}

body[data-page="profile"] .xoo-checkin-button {
  display: flex;
  width: 210px;
  height: 136px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--xoo-space-2);
  border: 0;
  border-radius: var(--xoo-radius-xl);
  background: var(--xoo-gradient-brand);
  color: #fff;
  box-shadow: var(--xoo-shadow-brand);
  cursor: pointer;
  transition:
    transform var(--xoo-duration-normal) var(--xoo-ease-standard),
    box-shadow var(--xoo-duration-normal) var(--xoo-ease-standard),
    opacity var(--xoo-duration-normal) var(--xoo-ease-standard);
}

body[data-page="profile"] .xoo-checkin-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 46px rgba(255, 79, 139, 0.3);
}

body[data-page="profile"] .xoo-checkin-button:disabled {
  cursor: default;
  opacity: 0.78;
}

body[data-page="profile"] .xoo-checkin-button strong {
  font-size: 21px;
  font-weight: 800;
}

body[data-page="profile"] .xoo-checkin-button span {
  font-size: 13px;
  opacity: 0.88;
}

body[data-page="profile"] .xoo-checkin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: var(--xoo-space-5);
  min-width: 0;
}

body[data-page="profile"] .xoo-checkin-calendar,
body[data-page="profile"] .xoo-checkin-rewards,
body[data-page="profile"] .xoo-checkin-records,
body[data-page="profile"] .xoo-points-ledger,
body[data-page="profile"] .xoo-points-rules {
  width: 100%;
  min-width: 0;
  padding: var(--xoo-space-6);
}

body[data-page="profile"] .xoo-checkin-calendar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--xoo-space-3);
  margin-bottom: var(--xoo-space-4);
}

body[data-page="profile"] .xoo-checkin-calendar header strong {
  color: var(--xoo-text-primary);
  font-size: 18px;
}

body[data-page="profile"] .xoo-checkin-calendar header button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--xoo-border-default);
  border-radius: var(--xoo-radius-md);
  background: var(--xoo-surface-2);
  color: var(--xoo-text-primary);
  cursor: pointer;
}

body[data-page="profile"] .xoo-checkin-calendar header button:disabled {
  cursor: default;
  opacity: 0.35;
}

body[data-page="profile"] .xoo-calendar-weekdays,
body[data-page="profile"] .xoo-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--xoo-space-2);
}

body[data-page="profile"] .xoo-calendar-weekdays {
  margin-bottom: var(--xoo-space-2);
  color: var(--xoo-text-tertiary);
  font-size: 12px;
  text-align: center;
}

body[data-page="profile"] .xoo-calendar-day {
  position: relative;
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: var(--xoo-radius-md);
  background: rgba(255, 255, 255, 0.045);
  color: var(--xoo-text-secondary);
  font-size: 13px;
}

body[data-page="profile"] .xoo-calendar-day.is-outside {
  background: transparent;
}

body[data-page="profile"] .xoo-calendar-day.is-signed {
  background: rgba(255, 79, 139, 0.18);
  color: var(--xoo-text-primary);
}

body[data-page="profile"] .xoo-calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 79, 139, 0.72);
}

body[data-page="profile"] .xoo-calendar-day.is-today.is-signed {
  background: var(--xoo-brand-500);
}

body[data-page="profile"] .xoo-calendar-day.is-missed {
  color: rgba(255, 255, 255, 0.3);
}

body[data-page="profile"] .xoo-calendar-day.is-future {
  color: rgba(255, 255, 255, 0.42);
}

body[data-page="profile"] .xoo-calendar-day em {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 10px;
  font-style: normal;
}

body[data-page="profile"] .xoo-reward-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--xoo-space-2);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

body[data-page="profile"] .xoo-reward-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: var(--xoo-radius-pill);
  background: linear-gradient(90deg, rgba(255, 79, 139, 0.46), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

body[data-page="profile"] .xoo-reward-node {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 7px 14px;
  overflow: hidden;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: var(--xoo-radius-md);
  background: var(--xoo-surface-2);
  text-align: center;
}

body[data-page="profile"] .xoo-reward-node span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--xoo-text-secondary);
  font-weight: 800;
}

body[data-page="profile"] .xoo-reward-node.is-done span {
  background: var(--xoo-brand-500);
  color: #fff;
}

body[data-page="profile"] .xoo-reward-node strong,
body[data-page="profile"] .xoo-reward-node em,
body[data-page="profile"] .xoo-reward-node small {
  max-width: 100%;
  overflow: hidden;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="profile"] .xoo-reward-node strong {
  color: var(--xoo-text-primary);
  font-size: 14px;
}

body[data-page="profile"] .xoo-reward-node em {
  margin-top: var(--xoo-space-2);
  color: #ffd281;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

body[data-page="profile"] .xoo-reward-node small {
  margin-top: var(--xoo-space-1);
  color: var(--xoo-text-tertiary);
  font-size: 12px;
}

body[data-page="profile"] .xoo-transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: var(--xoo-radius-md);
  background: rgba(255, 255, 255, 0.025);
}

body[data-page="profile"] .xoo-transaction-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(120px, auto) 72px 92px;
  align-items: center;
  gap: var(--xoo-space-3);
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--xoo-border-subtle);
}

body[data-page="profile"] .xoo-transaction-row:last-child {
  border-bottom: 0;
}

body[data-page="profile"] .xoo-transaction-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 79, 139, 0.12);
  color: var(--xoo-brand-400);
  font-weight: 800;
}

body[data-page="profile"] .xoo-transaction-row strong {
  display: block;
  color: var(--xoo-text-primary);
  font-size: 14px;
}

body[data-page="profile"] .xoo-transaction-row p,
body[data-page="profile"] .xoo-transaction-row time,
body[data-page="profile"] .xoo-transaction-row small {
  margin: 0;
  color: var(--xoo-text-tertiary);
  font-size: 12px;
}

body[data-page="profile"] .xoo-transaction-row em {
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

body[data-page="profile"] .xoo-transaction-row em.is-income {
  color: var(--xoo-success);
}

body[data-page="profile"] .xoo-transaction-row em.is-expense {
  color: var(--xoo-danger);
}

body[data-page="profile"] .xoo-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--xoo-space-3);
}

body[data-page="profile"] .xoo-rule-list > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: var(--xoo-radius-md);
  background: rgba(255, 255, 255, 0.035);
}

body[data-page="profile"] .xoo-rule-list span {
  display: block;
  color: var(--xoo-text-tertiary);
  font-size: 12px;
}

body[data-page="profile"] .xoo-rule-list strong {
  display: block;
  margin-top: 6px;
  color: var(--xoo-text-primary);
  font-size: 15px;
}

body[data-page="profile"] .xoo-rule-list p {
  margin: 8px 0 0;
  color: var(--xoo-text-tertiary);
  font-size: 12px;
  line-height: 1.55;
}

body[data-page="profile"] .xoo-points-empty {
  min-height: 140px;
}

@media (max-width: 1280px) {
  body[data-page="profile"] .xoo-points-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .xoo-checkin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body[data-page="profile"] .xoo-points-overview,
  body[data-page="profile"] .xoo-rule-list {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .xoo-checkin-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: var(--xoo-space-6);
  }

  body[data-page="profile"] .xoo-checkin-button {
    width: 100%;
    height: 96px;
    border-radius: var(--xoo-radius-lg);
  }

  body[data-page="profile"] .xoo-reward-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .xoo-reward-timeline::before {
    display: none;
  }

  body[data-page="profile"] .xoo-transaction-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  body[data-page="profile"] .xoo-transaction-row time,
  body[data-page="profile"] .xoo-transaction-row small {
    grid-column: 2 / -1;
  }
}

@media (max-width: 520px) {
  body[data-page="profile"] .xoo-points-page {
    gap: var(--xoo-space-4);
  }

  body[data-page="profile"] .xoo-checkin-calendar,
  body[data-page="profile"] .xoo-checkin-rewards,
  body[data-page="profile"] .xoo-checkin-records,
  body[data-page="profile"] .xoo-points-ledger,
  body[data-page="profile"] .xoo-points-rules {
    padding: var(--xoo-space-4);
  }

  body[data-page="profile"] .xoo-calendar-weekdays,
  body[data-page="profile"] .xoo-calendar-grid {
    gap: 5px;
  }

  body[data-page="profile"] .xoo-calendar-day {
    min-height: 36px;
    border-radius: 10px;
  }

  body[data-page="profile"] .xoo-reward-timeline {
    grid-template-columns: 1fr;
  }
}

/* XOO Design System V2.0 -------------------------------------------------- */
:root {
  --xoo-brand-50: #fff1f6;
  --xoo-brand-100: #ffdfeb;
  --xoo-brand-200: #ffc2d8;
  --xoo-brand-300: #ff93b8;
  --xoo-brand-400: #ff5c93;
  --xoo-brand-500: #ff4f8b;
  --xoo-brand-600: #df2d6f;
  --xoo-brand-700: #b92e65;
  --xoo-purple-500: #a855ff;
  --xoo-purple-600: #7861ff;
  --xoo-bg-page: #0b0e14;
  --xoo-bg-ink: #0e1219;
  --xoo-surface-1: #11161f;
  --xoo-surface-2: #1a2029;
  --xoo-surface-3: #222938;
  --xoo-surface-4: #2d3445;
  --xoo-border-subtle: rgba(255, 255, 255, 0.06);
  --xoo-border-default: rgba(255, 255, 255, 0.1);
  --xoo-border-strong: rgba(255, 255, 255, 0.16);
  --xoo-text-primary: #f7f8fa;
  --xoo-text-secondary: #c3c9d4;
  --xoo-text-tertiary: #8a93a3;
  --xoo-success: #0cd084;
  --xoo-warning: #ffb547;
  --xoo-danger: #ff626d;
  --xoo-info: #4da3ff;
  --xoo-radius-sm: 8px;
  --xoo-radius-md: 12px;
  --xoo-radius-lg: 16px;
  --xoo-radius-xl: 20px;
  --xoo-radius-2xl: 24px;
  --xoo-radius-full: 999px;
  --xoo-shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.22);
  --xoo-shadow-md: 0 16px 38px rgba(0, 0, 0, 0.3);
  --xoo-shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.42);
  --xoo-shadow-brand: 0 18px 42px rgba(255, 79, 139, 0.22);
  --xoo-motion-fast: 200ms;
  --xoo-motion-normal: 300ms;
  --xoo-ease-out: cubic-bezier(0.2, 0, 0, 1);
  --xoo-gradient-brand: linear-gradient(135deg, #ff5c93 0%, #df2d6f 52%, #7861ff 100%);
  --xoo-gradient-hero:
    radial-gradient(circle at 18% 12%, rgba(255, 92, 147, 0.28), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(120, 97, 255, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(26, 32, 41, 0.98), rgba(13, 18, 27, 0.98));
}

.xoo-ui-scope,
.xoo-ds-v2 {
  color: var(--xoo-text-primary);
  font-family:
    Inter,
    "HarmonyOS Sans SC",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

.xoo-ds-v2 {
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 92, 147, 0.12), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(120, 97, 255, 0.1), transparent 36%),
    #071019;
}

.xoo-ds-v2 *,
.xoo-ui-scope * {
  box-sizing: border-box;
}

.xoo-ds-v2 a {
  color: inherit;
  text-decoration: none;
}

.xoo-ds-page {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 330px;
  gap: 12px;
  width: min(1840px, 100%);
  margin: 0 auto;
}

.xoo-ds-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.xoo-ds-header-card {
  min-height: 120px;
  padding: 20px;
}

.xoo-ds-brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.xoo-ds-logo {
  color: var(--xoo-brand-400);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.xoo-ds-title {
  font-size: 22px;
  font-weight: 800;
}

.xoo-ds-subtitle {
  margin: 0;
  color: var(--xoo-text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.xoo-card-v2,
.xoo-card {
  min-width: 0;
  border: 1px solid var(--xoo-border-default);
  border-radius: var(--xoo-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 100%),
    var(--xoo-surface-1);
  box-shadow: var(--xoo-shadow-sm);
}

.xoo-card-v2 {
  padding: 20px;
}

.xoo-card-v2--hero {
  background: var(--xoo-gradient-hero);
  box-shadow: var(--xoo-shadow-md);
}

.xoo-interactive-card,
.xoo-interactive,
.xoo-points-v2 .xoo-card-v2 {
  transition:
    transform var(--xoo-motion-fast) var(--xoo-ease-out),
    border-color var(--xoo-motion-fast) var(--xoo-ease-out),
    background-color var(--xoo-motion-fast) var(--xoo-ease-out),
    box-shadow var(--xoo-motion-fast) var(--xoo-ease-out);
  transform-origin: center;
}

.xoo-interactive-card:hover,
.xoo-interactive:hover,
.xoo-points-v2 .xoo-card-v2:hover {
  border-color: rgba(255, 92, 147, 0.28);
  box-shadow: var(--xoo-shadow-md);
  transform: translateY(-2px);
}

.xoo-section-title-v2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
}

.xoo-section-title-v2 strong {
  color: var(--xoo-brand-400);
  font-size: 18px;
}

.xoo-section-title-v2 span {
  color: var(--xoo-text-tertiary);
  font-size: 12px;
  font-weight: 500;
}

.xoo-swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.xoo-swatch {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.xoo-swatch i {
  display: block;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
}

.xoo-swatch span,
.xoo-token-caption {
  color: var(--xoo-text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.xoo-spec-table {
  display: grid;
  gap: 8px;
}

.xoo-spec-row {
  display: grid;
  grid-template-columns: 80px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  color: var(--xoo-text-secondary);
  font-size: 12px;
}

.xoo-ds-grid {
  display: grid;
  gap: 12px;
}

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

.xoo-ds-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xoo-ds-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xoo-btn,
.xoo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--xoo-radius-md);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--xoo-motion-fast) var(--xoo-ease-out),
    border-color var(--xoo-motion-fast) var(--xoo-ease-out),
    background-color var(--xoo-motion-fast) var(--xoo-ease-out),
    box-shadow var(--xoo-motion-fast) var(--xoo-ease-out),
    opacity var(--xoo-motion-fast) var(--xoo-ease-out);
}

.xoo-btn:hover,
.xoo-button:hover {
  transform: translateY(-1px) scale(1.02);
}

.xoo-btn:active,
.xoo-button:active {
  transform: translateY(0) scale(0.98);
}

.xoo-btn--primary,
.xoo-button--primary {
  color: #fff;
  background: var(--xoo-gradient-brand);
  box-shadow: var(--xoo-shadow-brand);
}

.xoo-btn--secondary,
.xoo-button--secondary {
  color: var(--xoo-text-primary);
  border-color: var(--xoo-border-default);
  background: rgba(255, 255, 255, 0.04);
}

.xoo-btn--ghost,
.xoo-button--ghost {
  color: var(--xoo-brand-300);
  background: transparent;
}

.xoo-btn--danger,
.xoo-button--danger {
  color: #fff;
  background: linear-gradient(135deg, #ff626d, #df2d42);
}

.xoo-btn--success,
.xoo-button--success {
  color: #fff;
  background: linear-gradient(135deg, #32d987, #0aa867);
}

.xoo-btn--small,
.xoo-button--small {
  min-width: 76px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
}

.xoo-field-v2,
.xoo-field,
.xoo-input,
.xoo-select,
.xoo-textarea {
  width: 100%;
  border: 1px solid var(--xoo-border-default);
  border-radius: var(--xoo-radius-md);
  outline: none;
  background: var(--xoo-bg-ink);
  color: var(--xoo-text-primary);
  font-size: 14px;
  transition:
    border-color var(--xoo-motion-fast) var(--xoo-ease-out),
    box-shadow var(--xoo-motion-fast) var(--xoo-ease-out),
    background-color var(--xoo-motion-fast) var(--xoo-ease-out);
}

.xoo-field-v2,
.xoo-input,
.xoo-select {
  height: 40px;
  padding: 0 14px;
}

.xoo-textarea {
  min-height: 104px;
  padding: 12px 14px;
}

.xoo-field-v2::placeholder,
.xoo-input::placeholder,
.xoo-textarea::placeholder {
  color: rgba(195, 201, 212, 0.42);
}

.xoo-field-v2:focus,
.xoo-input:focus,
.xoo-select:focus,
.xoo-textarea:focus {
  border-color: rgba(255, 92, 147, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 92, 147, 0.12);
}

.xoo-tag-v2,
.xoo-tag,
.xoo-badge-v2,
.xoo-badge,
.xoo-status-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--xoo-radius-full);
  background: rgba(255, 255, 255, 0.055);
  color: var(--xoo-text-secondary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.xoo-tag-v2.is-active,
.xoo-badge-v2.is-brand,
.xoo-badge.is-brand {
  border-color: rgba(255, 92, 147, 0.42);
  background: rgba(255, 92, 147, 0.18);
  color: var(--xoo-brand-100);
}

.xoo-status-v2.is-success {
  border-color: rgba(12, 208, 132, 0.22);
  background: rgba(12, 208, 132, 0.12);
  color: #73efb7;
}

.xoo-status-v2.is-warning {
  border-color: rgba(255, 181, 71, 0.22);
  background: rgba(255, 181, 71, 0.12);
  color: #ffd08a;
}

.xoo-status-v2.is-danger {
  border-color: rgba(255, 98, 109, 0.26);
  background: rgba(255, 98, 109, 0.12);
  color: #ff8f98;
}

.xoo-empty-v2,
.xoo-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 32px;
  border: 1px dashed var(--xoo-border-default);
  border-radius: var(--xoo-radius-lg);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.xoo-empty-v2 strong,
.xoo-empty strong {
  color: var(--xoo-text-primary);
  font-size: 18px;
}

.xoo-empty-v2 p,
.xoo-empty p {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--xoo-text-tertiary);
  font-size: 13px;
  line-height: 1.65;
}

.xoo-toast-v2 {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--xoo-border-default);
  border-radius: var(--xoo-radius-md);
  background: rgba(17, 22, 31, 0.96);
  box-shadow: var(--xoo-shadow-md);
}

.xoo-skeleton-v2 {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  background-size: 220% 100%;
  animation: xooSkeletonMove 1.4s linear infinite;
}

@keyframes xooSkeletonMove {
  to { background-position: -220% 0; }
}

@keyframes xooFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.xoo-template-card {
  min-height: 248px;
  padding: 16px;
}

.xoo-template-browser {
  display: flex;
  gap: 8px;
  height: 28px;
  margin-bottom: 14px;
  align-items: center;
}

.xoo-template-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xoo-brand-400);
}

.xoo-template-hero {
  padding: 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 92, 147, 0.25), transparent 42%),
    linear-gradient(135deg, rgba(255, 92, 147, 0.14), rgba(120, 97, 255, 0.08));
}

.xoo-template-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.xoo-template-post {
  overflow: hidden;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.xoo-template-img {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(160deg, rgba(255, 92, 147, 0.28), transparent 54%),
    linear-gradient(320deg, rgba(120, 97, 255, 0.2), transparent 58%),
    var(--xoo-surface-3);
}

.xoo-template-post p {
  margin: 8px 8px 4px;
  color: var(--xoo-text-primary);
  font-size: 11px;
  font-weight: 700;
}

.xoo-template-post span {
  display: block;
  margin: 0 8px 9px;
  color: var(--xoo-brand-400);
  font-size: 11px;
  font-weight: 800;
}

body[data-page="profile"] .xoo-points-v2 {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
  animation: xooFadeUp var(--xoo-motion-normal) var(--xoo-ease-out);
}

body[data-page="profile"] .xoo-points-v2-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

body[data-page="profile"] .xoo-points-v2-header h2 {
  margin: 0;
  color: var(--xoo-text-primary);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
}

body[data-page="profile"] .xoo-points-v2-header p {
  margin: 8px 0 0;
  color: var(--xoo-text-secondary);
  font-size: 14px;
}

body[data-page="profile"] .xoo-points-v2-overview {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(150px, 0.85fr));
  gap: 14px;
}

body[data-page="profile"] .xoo-points-v2-balance,
body[data-page="profile"] .xoo-points-v2-stat {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

body[data-page="profile"] .xoo-points-v2-balance {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 210, 95, 0.34), transparent 25%),
    radial-gradient(circle at 78% 72%, rgba(255, 92, 147, 0.28), transparent 40%),
    linear-gradient(135deg, rgba(255, 92, 147, 0.2), rgba(120, 97, 255, 0.12)),
    var(--xoo-surface-2);
}

body[data-page="profile"] .xoo-points-v2-balance::after {
  content: "★";
  position: absolute;
  right: 24px;
  bottom: 18px;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd36a, #ff9a3c);
  color: rgba(80, 48, 0, 0.88);
  font-size: 34px;
  box-shadow: 0 14px 34px rgba(255, 181, 71, 0.24);
}

body[data-page="profile"] .xoo-points-v2-balance span,
body[data-page="profile"] .xoo-points-v2-stat span {
  color: var(--xoo-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

body[data-page="profile"] .xoo-points-v2-balance strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 12px 0 16px;
  color: #ffd282;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

body[data-page="profile"] .xoo-points-v2-stat strong {
  display: block;
  margin-top: 12px;
  color: var(--xoo-brand-400);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

body[data-page="profile"] .xoo-points-v2-stat em {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  padding: 5px 9px;
  border-radius: var(--xoo-radius-full);
  background: rgba(12, 208, 132, 0.12);
  color: #67efb4;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

body[data-page="profile"] .xoo-points-v2-stat em.is-muted {
  background: rgba(255, 255, 255, 0.055);
  color: var(--xoo-text-tertiary);
}

body[data-page="profile"] .xoo-points-v2-checkin {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
  scroll-margin-top: 96px;
}

body[data-page="profile"] .xoo-points-v2-checkin.is-highlight,
body[data-page="profile"] [data-profile-checkin-section].is-highlight {
  animation: xooCheckinGlow 1.2s ease both;
}

@keyframes xooCheckinGlow {
  0%, 100% { filter: none; }
  45% { filter: drop-shadow(0 0 24px rgba(255, 92, 147, 0.28)); }
}

body[data-page="profile"] .xoo-points-v2-calendar,
body[data-page="profile"] .xoo-points-v2-checkin-side,
body[data-page="profile"] .xoo-points-v2-rewards,
body[data-page="profile"] .xoo-points-v2-ledger,
body[data-page="profile"] .xoo-points-v2-rules {
  padding: 20px;
}

body[data-page="profile"] .xoo-points-v2-checkin-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-page="profile"] .xoo-points-v2-checkin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  align-items: center;
  gap: 18px;
  min-height: 190px;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 92, 147, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 92, 147, 0.09), rgba(120, 97, 255, 0.08)),
    var(--xoo-surface-1);
}

body[data-page="profile"] .xoo-checkin-v2-date {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--xoo-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

body[data-page="profile"] .xoo-points-v2-checkin-hero h3 {
  margin: 0;
  color: var(--xoo-text-primary);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

body[data-page="profile"] .xoo-points-v2-checkin-hero p {
  margin: 10px 0 0;
  color: var(--xoo-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

body[data-page="profile"] .xoo-points-v2-checkin-hero b {
  color: var(--xoo-brand-300);
}

body[data-page="profile"] .xoo-checkin-v2-button {
  display: flex;
  width: 148px;
  height: 148px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--xoo-gradient-brand);
  color: #fff;
  box-shadow: var(--xoo-shadow-brand);
  cursor: pointer;
  transition:
    transform var(--xoo-motion-fast) var(--xoo-ease-out),
    opacity var(--xoo-motion-fast) var(--xoo-ease-out),
    box-shadow var(--xoo-motion-fast) var(--xoo-ease-out);
}

body[data-page="profile"] .xoo-checkin-v2-button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 46px rgba(255, 79, 139, 0.28);
}

body[data-page="profile"] .xoo-checkin-v2-button:disabled {
  cursor: default;
  opacity: 0.88;
}

body[data-page="profile"] .xoo-checkin-v2-button strong {
  font-size: 17px;
  line-height: 1.2;
}

body[data-page="profile"] .xoo-checkin-v2-button span {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

body[data-page="profile"] .xoo-points-v2-calendar header,
body[data-page="profile"] .xoo-points-v2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body[data-page="profile"] .xoo-points-v2-section-head h3,
body[data-page="profile"] .xoo-points-v2-calendar header strong {
  margin: 0;
  color: var(--xoo-text-primary);
  font-size: 17px;
  font-weight: 800;
}

body[data-page="profile"] .xoo-points-v2-section-head p {
  margin: 5px 0 0;
  color: var(--xoo-text-tertiary);
  font-size: 12px;
}

body[data-page="profile"] .xoo-points-v2-calendar header button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--xoo-text-secondary);
  cursor: pointer;
}

body[data-page="profile"] .xoo-points-v2-calendar header button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

body[data-page="profile"] .xoo-calendar-v2-weekdays,
body[data-page="profile"] .xoo-calendar-v2-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

body[data-page="profile"] .xoo-calendar-v2-weekdays {
  margin-bottom: 8px;
  color: var(--xoo-text-tertiary);
  font-size: 12px;
  text-align: center;
}

body[data-page="profile"] .xoo-calendar-v2-day {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--xoo-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

body[data-page="profile"] .xoo-calendar-v2-day.is-outside {
  visibility: hidden;
}

body[data-page="profile"] .xoo-calendar-v2-day.is-signed {
  border-color: rgba(255, 92, 147, 0.38);
  background: rgba(255, 92, 147, 0.2);
  color: #fff;
}

body[data-page="profile"] .xoo-calendar-v2-day.is-today {
  border-color: rgba(12, 208, 132, 0.42);
  color: #9af6c8;
}

body[data-page="profile"] .xoo-calendar-v2-day.is-missed {
  color: rgba(195, 201, 212, 0.38);
}

body[data-page="profile"] .xoo-calendar-v2-day.is-future {
  opacity: 0.48;
}

body[data-page="profile"] .xoo-checkin-v2-note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="profile"] .xoo-checkin-v2-note-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--xoo-text-secondary);
  font-size: 13px;
}

body[data-page="profile"] .xoo-checkin-v2-note-list i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 92, 147, 0.14);
  color: var(--xoo-brand-300);
  font-style: normal;
}

body[data-page="profile"] .xoo-checkin-v2-note-list strong {
  color: #ffd282;
  white-space: nowrap;
}

body[data-page="profile"] .xoo-points-v2-rewards {
  overflow: hidden;
}

body[data-page="profile"] .xoo-reward-v2-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}

body[data-page="profile"] .xoo-reward-v2-track::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 92, 147, 0.55), rgba(255,255,255,0.08));
}

body[data-page="profile"] .xoo-reward-v2-node {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 8px 16px;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: var(--xoo-radius-md);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

body[data-page="profile"] .xoo-reward-v2-node > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: var(--xoo-surface-2);
  color: var(--xoo-text-secondary);
  font-weight: 800;
}

body[data-page="profile"] .xoo-reward-v2-node.is-done > span {
  border-color: rgba(12, 208, 132, 0.42);
  background: rgba(12, 208, 132, 0.18);
  color: #8af5bf;
}

body[data-page="profile"] .xoo-reward-v2-node strong,
body[data-page="profile"] .xoo-reward-v2-node em,
body[data-page="profile"] .xoo-reward-v2-node small {
  max-width: 100%;
  overflow: hidden;
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="profile"] .xoo-reward-v2-node strong {
  margin-top: 12px;
  color: var(--xoo-text-primary);
  font-size: 15px;
}

body[data-page="profile"] .xoo-reward-v2-node em {
  margin-top: 8px;
  color: #ffd282;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

body[data-page="profile"] .xoo-reward-v2-node small {
  margin-top: 6px;
  color: var(--xoo-text-tertiary);
  font-size: 12px;
}

body[data-page="profile"] .xoo-ledger-v2-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: var(--xoo-radius-md);
  background: rgba(255, 255, 255, 0.025);
}

body[data-page="profile"] .xoo-ledger-v2-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 148px 70px 86px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--xoo-border-subtle);
}

body[data-page="profile"] .xoo-ledger-v2-row:last-child {
  border-bottom: 0;
}

body[data-page="profile"] .xoo-ledger-v2-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 92, 147, 0.12);
  color: var(--xoo-brand-300);
  font-weight: 900;
}

body[data-page="profile"] .xoo-ledger-v2-row strong {
  display: block;
  color: var(--xoo-text-primary);
  font-size: 14px;
}

body[data-page="profile"] .xoo-ledger-v2-row p,
body[data-page="profile"] .xoo-ledger-v2-row time,
body[data-page="profile"] .xoo-ledger-v2-row small {
  margin: 0;
  color: var(--xoo-text-tertiary);
  font-size: 12px;
}

body[data-page="profile"] .xoo-ledger-v2-row em {
  color: var(--xoo-success);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

body[data-page="profile"] .xoo-ledger-v2-row em.is-expense {
  color: var(--xoo-danger);
}

body[data-page="profile"] .xoo-rules-v2-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="profile"] .xoo-rule-v2-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--xoo-border-subtle);
  border-radius: var(--xoo-radius-md);
  background: rgba(255, 255, 255, 0.03);
}

body[data-page="profile"] .xoo-rule-v2-item i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 92, 147, 0.12);
  color: var(--xoo-brand-300);
  font-style: normal;
}

body[data-page="profile"] .xoo-rule-v2-item strong {
  color: var(--xoo-text-primary);
  font-size: 14px;
}

body[data-page="profile"] .xoo-rule-v2-item p {
  margin: 6px 0 0;
  color: var(--xoo-text-tertiary);
  font-size: 12px;
  line-height: 1.55;
}

body[data-page="profile"] .xoo-v2-empty {
  min-height: 160px;
}

@media (max-width: 1440px) {
  .xoo-ds-page {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .xoo-ds-page > .xoo-ds-stack:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .xoo-points-v2-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .xoo-ds-page,
  .xoo-ds-page > .xoo-ds-stack:last-child,
  body[data-page="profile"] .xoo-points-v2-checkin,
  body[data-page="profile"] .xoo-rules-v2-list {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .xoo-points-v2-checkin-hero {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .xoo-checkin-v2-button {
    width: 100%;
    height: 92px;
    border-radius: var(--xoo-radius-lg);
  }

  body[data-page="profile"] .xoo-reward-v2-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .xoo-ds-v2 {
    padding: 12px;
  }

  .xoo-ds-grid.cols-2,
  .xoo-ds-grid.cols-3,
  .xoo-ds-grid.cols-4,
  .xoo-template-post-grid,
  body[data-page="profile"] .xoo-points-v2-overview {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .xoo-points-v2-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="profile"] .xoo-points-v2-header h2 {
    font-size: 28px;
  }

  body[data-page="profile"] .xoo-points-v2-calendar,
  body[data-page="profile"] .xoo-points-v2-checkin-side,
  body[data-page="profile"] .xoo-points-v2-rewards,
  body[data-page="profile"] .xoo-points-v2-ledger,
  body[data-page="profile"] .xoo-points-v2-rules {
    padding: 16px;
  }

  body[data-page="profile"] .xoo-ledger-v2-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  body[data-page="profile"] .xoo-ledger-v2-row time,
  body[data-page="profile"] .xoo-ledger-v2-row small {
    grid-column: 2 / -1;
  }
}

@media (max-width: 520px) {
  body[data-page="profile"] .xoo-reward-v2-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .xoo-calendar-v2-weekdays,
  body[data-page="profile"] .xoo-calendar-v2-grid {
    gap: 5px;
  }

  body[data-page="profile"] .xoo-calendar-v2-day {
    min-height: 36px;
    border-radius: 10px;
  }
}

/* XOO Design System V2.0 - front site migration */

body.xoo-front-v2 {
  --xoo-front-max: 1280px;
  --xoo-detail-max: 1040px;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 83, 147, 0.14), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(120, 97, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #080b10 0%, #0b1018 54%, #080b10 100%);
  color: var(--xoo-text);
}

body.xoo-front-v2::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

body.xoo-front-v2 *,
body.xoo-front-v2 *::before,
body.xoo-front-v2 *::after {
  box-sizing: border-box;
}

body.xoo-front-v2 .site-header,
body.xoo-front-v2 .detail-topbar {
  min-height: 64px;
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

body.xoo-front-v2 .site-header {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--xoo-front-max)) / 2));
}

body.xoo-front-v2 .logo,
body.xoo-front-v2 .share-icon {
  color: var(--xoo-brand);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 0 30px rgba(255, 83, 147, 0.32);
}

body.xoo-front-v2 .main-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

body.xoo-front-v2 .main-nav a {
  min-width: 78px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

body.xoo-front-v2 .main-nav a:hover,
body.xoo-front-v2 .main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 83, 147, 0.28), rgba(255, 123, 168, 0.16));
  transform: translateY(-1px);
}

body.xoo-front-v2 .page-shell {
  width: min(var(--xoo-front-max), calc(100% - 48px));
  max-width: none;
  margin: 24px auto 72px;
  padding: 0;
}

body.xoo-front-v2 .home-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.xoo-front-v2 .search-panel {
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(17, 20, 29, 0.92);
  box-shadow: var(--xoo-shadow-lg);
}

body.xoo-front-v2 .search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 104px;
  gap: 10px;
  align-items: center;
}

body.xoo-front-v2 input:not([type="checkbox"]):not([type="radio"]),
body.xoo-front-v2 textarea,
body.xoo-front-v2 select,
body.xoo-front-v2 #searchInput {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(8, 10, 15, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.xoo-front-v2 #searchInput {
  padding: 0 18px;
}

body.xoo-front-v2 input:not([type="checkbox"]):not([type="radio"]):focus,
body.xoo-front-v2 textarea:focus,
body.xoo-front-v2 select:focus,
body.xoo-front-v2 #searchInput:focus {
  border-color: rgba(255, 83, 147, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 83, 147, 0.14);
}

body.xoo-front-v2 .plain-btn,
body.xoo-front-v2 .primary-btn {
  height: 48px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.xoo-front-v2 .plain-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
}

body.xoo-front-v2 .primary-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: var(--xoo-gradient-brand);
  box-shadow: 0 16px 34px rgba(255, 83, 147, 0.28);
}

body.xoo-front-v2 .plain-btn:hover,
body.xoo-front-v2 .primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

body.xoo-front-v2 .location-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

body.xoo-front-v2 .location-link {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

body.xoo-front-v2 .feed-tabs {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin: 4px 0 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

body.xoo-front-v2 .feed-tab {
  min-width: 74px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.xoo-front-v2 .feed-tab.active {
  color: #fff;
  background: rgba(255, 83, 147, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 83, 147, 0.38);
}

body.xoo-front-v2 .filter-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(190px, 1.2fr) minmax(150px, 0.85fr) minmax(160px, 0.95fr) minmax(150px, 0.85fr) minmax(160px, 0.95fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  align-items: start;
}

body.xoo-front-v2 .filter-select {
  position: relative;
  min-width: 0;
}

body.xoo-front-v2 .filter-select-button {
  width: 100%;
  height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.xoo-front-v2 .filter-select-button span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.xoo-front-v2 .filter-select-button:hover,
body.xoo-front-v2 .filter-select.open .filter-select-button {
  border-color: rgba(255, 83, 147, 0.42);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

body.xoo-front-v2 .filter-select.is-disabled {
  opacity: 0.62;
}

body.xoo-front-v2 .filter-select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
}

body.xoo-front-v2 .filter-select-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 30;
  width: max(100%, 240px);
  max-height: 330px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(18, 22, 31, 0.98);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transform-origin: top left;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.xoo-front-v2 .filter-select.open .filter-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body.xoo-front-v2 .filter-select-service .filter-select-menu {
  right: 0;
  left: auto;
  width: min(420px, calc(100vw - 48px));
}

body.xoo-front-v2 .filter-select-option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

body.xoo-front-v2 .filter-select-option:hover,
body.xoo-front-v2 .filter-select-option.active {
  color: #fff;
  background: rgba(255, 83, 147, 0.16);
}

body.xoo-front-v2 .filter-service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.xoo-front-v2 .filter-service-chip,
body.xoo-front-v2 .active-filter-chip {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

body.xoo-front-v2 .filter-service-chip.active,
body.xoo-front-v2 .active-filter-chip {
  border-color: rgba(255, 83, 147, 0.42);
  background: rgba(255, 83, 147, 0.15);
  color: #fff;
}

body.xoo-front-v2 .filter-select-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

body.xoo-front-v2 .filter-select-actions .plain-btn,
body.xoo-front-v2 .filter-select-actions .primary-btn {
  height: 40px;
  border-radius: 12px;
}

body.xoo-front-v2 .active-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.xoo-front-v2 .feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

body.xoo-front-v2 .post-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: var(--xoo-shadow-md);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

body.xoo-front-v2 .post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 83, 147, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 83, 147, 0.06);
}

body.xoo-front-v2 .card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #030406;
}

body.xoo-front-v2 .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 280ms ease;
}

body.xoo-front-v2 .post-card:hover .card-media img {
  transform: scale(1.035);
}

body.xoo-front-v2 .verify-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(25, 199, 112, 0.9);
  color: #06130c;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

body.xoo-front-v2 .card-media-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.xoo-front-v2 .media-count-pill {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

body.xoo-front-v2 .media-count-pill svg {
  width: 14px;
  height: 14px;
}

body.xoo-front-v2 .card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 12px 10px;
}

body.xoo-front-v2 .card-body h3 {
  min-height: 42px;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.38;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 180ms ease;
}

body.xoo-front-v2 .post-card:hover .card-body h3 {
  color: #fff;
}

body.xoo-front-v2 .card-location,
body.xoo-front-v2 .card-distance {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

body.xoo-front-v2 .card-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.xoo-front-v2 .card-location svg,
body.xoo-front-v2 .card-views svg {
  width: 13px;
  height: 13px;
  color: var(--xoo-brand);
  flex: 0 0 auto;
}

body.xoo-front-v2 .card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
}

body.xoo-front-v2 .card-price {
  color: var(--xoo-brand);
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.xoo-front-v2 .card-year,
body.xoo-front-v2 .card-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  white-space: nowrap;
}

body.xoo-front-v2 .card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 0 10px 11px;
}

body.xoo-front-v2 .action-btn {
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

body.xoo-front-v2 .action-btn:hover,
body.xoo-front-v2 .action-btn.active {
  color: #fff;
  background: rgba(255, 83, 147, 0.14);
  border-color: rgba(255, 83, 147, 0.18);
}

body.xoo-front-v2 .action-btn svg {
  width: 15px;
  height: 15px;
}

body.xoo-front-v2 .more-btn {
  min-width: 58px;
}

body.xoo-front-v2 .post-list-state,
body.xoo-front-v2 .feed-loader {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(17, 20, 29, 0.78);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

body.xoo-front-v2 .post-list-state strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
}

body.xoo-front-v2 .feed-loader {
  min-height: 54px;
  padding: 16px;
}

body.xoo-front-v2 .detail-topbar {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  padding: 0 max(18px, calc((100vw - var(--xoo-detail-max)) / 2));
}

body.xoo-front-v2 .detail-topbar strong {
  justify-self: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 800;
}

body.xoo-front-v2 .back-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

body.xoo-front-v2 .back-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-2px);
}

body.xoo-front-v2 .share-icon {
  justify-self: end;
  font-size: 14px;
}

body.xoo-front-v2 .detail-shell {
  width: min(var(--xoo-detail-max), calc(100% - 48px));
}

body.xoo-front-v2 .detail-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
}

body.xoo-front-v2 .detail-header {
  width: 100%;
  padding: 6px 4px 2px;
}

body.xoo-front-v2 .detail-header h1 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 820;
}

body.xoo-front-v2 .detail-sub {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

body.xoo-front-v2 .detail-carousel {
  width: 100%;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(4, 5, 8, 0.92);
  box-shadow: var(--xoo-shadow-lg);
}

body.xoo-front-v2 .detail-carousel-stage {
  position: relative;
  width: 100%;
  height: clamp(520px, 68vh, 760px);
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

body.xoo-front-v2 .detail-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}

body.xoo-front-v2 .carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.66);
  color: #fff;
  line-height: 0;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

body.xoo-front-v2 .carousel-arrow.left {
  left: 16px;
}

body.xoo-front-v2 .carousel-arrow.right {
  right: 16px;
}

body.xoo-front-v2 .carousel-arrow svg {
  width: 24px;
  height: 24px;
  margin: 0;
  flex: 0 0 auto;
}

body.xoo-front-v2 .carousel-pagination {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 0;
}

body.xoo-front-v2 .carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

body.xoo-front-v2 .carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

body.xoo-front-v2 .carousel-dot.active {
  width: 20px;
  background: var(--xoo-brand);
}

body.xoo-front-v2 .carousel-counter {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

body.xoo-front-v2 .detail-video-panel,
body.xoo-front-v2 .detail-info-card,
body.xoo-front-v2 .detail-description,
body.xoo-front-v2 .detail-actions,
body.xoo-front-v2 .comments,
body.xoo-front-v2 .recommendations {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--xoo-shadow-md);
}

body.xoo-front-v2 .detail-info-card {
  padding: 8px 18px;
}

body.xoo-front-v2 .info-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.xoo-front-v2 .info-row:last-child {
  border-bottom: 0;
}

body.xoo-front-v2 .info-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 700;
}

body.xoo-front-v2 .info-icon,
body.xoo-front-v2 .info-icon svg {
  width: 18px;
  height: 18px;
  color: var(--xoo-brand);
}

body.xoo-front-v2 .info-value {
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

body.xoo-front-v2 .service-tags,
body.xoo-front-v2 .card-service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.xoo-front-v2 .service-tags span,
body.xoo-front-v2 .card-service-tags span {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 83, 147, 0.25);
  border-radius: 999px;
  background: rgba(255, 83, 147, 0.13);
  color: rgba(255, 220, 232, 0.96);
  font-size: 12px;
  font-weight: 750;
}

body.xoo-front-v2 .service-tags .muted-value {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.48);
}

body.xoo-front-v2 .contact-lock-panel {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

body.xoo-front-v2 .contact-lock-meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  text-align: left;
}

body.xoo-front-v2 .contact-lock-meta small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.44);
}

body.xoo-front-v2 .contact-unlocked-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.xoo-front-v2 .contact-unlocked-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

body.xoo-front-v2 .contact-unlocked-row strong {
  overflow-wrap: anywhere;
  text-align: left;
}

body.xoo-front-v2 .contact-unlocked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

body.xoo-front-v2 .contact-unlocked-actions .plain-btn {
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
}

body.xoo-front-v2 .detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

body.xoo-front-v2 .detail-description,
body.xoo-front-v2 .comments,
body.xoo-front-v2 .recommendations {
  padding: 20px;
}

body.xoo-front-v2 .detail-description h2,
body.xoo-front-v2 .comments h2,
body.xoo-front-v2 .recommendations h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
}

body.xoo-front-v2 .detail-description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}

body.xoo-front-v2 .comment-form {
  display: grid;
  gap: 12px;
}

body.xoo-front-v2 #commentInput {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

body.xoo-front-v2 .comment-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.xoo-front-v2 .comment-image-trigger,
body.xoo-front-v2 #submitComment {
  height: 42px;
  border-radius: 12px;
}

body.xoo-front-v2 .comment-thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

body.xoo-front-v2 .comment-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

body.xoo-front-v2 .comment-body header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

body.xoo-front-v2 .comment-body strong {
  color: rgba(255, 255, 255, 0.9);
}

body.xoo-front-v2 .comment-body p {
  margin: 8px 0 10px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

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

  body.xoo-front-v2 .filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  body.xoo-front-v2 .site-header {
    grid-template-columns: 120px 1fr 24px;
    padding: 0 16px;
  }

  body.xoo-front-v2 .page-shell,
  body.xoo-front-v2 .detail-shell {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  body.xoo-front-v2 .search-panel {
    padding: 14px;
    border-radius: 18px;
  }

  body.xoo-front-v2 .search-box {
    grid-template-columns: 35fr 65fr;
  }

  body.xoo-front-v2 #searchInput {
    grid-column: 1 / -1;
  }

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

  body.xoo-front-v2 .mobile-filter-toggle {
    display: none;
  }

  body.xoo-front-v2 .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.xoo-front-v2 .card-actions {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 7px 9px;
  }

  body.xoo-front-v2 .action-btn {
    height: 32px;
    padding: 0 3px;
  }

  body.xoo-front-v2 .detail-topbar {
    padding: 0 12px;
  }

  body.xoo-front-v2 .detail-carousel-stage {
    height: min(72vh, 560px);
  }

  body.xoo-front-v2 .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  body.xoo-front-v2 .contact-lock-panel,
  body.xoo-front-v2 .detail-actions,
  body.xoo-front-v2 .contact-unlocked-row {
    grid-template-columns: 1fr;
  }

  body.xoo-front-v2 .contact-unlocked-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  body.xoo-front-v2 .filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.xoo-front-v2 .filter-select-button {
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  body.xoo-front-v2 .feed-tab {
    min-width: 64px;
    height: 38px;
    font-size: 13px;
  }

  body.xoo-front-v2 .card-body {
    padding: 10px 9px 8px;
  }

  body.xoo-front-v2 .card-body h3 {
    min-height: 38px;
    font-size: 13px;
  }

  body.xoo-front-v2 .card-meta {
    grid-template-columns: 1fr auto;
  }

  body.xoo-front-v2 .card-views {
    display: none;
  }

  body.xoo-front-v2 .verify-badge {
    height: 22px;
    max-width: calc(100% - 16px);
    padding: 0 7px;
    font-size: 10px;
  }

  body.xoo-front-v2 .media-count-pill {
    height: 23px;
    padding: 0 6px;
  }
}

body.xoo-front-v2[data-page="home"] #postList.feed {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.xoo-front-v2[data-page="home"] #postList.feed .post-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.xoo-front-v2[data-page="home"] #postList.feed .card-price,
body.xoo-front-v2[data-page="post-detail"] .detail-info-card .info-value .card-price {
  color: var(--xoo-brand) !important;
}

@media (max-width: 1279px) {
  body.xoo-front-v2[data-page="home"] #postList.feed {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 899px) {
  body.xoo-front-v2[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 359px) {
  body.xoo-front-v2[data-page="home"] #postList.feed {
    grid-template-columns: 1fr !important;
  }
}

/* XOO UI V2.0 final polish layer. Keep this block last. */
:root {
  --xoo-final-bg: #070911;
  --xoo-final-bg-2: #0d1020;
  --xoo-final-panel: rgba(19, 16, 34, 0.82);
  --xoo-final-panel-strong: rgba(25, 20, 44, 0.92);
  --xoo-final-panel-soft: rgba(255, 255, 255, 0.055);
  --xoo-final-border: rgba(203, 154, 255, 0.16);
  --xoo-final-border-strong: rgba(211, 140, 255, 0.32);
  --xoo-final-text: #f8f4ff;
  --xoo-final-muted: rgba(236, 224, 255, 0.68);
  --xoo-final-faint: rgba(236, 224, 255, 0.46);
  --xoo-final-purple: #a85cff;
  --xoo-final-purple-2: #7c4dff;
  --xoo-final-pink: #ff5dae;
  --xoo-final-rose: #ff7a93;
  --xoo-final-cyan: #62e7ff;
  --xoo-final-gold: #ffd166;
  --xoo-final-green: #4ee69a;
  --xoo-final-danger: #ff626d;
  --xoo-final-radius-xs: 6px;
  --xoo-final-radius-sm: 8px;
  --xoo-final-radius-md: 10px;
  --xoo-final-radius-lg: 12px;
  --xoo-final-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.28);
  --xoo-final-shadow-md: 0 14px 42px rgba(3, 0, 16, 0.42);
  --xoo-final-shadow-glow: 0 0 0 1px rgba(194, 116, 255, 0.20), 0 18px 48px rgba(95, 37, 170, 0.32);
  --xoo-final-gradient: linear-gradient(135deg, #8e55ff 0%, #cf4dff 48%, #ff5f9f 100%);
  --xoo-final-gradient-soft:
    radial-gradient(circle at 18% 16%, rgba(174, 91, 255, 0.26), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(255, 93, 174, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(18, 15, 36, 0.95), rgba(9, 11, 24, 0.96));
  --xoo-final-speed: 220ms;
  --xoo-final-ease: cubic-bezier(0.2, 0, 0, 1);
}

html {
  background: var(--xoo-final-bg);
}

body[data-page] {
  min-height: 100vh;
  color: var(--xoo-final-text);
  background:
    radial-gradient(circle at 12% -4%, rgba(156, 83, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 0%, rgba(255, 84, 170, 0.12), transparent 26%),
    linear-gradient(180deg, #060814 0%, #0b0d18 48%, #070912 100%) !important;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

body[data-page]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 74%);
}

body[data-page] *,
body[data-page] *::before,
body[data-page] *::after {
  transition-duration: var(--xoo-final-speed);
  transition-timing-function: var(--xoo-final-ease);
}

body[data-page] .page-shell {
  width: min(1260px, calc(100% - 28px));
}

body[data-page] .site-header,
body[data-page] .detail-topbar,
body[data-page] .admin-topbar {
  border-bottom: 1px solid var(--xoo-final-border) !important;
  background: rgba(7, 9, 18, 0.78) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px) saturate(1.2);
}

body[data-page] .logo {
  color: transparent !important;
  background: linear-gradient(135deg, #ffffff 0%, #dcb8ff 36%, #ff72b6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 26px rgba(168, 92, 255, 0.22);
}

body[data-page] .main-nav a,
body[data-page] .admin-side-nav button,
body[data-page] .admin-nav-group summary {
  border: 1px solid transparent;
  border-radius: var(--xoo-final-radius-sm) !important;
  color: var(--xoo-final-muted) !important;
  transition: color var(--xoo-final-speed) var(--xoo-final-ease), background var(--xoo-final-speed) var(--xoo-final-ease), border-color var(--xoo-final-speed) var(--xoo-final-ease), transform var(--xoo-final-speed) var(--xoo-final-ease);
}

body[data-page] .main-nav a:hover,
body[data-page] .admin-side-nav button:hover,
body[data-page] .admin-nav-group summary:hover {
  color: var(--xoo-final-text) !important;
  border-color: var(--xoo-final-border);
  background: rgba(168, 92, 255, 0.10);
}

body[data-page] .main-nav a.active,
body[data-page] .admin-side-nav button.active {
  color: #fff !important;
  border-color: rgba(197, 119, 255, 0.46) !important;
  background: linear-gradient(135deg, rgba(126, 79, 255, 0.30), rgba(255, 93, 174, 0.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 8px 18px rgba(104, 58, 191, 0.20);
}

body[data-page] .search-panel,
body[data-page] .auth-card,
body[data-page] .admin-login-card,
body[data-page] .admin-card,
body[data-page] .admin-filter-panel,
body[data-page] .profile-card,
body[data-page] .profile-content,
body[data-page] .profile-hero-card,
body[data-page] .points-overview-card,
body[data-page] .points-ledger-card,
body[data-page] .points-rules-card,
body[data-page] .points-checkin-unified,
body[data-page] .xoo-card-v2,
body[data-page] .detail-info-card,
body[data-page] .detail-description,
body[data-page] .comments,
body[data-page] .recommendations,
body[data-page] .confirm-dialog,
body[data-page] .share-modal,
body[data-page] .report-modal,
body[data-page] .profile-drawer-panel,
body[data-page] .admin-user-drawer-panel {
  border: 1px solid var(--xoo-final-border) !important;
  border-radius: var(--xoo-final-radius-lg) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    var(--xoo-final-panel) !important;
  box-shadow: var(--xoo-final-shadow-md) !important;
  backdrop-filter: blur(18px) saturate(1.12);
}

body[data-page] .search-panel {
  position: relative;
  gap: 12px !important;
  padding: 14px !important;
  overflow: visible;
}

body[data-page] .search-panel::before,
body[data-page] .profile-hero-card::before,
body[data-page] .auth-card::before,
body[data-page] .admin-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 16% 0%, rgba(168, 92, 255, 0.20), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(255, 93, 174, 0.16), transparent 28%);
}

body[data-page] .search-panel > *,
body[data-page] .profile-hero-card > *,
body[data-page] .auth-card > *,
body[data-page] .admin-login-card > * {
  position: relative;
  z-index: 1;
}

body[data-page] input:not([type="checkbox"]):not([type="radio"]),
body[data-page] select,
body[data-page] textarea,
body[data-page] .filter-select-button {
  min-height: 42px;
  border: 1px solid rgba(203, 154, 255, 0.17) !important;
  border-radius: var(--xoo-final-radius-sm) !important;
  background: rgba(6, 8, 18, 0.62) !important;
  color: var(--xoo-final-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  outline: 0;
  transition: border-color var(--xoo-final-speed) var(--xoo-final-ease), box-shadow var(--xoo-final-speed) var(--xoo-final-ease), background var(--xoo-final-speed) var(--xoo-final-ease);
}

body[data-page] input:not([type="checkbox"]):not([type="radio"])::placeholder,
body[data-page] textarea::placeholder {
  color: rgba(236, 224, 255, 0.38);
}

body[data-page] input:not([type="checkbox"]):not([type="radio"]):hover,
body[data-page] select:hover,
body[data-page] textarea:hover,
body[data-page] .filter-select-button:hover {
  border-color: rgba(209, 139, 255, 0.38) !important;
  background: rgba(13, 12, 28, 0.78) !important;
}

body[data-page] input:not([type="checkbox"]):not([type="radio"]):focus,
body[data-page] select:focus,
body[data-page] textarea:focus,
body[data-page] .filter-select.open .filter-select-button {
  border-color: rgba(221, 147, 255, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(168, 92, 255, 0.18), 0 0 28px rgba(168, 92, 255, 0.18) !important;
}

body[data-page] .primary-btn,
body[data-page] .plain-btn,
body[data-page] .feed-tab,
body[data-page] .action-btn,
body[data-page] .xoo-btn,
body[data-page] .admin-icon-button,
body[data-page] .admin-list-actions button,
body[data-page] .admin-table-actions button,
body[data-page] .admin-pagination button,
body[data-page] .password-toggle,
body[data-page] .captcha-image {
  min-height: 38px;
  border-radius: var(--xoo-final-radius-sm) !important;
  border: 1px solid rgba(203, 154, 255, 0.18) !important;
  color: var(--xoo-final-text) !important;
  transition: transform var(--xoo-final-speed) var(--xoo-final-ease), border-color var(--xoo-final-speed) var(--xoo-final-ease), box-shadow var(--xoo-final-speed) var(--xoo-final-ease), background var(--xoo-final-speed) var(--xoo-final-ease), filter var(--xoo-final-speed) var(--xoo-final-ease);
}

body[data-page] .primary-btn,
body[data-page] .xoo-btn--primary,
body[data-page] .checkin-button,
body[data-page] .xoo-checkin-v2-button,
body[data-page] #submitComment {
  border-color: rgba(255, 255, 255, 0.10) !important;
  background: var(--xoo-final-gradient) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(149, 77, 255, 0.30);
}

body[data-page] .plain-btn,
body[data-page] .feed-tab,
body[data-page] .action-btn,
body[data-page] .admin-icon-button,
body[data-page] .password-toggle,
body[data-page] .captcha-image {
  background: rgba(255, 255, 255, 0.055) !important;
}

body[data-page] button:hover,
body[data-page] a[role="button"]:hover,
body[data-page] .interactive-card:hover,
body[data-page] .xoo-interactive-card:hover {
  transform: translateY(-1px);
}

body[data-page] button:active,
body[data-page] .action-btn:active,
body[data-page] .feed-tab:active {
  transform: scale(0.985);
}

body[data-page] .primary-btn:hover,
body[data-page] .plain-btn:hover,
body[data-page] .feed-tab:hover,
body[data-page] .action-btn:hover,
body[data-page] .admin-icon-button:hover {
  border-color: rgba(224, 155, 255, 0.46) !important;
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(111, 58, 201, 0.20);
}

body[data-page] .feed-tab.active,
body[data-page] .action-btn.active,
body[data-page] .filter-service-chip.active,
body[data-page] .filter-select-option.active,
body[data-page] .active-filter-chip {
  border-color: rgba(225, 149, 255, 0.52) !important;
  background: linear-gradient(135deg, rgba(139, 88, 255, 0.36), rgba(255, 93, 174, 0.18)) !important;
  color: #fff !important;
}

body[data-page="home"] .search-box {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

body[data-page="home"] #searchInput {
  min-height: 52px;
  padding-inline: 18px;
  border-radius: var(--xoo-final-radius-lg) !important;
  font-size: 15px;
}

body[data-page="home"] .filter-row {
  gap: 9px !important;
}

body[data-page] .filter-select-menu,
body[data-page] .admin-account-menu,
body[data-page] .post-more-menu {
  border: 1px solid var(--xoo-final-border-strong) !important;
  border-radius: var(--xoo-final-radius-md) !important;
  background: rgba(12, 10, 25, 0.96) !important;
  box-shadow: var(--xoo-final-shadow-glow) !important;
  backdrop-filter: blur(18px);
}

body[data-page="home"] #postList.feed .post-card,
body[data-page] .profile-post-row,
body[data-page] .compact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--xoo-final-border) !important;
  border-radius: var(--xoo-final-radius-lg) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.026)), rgba(17, 14, 31, 0.86) !important;
  box-shadow: var(--xoo-final-shadow-sm) !important;
  transition: transform var(--xoo-final-speed) var(--xoo-final-ease), box-shadow var(--xoo-final-speed) var(--xoo-final-ease), border-color var(--xoo-final-speed) var(--xoo-final-ease);
}

body[data-page="home"] #postList.feed .post-card::after,
body[data-page] .compact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%, rgba(156, 83, 255, 0.08));
  opacity: 0;
  transition: opacity var(--xoo-final-speed) var(--xoo-final-ease);
}

body[data-page="home"] #postList.feed .post-card:hover,
body[data-page] .profile-post-row:hover,
body[data-page] .compact-card:hover {
  transform: translateY(-3px);
  border-color: var(--xoo-final-border-strong) !important;
  box-shadow: var(--xoo-final-shadow-glow) !important;
}

body[data-page="home"] #postList.feed .post-card:hover::after,
body[data-page] .compact-card:hover::after {
  opacity: 1;
}

body[data-page] .card-media,
body[data-page] .compact-thumb,
body[data-page] .profile-post-thumb {
  border-radius: var(--xoo-final-radius-sm) !important;
  overflow: hidden;
  background: #10101d;
}

body[data-page] .card-media img,
body[data-page] .compact-thumb img,
body[data-page] .profile-post-thumb img,
body[data-page] .detail-carousel-image {
  transition: transform 240ms var(--xoo-final-ease), filter 240ms var(--xoo-final-ease), opacity 240ms var(--xoo-final-ease);
}

body[data-page="home"] #postList.feed .post-card:hover .card-media img,
body[data-page] .compact-card:hover img,
body[data-page] .profile-post-row:hover img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

body[data-page] .verify-badge,
body[data-page] .vip-badge,
body[data-page] .media-count-pill,
body[data-page] .card-service-tags span,
body[data-page] .service-tags span,
body[data-page] .admin-status,
body[data-page] .status-pill {
  border: 1px solid rgba(203, 154, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(168, 92, 255, 0.16) !important;
  color: #f7ecff !important;
}

body[data-page] .card-price,
body[data-page] .detail-price,
body[data-page] .points-balance-card strong,
body[data-page] .xoo-points-v2-balance strong {
  color: #ff7ac2 !important;
  text-shadow: 0 0 18px rgba(255, 93, 174, 0.18);
}

body[data-page="post-detail"] .detail-layout {
  gap: 16px !important;
}

body[data-page="post-detail"] .detail-header {
  border: 1px solid var(--xoo-final-border);
  border-radius: var(--xoo-final-radius-lg);
  background: var(--xoo-final-gradient-soft);
  box-shadow: var(--xoo-final-shadow-sm);
}

body[data-page="post-detail"] .detail-carousel,
body[data-page="post-detail"] .detail-carousel-stage {
  border-radius: var(--xoo-final-radius-lg) !important;
}

body[data-page] .carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(8, 8, 18, 0.58) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

body[data-page] .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28) !important;
}

body[data-page] .carousel-dot.active {
  width: 22px;
  background: linear-gradient(90deg, var(--xoo-final-purple), var(--xoo-final-pink)) !important;
}

body[data-page] .contact-lock-panel,
body[data-page] .contact-unlocked-row {
  border: 1px solid rgba(255, 93, 174, 0.24) !important;
  border-radius: var(--xoo-final-radius-md) !important;
  background: linear-gradient(135deg, rgba(255, 93, 174, 0.14), rgba(168, 92, 255, 0.12)) !important;
}

body[data-page="profile"] .profile-shell {
  width: min(1120px, calc(100% - 28px));
}

body[data-page="profile"] .profile-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(134, 80, 255, 0.92), rgba(198, 67, 205, 0.84) 52%, rgba(255, 93, 154, 0.76)) !important;
}

body[data-page="profile"] .profile-hero-avatar,
body[data-page="profile"] .profile-community-empty-avatar,
body[data-page="admin"] .admin-avatar,
body[data-page] .avatar,
body[data-page] .avatar-fallback {
  border: 2px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

body[data-page="profile"] .profile-menu button,
body[data-page="profile"] .profile-action-tile,
body[data-page="profile"] .profile-point-tile,
body[data-page="profile"] .points-item,
body[data-page="profile"] .profile-stat-card {
  border: 1px solid var(--xoo-final-border) !important;
  border-radius: var(--xoo-final-radius-md) !important;
  background: rgba(255, 255, 255, 0.052) !important;
  box-shadow: var(--xoo-final-shadow-sm);
}

body[data-page="profile"] .profile-menu button:hover,
body[data-page="profile"] .profile-action-tile:hover,
body[data-page="profile"] .profile-point-tile:hover,
body[data-page="profile"] .points-item:hover {
  transform: translateY(-2px);
  border-color: var(--xoo-final-border-strong) !important;
  background: rgba(168, 92, 255, 0.13) !important;
}

body[data-page="profile"] .points-balance-card,
body[data-page="profile"] .xoo-points-v2-balance {
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(137, 86, 255, 0.86), rgba(223, 73, 208, 0.76)) !important;
}

body[data-page="profile"] .xoo-calendar-v2-day,
body[data-page="profile"] .xoo-calendar-day {
  border-radius: var(--xoo-final-radius-sm) !important;
}

body[data-page="profile"] .xoo-calendar-v2-day.is-signed,
body[data-page="profile"] .xoo-calendar-day.is-signed {
  background: linear-gradient(135deg, rgba(78, 230, 154, 0.22), rgba(98, 231, 255, 0.12)) !important;
  color: #eafff6 !important;
}

body[data-page="login"] .auth-shell,
body[data-page="admin"] .admin-shell {
  align-items: start;
}

body[data-page="login"] .auth-card,
body[data-page="admin"] .admin-login-card {
  position: relative;
  overflow: hidden;
}

body[data-page="login"] .auth-card h1,
body[data-page="admin"] .admin-login-card h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

body[data-page="login"] .auth-links a,
body[data-page="login"] .plain-link {
  color: rgba(236, 224, 255, 0.76) !important;
}

body[data-page="admin"] {
  --admin-bg: var(--xoo-final-bg);
  --admin-panel: rgba(18, 15, 33, 0.86);
  --admin-card: rgba(255, 255, 255, 0.055);
  --admin-border: var(--xoo-final-border);
  --admin-text: var(--xoo-final-text);
  --admin-muted: var(--xoo-final-muted);
  --admin-brand: var(--xoo-final-purple);
}

body[data-page="admin"] .admin-panel {
  gap: 14px;
}

body[data-page="admin"] .admin-sidebar,
body[data-page="admin"] .admin-workspace {
  border-color: var(--xoo-final-border) !important;
  background: rgba(11, 10, 24, 0.78) !important;
  backdrop-filter: blur(18px);
}

body[data-page="admin"] .admin-page-title,
body[data-page="admin"] .admin-metric,
body[data-page="admin"] .admin-filter-panel,
body[data-page="admin"] .admin-data-table,
body[data-page="admin"] .admin-upload-zone,
body[data-page="admin"] .image-preview-item,
body[data-page="admin"] .video-preview-box {
  border-color: var(--xoo-final-border) !important;
  border-radius: var(--xoo-final-radius-lg) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body[data-page="admin"] .admin-metric:hover,
body[data-page="admin"] .admin-card:hover,
body[data-page="admin"] .image-preview-item:hover {
  transform: translateY(-2px);
  border-color: var(--xoo-final-border-strong) !important;
  box-shadow: var(--xoo-final-shadow-glow) !important;
}

body[data-page="admin"] table {
  border-collapse: separate;
  border-spacing: 0;
}

body[data-page="admin"] th {
  color: rgba(236, 224, 255, 0.72) !important;
  background: rgba(168, 92, 255, 0.08) !important;
}

body[data-page="admin"] td {
  border-color: rgba(203, 154, 255, 0.10) !important;
}

body[data-page] .toast,
body[data-page] .xoo-toast-v2 {
  border: 1px solid var(--xoo-final-border-strong) !important;
  border-radius: var(--xoo-final-radius-md) !important;
  background: rgba(11, 10, 23, 0.92) !important;
  color: var(--xoo-final-text) !important;
  box-shadow: var(--xoo-final-shadow-glow) !important;
  backdrop-filter: blur(18px);
}

body[data-page] .empty,
body[data-page] .xoo-empty,
body[data-page] .xoo-empty-v2,
body[data-page] .post-list-state,
body[data-page] .profile-mini-empty,
body[data-page] .admin-empty-state,
body[data-page] .admin-empty-inline {
  border: 1px solid rgba(203, 154, 255, 0.15) !important;
  border-radius: var(--xoo-final-radius-lg) !important;
  background: rgba(255, 255, 255, 0.042) !important;
  color: var(--xoo-final-muted) !important;
}

body[data-page] .feed-skeleton,
body[data-page] .xoo-skeleton,
body[data-page] .xoo-skeleton-v2,
body[data-page] .skeleton-card {
  border-radius: var(--xoo-final-radius-lg) !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(168, 92, 255, 0.12), rgba(255, 255, 255, 0.045)) !important;
  background-size: 220% 100% !important;
  animation: xooFinalSkeleton 1.2s linear infinite;
}

@keyframes xooFinalSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

body[data-page] .confirm-dialog-backdrop,
body[data-page] .share-modal-backdrop,
body[data-page] .report-modal-backdrop,
body[data-page] .image-lightbox {
  background: rgba(3, 4, 10, 0.72) !important;
  backdrop-filter: blur(12px);
}

body[data-page] .modal-close,
body[data-page] .admin-drawer-close {
  border-radius: var(--xoo-final-radius-sm) !important;
}

/* Detail contact and related posts: unified gated flow. */
body[data-page="post-detail"] .contact-gate-card {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body[data-page="post-detail"] .contact-gate-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 760;
}

body[data-page="post-detail"] .contact-gate-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #ffd7e8;
  background: linear-gradient(135deg, rgba(137, 82, 255, 0.42), rgba(255, 83, 147, 0.34));
  box-shadow: 0 12px 28px rgba(168, 92, 255, 0.2);
}

body[data-page="post-detail"] .contact-gate-icon svg {
  width: 17px;
  height: 17px;
}

body[data-page="post-detail"] .contact-unlock-btn {
  width: auto !important;
  min-width: 132px;
  height: 46px !important;
  padding: 0 22px !important;
  flex: 0 0 auto;
  border-radius: 14px !important;
  font-size: 15px !important;
  line-height: 46px;
  white-space: nowrap;
}

body[data-page="post-detail"] .contact-unlock-btn.is-loading {
  opacity: 0.78;
  cursor: wait;
}

body[data-page="post-detail"] .confirm-dialog {
  width: min(420px, calc(100vw - 32px));
  border-radius: 18px !important;
}

body[data-page="post-detail"] .confirm-dialog-body dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

body[data-page="post-detail"] .confirm-dialog-body dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="post-detail"] .confirm-dialog-body dt {
  color: rgba(255, 255, 255, 0.62);
}

body[data-page="post-detail"] .confirm-dialog-body dd {
  margin: 0;
  color: rgba(255, 221, 235, 0.96);
  font-weight: 780;
}

body[data-page="post-detail"] .related-skeleton-card {
  min-height: 168px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(203, 154, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(168, 92, 255, 0.13), rgba(255, 255, 255, 0.04));
  background-size: 100% 100%, 220% 100%;
  animation: xooFinalSkeleton 1.2s linear infinite;
}

body[data-page="post-detail"] .related-skeleton-card span,
body[data-page="post-detail"] .related-skeleton-card strong,
body[data-page="post-detail"] .related-skeleton-card em {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

body[data-page="post-detail"] .related-skeleton-card span {
  height: 84px;
  margin-bottom: 8px;
}

body[data-page="post-detail"] .related-skeleton-card strong {
  width: 72%;
}

body[data-page="post-detail"] .related-skeleton-card em {
  width: 52%;
}

@media (max-width: 640px) {
  body[data-page="post-detail"] .contact-gate-card {
    min-height: 52px;
    gap: 12px;
  }

  body[data-page="post-detail"] .contact-unlock-btn {
    min-width: 120px;
    height: 44px !important;
    padding-inline: 16px !important;
    line-height: 44px;
  }

  body[data-page="post-detail"] .recommend-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(176px, 62vw);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }

  body[data-page="post-detail"] .recommend-grid .compact-card,
  body[data-page="post-detail"] .related-skeleton-card {
    scroll-snap-align: start;
  }
}

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

@media (max-width: 1279px) {
  body[data-page] .page-shell {
    width: min(1040px, calc(100% - 24px));
  }

  body[data-page="home"] #postList.feed {
    gap: 14px !important;
  }
}

@media (max-width: 899px) {
  body[data-page] .site-header {
    grid-template-columns: 92px minmax(0, 1fr) 16px !important;
    min-height: 54px;
    padding-inline: 14px !important;
  }

  body[data-page] .main-nav {
    justify-content: flex-end;
  }

  body[data-page] .main-nav a {
    min-width: 0;
    padding-inline: 12px;
  }

  body[data-page="home"] .search-box {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="home"] #searchInput {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  body[data-page="home"] .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page="post-detail"] .detail-carousel-stage {
    min-height: 320px;
  }

  body[data-page="admin"] .admin-panel {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  body[data-page] .page-shell {
    width: calc(100% - 18px);
    margin-top: 12px;
  }

  body[data-page="home"] #postList.feed {
    gap: 9px !important;
  }

  body[data-page="home"] #postList.feed .post-card {
    border-radius: var(--xoo-final-radius-md) !important;
  }

  body[data-page] .primary-btn,
  body[data-page] .plain-btn,
  body[data-page] .feed-tab,
  body[data-page] .action-btn {
    min-height: 36px;
    padding-inline: 10px;
  }

  body[data-page] .search-panel,
  body[data-page] .auth-card,
  body[data-page] .admin-login-card,
  body[data-page] .profile-hero-card {
    border-radius: var(--xoo-final-radius-lg) !important;
  }
}

/* Final overflow guards for compressed desktop zoom and narrow filter controls. */
body[data-page] .filter-select,
body[data-page] .filter-select-button,
body[data-page] .card-actions,
body[data-page] .action-btn {
  min-width: 0;
}

body[data-page] .filter-select-button {
  overflow: hidden;
}

body[data-page] .filter-select-button span:first-child,
body[data-page] .action-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page] .filter-select-menu {
  width: min(235px, calc(100vw - 32px));
  min-width: 100%;
  max-width: calc(100vw - 32px);
}

body[data-page] .filter-select:not(.open) .filter-select-menu {
  display: none;
}

body[data-page] .card-actions {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

body[data-page] .card-actions .action-btn {
  padding-inline: 4px;
}

body[data-page] .card-location span {
  display: block;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 980px) {
  body[data-page] .card-actions .action-btn {
    font-size: 11px;
  }
}

/* Google Safe Browsing trust pages and site identity elements. */
body[data-page] .site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 26px;
  padding: 18px 20px;
  border: 1px solid rgba(203, 154, 255, 0.14);
  border-radius: var(--xoo-final-radius-md);
  background: rgba(12, 14, 26, 0.72);
  color: rgba(236, 224, 255, 0.66);
  text-align: center;
}

body[data-page] .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-bottom: 8px;
}

body[data-page] .site-footer p {
  margin: 0;
}

body[data-page] .site-footer .footer-trust-line {
  margin-top: 6px;
  color: rgba(236, 224, 255, 0.48);
  font-size: 12px;
  line-height: 1.6;
}

body[data-page] .site-footer a,
body[data-page] .static-card a,
body[data-page] .register-agreement-row a {
  color: rgba(220, 172, 255, 0.92);
  text-decoration: none;
}

body[data-page] .site-footer a:hover,
body[data-page] .static-card a:hover,
body[data-page] .register-agreement-row a:hover {
  color: #fff;
}

body[data-page="static"] .static-shell {
  display: block;
  padding-top: 26px;
}

body[data-page="static"] .static-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--xoo-final-border);
  border-radius: var(--xoo-final-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    var(--xoo-final-panel);
  box-shadow: var(--xoo-final-shadow-md);
  color: var(--xoo-final-text);
}

body[data-page="static"] .static-card h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
}

body[data-page="static"] .static-card h2 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
}

body[data-page="static"] .static-card p {
  color: rgba(236, 224, 255, 0.76);
  line-height: 1.75;
}

body[data-page="static"] .static-section,
body[data-page="static"] .faq-list details,
body[data-page] .trust-notice {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(203, 154, 255, 0.13);
  border-radius: var(--xoo-final-radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

body[data-page] .official-kicker {
  margin: 0 0 8px;
  color: rgba(220, 172, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

body[data-page] .trust-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

body[data-page] .trust-notice p {
  margin: 6px 0 0;
  color: rgba(236, 224, 255, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

body[data-page="static"] .contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body[data-page="static"] .contact-list p {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(203, 154, 255, 0.12);
  border-radius: var(--xoo-final-radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

body[data-page="static"] .faq-list summary {
  cursor: pointer;
  color: #fff;
  font-weight: 800;
}

body[data-page="static"] .static-copyright {
  margin-top: 22px;
  color: rgba(236, 224, 255, 0.58);
}

@media (max-width: 640px) {
  body[data-page] .site-footer {
    width: calc(100% - 18px);
    padding-inline: 12px;
  }

  body[data-page="static"] .static-card {
    padding: 22px;
  }

  body[data-page="static"] .contact-list p {
    grid-template-columns: 1fr;
  }
}


/* XOO profile final polish ------------------------------------------------ */
body[data-page="profile"] {
  --profile-bg: #0e111b;
  --profile-card: #181c27;
  --profile-card-2: #1b202c;
  --profile-border: rgba(255, 255, 255, 0.08);
  --profile-border-strong: rgba(255, 255, 255, 0.14);
  --profile-text: #f7f4ff;
  --profile-muted: rgba(244, 238, 255, 0.68);
  --profile-soft: rgba(244, 238, 255, 0.48);
  --profile-pink: #ff4f8b;
  --profile-purple: #8b5cff;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(139, 92, 255, 0.16), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(255, 79, 139, 0.14), transparent 32%),
    var(--profile-bg);
  color: var(--profile-text);
}

body[data-page="profile"] *,
body[data-page="profile"] *::before,
body[data-page="profile"] *::after {
  box-sizing: border-box;
}

body[data-page="profile"] img,
body[data-page="profile"] button,
body[data-page="profile"] input,
body[data-page="profile"] select,
body[data-page="profile"] textarea {
  max-width: 100%;
}

body[data-page="profile"] .site-header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  height: 72px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 14, 23, 0.82);
  backdrop-filter: blur(18px);
}

body[data-page="profile"] .site-header .logo {
  justify-self: start;
  color: #d985ff;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

body[data-page="profile"] .main-nav {
  justify-self: center;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  height: 48px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="profile"] .main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="profile"] .main-nav a.active {
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.9), rgba(255, 79, 139, 0.58));
  box-shadow: 0 10px 28px rgba(255, 79, 139, 0.22);
}

body[data-page="profile"] .profile-top-user {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="profile"] .profile-top-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cff, #ff4f8b);
  color: #fff;
  font-size: 12px;
}

body[data-page="profile"] .profile-shell {
  width: min(1864px, calc(100vw - 56px));
  max-width: 1864px;
  margin: 0 auto;
  padding: 24px 0 42px;
}

body[data-page="profile"] .page-shell.profile-shell {
  width: min(1864px, calc(100vw - 56px));
  max-width: 1864px !important;
}

body[data-page="profile"] .profile-community-layout,
body[data-page="profile"] .user-center-layout {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

body[data-page="profile"] .profile-community-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 144px);
  padding: 24px 16px;
  border: 1px solid var(--profile-border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--profile-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

body[data-page="profile"] .profile-sidebar-heading {
  padding: 8px 18px 22px;
  color: var(--profile-muted);
  font-size: 14px;
  font-weight: 700;
}

body[data-page="profile"] .profile-sidebar-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

body[data-page="profile"] .profile-sidebar-item,
body[data-page="profile"] .profile-sidebar-logout {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

body[data-page="profile"] .profile-sidebar-item .ui-icon,
body[data-page="profile"] .profile-sidebar-logout .ui-icon {
  width: 20px;
  height: 20px;
  opacity: 0.95;
}

body[data-page="profile"] .profile-sidebar-item:hover,
body[data-page="profile"] .profile-sidebar-logout:hover,
body[data-page="profile"] .profile-sidebar-item.active {
  border-color: rgba(255, 79, 139, 0.22);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.34), rgba(255, 79, 139, 0.24));
  box-shadow: 0 12px 26px rgba(255, 79, 139, 0.12);
}

body[data-page="profile"] .profile-sidebar-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 3px;
  height: 32px;
  border-radius: 999px;
  background: #ff4f8b;
  box-shadow: 0 0 18px rgba(255, 79, 139, 0.8);
}

body[data-page="profile"] .profile-sidebar-logout {
  align-self: end;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.05);
}

body[data-page="profile"] .profile-community-main {
  display: grid;
  min-width: 0;
  gap: 24px;
}

body[data-page="profile"] .profile-section-panel,
body[data-page="profile"] #profileInlineContent {
  display: grid;
  min-width: 0;
  gap: 24px;
}

body[data-page="profile"] .profile-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 208px;
  padding: 32px 32px 32px 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #7a4fff 0%, #bc4cc9 45%, #ff526f 100%);
  box-shadow: 0 28px 70px rgba(161, 76, 255, 0.28);
}

body[data-page="profile"] .profile-hero-card::after {
  content: "";
  position: absolute;
  inset: -40% 46% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(40px);
}

body[data-page="profile"] .profile-hero-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

body[data-page="profile"] .profile-hero-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

body[data-page="profile"] .profile-hero-avatar {
  width: 118px;
  height: 118px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

body[data-page="profile"] .profile-avatar-camera {
  position: absolute;
  right: -2px;
  bottom: 4px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #24172e;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4f8b, #ff6c70);
  color: #fff;
  cursor: pointer;
}

body[data-page="profile"] .profile-avatar-camera .ui-icon {
  width: 18px;
  height: 18px;
}

body[data-page="profile"] .profile-hero-info {
  display: grid;
  min-width: 0;
  gap: 8px;
}

body[data-page="profile"] .profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body[data-page="profile"] .profile-hero-name-row h1 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="profile"] .profile-vip-badge,
body[data-page="profile"] .profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

body[data-page="profile"] .profile-hero-uid,
body[data-page="profile"] .profile-hero-bio {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.4;
}

body[data-page="profile"] .profile-hero-points {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 12px;
  width: fit-content;
}

body[data-page="profile"] .profile-hero-points span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 700;
}

body[data-page="profile"] .profile-hero-points strong {
  color: #ffcf5a;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

body[data-page="profile"] .profile-hero-actions {
  position: relative;
  z-index: 1;
  align-self: center;
}

body[data-page="profile"] .profile-hero-actions .primary-btn,
body[data-page="profile"] .checkin-button,
body[data-page="profile"] .profile-security-row em,
body[data-page="profile"] .primary-btn {
  border: 0;
  background: linear-gradient(135deg, #8b5cff, #ff4f8b);
  color: #fff;
  box-shadow: 0 14px 32px rgba(255, 79, 139, 0.24);
}

body[data-page="profile"] .profile-hero-actions .primary-btn {
  min-width: 124px;
  height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
}

body[data-page="profile"] .profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

body[data-page="profile"] .profile-community-card,
body[data-page="profile"] .profile-quick-card,
body[data-page="profile"] .profile-point-tile,
body[data-page="profile"] .profile-section-panel {
  border: 1px solid var(--profile-border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--profile-card);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

body[data-page="profile"] .profile-section-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="profile"] .profile-community-card,
body[data-page="profile"] .profile-quick-card,
body[data-page="profile"] .profile-point-tile {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body[data-page="profile"] .profile-community-card:hover,
body[data-page="profile"] .profile-quick-card:hover,
body[data-page="profile"] .profile-point-tile:hover {
  border-color: rgba(255, 79, 139, 0.24);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34), 0 0 30px rgba(255, 79, 139, 0.08);
  transform: translateY(-4px);
}

body[data-page="profile"] .checkin-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto) 160px;
  align-items: center;
  column-gap: 24px;
  row-gap: 24px;
  width: 100%;
  height: 362px;
  min-height: 362px;
  min-width: 0;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

body[data-page="profile"] .checkin-info,
body[data-page="profile"] .profile-security-head {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

body[data-page="profile"] .checkin-card .checkin-info {
  display: flex;
  grid-column: 1;
  min-width: 0;
}

body[data-page="profile"] .checkin-card .profile-card-icon {
  align-self: center;
}

body[data-page="profile"] .checkin-copy {
  display: grid;
  align-self: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding-top: 0;
}

body[data-page="profile"] .profile-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.72), rgba(255, 79, 139, 0.78));
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 79, 139, 0.18);
}

body[data-page="profile"] .profile-card-icon .ui-icon {
  width: 24px;
  height: 24px;
}

body[data-page="profile"] .checkin-title,
body[data-page="profile"] .profile-security-head h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 28px;
  white-space: nowrap;
}

body[data-page="profile"] .checkin-desc {
  margin: 0;
  color: var(--profile-muted);
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
}

body[data-page="profile"] .checkin-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

body[data-page="profile"] .checkin-stat {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 112px;
  min-height: 72px;
  gap: 10px;
  text-align: center;
}

body[data-page="profile"] .checkin-stat + .checkin-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.14);
}

body[data-page="profile"] .stat-label {
  display: block;
  color: var(--profile-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

body[data-page="profile"] .stat-value {
  display: block;
  margin-top: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 32px;
  white-space: nowrap;
}

body[data-page="profile"] .checkin-button {
  width: 148px;
  min-width: 148px;
  height: 52px;
  align-self: center;
  justify-self: end;
  padding: 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

body[data-page="profile"] .profile-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  height: 336px;
  min-height: 336px;
  min-width: 0;
  padding: 24px;
  box-sizing: border-box;
}

body[data-page="profile"] .profile-security-lines {
  display: grid;
  gap: 8px;
  align-content: start;
}

body[data-page="profile"] .profile-security-row {
  display: grid;
  grid-template-columns: 110px minmax(90px, 1fr) 150px;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: 56px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

body[data-page="profile"] .profile-security-row span,
body[data-page="profile"] .profile-security-row strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="profile"] .profile-security-row strong {
  color: rgba(255, 255, 255, 0.66);
}

body[data-page="profile"] .profile-security-row strong.is-ok {
  color: rgba(255, 255, 255, 0.92);
}

body[data-page="profile"] .profile-security-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 36px;
  border: 1px solid rgba(255, 79, 139, 0.76);
  border-radius: 8px;
  background: rgba(255, 79, 139, 0.08);
  box-shadow: none;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

body[data-page="profile"] .profile-quick-section {
  display: grid;
  gap: 16px;
}

body[data-page="profile"] .profile-card-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

body[data-page="profile"] .profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

body[data-page="profile"] .profile-quick-card {
  display: grid;
  min-width: 0;
  grid-template-rows: 48px 24px 20px;
  height: 170px;
  align-content: start;
  justify-items: center;
  row-gap: 16px;
  padding: 20px 16px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

body[data-page="profile"] .profile-quick-card .ui-icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.8;
}

body[data-page="profile"] .profile-quick-card strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  white-space: nowrap;
}

body[data-page="profile"] .profile-quick-card span {
  color: var(--profile-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

body[data-page="profile"] .profile-quick-card.tone-purple .ui-icon { color: #a766ff; }
body[data-page="profile"] .profile-quick-card.tone-pink .ui-icon { color: #ff5d86; }
body[data-page="profile"] .profile-quick-card.tone-blue .ui-icon { color: #5a9cff; }
body[data-page="profile"] .profile-quick-card.tone-cyan .ui-icon { color: #28e2b0; }
body[data-page="profile"] .profile-quick-card.tone-orange .ui-icon { color: #ff941f; }
body[data-page="profile"] .profile-quick-card.tone-green .ui-icon { color: #33e27e; }

body[data-page="profile"] .profile-points-strip,
body[data-page="profile"] .points-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

body[data-page="profile"] .profile-point-tile,
body[data-page="profile"] .points-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  min-width: 0;
  height: 112px;
  padding: 20px 24px;
  border-radius: 12px;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

body[data-page="profile"] .profile-point-tile > *,
body[data-page="profile"] .points-item > * {
  min-width: 0;
}

body[data-page="profile"] .point-tile-icon {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 79, 139, 0.14);
  color: #ff5d86;
}

body[data-page="profile"] .profile-point-tile .ui-icon {
  width: 22px;
  height: 22px;
}

body[data-page="profile"] .point-tile-icon .ui-icon {
  width: 24px;
  height: 24px;
}

body[data-page="profile"] .point-tile-copy {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  gap: 8px;
}

body[data-page="profile"] .profile-point-tile > .ui-icon,
body[data-page="profile"] .points-item > .ui-icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  color: rgba(255, 255, 255, 0.62);
}

body[data-page="profile"] .profile-point-tile strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  overflow: hidden;
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="profile"] .profile-point-tile em {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  overflow: visible;
  color: var(--profile-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-overflow: clip;
  white-space: normal;
}

body[data-page="profile"] .support-fab {
  right: 42px;
  bottom: 32px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4f8b, #ff5b78);
  box-shadow: 0 18px 42px rgba(255, 79, 139, 0.36);
}

@media (max-width: 1700px) and (min-width: 1401px) {
  body[data-page="profile"] .checkin-card {
    grid-template-columns: minmax(0, 1fr) 160px;
    grid-template-areas:
      "info info"
      "stats action";
    align-content: center;
  }

  body[data-page="profile"] .checkin-card .checkin-info { grid-area: info; }
  body[data-page="profile"] .checkin-stats { grid-area: stats; justify-self: center; }
  body[data-page="profile"] .checkin-button { grid-area: action; }
}

@media (max-width: 1360px) {
  body[data-page="profile"] .profile-shell {
    width: calc(100vw - 32px);
  }

  body[data-page="profile"] .profile-community-layout,
  body[data-page="profile"] .user-center-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

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

  body[data-page="profile"] .profile-points-strip,
  body[data-page="profile"] .points-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .support-fab {
    right: 28px;
    bottom: 8px;
  }
}

@media (max-width: 1400px) and (min-width: 1025px) {
  body[data-page="profile"] .profile-shell {
    width: calc(100vw - 48px);
  }

  body[data-page="profile"] .profile-community-layout,
  body[data-page="profile"] .user-center-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }

  body[data-page="profile"] .checkin-card {
    grid-template-columns: minmax(0, 1fr) 148px;
    grid-template-areas:
      "info info"
      "stats action";
    align-content: center;
  }

  body[data-page="profile"] .checkin-card .checkin-info {
    grid-area: info;
  }

  body[data-page="profile"] .checkin-stats {
    grid-area: stats;
    justify-self: center;
  }

  body[data-page="profile"] .checkin-button {
    grid-area: action;
    align-self: center;
  }
}

@media (max-width: 1024px) {
  body[data-page="profile"] .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 18px;
  }

  body[data-page="profile"] .profile-shell {
    width: min(100% - 24px, 860px);
    padding-top: 16px;
  }

  body[data-page="profile"] .profile-community-layout,
  body[data-page="profile"] .user-center-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body[data-page="profile"] .profile-community-sidebar {
    position: static;
    min-height: 0;
    padding: 14px;
  }

  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: max-content;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[data-page="profile"] .profile-sidebar-item {
    width: auto;
    min-width: 132px;
  }

  body[data-page="profile"] .profile-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .checkin-card {
    grid-template-columns: minmax(0, 1fr) 148px;
    grid-template-areas:
      "info info"
      "stats action";
  }

  body[data-page="profile"] .checkin-card .checkin-info { grid-area: info; }

  body[data-page="profile"] .checkin-stats {
    grid-area: stats;
    justify-self: center;
  }

  body[data-page="profile"] .checkin-button {
    grid-area: action;
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] .support-fab {
    position: static;
    justify-self: end;
    width: max-content;
    margin: 24px 28px 0 auto;
  }

  body[data-page="profile"] .profile-sidebar-list {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  body[data-page="profile"] .profile-sidebar-item {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    gap: 10px;
  }

  body[data-page="profile"] .profile-sidebar-item span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-page="profile"] .profile-overview-grid,
  body[data-page="profile"] .profile-points-strip,
  body[data-page="profile"] .points-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .profile-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-page="profile"] .site-header {
    height: 64px;
  }

  body[data-page="profile"] .site-header .logo {
    font-size: 26px;
  }

  body[data-page="profile"] .main-nav a {
    min-width: 64px;
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
  }

  body[data-page="profile"] .profile-top-user {
    display: none;
  }

  body[data-page="profile"] .profile-sidebar-list {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  body[data-page="profile"] .profile-sidebar-item {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    gap: 9px;
    font-size: 13px;
  }

  body[data-page="profile"] .profile-sidebar-item span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-page="profile"] .profile-hero-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  body[data-page="profile"] .profile-hero-identity {
    align-items: flex-start;
    gap: 18px;
  }

  body[data-page="profile"] .profile-hero-avatar {
    width: 88px;
    height: 88px;
  }

  body[data-page="profile"] .profile-avatar-camera {
    width: 32px;
    height: 32px;
  }

  body[data-page="profile"] .profile-hero-name-row h1 {
    font-size: 26px;
  }

  body[data-page="profile"] .profile-hero-actions,
  body[data-page="profile"] .profile-hero-actions .primary-btn {
    width: 100%;
  }

  body[data-page="profile"] .profile-hero-actions .primary-btn {
    max-width: calc(100% - 72px);
    margin-right: auto;
  }

  body[data-page="profile"] .checkin-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "stats"
      "action";
    min-height: 0;
    justify-items: stretch;
  }

  body[data-page="profile"] .checkin-card .checkin-info {
    display: flex;
    justify-content: center;
  }

  body[data-page="profile"] .checkin-card .profile-card-icon {
    align-self: center;
  }

  body[data-page="profile"] .checkin-copy {
    align-content: center;
  }

  body[data-page="profile"] .checkin-stats {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  body[data-page="profile"] .checkin-button {
    justify-self: stretch;
    width: 100%;
  }

  body[data-page="profile"] .profile-security-row {
    grid-template-columns: minmax(72px, 1fr) minmax(64px, 0.8fr) 96px;
  }

  body[data-page="profile"] .profile-security-row em {
    width: 96px;
  }

  body[data-page="profile"] .profile-quick-grid,
  body[data-page="profile"] .profile-points-strip,
  body[data-page="profile"] .points-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="profile"] .profile-quick-card {
    height: 144px;
  }

  body[data-page="profile"] .support-fab {
    position: static;
    width: max-content;
    margin: 24px 16px 0 auto;
  }
}

@media (max-width: 480px) {
  body[data-page="profile"] .profile-shell {
    width: min(100% - 16px, 420px);
    padding-bottom: 104px;
  }

  body[data-page="profile"] .profile-hero-identity {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body[data-page="profile"] .profile-hero-name-row,
  body[data-page="profile"] .profile-hero-points {
    justify-content: center;
  }

  body[data-page="profile"] .checkin-stats {
    grid-template-columns: 1fr;
  }
}

/* XOO glass pill spacing polish ------------------------------------------- */
body[data-page] .main-nav,
body.xoo-front-v2 .main-nav {
  min-height: 56px;
  height: auto;
  padding: 8px;
  gap: 8px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(13, 16, 26, 0.46);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

body[data-page] .main-nav a,
body.xoo-front-v2 .main-nav a {
  height: 40px !important;
  min-height: 0 !important;
  box-sizing: border-box;
}

body[data-page="home"] .feed-tabs,
body.xoo-front-v2 .feed-tabs {
  min-height: 60px;
  padding: 9px;
  gap: 8px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(17, 20, 31, 0.52);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

body[data-page="home"] .feed-tab,
body.xoo-front-v2 .feed-tab {
  height: 42px;
}

@media (max-width: 720px) {
  body[data-page] .main-nav,
  body.xoo-front-v2 .main-nav {
    min-height: 48px;
    padding: 7px;
    gap: 7px;
    border-radius: 18px;
  }

  body[data-page] .main-nav a,
  body.xoo-front-v2 .main-nav a {
    height: 34px !important;
    min-height: 0 !important;
  }

  body[data-page="home"] .feed-tabs,
  body.xoo-front-v2 .feed-tabs {
    min-height: 54px;
    padding: 8px;
    gap: 7px;
    border-radius: 18px;
  }

  body[data-page="home"] .feed-tab,
  body.xoo-front-v2 .feed-tab {
    height: 38px;
  }
}

body[data-page="home"] .filter-select-city .filter-select-menu {
  width: min(820px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 160px));
  overflow: hidden;
}

body[data-page="home"] #districtFilterDropdown {
  display: none;
}

body[data-page="home"] .region-menu-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

body[data-page="home"] .region-menu-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ds-text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

body[data-page="home"] .region-menu-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  height: 420px;
  min-height: 420px;
}

body[data-page="home"] .region-province-list,
body[data-page="home"] .region-district-list {
  min-width: 0;
  height: 420px;
  overflow: auto;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(196, 181, 253, 0.12);
  background: rgba(9, 12, 22, 0.52);
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.74) rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .region-province-list::-webkit-scrollbar,
body[data-page="home"] .region-district-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body[data-page="home"] .region-province-list::-webkit-scrollbar-track,
body[data-page="home"] .region-district-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

body[data-page="home"] .region-province-list::-webkit-scrollbar-thumb,
body[data-page="home"] .region-district-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.88), rgba(236, 72, 153, 0.72));
}

body[data-page="home"] .region-province-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

body[data-page="home"] .region-province-option {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ds-muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

body[data-page="home"] .region-label {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.05;
}

body[data-page="home"] .region-label-cn,
body[data-page="home"] .region-label-vi {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] .region-label-cn {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

body[data-page="home"] .region-label-vi {
  color: rgba(226, 232, 240, 0.58);
  font-size: 11px;
  font-weight: 500;
}

body[data-page="home"] .region-province-option:hover {
  color: var(--ds-text);
  border-color: rgba(196, 181, 253, 0.2);
  background: rgba(168, 85, 247, 0.14);
  transform: translateX(2px);
}

body[data-page="home"] .region-province-option:hover,
body[data-page="home"] .region-province-option.active {
  color: var(--ds-text);
  border-color: rgba(196, 181, 253, 0.32);
  background: rgba(168, 85, 247, 0.18);
}

body[data-page="home"] .region-province-option.active,
body[data-page="home"] .region-province-option.selected {
  color: #fff;
  border-color: rgba(244, 114, 182, 0.58);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.54), rgba(236, 72, 153, 0.36));
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .region-province-option.active .region-label-vi,
body[data-page="home"] .region-province-option.selected .region-label-vi {
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="home"] .region-district-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  align-content: start;
  gap: 10px;
}

body[data-page="home"] .region-district-title {
  grid-column: 1 / -1;
  min-height: 34px;
  padding: 0 4px 6px;
  color: var(--ds-text);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .region-title-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

body[data-page="home"] .region-title-label .region-label-cn {
  font-size: 15px;
}

body[data-page="home"] .region-title-label .region-label-vi {
  font-size: 12px;
}

body[data-page="home"] .region-menu-all,
body[data-page="home"] .region-district-option,
body[data-page="home"] .region-district-list .filter-select-option {
  min-width: 120px;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 14px;
  justify-content: center;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

body[data-page="home"] .region-menu-all {
  min-height: 40px;
}

body[data-page="home"] .region-district-option:hover,
body[data-page="home"] .region-district-list .filter-select-option:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.28);
  background: rgba(168, 85, 247, 0.16);
}

body[data-page="home"] .region-district-option.active,
body[data-page="home"] .region-district-list .filter-select-option.active {
  color: #fff;
  border-color: rgba(244, 114, 182, 0.62);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.62), rgba(236, 72, 153, 0.42));
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .region-district-option.active .region-label-vi,
body[data-page="home"] .region-district-list .filter-select-option.active .region-label-vi {
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 720px) {
  body[data-page="home"] .filter-select-city .filter-select-menu {
    width: calc(100vw - 24px);
  }

  body[data-page="home"] .region-menu-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  body[data-page="home"] .region-province-list,
  body[data-page="home"] .region-district-list {
    height: auto;
    max-height: 260px;
  }

  body[data-page="home"] .region-district-list {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
}

/* Mobile-only region picker and feed rhythm polish. Desktop and tablet layouts remain unchanged. */
body[data-page="home"] .region-mobile-header {
  display: none;
}

body.region-mobile-open {
  overflow: hidden;
  touch-action: none;
}

body.region-mobile-open .support-fab,
body.region-mobile-open .customer-service-fab,
body.region-mobile-open [data-support-fab],
body.region-mobile-open #supportFab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
}

body.region-mobile-open .page-shell,
body.region-mobile-open .search-panel {
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  contain: none !important;
}

body.region-mobile-open .search-panel,
body.region-mobile-open .filter-select-city.open {
  position: relative !important;
  z-index: 10000 !important;
}

body.region-mobile-open .site-header {
  z-index: 1 !important;
}

body[data-page="home"] .card-service-tags-empty,
body[data-page="home"] .card-distance-empty {
  display: none;
}

@media (max-width: 720px) {
  body[data-page="home"] .page-shell {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  body[data-page="home"] .search-panel {
    padding: 12px;
    border-radius: 18px;
  }

  body[data-page="home"] .search-box {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body[data-page="home"] #searchInput {
    grid-column: 1 / -1;
    min-width: 0;
  }

  body[data-page="home"] #clearSearch {
    grid-column: 1 / 2 !important;
  }

  body[data-page="home"] .search-box .primary-btn[type="submit"] {
    grid-column: 2 / 3 !important;
  }

  body[data-page="home"] .search-box .plain-btn,
  body[data-page="home"] .search-box .primary-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 48px;
    padding-inline: 8px;
    justify-content: center;
  }

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

  body[data-page="home"] .feed-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="home"] .feed-tab {
    width: 100%;
    min-width: 0;
  }

  body[data-page="home"] .filter-select-button {
    height: 42px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 13px;
  }

  body[data-page="home"] .filter-select-city.open .filter-select-menu {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    max-width: none;
    height: 100dvh !important;
    max-height: none;
    padding: env(safe-area-inset-top) 12px env(safe-area-inset-bottom);
    border: 0;
    border-radius: 0 !important;
    background:
      radial-gradient(circle at 20% -12%, rgba(168, 85, 247, 0.28), transparent 34%),
      linear-gradient(180deg, rgba(13, 16, 28, 0.98), rgba(8, 10, 19, 0.99));
    box-shadow: none !important;
    transform: none !important;
    transform-origin: center center !important;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  body[data-page="home"] .filter-select-city.open .region-menu-panel {
    height: 100%;
    display: grid;
    grid-template-rows: 56px 48px auto minmax(0, 1fr);
    gap: 10px;
  }

  body[data-page="home"] .region-mobile-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 8px;
    min-height: 56px;
  }

  body[data-page="home"] .region-mobile-header strong {
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    text-align: center;
  }

  body[data-page="home"] .region-mobile-nav,
  body[data-page="home"] .region-mobile-close {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(203, 154, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 800;
  }

  body[data-page="home"] .region-mobile-step-provinces .region-mobile-nav {
    visibility: hidden;
  }

  body[data-page="home"] .filter-select-city.open .region-menu-search {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  body[data-page="home"] .filter-select-city.open .region-menu-search input {
    height: 46px;
    border-radius: 16px;
    font-size: 15px;
  }

  body[data-page="home"] .filter-select-city.open .region-menu-all {
    min-height: 48px;
    border-radius: 16px;
  }

  body[data-page="home"] .filter-select-city.open .region-menu-grid {
    height: calc(100dvh - 206px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: 0;
    display: block;
    overflow: hidden;
  }

  body[data-page="home"] .filter-select-city.open .region-province-list,
  body[data-page="home"] .filter-select-city.open .region-district-list {
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 8px 4px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-page="home"] .filter-select-city.open .region-province-list {
    display: grid;
    gap: 8px;
  }

  body[data-page="home"] .filter-select-city.open .region-province-option {
    min-height: 56px;
    height: auto;
    padding: 8px 14px;
    border-radius: 16px;
  }

  body[data-page="home"] .filter-select-city.open .region-district-list {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 8px;
  }

  body[data-page="home"] .region-mobile-step-provinces .region-district-list,
  body[data-page="home"] .region-mobile-step-districts .region-province-list,
  body[data-page="home"] .region-mobile-step-districts > .region-menu-all {
    display: none !important;
  }

  body[data-page="home"] .filter-select-city.open .region-district-title {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 4px 10px;
  }

  body[data-page="home"] .filter-select-city.open .region-title-label {
    display: grid;
    align-items: center;
    gap: 3px;
  }

  body[data-page="home"] .filter-select-city.open .region-menu-all,
  body[data-page="home"] .filter-select-city.open .region-district-option {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    justify-content: flex-start;
    padding: 8px 14px;
    border-radius: 16px;
    text-align: left;
  }

  body[data-page="home"] .filter-select-city.open .region-district-option.active::after,
  body[data-page="home"] .filter-select-city.open .region-province-option.selected::after,
  body[data-page="home"] .filter-select-city.open .region-menu-all.active::after {
    content: "✓";
    margin-left: auto;
    color: #fff;
    font-weight: 900;
  }

  body[data-page="home"] .filter-select-city.open .region-label-cn {
    font-size: 16px;
    line-height: 1.18;
  }

  body[data-page="home"] .filter-select-city.open .region-label-vi {
    font-size: 12px;
    line-height: 1.2;
  }

  body[data-page="home"] #postList.feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch !important;
    gap: 10px !important;
  }

  body[data-page="home"] #postList.feed .post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border-radius: 16px !important;
  }

  body[data-page="home"] #postList.feed .card-media {
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
  }

  body[data-page="home"] #postList.feed .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 9px 8px;
  }

  body[data-page="home"] #postList.feed .card-body h3 {
    min-height: 42px;
    max-height: 42px;
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  body[data-page="home"] #postList.feed .card-location {
    min-height: 20px;
    max-height: 20px;
    font-size: 11px;
  }

  body[data-page="home"] #postList.feed .card-distance {
    min-height: 18px;
    max-height: 18px;
    font-size: 11px;
  }

  body[data-page="home"] #postList.feed .card-service-tags,
  body[data-page="home"] #postList.feed .card-service-tags-empty {
    min-height: 58px;
    max-height: 58px;
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    overflow: hidden;
  }

  body[data-page="home"] #postList.feed .card-service-tags span {
    max-width: 100%;
    height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  body[data-page="home"] #postList.feed .card-meta {
    min-height: 54px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3px;
  }

  body[data-page="home"] #postList.feed .card-price {
    font-size: 14px;
  }

  body[data-page="home"] #postList.feed .card-year,
  body[data-page="home"] #postList.feed .card-views {
    font-size: 11px;
  }

  body[data-page="home"] #postList.feed .card-actions {
    margin-top: auto;
    min-height: 50px;
    padding: 0 7px 8px;
    gap: 4px;
  }

  body[data-page="home"] #postList.feed .action-btn {
    min-height: 42px;
    height: 42px;
    padding: 0 2px;
    border-radius: 10px;
    font-size: 10.5px;
  }
}

@media (max-width: 359px) {
  body[data-page="home"] .page-shell {
    width: calc(100% - 20px);
  }

  body.xoo-front-v2[data-page="home"] #postList.feed,
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="home"] #postList.feed .card-body {
    padding-inline: 8px;
  }

  body[data-page="home"] #postList.feed .card-body h3 {
    font-size: 13px;
  }

  body[data-page="home"] #postList.feed .action-btn {
    font-size: 10px;
  }
}

/* Login V3: pixel-focused trust/login surface. Scoped to avoid changing business flows. */
body.xoo-login-v3 {
  --login-bg: #030612;
  --login-panel: rgba(9, 11, 28, 0.72);
  --login-panel-strong: rgba(13, 15, 36, 0.84);
  --login-line: rgba(205, 180, 255, 0.22);
  --login-line-strong: rgba(218, 176, 255, 0.36);
  --login-text: #ffffff;
  --login-muted: rgba(235, 228, 255, 0.66);
  --login-soft: rgba(235, 228, 255, 0.42);
  --login-purple: #8b5cf6;
  --login-pink: #f15aa4;
  --login-gradient: linear-gradient(100deg, #814fff 0%, #b848e3 54%, #ff5d9e 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--login-text);
  background:
    radial-gradient(circle at 24% 14%, rgba(114, 42, 255, 0.24), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(192, 132, 252, 0.12), transparent 24%),
    linear-gradient(180deg, #030612 0%, #060818 52%, #03050f 100%) !important;
}

body.xoo-login-v3::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 38%, rgba(142, 67, 255, 0.18), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.58) 58%, transparent 100%);
}

body.xoo-login-v3::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 230px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 24, 0.62) 42%, rgba(4, 5, 14, 0.98) 100%);
}

body.xoo-login-v3 .login-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 3.2vw, 52px);
  background: linear-gradient(180deg, rgba(3, 6, 18, 0.86), rgba(3, 6, 18, 0.50));
  border-bottom: 1px solid rgba(214, 187, 255, 0.10);
  backdrop-filter: blur(18px) saturate(1.15);
}

body.xoo-login-v3 .login-logo {
  position: absolute;
  left: 80px;
  top: 18px;
  justify-self: start;
  color: transparent;
  background: linear-gradient(135deg, #a56cff 0%, #ff79bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(185, 102, 255, 0.30);
}

body.xoo-login-v3 .login-nav-pill {
  position: absolute;
  top: 3px;
  right: 80px;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 182px;
  height: 58px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(218, 193, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px) saturate(1.2);
}

body.xoo-login-v3 .login-nav-pill a {
  min-width: 78px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

body.xoo-login-v3 .login-nav-pill a span {
  white-space: nowrap;
}

body.xoo-login-v3 .login-nav-pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.xoo-login-v3 .login-nav-divider {
  width: 1px;
  height: 22px;
  flex: 0 0 auto;
  background: rgba(226, 211, 255, 0.26);
}

body.xoo-login-v3 .login-nav-pill a:hover,
body.xoo-login-v3 .login-nav-pill a.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(132, 92, 255, 0.70), rgba(246, 94, 165, 0.48));
  box-shadow: 0 6px 18px rgba(169, 76, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

body.xoo-login-v3 .login-page-shell {
  width: min(1440px, calc(100vw - 96px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0 28px;
  display: grid;
  grid-template-columns: minmax(500px, 0.92fr) minmax(560px, 580px);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

body.xoo-login-v3 .login-showcase {
  position: relative;
  min-height: min(720px, calc(100vh - 84px));
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(280px, 0.92fr);
  align-items: center;
  overflow: hidden;
}

body.xoo-login-v3 .login-showcase-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-bottom: 54px;
}

body.xoo-login-v3 .login-brand {
  margin: 0 0 78px;
  color: transparent;
  background: linear-gradient(135deg, #9a5cff 0%, #ff7fbd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(54px, 5vw, 76px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(164, 86, 255, 0.30);
}

body.xoo-login-v3 .login-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 3.4vw, 54px);
  line-height: 1.27;
  font-weight: 950;
  letter-spacing: 0;
}

body.xoo-login-v3 .login-hero-title span {
  color: transparent;
  background: linear-gradient(105deg, #a970ff 0%, #fb67ba 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.xoo-login-v3 .login-hero-desc {
  width: min(500px, 100%);
  margin: 28px 0 0;
  color: rgba(238, 232, 255, 0.74);
  font-size: 17px;
  line-height: 1.64;
}

body.xoo-login-v3 .login-hero-line {
  display: block;
  width: 54px;
  height: 4px;
  margin: 34px 0 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b15cff, #fb69bb);
  box-shadow: 0 0 20px rgba(185, 92, 255, 0.50);
  pointer-events: none;
}

body.xoo-login-v3 .login-feature-list {
  display: grid;
  gap: 22px;
}

body.xoo-login-v3 .login-feature {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

body.xoo-login-v3 .login-feature-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(211, 164, 255, 0.20);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(154, 92, 255, 0.28), rgba(244, 99, 178, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(57, 25, 107, 0.28);
}

body.xoo-login-v3 .login-feature-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #d480ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(205, 112, 255, 0.56));
}

body.xoo-login-v3 .login-feature strong,
body.xoo-login-v3 .login-feature small {
  display: block;
}

body.xoo-login-v3 .login-feature strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

body.xoo-login-v3 .login-feature small {
  margin-top: 4px;
  color: rgba(238, 232, 255, 0.70);
  font-size: 15px;
  line-height: 1.25;
}

body.xoo-login-v3 .login-skyline {
  position: absolute;
  left: -72px;
  right: -172px;
  bottom: 104px;
  z-index: 1;
  height: 224px;
  display: block;
  padding: 0;
  border-bottom: 1px solid rgba(174, 75, 255, 0.22);
  opacity: 0.92;
  pointer-events: none;
}

body.xoo-login-v3 .login-skyline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  height: 86px;
  background:
    linear-gradient(180deg, rgba(177, 75, 255, 0.28), transparent 78%),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(191, 89, 255, 0.12) 20px 22px);
  filter: blur(8px);
  transform: scaleY(-1);
  pointer-events: none;
}

body.xoo-login-v3 .login-skyline span {
  display: none;
}

body.xoo-login-v3 .login-skyline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 178px;
  opacity: 0.84;
  background: url("./assets/login-vietnam-skyline.svg") left bottom / 100% 100% no-repeat;
  filter: drop-shadow(0 0 10px rgba(183, 92, 255, 0.48));
  pointer-events: none;
}

body.xoo-login-v3 .login-skyline span:nth-child(1) { height: 58px; }
body.xoo-login-v3 .login-skyline span:nth-child(2) { height: 78px; }
body.xoo-login-v3 .login-skyline span:nth-child(3) { height: 62px; }
body.xoo-login-v3 .login-skyline span:nth-child(4) { height: 118px; width: 36px; }
body.xoo-login-v3 .login-skyline span:nth-child(5) { height: 70px; }
body.xoo-login-v3 .login-skyline span:nth-child(6) { height: 92px; }
body.xoo-login-v3 .login-skyline span:nth-child(7) { height: 64px; }
body.xoo-login-v3 .login-skyline span:nth-child(8) { height: 128px; width: 24px; }

body.xoo-login-v3 .login-stats-glass {
  position: absolute;
  left: 24px;
  bottom: 0;
  z-index: 5;
  width: 820px;
  height: 96px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border: 1px solid rgba(214, 190, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.18);
  pointer-events: none;
}

body.xoo-login-v3 .login-stats-glass span {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

body.xoo-login-v3 .login-stats-glass span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: rgba(222, 200, 255, 0.22);
  pointer-events: none;
}

body.xoo-login-v3 .login-stats-glass span::after {
  content: none;
}

body.xoo-login-v3 .login-stats-glass svg {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #c56dff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 16px rgba(197, 109, 255, 0.58));
}

body.xoo-login-v3 .login-stats-glass b {
  color: transparent;
  background: linear-gradient(115deg, #b46dff, #ff74c7);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 28px;
  line-height: 32px;
  font-weight: 950;
}

body.xoo-login-v3 .login-stats-glass small {
  color: rgba(238, 230, 255, 0.74);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

body.xoo-login-v3 .login-panel-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  display: grid;
  justify-items: end;
  min-width: 0;
  pointer-events: auto;
}

body.xoo-login-v3 .login-card-v3 {
  position: relative;
  z-index: 11;
  width: min(100%, 580px);
  min-height: 600px;
  padding: clamp(30px, 3.2vw, 44px) clamp(30px, 3.2vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(215, 199, 255, 0.30) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 44% -3%, rgba(215, 114, 255, 0.20), transparent 22%),
    linear-gradient(180deg, rgba(18, 21, 46, 0.68), rgba(8, 10, 26, 0.78)) !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(24px) saturate(1.18);
  pointer-events: auto;
}

body.xoo-login-v3 .login-card-v3::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229, 171, 255, 0.92), transparent);
  box-shadow: 0 0 28px rgba(213, 113, 255, 0.70);
  pointer-events: none;
}

body.xoo-login-v3 .login-card-kicker {
  margin: 0 0 12px;
  color: #f09aff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 850;
}

body.xoo-login-v3 .login-card-v3 h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

body.xoo-login-v3 .login-security-strip {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 0 18px;
  border: 1px solid rgba(212, 190, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.xoo-login-v3 .login-security-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

body.xoo-login-v3 .login-security-strip span:first-child {
  color: #eba5ff;
}

body.xoo-login-v3 .login-security-strip svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #d985ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.xoo-login-v3 .login-security-strip i {
  width: 1px;
  height: 22px;
  background: rgba(217, 197, 255, 0.20);
}

body.xoo-login-v3 .login-form-v3 {
  position: relative;
  z-index: 12;
  display: grid;
  gap: 16px;
  pointer-events: auto;
}

body.xoo-login-v3 .login-field {
  display: grid;
  gap: 9px;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
}

body.xoo-login-v3 .login-input-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(212, 190, 255, 0.20);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.030));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.18);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  isolation: isolate;
}

body.xoo-login-v3 .login-input-wrap:hover,
body.xoo-login-v3 .login-input-wrap:focus-within {
  border-color: rgba(223, 166, 255, 0.50);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 2px rgba(157, 92, 255, 0.12), 0 0 22px rgba(171, 91, 255, 0.14);
}

body.xoo-login-v3 .login-input-wrap > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(232, 220, 255, 0.62);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
  color: #fff !important;
  caret-color: #fff;
  font-size: 15px;
  font-weight: 600;
}

body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill,
body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:hover,
body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:focus,
body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]):-webkit-autofill:active {
  border: 0 !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 99999s ease-in-out 0s, color 99999s ease-in-out 0s;
}

body.xoo-login-v3 .login-input-wrap input::placeholder {
  color: rgba(232, 224, 255, 0.42);
}

body.xoo-login-v3 .login-input-wrap.password-field {
  grid-template-columns: 28px minmax(0, 1fr) 38px;
  gap: 8px;
}

body.xoo-login-v3 .auth-v3-password-toggle {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
}

body.xoo-login-v3 .auth-v3-password-toggle::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  background-color: rgba(232, 224, 255, 0.68);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.xoo-login-v3 .auth-v3-password-toggle:hover::before {
  background-color: #fff;
}

body.xoo-login-v3 .login-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
}

body.xoo-login-v3 .remember-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

body.xoo-login-v3 .remember-row input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(221, 180, 255, 0.44);
  border-radius: 7px;
  background: var(--login-gradient);
  box-shadow: 0 0 20px rgba(141, 82, 255, 0.28);
}

body.xoo-login-v3 .remember-row input::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  margin: 5px 0 0 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

body.xoo-login-v3 .remember-row input:not(:checked) {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

body.xoo-login-v3 .remember-row input:not(:checked)::after {
  display: none;
}

body.xoo-login-v3 .plain-link,
body.xoo-login-v3 .login-forgot {
  border: 0 !important;
  background: transparent !important;
  color: #ef8cff !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body.xoo-login-v3 .plain-link:hover,
body.xoo-login-v3 .login-forgot:hover {
  color: #ffb1f4 !important;
  transform: translateY(-1px);
}

body.xoo-login-v3 .login-submit-v3 {
  position: relative;
  width: 100%;
  height: 58px;
  min-height: 58px;
  margin-top: 0;
  border-radius: 14px !important;
  color: #fff !important;
  background: var(--login-gradient) !important;
  box-shadow: 0 12px 28px rgba(180, 76, 255, 0.24), 0 8px 24px rgba(255, 91, 154, 0.16) !important;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

body.xoo-login-v3 .login-submit-v3::after {
  content: "→";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(255, 255, 255, 0.94);
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  pointer-events: none;
}

body.xoo-login-v3 .login-submit-v3:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(180, 76, 255, 0.30), 0 10px 28px rgba(255, 91, 154, 0.22) !important;
}

body.xoo-login-v3 .login-register-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 0;
  padding-top: 20px;
  color: rgba(238, 232, 255, 0.72);
  font-size: 15px;
  font-weight: 650;
}

body.xoo-login-v3 .login-register-row::before,
body.xoo-login-v3 .login-legal-links::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 203, 255, 0.18), transparent);
  pointer-events: none;
}

body.xoo-login-v3 .login-register-row .plain-link {
  padding: 0;
  font-size: 18px;
}

body.xoo-login-v3 .login-legal-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 36px;
  padding-top: 30px;
}

body.xoo-login-v3 .login-legal-links a {
  position: relative;
  padding: 0 32px;
  color: rgba(238, 232, 255, 0.62);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

body.xoo-login-v3 .login-legal-links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 20px;
  background: rgba(224, 203, 255, 0.18);
  transform: translateY(-50%);
  pointer-events: none;
}

body.xoo-login-v3 .login-legal-links a:hover {
  color: #fff;
}

body.xoo-login-v3 .register-card-v3 {
  position: relative;
  z-index: 12;
  min-height: 706px;
}

body.xoo-login-v3 .register-helper {
  margin: -14px 0 24px;
  color: rgba(238, 232, 255, 0.68);
  font-size: 15px;
  line-height: 1.6;
}

body.xoo-login-v3 .register-card-v3 .login-form-v3 {
  gap: 14px;
}

body.xoo-login-v3 .register-card-v3 .login-field {
  gap: 8px;
  font-size: 15px;
}

body.xoo-login-v3 .register-card-v3 .login-input-wrap {
  grid-template-columns: minmax(0, 1fr);
  min-height: 54px;
}

body.xoo-login-v3 .register-card-v3 .login-input-wrap.password-field {
  grid-template-columns: minmax(0, 1fr) 38px;
}

body.xoo-login-v3 .register-card-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
  grid-column: 1;
  min-width: 0;
  width: 100%;
  min-height: 52px;
  height: auto;
  align-self: center;
  font-size: 15px;
  line-height: normal;
  overflow: visible;
}

body.xoo-login-v3 .login-captcha-row {
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 12px;
}

body.xoo-login-v3 .login-captcha-row input {
  min-height: 54px;
  padding: 0 18px;
}

body.xoo-login-v3 .login-captcha-row .captcha-image {
  min-height: 54px;
  border-radius: 14px !important;
}

body.xoo-login-v3 .register-agreement-row {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(238, 232, 255, 0.70);
  font-size: 13px;
  line-height: 1.6;
  min-height: 44px;
  padding: 10px 0;
  overflow: visible;
  pointer-events: auto;
  cursor: pointer;
}

body.xoo-login-v3 .register-agreement-row .agreement-native {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  opacity: 0 !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

body.xoo-login-v3 .register-agreement-row .agreement-click-target {
  position: relative;
  z-index: 21;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: rgba(238, 232, 255, 0.70);
  cursor: pointer;
  user-select: none;
}

body.xoo-login-v3 .register-agreement-row .agreement-visual {
  position: relative;
  z-index: 22;
  display: inline-block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(239, 140, 255, 0.72);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.xoo-login-v3 .register-agreement-row .agreement-visual::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.72);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

body.xoo-login-v3 .register-agreement-row .agreement-click-target:hover .agreement-visual {
  border-color: rgba(255, 126, 197, 0.95);
  box-shadow: 0 0 0 4px rgba(236, 95, 120, 0.12);
}

body.xoo-login-v3 .register-agreement-row .agreement-native:checked + .agreement-click-target .agreement-visual {
  border-color: rgba(255, 126, 197, 0.98) !important;
  background: linear-gradient(135deg, #8d49ff, #ff5f91) !important;
  box-shadow: 0 0 16px rgba(236, 95, 120, 0.36) !important;
}

body.xoo-login-v3 .register-agreement-row .agreement-native:checked + .agreement-click-target .agreement-visual::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

body.xoo-login-v3 .register-agreement-row label {
  position: relative;
  z-index: 21;
  min-width: 0;
  line-height: 1.6;
  overflow: visible;
  pointer-events: auto;
  cursor: pointer;
}

body.xoo-login-v3 .register-agreement-row a {
  position: relative;
  z-index: 23;
  color: #ef8cff;
  text-decoration: none;
  pointer-events: auto;
}

body.xoo-login-v3 .register-agreement-row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(236, 95, 120, 0.48);
  outline-offset: 3px;
}

body.xoo-login-v3 .login-support-fab {
  position: fixed;
  right: clamp(24px, 3.2vw, 54px);
  bottom: clamp(24px, 3.2vw, 54px);
  z-index: 40;
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border: 3px solid rgba(189, 105, 255, 0.60);
  border-radius: 999px;
  background: linear-gradient(135deg, #8d49ff, #d946ef);
  color: #fff;
  box-shadow: 0 18px 48px rgba(184, 76, 255, 0.42), inset 0 0 0 6px rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

body.xoo-login-v3 .login-support-fab svg {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.xoo-login-v3 .login-support-fab span {
  width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
}

body.xoo-login-v3 .login-support-fab:hover {
  width: 148px;
  border-color: rgba(255, 184, 226, 0.66);
  box-shadow: 0 20px 54px rgba(255, 91, 154, 0.36), 0 20px 54px rgba(133, 82, 255, 0.34);
}

body.xoo-login-v3 .login-support-fab:hover span {
  width: auto;
  margin-left: 8px;
  opacity: 1;
}

body.xoo-login-v3 #supportFab {
  display: none !important;
}

body.xoo-login-v3 .hidden {
  display: none !important;
}

@media (max-width: 1540px) {
  body.xoo-login-v3 .login-page-shell {
    width: min(1380px, calc(100vw - 64px));
    grid-template-columns: minmax(460px, 0.82fr) minmax(520px, 0.90fr);
    gap: 48px;
  }

  body.xoo-login-v3 .login-card-v3 {
    width: min(100%, 660px);
    min-height: 650px;
    padding: 44px 48px;
  }

  body.xoo-login-v3 .login-card-v3 h2 {
    font-size: 44px;
  }

  body.xoo-login-v3 .login-security-strip {
    min-height: 76px;
    gap: 12px;
    padding: 0 18px;
  }

  body.xoo-login-v3 .login-security-strip span {
    gap: 8px;
    font-size: 15px;
  }

  body.xoo-login-v3 .login-input-wrap {
    min-height: 68px;
  }

  body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 64px;
  }

  body.xoo-login-v3 .login-submit-v3 {
    height: 68px;
    min-height: 68px;
  }
}

@media (max-width: 1180px) {
  body.xoo-login-v3 .login-page-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 110px;
  }

  body.xoo-login-v3 .login-showcase {
    min-height: 520px;
    grid-template-columns: minmax(320px, 0.78fr) minmax(300px, 0.72fr);
  }

  body.xoo-login-v3 .login-showcase-copy {
    padding-bottom: 0;
  }

  body.xoo-login-v3 .login-brand {
    margin-bottom: 34px;
  }

  body.xoo-login-v3 .login-feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  body.xoo-login-v3 .login-feature {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
  }

  body.xoo-login-v3 .login-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  body.xoo-login-v3 .login-feature-icon svg {
    width: 30px;
    height: 30px;
  }

  body.xoo-login-v3 .login-feature strong {
    font-size: 16px;
  }

  body.xoo-login-v3 .login-feature small {
    font-size: 13px;
  }

  body.xoo-login-v3 .login-panel-wrap {
    justify-items: center;
  }
}

@media (max-width: 820px) {
  body.xoo-login-v3 .login-topbar {
    height: 68px;
    padding: 0 16px;
  }

  body.xoo-login-v3 .login-logo {
    font-size: 34px;
  }

  body.xoo-login-v3 .login-nav-pill {
    right: 16px;
    width: 196px;
    height: 48px;
    min-height: 46px;
    padding: 6px;
    gap: 6px;
    border-radius: 18px;
  }

  body.xoo-login-v3 .login-nav-pill a {
    min-width: 62px;
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 14px;
  }

  body.xoo-login-v3 .login-page-shell {
    width: calc(100vw - 32px);
    padding: 86px 0 28px;
    gap: 24px;
  }

  body.xoo-login-v3 .login-showcase {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 10px 0 0;
  }

  body.xoo-login-v3 .login-brand {
    display: none;
  }

  body.xoo-login-v3 .login-hero-title {
    margin-top: 36px;
    font-size: 38px;
  }

  body.xoo-login-v3 .login-hero-desc {
    width: min(330px, 100%);
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.72;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.xoo-login-v3 .login-hero-line {
    margin: 28px 0 24px;
  }

  body.xoo-login-v3 .login-feature-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.xoo-login-v3 .login-feature {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  body.xoo-login-v3 .login-feature-icon {
    width: 56px;
    height: 56px;
  }

  body.xoo-login-v3 .login-skyline,
  body.xoo-login-v3 .login-stats-glass {
    display: none;
  }

  body.xoo-login-v3 .login-card-v3 {
    min-height: 0;
    padding: 28px 18px;
    border-radius: 24px !important;
  }

  body.xoo-login-v3 .login-card-kicker {
    margin-bottom: 12px;
    font-size: 17px;
  }

  body.xoo-login-v3 .login-card-v3 h2 {
    margin-bottom: 24px;
    font-size: 34px;
  }

  body.xoo-login-v3 .login-security-strip {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 12px;
    padding: 16px;
    margin-bottom: 24px;
  }

  body.xoo-login-v3 .login-security-strip i {
    display: none;
  }

  body.xoo-login-v3 .login-security-strip span {
    justify-content: flex-start;
    font-size: 14px;
  }

  body.xoo-login-v3 .login-form-v3 {
    gap: 18px;
  }

  body.xoo-login-v3 .login-field {
    gap: 10px;
    font-size: 15px;
  }

  body.xoo-login-v3 .login-input-wrap {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 14px;
  }

  body.xoo-login-v3 .login-input-wrap.password-field {
    grid-template-columns: 28px minmax(0, 1fr) 38px;
  }

  body.xoo-login-v3 .login-input-wrap > svg {
    width: 22px;
    height: 22px;
  }

  body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 54px;
    font-size: 15px;
  }

  body.xoo-login-v3 .login-form-row {
    gap: 12px;
  }

  body.xoo-login-v3 .remember-row,
  body.xoo-login-v3 .plain-link,
  body.xoo-login-v3 .login-forgot {
    font-size: 14px;
  }

  body.xoo-login-v3 .login-submit-v3 {
    height: 58px;
    min-height: 58px;
    font-size: 19px;
  }

  body.xoo-login-v3 .login-register-row {
    margin-top: 24px;
    padding-top: 24px;
    font-size: 15px;
  }

  body.xoo-login-v3 .login-legal-links {
    flex-wrap: wrap;
    row-gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
  }

  body.xoo-login-v3 .login-legal-links a {
    padding: 0 14px;
    font-size: 13px;
  }

  body.xoo-login-v3 .login-support-fab {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    border-width: 2px;
  }

  body.xoo-login-v3 .login-support-fab svg {
    width: 27px;
    height: 27px;
  }

  body.xoo-login-v3 .login-support-fab:hover {
    width: 58px;
  }

  body.xoo-login-v3 .login-support-fab:hover span {
    width: 0;
    margin-left: 0;
    opacity: 0;
  }
}

@media (max-width: 390px) {
  body.xoo-login-v3 .login-page-shell {
    width: calc(100vw - 24px);
  }

  body.xoo-login-v3 .login-hero-title {
    font-size: 34px;
  }

  body.xoo-login-v3 .login-card-v3 h2 {
    font-size: 30px;
  }

  body.xoo-login-v3 .login-form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  body.xoo-login-v3 .login-captcha-row {
    grid-template-columns: 1fr;
  }
}

/* Login V3 fit pass: preserve the visual target while keeping the 1440px desktop first screen composed. */
@media (min-width: 1181px) {
  body.xoo-login-v3 .login-showcase {
    display: block;
  }

  body.xoo-login-v3 .login-showcase-copy {
    width: min(510px, 68%);
    padding-top: 126px;
  }

  body.xoo-login-v3 .login-brand {
    display: none;
  }

  body.xoo-login-v3 .login-hero-title {
    width: 520px;
    max-width: 100%;
    font-size: clamp(46px, 3.35vw, 60px);
  }

}

@media (min-width: 1181px) and (max-width: 1540px) {
  body.xoo-login-v3 .login-page-shell {
    grid-template-columns: minmax(560px, 1fr) minmax(600px, 660px);
    align-items: center;
    min-height: 100vh;
    gap: 36px;
  }

  body.xoo-login-v3 .login-showcase {
    min-height: 760px;
  }

  body.xoo-login-v3 .login-showcase-copy {
    padding-top: 112px;
  }

  body.xoo-login-v3 .login-hero-desc {
    width: 430px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.72;
  }

  body.xoo-login-v3 .login-hero-line {
    margin: 30px 0 26px;
  }

  body.xoo-login-v3 .login-feature-list {
    gap: 18px;
  }

  body.xoo-login-v3 .login-feature {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 16px;
  }

  body.xoo-login-v3 .login-feature-icon {
    width: 66px;
    height: 66px;
    border-radius: 16px;
  }

  body.xoo-login-v3 .login-feature-icon svg {
    width: 34px;
    height: 34px;
  }

  body.xoo-login-v3 .login-feature strong {
    font-size: 17px;
  }

  body.xoo-login-v3 .login-feature small {
    margin-top: 4px;
    font-size: 14px;
  }

  body.xoo-login-v3 .login-skyline {
    height: 118px;
  }

  body.xoo-login-v3 .login-card-v3 {
    display: block;
    width: min(100%, 660px);
    min-height: 0;
    padding: 38px 48px 34px;
  }

  body.xoo-login-v3 .login-card-kicker {
    margin-bottom: 12px;
    font-size: 18px;
  }

  body.xoo-login-v3 .login-card-v3 h2 {
    margin-bottom: 24px;
    font-size: 42px;
  }

  body.xoo-login-v3 .login-security-strip {
    min-height: 68px;
    margin-bottom: 24px;
  }

  body.xoo-login-v3 .login-form-v3 {
    gap: 18px;
  }

  body.xoo-login-v3 .login-field {
    gap: 10px;
    font-size: 16px;
  }

  body.xoo-login-v3 .login-input-wrap {
    min-height: 60px;
    border-radius: 15px;
  }

  body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 58px;
    font-size: 16px;
  }

  body.xoo-login-v3 .login-form-row {
    margin-top: 0;
  }

  body.xoo-login-v3 .remember-row,
  body.xoo-login-v3 .plain-link,
  body.xoo-login-v3 .login-forgot {
    font-size: 15px;
  }

  body.xoo-login-v3 .login-submit-v3 {
    height: 60px;
    min-height: 60px;
    margin-top: 0;
    font-size: 21px;
  }

  body.xoo-login-v3 .login-register-row {
    margin-top: 22px;
    padding-top: 22px;
    font-size: 16px;
  }

  body.xoo-login-v3 .login-register-row .plain-link {
    font-size: 16px;
  }

  body.xoo-login-v3 .login-legal-links {
    margin-top: 22px;
    padding-top: 22px;
  }

  body.xoo-login-v3 .login-legal-links a {
    padding: 0 24px;
    font-size: 14px;
  }
}

@media (min-width: 1541px) {
  body.xoo-login-v3 .login-page-shell {
    grid-template-columns: minmax(640px, 0.92fr) minmax(680px, 760px);
    align-items: center;
    min-height: 100vh;
  }

  body.xoo-login-v3 .login-showcase {
    min-height: 790px;
    overflow: visible;
  }

  body.xoo-login-v3 .login-showcase-copy {
    padding-top: 34px;
    padding-left: 54px;
  }

  body.xoo-login-v3 .login-hero-title {
    font-size: 60px;
    line-height: 1.16;
  }

  body.xoo-login-v3 .login-hero-desc {
    margin-top: 28px;
  }

  body.xoo-login-v3 .login-hero-line {
    margin: 18px 0 28px;
  }

  body.xoo-login-v3 .login-feature-list {
    gap: 24px;
  }

  body.xoo-login-v3 .login-feature {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 20px;
  }

  body.xoo-login-v3 .login-feature-icon {
    width: 84px;
    height: 84px;
  }

  body.xoo-login-v3 .login-feature-icon svg {
    width: 42px;
    height: 42px;
  }

  body.xoo-login-v3 .login-feature strong {
    font-size: 21px;
    line-height: 26px;
  }

  body.xoo-login-v3 .login-feature small {
    font-size: 17px;
    line-height: 22px;
  }

  body.xoo-login-v3 .login-skyline {
    height: 128px;
  }

  body.xoo-login-v3 .login-card-v3 {
    display: block;
    width: 630px;
    min-height: 770px;
    padding: 44px 42px 40px;
  }

  body.xoo-login-v3 .login-panel-wrap {
    transform: translate(6px, 7px);
  }

  body.xoo-login-v3 .login-card-kicker {
    margin-bottom: 14px;
    font-size: 20px;
  }

  body.xoo-login-v3 .login-card-v3 h2 {
    margin-bottom: 28px;
    font-size: 48px;
  }

  body.xoo-login-v3 .login-security-strip {
    min-height: 76px;
    margin-bottom: 28px;
  }

  body.xoo-login-v3 .login-form-v3 {
    gap: 20px;
  }

  body.xoo-login-v3 .login-field {
    gap: 12px;
    font-size: 17px;
  }

  body.xoo-login-v3 .login-input-wrap {
    min-height: 72px;
  }

  body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 70px;
    font-size: 17px;
  }

  body.xoo-login-v3 .login-submit-v3 {
    height: 70px;
    min-height: 70px;
    margin-top: 36px;
    font-size: 23px;
  }

  body.xoo-login-v3 .login-register-row {
    margin-top: 42px;
    padding-top: 0;
  }

  body.xoo-login-v3 .login-legal-links {
    margin-top: 42px;
    padding-top: 26px;
  }
}

@media (min-width: 1541px) and (max-width: 1800px) and (max-height: 940px) {
  body.xoo-login-v3 .login-card-v3 {
    padding: 36px 54px 32px;
  }

  body.xoo-login-v3 .login-card-kicker {
    margin-bottom: 10px;
  }

  body.xoo-login-v3 .login-card-v3 h2 {
    margin-bottom: 22px;
    font-size: 44px;
  }

  body.xoo-login-v3 .login-security-strip {
    min-height: 66px;
    margin-bottom: 22px;
  }

  body.xoo-login-v3 .login-form-v3 {
    gap: 16px;
  }

  body.xoo-login-v3 .login-field {
    gap: 9px;
    font-size: 16px;
  }

  body.xoo-login-v3 .login-input-wrap {
    min-height: 58px;
  }

  body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 56px;
    font-size: 16px;
  }

  body.xoo-login-v3 .login-submit-v3 {
    height: 58px;
    min-height: 58px;
    font-size: 21px;
  }

  body.xoo-login-v3 .login-register-row {
    margin-top: 20px;
    padding-top: 20px;
  }

  body.xoo-login-v3 .login-legal-links {
    margin-top: 20px;
    padding-top: 20px;
  }
}

@media (min-width: 1181px) {
  body.xoo-login-v3 .login-page-shell {
    width: min(1440px, calc(100vw - 96px));
    grid-template-columns: minmax(500px, 0.92fr) minmax(560px, 580px);
    gap: clamp(36px, 5vw, 72px);
    padding-top: 72px;
    padding-bottom: 28px;
  }

  body.xoo-login-v3 .login-showcase {
    min-height: min(720px, calc(100vh - 84px));
  }

  body.xoo-login-v3 .login-showcase-copy {
    padding-top: 18px;
    padding-left: 24px;
    padding-bottom: 54px;
  }

  body.xoo-login-v3 .login-hero-title {
    width: 460px;
    max-width: 100%;
    font-size: 48px;
    line-height: 1.18;
  }

  body.xoo-login-v3 .login-hero-desc {
    width: 430px;
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.66;
  }

  body.xoo-login-v3 .login-hero-line {
    margin: 26px 0 24px;
  }

  body.xoo-login-v3 .login-feature-list {
    gap: 18px;
  }

  body.xoo-login-v3 .login-feature {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 16px;
  }

  body.xoo-login-v3 .login-feature-icon {
    width: 66px;
    height: 66px;
    border-radius: 16px;
  }

  body.xoo-login-v3 .login-feature-icon svg {
    width: 32px;
    height: 32px;
  }

  body.xoo-login-v3 .login-feature strong {
    font-size: 17px;
    line-height: 22px;
  }

  body.xoo-login-v3 .login-feature small {
    margin-top: 4px;
    font-size: 14px;
    line-height: 19px;
  }

  body.xoo-login-v3 .login-skyline {
    bottom: 96px;
    height: 118px;
  }

  body.xoo-login-v3 .login-skyline::after {
    height: 168px;
  }

  body.xoo-login-v3 .login-stats-glass {
    width: min(760px, calc(100% - 48px));
    height: 86px;
  }

  body.xoo-login-v3 .login-stats-glass span {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 8px;
    padding: 0 10px;
  }

  body.xoo-login-v3 .login-stats-glass svg {
    width: 32px;
    height: 32px;
  }

  body.xoo-login-v3 .login-stats-glass b {
    font-size: 21px;
    line-height: 25px;
    white-space: nowrap;
  }

  body.xoo-login-v3 .login-stats-glass small {
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  body.xoo-login-v3 .login-panel-wrap {
    transform: none;
  }

  body.xoo-login-v3 .login-card-v3 {
    width: 570px;
    min-height: 0;
    padding: 32px 38px 30px;
  }

  body.xoo-login-v3 .login-card-kicker {
    margin-bottom: 10px;
    font-size: 16px;
  }

  body.xoo-login-v3 .login-card-v3 h2 {
    margin-bottom: 22px;
    font-size: 38px;
  }

  body.xoo-login-v3 .login-security-strip {
    min-height: 58px;
    margin-bottom: 20px;
    gap: 10px;
    padding: 0 16px;
  }

  body.xoo-login-v3 .login-security-strip span {
    gap: 7px;
    font-size: 13px;
  }

  body.xoo-login-v3 .login-security-strip svg {
    width: 18px;
    height: 18px;
  }

  body.xoo-login-v3 .login-form-v3 {
    gap: 14px;
  }

  body.xoo-login-v3 .login-field {
    gap: 8px;
    font-size: 14px;
  }

  body.xoo-login-v3 .login-input-wrap {
    min-height: 54px;
    border-radius: 13px;
  }

  body.xoo-login-v3 .login-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 52px;
    font-size: 14px;
  }

  body.xoo-login-v3 .login-submit-v3 {
    height: 56px;
    min-height: 56px;
    margin-top: 0;
    font-size: 18px;
  }

  body.xoo-login-v3 .login-register-row {
    margin-top: 18px;
    padding-top: 18px;
    font-size: 14px;
  }

  body.xoo-login-v3 .login-register-row .plain-link,
  body.xoo-login-v3 .login-legal-links a {
    font-size: 14px;
  }

  body.xoo-login-v3 .login-legal-links {
    margin-top: 18px;
    padding-top: 18px;
  }

  body.xoo-login-v3 .login-legal-links a {
    padding: 0 18px;
  }
}

/* Post detail carousel polish: immersive media frame with in-image controls. */
body[data-page="post-detail"] .detail-carousel,
body.xoo-front-v2[data-page="post-detail"] .detail-carousel {
  position: relative;
  padding: 10px !important;
  overflow: hidden;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(8, 10, 20, 0.82) !important;
}

body[data-page="post-detail"] .detail-carousel-stage,
body.xoo-front-v2[data-page="post-detail"] .detail-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  max-height: min(72vh, 760px);
  height: clamp(520px, 68vh, 760px);
  overflow: hidden;
  border-radius: 18px !important;
  background: #070914 !important;
}

body[data-page="post-detail"] .detail-carousel-image,
body.xoo-front-v2[data-page="post-detail"] .detail-carousel-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 18px;
  background: #070914 !important;
}

body[data-page="post-detail"] .detail-carousel .detail-carousel-stage > img.detail-carousel-image,
body.xoo-front-v2[data-page="post-detail"] .detail-carousel .detail-carousel-stage > img.detail-carousel-image {
  object-fit: contain !important;
  object-position: center center !important;
}

body[data-page="post-detail"] .detail-carousel-image.is-extreme-landscape,
body.xoo-front-v2[data-page="post-detail"] .detail-carousel-image.is-extreme-landscape {
  object-fit: contain !important;
  object-position: center center !important;
  background: #070914 !important;
}

body[data-page="post-detail"] .carousel-arrow,
body.xoo-front-v2[data-page="post-detail"] .carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  border-radius: 999px !important;
  background: rgba(8, 10, 20, 0.42) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  opacity: 0.72;
  transform: translateY(-50%);
  backdrop-filter: blur(14px) saturate(1.12);
}

body[data-page="post-detail"] .carousel-arrow.left,
body.xoo-front-v2[data-page="post-detail"] .carousel-arrow.left {
  left: 16px;
}

body[data-page="post-detail"] .carousel-arrow.right,
body.xoo-front-v2[data-page="post-detail"] .carousel-arrow.right {
  right: 16px;
}

body[data-page="post-detail"] .carousel-arrow:hover,
body[data-page="post-detail"] .carousel-arrow:active,
body.xoo-front-v2[data-page="post-detail"] .carousel-arrow:hover,
body.xoo-front-v2[data-page="post-detail"] .carousel-arrow:active {
  opacity: 1;
  border-color: rgba(235, 196, 255, 0.42) !important;
  background: rgba(15, 16, 30, 0.70) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32), 0 0 24px rgba(168, 85, 247, 0.24);
}

body[data-page="post-detail"] .carousel-arrow svg,
body.xoo-front-v2[data-page="post-detail"] .carousel-arrow svg {
  width: 24px;
  height: 24px;
}

body[data-page="post-detail"] .carousel-pagination,
body.xoo-front-v2[data-page="post-detail"] .carousel-pagination {
  display: contents;
  padding: 0 !important;
}

body[data-page="post-detail"] .carousel-dots,
body.xoo-front-v2[data-page="post-detail"] .carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 9;
  max-width: min(70%, 360px);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(1.1);
  transform: translateX(-50%);
  pointer-events: auto;
}

body[data-page="post-detail"] .carousel-dot,
body.xoo-front-v2[data-page="post-detail"] .carousel-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48) !important;
  box-shadow: none !important;
  opacity: 0.82;
}

body[data-page="post-detail"] .carousel-dot.active,
body.xoo-front-v2[data-page="post-detail"] .carousel-dot.active {
  width: 22px;
  background: linear-gradient(90deg, #8b5cf6, #f05ca8) !important;
  opacity: 1;
}

body[data-page="post-detail"] .carousel-counter,
body.xoo-front-v2[data-page="post-detail"] .carousel-counter {
  position: absolute;
  top: 22px;
  right: 22px;
  left: auto !important;
  z-index: 10;
  width: auto !important;
  max-width: none !important;
  min-width: 48px;
  min-height: 30px !important;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.48);
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(1.1);
  font-size: 12px;
  font-weight: 800;
  overflow: visible !important;
  pointer-events: none;
}

@media (max-width: 899px) {
  body[data-page="post-detail"] .detail-shell,
  body.xoo-front-v2[data-page="post-detail"] .detail-shell {
    width: calc(100% - 16px);
  }

  body[data-page="post-detail"] .detail-layout,
  body.xoo-front-v2[data-page="post-detail"] .detail-layout {
    gap: 12px !important;
  }

  body[data-page="post-detail"] .detail-carousel,
  body.xoo-front-v2[data-page="post-detail"] .detail-carousel {
    padding: 6px !important;
    border-radius: 20px !important;
  }

  body[data-page="post-detail"] .detail-carousel-stage,
  body.xoo-front-v2[data-page="post-detail"] .detail-carousel-stage {
    height: min(58vh, 580px);
    min-height: 360px;
    max-height: 580px;
    border-radius: 18px !important;
  }

  body[data-page="post-detail"] .detail-carousel-image,
  body.xoo-front-v2[data-page="post-detail"] .detail-carousel-image {
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 18px;
  }

  body[data-page="post-detail"] .detail-carousel-image.is-extreme-landscape,
  body.xoo-front-v2[data-page="post-detail"] .detail-carousel-image.is-extreme-landscape {
    object-fit: contain;
  }

  body[data-page="post-detail"] .carousel-arrow,
  body.xoo-front-v2[data-page="post-detail"] .carousel-arrow {
    width: 42px;
    height: 42px;
    opacity: 0.68;
  }

  body[data-page="post-detail"] .carousel-arrow.left,
  body.xoo-front-v2[data-page="post-detail"] .carousel-arrow.left {
    left: 16px;
  }

  body[data-page="post-detail"] .carousel-arrow.right,
  body.xoo-front-v2[data-page="post-detail"] .carousel-arrow.right {
    right: 16px;
  }

  body[data-page="post-detail"] .carousel-pagination,
  body.xoo-front-v2[data-page="post-detail"] .carousel-pagination {
    display: contents;
  }

  body[data-page="post-detail"] .carousel-dots,
  body.xoo-front-v2[data-page="post-detail"] .carousel-dots {
    bottom: 14px;
    max-width: min(64%, 260px);
    min-height: 24px;
    gap: 6px;
    padding: 7px 10px;
  }

  body[data-page="post-detail"] .carousel-counter,
  body.xoo-front-v2[data-page="post-detail"] .carousel-counter {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 430px) {
  body[data-page="post-detail"] .detail-shell,
  body.xoo-front-v2[data-page="post-detail"] .detail-shell {
    width: calc(100% - 12px);
    margin-top: 10px;
  }

  body[data-page="post-detail"] .detail-carousel,
  body.xoo-front-v2[data-page="post-detail"] .detail-carousel {
    padding: 4px !important;
    border-radius: 20px !important;
  }

  body[data-page="post-detail"] .detail-carousel-stage,
  body.xoo-front-v2[data-page="post-detail"] .detail-carousel-stage {
    height: min(58vh, 520px);
    min-height: 330px;
    max-height: 520px;
  }

  body[data-page="post-detail"] .carousel-arrow,
  body.xoo-front-v2[data-page="post-detail"] .carousel-arrow {
    width: 38px;
    height: 38px;
  }

  body[data-page="post-detail"] .carousel-arrow.left,
  body.xoo-front-v2[data-page="post-detail"] .carousel-arrow.left {
    left: 12px;
  }

  body[data-page="post-detail"] .carousel-arrow.right,
  body.xoo-front-v2[data-page="post-detail"] .carousel-arrow.right {
    right: 12px;
  }
}
/* XOO profile final UI override: loaded after styles.css, so keep profile-critical rules here. */
body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card {
  position: relative !important;
  grid-column: 1 / -1 !important;
  min-height: 220px !important;
  padding: 34px 38px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 28px !important;
  align-items: center !important;
  border: 1px solid rgba(168, 190, 255, 0.13) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    #151b27 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta {
  margin-top: 28px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item {
  min-width: 0 !important;
  width: auto !important;
  display: grid !important;
  grid-template-columns: 26px max-content !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 4px !important;
  padding-right: 28px !important;
  margin-right: 28px !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(210,216,230,0.72) !important;
  font-size: 14px !important;
  line-height: 18px !important;
  white-space: nowrap !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item .ui-icon {
  grid-row: 1 / 3 !important;
  width: 24px !important;
  height: 24px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item strong {
  grid-column: 2 !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item.is-points strong {
  color: #ff4db8 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(168, 92, 255, 0.14), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(255, 93, 174, 0.10), transparent 28%) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card::after {
  content: "" !important;
  position: absolute !important;
  right: -42px !important;
  top: 78px !important;
  width: 520px !important;
  height: 120px !important;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 9px, rgba(155,92,255,0.12) 10px 11px, transparent 12px 20px),
    linear-gradient(90deg, transparent, rgba(255,77,184,0.28), rgba(155,92,255,0.2), transparent) !important;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 78%, transparent) !important;
  opacity: 0.42 !important;
  pointer-events: none !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.45fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-core-points,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .checkin-card,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-feature-card {
  grid-column: auto / auto !important;
  grid-row: auto / auto !important;
  min-height: 258px !important;
  padding: 24px 28px !important;
  width: auto !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-core-head {
  width: 100% !important;
  min-width: 0 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-card {
  display: grid !important;
  grid-template-columns: minmax(86px, 1fr) 120px !important;
  grid-template-rows: auto 1fr auto !important;
  grid-template-areas:
    "head head"
    "stats action"
    "note note" !important;
  align-content: stretch !important;
  gap: 16px 14px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-card .profile-core-head {
  grid-area: head !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stats {
  grid-area: stats !important;
  align-self: center !important;
  justify-self: start !important;
  width: 96px !important;
  overflow: visible !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-stat {
  width: 96px !important;
  overflow: visible !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-button {
  grid-area: action !important;
  align-self: center !important;
  width: 120px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .checkin-card > p {
  grid-area: note !important;
  margin: 0 !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-feature-card {
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  gap: 14px !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row {
  min-height: 92px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 26px auto auto !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 8px !important;
  padding: 0 10px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-lines {
  margin-top: 14px !important;
  align-self: stretch !important;
  height: auto !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row .ui-icon {
  width: 24px !important;
  height: 24px !important;
  grid-row: auto !important;
}

body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row span,
body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid .profile-security-row strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 20px !important;
}

@media (max-width: 1440px) {
  body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card {
    min-height: 220px !important;
    padding: 30px 34px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.45fr) !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-feature-card {
    grid-column: auto / auto !important;
  }
}

@media (max-width: 1100px) {
  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-core-points,
  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .checkin-card,
  body[data-page="profile"] .profile-community-main.is-dashboard #profileInlineContent > .profile-core-grid > .profile-feature-card {
    grid-column: auto / auto !important;
  }
}

@media (max-width: 640px) {
  body[data-page="profile"] .profile-community-sidebar {
    padding: 10px !important;
    min-height: auto !important;
    border-radius: 14px !important;
  }

  body[data-page="profile"] .profile-sidebar-list {
    min-height: auto !important;
    gap: 8px !important;
  }

  body[data-page="profile"] .profile-sidebar-group {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body[data-page="profile"] .profile-sidebar-content {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body[data-page="profile"] .profile-sidebar-divider {
    margin: 8px 0 !important;
  }

  body[data-page="profile"] .profile-sidebar-subtitle {
    display: none !important;
  }

  body[data-page="profile"] .profile-sidebar-bottom {
    margin-top: 2px !important;
  }

  body[data-page="profile"] .profile-sidebar-item {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 8px !important;
    gap: 6px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }

  body[data-page="profile"] .profile-sidebar-item .ui-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard > .profile-hero-card {
    min-height: auto !important;
    padding: 18px !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-identity {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-avatar-wrap,
  body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-avatar {
    width: 76px !important;
    height: 76px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-name-row h1 {
    font-size: 22px !important;
    line-height: 28px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta {
    margin-top: 16px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    justify-items: center !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 15px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item .ui-icon {
    grid-row: auto !important;
    width: 18px !important;
    height: 18px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard .profile-hero-meta-item strong {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
    line-height: 16px !important;
  }

  body[data-page="profile"] .profile-community-main.is-dashboard .profile-outline-btn {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    justify-content: center !important;
  }
}

/* EOF final overrides for profile content tabs and points center. */
body[data-page="profile"] .profile-sidebar-item {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  line-height: 1 !important;
}

body[data-page="profile"] .profile-sidebar-item.active::before {
  left: 0 !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 3px !important;
  height: auto !important;
  border-radius: 999px !important;
}

body[data-page="profile"] .profile-content-tabs,
body[data-page="profile"] .profile-overview-tabs {
  position: relative !important;
  z-index: 4 !important;
}

body[data-page="profile"] [data-profile-overview-tab],
body[data-page="profile"] [data-profile-action],
body[data-page="profile"] [data-points-modal-open] {
  pointer-events: auto !important;
}

body[data-page="profile"] .profile-post-info h4 {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 700 !important;
}

body[data-page="profile"] .profile-post-primary-meta {
  display: block !important;
  margin-top: 6px !important;
  font-size: 13px !important;
  line-height: 20px !important;
  color: rgba(226, 232, 255, 0.68) !important;
  white-space: normal !important;
}

body[data-page="profile"] .profile-post-date {
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 18px !important;
  color: rgba(226, 232, 255, 0.5) !important;
}

body[data-page="profile"] .xoo-points-compact {
  display: grid !important;
  gap: 16px !important;
}

body[data-page="profile"] .xoo-points-summary-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body[data-page="profile"] .xoo-points-summary-card {
  min-height: 118px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(181, 130, 255, 0.18) !important;
  background: radial-gradient(circle at 18% 0%, rgba(164, 99, 255, 0.18), transparent 38%), linear-gradient(145deg, rgba(24, 29, 43, 0.96), rgba(13, 17, 28, 0.92)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 7px !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}

body[data-page="profile"] .xoo-points-summary-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 84, 170, 0.32) !important;
}

body[data-page="profile"] .xoo-points-summary-card span {
  font-size: 13px !important;
  line-height: 18px !important;
  color: rgba(226, 232, 255, 0.62) !important;
}

body[data-page="profile"] .xoo-points-summary-card strong {
  font-size: 21px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

body[data-page="profile"] .xoo-points-balance-clean strong b {
  font-size: 32px !important;
  line-height: 38px !important;
  font-weight: 800 !important;
  color: #ff4f98 !important;
}

body[data-page="profile"] .xoo-points-summary-card em {
  font-style: normal !important;
  font-size: 12px !important;
  line-height: 18px !important;
  color: rgba(226, 232, 255, 0.54) !important;
}

body[data-page="profile"] .xoo-points-action-row {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
}

body[data-page="profile"] .xoo-points-soft-btn {
  height: 38px !important;
  min-width: 92px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(196, 128, 255, 0.34) !important;
  background: rgba(157, 95, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

body[data-page="profile"] .xoo-points-soft-btn:hover {
  background: rgba(255, 77, 184, 0.16) !important;
  border-color: rgba(255, 77, 184, 0.52) !important;
  color: #fff !important;
}

body.profile-modal-open {
  overflow: hidden !important;
}

body[data-page="profile"] .xoo-profile-modal.hidden {
  display: none !important;
}

body[data-page="profile"] .xoo-profile-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 16px !important;
}

body[data-page="profile"] .xoo-profile-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  border: 0 !important;
  background: rgba(2, 4, 12, 0.68) !important;
  backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
}

body[data-page="profile"] .xoo-profile-modal-panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(600px, calc(100vw - 32px)) !important;
  max-height: min(70vh, 720px) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(190, 132, 255, 0.24) !important;
  background: radial-gradient(circle at 50% 0%, rgba(185, 99, 255, 0.18), transparent 42%), rgba(16, 20, 32, 0.96) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
}

body[data-page="profile"] .xoo-profile-modal-panel header {
  height: 58px !important;
  padding: 0 18px 0 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body[data-page="profile"] .xoo-profile-modal-panel h3 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 24px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.94) !important;
}

body[data-page="profile"] .xoo-profile-modal-close {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body[data-page="profile"] .xoo-profile-modal-body {
  max-height: calc(min(70vh, 720px) - 58px) !important;
  padding: 18px !important;
  overflow: auto !important;
}

body[data-page="profile"] .xoo-profile-modal-body::-webkit-scrollbar {
  width: 6px !important;
}

body[data-page="profile"] .xoo-profile-modal-body::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(194, 96, 255, 0.45) !important;
}

body[data-page="profile"] .xoo-rule-dialog-list {
  display: grid !important;
  gap: 10px !important;
}

body[data-page="profile"] .xoo-rule-dialog-item {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body[data-page="profile"] .xoo-rule-dialog-item i {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(137, 89, 255, 0.34), rgba(255, 77, 152, 0.26)) !important;
  color: #fff !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body[data-page="profile"] .xoo-rule-dialog-item strong {
  display: block !important;
  margin-bottom: 4px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

body[data-page="profile"] .xoo-rule-dialog-item p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 20px !important;
  color: rgba(226, 232, 255, 0.62) !important;
}

@media (max-width: 1100px) {
  body[data-page="profile"] .xoo-points-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body[data-page="profile"] .xoo-points-summary-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="profile"] .xoo-points-summary-card {
    min-height: 104px !important;
    padding: 14px 16px !important;
  }

  body[data-page="profile"] .xoo-points-action-row {
    flex-wrap: nowrap !important;
  }

  body[data-page="profile"] .xoo-points-soft-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  body[data-page="profile"] .xoo-profile-modal-panel {
    width: calc(100vw - 32px) !important;
    max-height: 70vh !important;
  }
}

/* TRUE FINAL: shared home/profile header and page container. */
body[data-page="home"],
body[data-page="profile"] {
  --page-bg: #080b12;
  --header-bg: rgba(8, 11, 18, 0.78);
  --panel-bg: rgba(18, 23, 33, 0.92);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f7f8ff;
  --text-secondary: rgba(226, 231, 244, 0.72);
  --accent-purple: #9b5cff;
  --accent-pink: #ff4f8b;
  --page-max-width: 1280px;
  --header-height: 64px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --site-logo-size: 25px;
  --site-logo-weight: 950;
  --site-nav-height: 56px;
  --site-nav-padding: 8px;
  --site-nav-item-height: 40px;
  --site-nav-item-width: 78px;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 83, 147, 0.12), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(120, 97, 255, 0.10), transparent 30%),
    linear-gradient(180deg, var(--page-bg) 0%, #0b1018 54%, var(--page-bg) 100%) !important;
}

body[data-page="home"] .site-header,
body[data-page="profile"] .site-header {
  width: 100% !important;
  max-width: none !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  margin: 0 !important;
  padding: 0 max(24px, calc((100vw - var(--page-max-width)) / 2)) !important;
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) 180px !important;
  align-items: center !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 0 !important;
  background: var(--header-bg) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
}

body[data-page="home"] .site-header .logo,
body[data-page="profile"] .site-header .logo {
  justify-self: start !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: transparent !important;
  background: linear-gradient(135deg, #ffffff 0%, #dcb8ff 36%, var(--accent-pink) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: 0 0 26px rgba(168, 92, 255, 0.22) !important;
  font-size: var(--site-logo-size) !important;
  font-weight: var(--site-logo-weight) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

body[data-page="home"] .main-nav,
body[data-page="profile"] .main-nav {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: var(--site-nav-height) !important;
  height: var(--site-nav-height) !important;
  padding: var(--site-nav-padding) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)), rgba(13, 16, 26, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.18) !important;
  overflow: visible !important;
}

body[data-page="home"] .main-nav a,
body[data-page="profile"] .main-nav a {
  width: var(--site-nav-item-width) !important;
  min-width: var(--site-nav-item-width) !important;
  height: var(--site-nav-item-height) !important;
  min-height: var(--site-nav-item-height) !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.70) !important;
  filter: none !important;
  text-shadow: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transform: none !important;
}

body[data-page="home"] .main-nav a::before,
body[data-page="home"] .main-nav a::after,
body[data-page="profile"] .main-nav a::before,
body[data-page="profile"] .main-nav a::after,
body[data-page="home"] .site-header::after,
body[data-page="profile"] .site-header::after,
body[data-page="home"] .site-header .logo::before,
body[data-page="home"] .site-header .logo::after,
body[data-page="profile"] .site-header .logo::before,
body[data-page="profile"] .site-header .logo::after {
  content: none !important;
  display: none !important;
}

body[data-page="home"] .main-nav a:hover,
body[data-page="profile"] .main-nav a:hover,
body[data-page="home"] .main-nav a.active,
body[data-page="profile"] .main-nav a.active {
  color: #fff !important;
  border-color: rgba(197, 119, 255, 0.46) !important;
  background: linear-gradient(135deg, rgba(126, 79, 255, 0.30), rgba(255, 93, 174, 0.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 8px 18px rgba(104, 58, 191, 0.20) !important;
}

body[data-page="home"] .page-shell,
body[data-page="profile"] .page-shell,
body[data-page="profile"] .profile-shell,
body[data-page="home"] .home-shell {
  width: min(var(--page-max-width), calc(100% - 48px)) !important;
  max-width: var(--page-max-width) !important;
  margin: 24px auto 56px !important;
}

body[data-page="profile"] .profile-community-layout,
body[data-page="profile"] .user-center-layout {
  max-width: var(--page-max-width) !important;
}

@media (max-width: 899px) {
  body[data-page="home"],
  body[data-page="profile"] {
    --header-height: 58px;
    --site-logo-size: 23px;
    --site-nav-height: 48px;
    --site-nav-padding: 7px;
    --site-nav-item-height: 34px;
    --site-nav-item-width: 64px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    padding-inline: 14px !important;
    grid-template-columns: 92px minmax(0, 1fr) 16px !important;
  }

  body[data-page="home"] .page-shell,
  body[data-page="profile"] .page-shell,
  body[data-page="profile"] .profile-shell,
  body[data-page="home"] .home-shell {
    width: calc(100% - 28px) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="home"],
  body[data-page="profile"] {
    --site-logo-size: 22px;
    --site-nav-item-width: 58px;
  }

  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    grid-template-columns: 72px minmax(0, 1fr) 0 !important;
  }
}

/* TRUE FINAL: home container, mobile header, and region picker polish. */
body[data-page="home"] .home-shell {
  display: grid !important;
  gap: 18px !important;
}

body[data-page="home"] .search-panel,
body[data-page="home"] #postList.feed,
body[data-page="home"] #feedLoader.feed-loader {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.xoo-front-v2[data-page="home"] #postList.feed,
body[data-page="home"] #postList.feed {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

body[data-page="home"] .region-switch-city {
  display: none;
}

@media (max-width: 1279px) {
  body.xoo-front-v2[data-page="home"] #postList.feed,
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 899px) {
  body.xoo-front-v2[data-page="home"] #postList.feed,
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body[data-page="home"] .site-header,
  body[data-page="profile"] .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-inline: 14px !important;
  }

  body[data-page="home"] .site-header .logo,
  body[data-page="profile"] .site-header .logo {
    flex: 0 0 auto !important;
    justify-self: auto !important;
  }

  body[data-page="home"] .main-nav,
  body[data-page="profile"] .main-nav {
    flex: 0 0 auto !important;
    justify-self: auto !important;
    margin-left: auto !important;
  }
}

@media (max-width: 720px) {
  body.region-mobile-open #activeFilters {
    display: none !important;
  }

  body[data-page="home"] .filter-select-city.open .region-district-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 50px !important;
    padding: 0 4px 10px !important;
  }

  body[data-page="home"] .filter-select-city.open .region-switch-city {
    min-width: 108px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(211, 154, 255, 0.34);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  body[data-page="home"] .region-mobile-step-provinces .region-switch-city {
    display: none !important;
  }
}

@media (max-width: 560px) {
  body.xoo-front-v2[data-page="home"] #postList.feed,
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* TRUE FINAL: mobile home post cards compact information hierarchy. */
body[data-page="home"] #postList.feed .card-location-mobile {
  display: none;
}

@media (max-width: 768px) {
  body.xoo-front-v2[data-page="home"] #postList.feed,
  body[data-page="home"] #postList.feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  body[data-page="home"] #postList.feed .post-card {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 15px !important;
  }

  body[data-page="home"] #postList.feed .card-media {
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    border-radius: 15px 15px 0 0 !important;
    overflow: hidden !important;
  }

  body[data-page="home"] #postList.feed .card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body[data-page="home"] #postList.feed .verify-badge {
    top: 7px !important;
    left: 7px !important;
    max-width: calc(100% - 54px) !important;
    height: 24px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    line-height: 24px !important;
    white-space: nowrap !important;
  }

  body[data-page="home"] #postList.feed .media-badge,
  body[data-page="home"] #postList.feed .image-count,
  body[data-page="home"] #postList.feed .video-count {
    top: 7px !important;
    right: 7px !important;
    height: 24px !important;
    min-width: 32px !important;
    padding: 0 7px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
  }

  body[data-page="home"] #postList.feed .card-body {
    flex: 1 1 auto !important;
    min-height: 178px !important;
    display: grid !important;
    grid-template-rows: 40px 20px 28px 42px !important;
    gap: 7px !important;
    padding: 10px 9px 8px !important;
  }

  body[data-page="home"] #postList.feed .card-body h3 {
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 13.5px !important;
    line-height: 20px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
  }

  body[data-page="home"] #postList.feed .card-location-pc {
    display: none !important;
  }

  body[data-page="home"] #postList.feed .card-location-mobile {
    min-height: 20px !important;
    max-height: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: rgba(224, 229, 246, 0.72) !important;
    font-size: 11px !important;
    line-height: 20px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  body[data-page="home"] #postList.feed .card-location-mobile svg {
    width: 12px !important;
    height: 12px !important;
    flex: 0 0 12px !important;
    color: rgba(255, 86, 142, 0.92) !important;
  }

  body[data-page="home"] #postList.feed .card-location-mobile span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-page="home"] #postList.feed .card-distance {
    display: none !important;
  }

  body[data-page="home"] #postList.feed .card-service-tags,
  body[data-page="home"] #postList.feed .card-service-tags-empty {
    min-height: 28px !important;
    max-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    align-content: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  body[data-page="home"] #postList.feed .card-service-tags span {
    height: 22px !important;
    max-width: 52px !important;
    min-width: 0 !important;
    padding: 0 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    font-size: 10.5px !important;
    line-height: 22px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body[data-page="home"] #postList.feed .card-service-tags span:nth-child(3) {
    max-width: 40px !important;
    flex: 0 0 auto !important;
  }

  body[data-page="home"] #postList.feed .card-meta {
    min-height: 42px !important;
    max-height: 42px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 22px 16px !important;
    align-items: center !important;
    gap: 4px 8px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-page="home"] #postList.feed .card-price {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #ff5f9a !important;
    font-size: 13.5px !important;
    line-height: 22px !important;
    font-weight: 900 !important;
  }

  body[data-page="home"] #postList.feed .card-year {
    height: 20px !important;
    min-width: 0 !important;
    padding: 0 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.065) !important;
    color: rgba(231, 235, 255, 0.64) !important;
    font-size: 10.5px !important;
    line-height: 20px !important;
    white-space: nowrap !important;
  }

  body[data-page="home"] #postList.feed .card-views {
    grid-column: 1 / -1 !important;
    height: 16px !important;
    min-height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(226, 232, 255, 0.54) !important;
    font-size: 10.5px !important;
    line-height: 16px !important;
  }

  body[data-page="home"] #postList.feed .card-views svg {
    width: 12px !important;
    height: 12px !important;
    color: rgba(226, 232, 255, 0.46) !important;
  }

  body[data-page="home"] #postList.feed .card-actions {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    height: 42px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 7px 7px !important;
  }

  body[data-page="home"] #postList.feed .action-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 4px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
  }

  body[data-page="home"] #postList.feed .action-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
  }

  body[data-page="home"] #postList.feed .more-btn span {
    display: none !important;
  }

  body[data-page="home"] #postList.feed .more-btn {
    max-width: 36px !important;
    justify-self: end !important;
  }
}
