/* Page: Privilege Card & Tiers */
html:has(.boh-privilege),
body:has(.boh-privilege) {
  height: 100%;
  overflow: hidden;
}

body:has(.boh-privilege) .boh-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:has(.boh-privilege) .boh-shell__main {
  flex: 1;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.boh-privilege {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.boh-privilege__header {
  padding: 2.5rem var(--boh-space-screen) 0.625rem var(--boh-space-screen);
  flex-shrink: 0;
  background-color: var(--boh-color-bg);
  position: relative;
  z-index: 10;
}

.boh-privilege__header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.boh-privilege__header-back {
  padding: 0.5rem;
  margin-left: -0.5rem;
  color: var(--boh-color-primary);
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.boh-privilege__header-back svg {
  width: 1.5rem;
  height: 1.5rem;
}

.boh-privilege__header-title {
  font-family: var(--boh-font-sans);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  font-size: var(--boh-font-size-navtitle);
  margin: 0;
}

.boh-privilege__header-close {
  padding: 0.5rem;
  margin-right: -0.5rem;
  color: var(--boh-color-primary);
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.boh-privilege__header-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.boh-privilege__main {
  flex: 1;
  overflow-y: auto;
  padding: 1rem var(--boh-space-screen);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.boh-privilege__main::-webkit-scrollbar {
  display: none;
}

.boh-privilege__main {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Toggle Control */
.boh-privilege__toggle {
  display: flex;
  background-color: var(--boh-color-surface);
  border-radius: 9999px;
  padding: 0.25rem;
  box-shadow: var(--boh-shadow-card);
}

.boh-privilege__toggle-btn {
  flex: 1;
  padding: 0.5rem 0;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: var(--boh-font-weight-700);
  border: none;
  cursor: pointer;
  background: none;
  color: color-mix(in srgb, var(--boh-color-muted) 50%, transparent);
  transition: background-color 0.2s, color 0.2s;
  text-align: center;
  text-decoration: none;
}

.boh-privilege__toggle-btn--active {
  background-color: var(--boh-color-primary);
  color: var(--boh-color-surface);
}

/* Card Visual Graphic */
.boh-privilege__card-visual {
  width: 100%;
  aspect-ratio: 2/1;
  border-radius: 20px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.boh-privilege__card-visual--default {
  background-color: var(--boh-color-primary);
}

.boh-privilege__card-visual-blob {
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  filter: blur(24px);
  opacity: 0.5;
  z-index: 0;
}

.boh-privilege__card-visual-blob--default {
  background-color: #2A5A50;
}

.boh-privilege__card-visual-star {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 10;
}

.boh-privilege__card-visual-star svg {
  width: 1.5rem;
  height: 1.5rem;
}

.boh-privilege__card-visual-star--default svg {
  fill: #C9B79A;
}

.boh-privilege__card-visual-eyebrow {
  font-size: 10px;
  font-weight: var(--boh-font-weight-700);
  tracking-widest: 0.1em;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 10;
}

.boh-privilege__card-visual-eyebrow--default {
  color: #C9B79A;
}

.boh-privilege__card-visual-content {
  position: relative;
  z-index: 10;
}

.boh-privilege__card-visual-name {
  font-family: var(--boh-font-serif);
  font-size: 22px;
  font-weight: var(--boh-font-weight-600);
  margin: 0;
}

.boh-privilege__card-visual-name--default {
  color: var(--boh-color-surface);
}

.boh-privilege__card-visual-detail {
  font-size: 10px;
  font-weight: var(--boh-font-weight-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0.25rem 0 0 0;
}

.boh-privilege__card-visual-detail--default {
  color: #C9B79A;
}

/* Pricing and Benefits */
.boh-privilege__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.boh-privilege__price-val {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-800);
  font-size: 24px;
}

.boh-privilege__price-unit {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 12px;
}

.boh-privilege__benefits-title {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 15px;
  margin: 0 0 0.75rem 0;
}

.boh-privilege__benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.boh-privilege__benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.boh-privilege__benefit-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--boh-color-primary);
  flex-shrink: 0;
}

.boh-privilege__benefit-icon--gold {
  color: var(--boh-color-gold);
}

.boh-privilege__benefit-text {
  color: var(--boh-color-primary);
  font-size: 14px;
}

/* payOS Payment Info */
.boh-privilege__payment-box {
  background-color: var(--boh-color-surface);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 18%, transparent);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 8px 18px rgba(38, 86, 77, 0.08);
  margin-top: 1.5rem;
}

.boh-privilege__payment-box--inactive {
  border-color: color-mix(in srgb, var(--boh-color-danger) 22%, var(--boh-color-border) 78%);
  background-color: color-mix(in srgb, var(--boh-color-danger) 4%, var(--boh-color-surface) 96%);
}

.boh-privilege__payment-kicker {
  margin: 0;
  color: color-mix(in srgb, var(--boh-color-muted) 80%, black 20%);
  font-size: 11px;
  font-weight: var(--boh-font-weight-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: none;
}

.boh-privilege__payment-title {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 16px;
  margin: 0;
}

.boh-privilege__payment-detail {
  color: color-mix(in srgb, var(--boh-color-muted) 84%, black 16%);
  font-size: 13px;
  margin: 0;
  line-height: 1.45;
}

.boh-privilege__payment-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background-color: color-mix(in srgb, var(--boh-color-bg) 72%, var(--boh-color-surface) 28%);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 16%, transparent);
}

.boh-privilege__payment-total-label {
  color: color-mix(in srgb, var(--boh-color-muted) 80%, black 20%);
  font-size: 12px;
  font-weight: var(--boh-font-weight-600);
}

.boh-privilege__payment-total-value {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-800);
  font-size: 18px;
  margin: 0;
}

.boh-privilege__payment-status-note {
  margin: 0;
  color: color-mix(in srgb, var(--boh-color-danger) 82%, black 18%);
  font-size: 12px;
  font-weight: var(--boh-font-weight-600);
  line-height: 1.4;
}

/* Footer / Actions Bar */
.boh-privilege__footer {
  flex-shrink: 0;
  background-color: var(--boh-color-bg);
  padding: 1rem var(--boh-space-screen);
  z-index: 10;
  box-sizing: border-box;
}

.boh-privilege__footer-split {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.boh-privilege__footer-price {
  flex: 1;
}

.boh-privilege__footer-price-text {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-800);
  font-size: 18px;
  margin: 0;
}

.boh-privilege__footer-price-unit {
  font-size: 12px;
  font-weight: var(--boh-font-weight-400);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
}

.boh-privilege__subscribe-btn {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--boh-color-gold);
  color: var(--boh-color-surface);
  font-weight: var(--boh-font-weight-700);
  font-size: var(--boh-font-size-btn);
  padding: 0.875rem 0;
  border-radius: var(--boh-radius-button);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.boh-privilege__subscribe-btn:active {
  transform: scale(0.98);
}

.boh-privilege__subscribe-btn--split {
  width: auto;
  padding: 0.875rem 1.5rem;
}

.boh-privilege__subscribe-btn--primary {
  background-color: var(--boh-color-primary);
}

.boh-privilege__subscribe-btn--disabled,
.boh-privilege__subscribe-btn--disabled:active {
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.55;
  box-shadow: none;
  background-color: color-mix(in srgb, var(--boh-color-muted) 35%, var(--boh-color-surface) 65%);
  color: color-mix(in srgb, var(--boh-color-primary) 58%, transparent);
}

.boh-privilege__subscribe-note {
  margin: 0.625rem 0 0 0;
  text-align: center;
  color: color-mix(in srgb, var(--boh-color-muted) 82%, black 18%);
  font-size: 12px;
  font-weight: var(--boh-font-weight-600);
}
