: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;
}

*,
*::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;
  }
}
