/* FaceGo Design System V2 - Ink & Sky member surface. */
@font-face {
  font-family: "FaceGo Be Vietnam Pro";
  src: url("/assets/be-vietnam-pro-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FaceGo Be Vietnam Pro";
  src: url("/assets/be-vietnam-pro-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "FaceGo Be Vietnam Pro";
  src: url("/assets/be-vietnam-pro-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "FaceGo Be Vietnam Pro";
  src: url("/assets/be-vietnam-pro-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "FaceGo Be Vietnam Pro";
  src: url("/assets/be-vietnam-pro-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

.member-shell,
body.member-active {
  --fg-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --fg-bg-canvas: #fbfbfb;
  --fg-surface: #ffffff;
  --fg-surface-subtle: #f5f7f8;
  --fg-surface-strong: #eef2f4;
  --fg-surface-inverse: #171717;
  --fg-text: #171717;
  --fg-text-muted: #626162;
  --fg-text-faint: #9fa3a5;
  --fg-text-inverse: #ffffff;
  --fg-border: #e4e8eb;
  --fg-border-strong: #d6dce1;
  --fg-action: #068ae5;
  --fg-action-hover: #0077b8;
  --fg-action-soft: #e8f7fe;
  --fg-focus: #068ae5;
  --fg-success: #2baa1b;
  --fg-warning: #b45309;
  --fg-danger: #b91c1c;
  --fg-space-1: 0.25rem;
  --fg-space-2: 0.5rem;
  --fg-space-3: 0.75rem;
  --fg-space-4: 1rem;
  --fg-space-5: 1.25rem;
  --fg-space-6: 1.5rem;
  --fg-space-8: 2rem;
  --fg-space-10: 2.5rem;
  --fg-radius-1: 8px;
  --fg-radius-2: 12px;
  --fg-radius-3: 16px;
  --fg-radius-4: 20px;
  --fg-shadow-1: 0 1px 2px rgba(23, 23, 23, 0.05);
  --fg-shadow-2: 0 10px 28px rgba(23, 23, 23, 0.07);
  --fg-shadow-3: 0 24px 60px rgba(23, 23, 23, 0.12);
  --fg-duration-fast: 120ms;
  --fg-duration-base: 180ms;
  --fg-duration-slow: 260ms;
  --fg-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --sidebar-width: 248px;
  min-height: 100vh;
  color: var(--fg-text);
  background: var(--fg-bg-canvas);
  font-family: "FaceGo Be Vietnam Pro", sans-serif;
  font-size: 14px;
}

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

.member-shell button,
.member-shell input,
.member-shell textarea,
.member-shell select {
  font: inherit;
}

.member-shell a,
.member-shell button {
  -webkit-tap-highlight-color: transparent;
}

.member-shell :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fg-focus) 35%, transparent);
  outline-offset: 2px;
}

.member-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: #f8fbfd;
  background: #171717;
  box-shadow: none;
}

.sidebar-brand {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 24px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.sidebar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: none;
}

.sidebar-brand span {
  display: grid;
  line-height: 1;
}

.sidebar-brand strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sidebar-brand small {
  margin-top: 5px;
  color: #9fa3a5;
  font-family: "FaceGo Be Vietnam Pro", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tier-chip {
  display: inline-flex;
  width: max-content;
  margin: 18px 24px 10px;
  padding: 6px 9px;
  border: 1px solid rgba(158, 221, 247, 0.3);
  border-radius: var(--fg-radius-1);
  color: #9eddf7;
  background: rgba(6, 138, 229, 0.12);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.member-nav {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
}

.member-nav a,
.support-trigger {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--fg-radius-1);
  color: #b5b8ba;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: color var(--fg-duration-base) var(--fg-ease-standard), background var(--fg-duration-base) var(--fg-ease-standard);
}

.member-nav a .icon,
.support-trigger .icon {
  width: 17px;
  height: 17px;
  color: #9fa3a5;
  stroke-width: 1.8;
}

.member-nav a::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
}

.member-nav a:hover,
.support-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.member-nav a.active {
  color: #fff;
  background: rgba(6, 138, 229, 0.18);
}

.member-nav a.active::before {
  background: var(--fg-action);
}

.member-nav a.active .icon {
  color: #9eddf7;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-user {
  margin: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fg-radius-2);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-user-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.member-shell .avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--fg-radius-1);
  color: #fff;
  background: var(--fg-action);
  font-size: 11px;
  font-weight: 800;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-user small {
  margin-top: 4px;
  color: #9fa3a5;
  font-size: 9px;
}

.logout-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b5b8ba;
  background: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}

.logout-button:hover {
  color: #fff;
}

.member-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.member-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--fg-border);
  background: color-mix(in srgb, var(--fg-surface) 94%, transparent);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.member-header > div:first-child {
  min-width: 0;
}

.member-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.member-header h1 {
  margin: 2px 0 0;
  color: var(--fg-text);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.member-header h1::before {
  display: block;
  margin-bottom: 5px;
  color: var(--fg-text-faint);
  content: "FACEGO MEMBER CONSOLE";
  font-family: var(--fg-font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.member-header p {
  max-width: 62ch;
  margin: 6px 0 0;
  color: var(--fg-text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-shell .icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-2);
  color: var(--fg-text-muted);
  background: var(--fg-surface);
  cursor: pointer;
  box-shadow: none;
  transition: border-color var(--fg-duration-base) var(--fg-ease-standard), color var(--fg-duration-base) var(--fg-ease-standard), background var(--fg-duration-base) var(--fg-ease-standard), transform var(--fg-duration-fast) var(--fg-ease-standard);
}

.member-shell .icon-button:hover {
  border-color: var(--fg-action);
  color: var(--fg-action);
  background: var(--fg-action-soft);
  box-shadow: none;
}

.member-shell .icon-button:active,
.member-shell .button:active,
.member-shell .support-trigger:active,
.member-shell .member-nav a:active {
  transform: scale(0.98);
}

.member-shell .mobile-menu {
  display: none;
}

.member-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 3vw, 48px) 64px;
}

.content-grid {
  display: grid;
  gap: 20px;
}

.member-shell .surface {
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-3);
  background: var(--fg-surface);
  box-shadow: var(--fg-shadow-1);
}

.member-shell .surface-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--fg-border);
}

.member-shell .surface-head h2 {
  margin: 0;
  color: var(--fg-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.member-shell .surface-head p {
  margin: 5px 0 0;
  color: var(--fg-text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.member-shell .surface-body {
  padding: 22px;
}

.member-shell .text-link {
  color: var(--fg-action);
  font-size: 11px;
  font-weight: 700;
}

.member-shell .text-link:hover {
  color: var(--fg-action-hover);
}

.member-shell .loading-block {
  min-height: 320px;
  color: var(--fg-text-muted);
}

.member-shell .loading-block i {
  width: 18px;
  height: 18px;
  border: 2px solid var(--fg-border-strong);
  border-top-color: var(--fg-action);
}

.profile-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  color: #fff;
  border: 0;
  border-radius: var(--fg-radius-4);
  background:
    radial-gradient(circle at 106% 126%, #2b2b2b 0 31%, transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(245, 47, 104, 0.22), transparent 9rem),
    #171717;
  box-shadow: var(--fg-shadow-2);
}

.profile-hero::after {
  position: absolute;
  right: -130px;
  top: -190px;
  width: 390px;
  height: 390px;
  border: 62px solid rgba(6, 138, 229, 0.13);
  border-radius: 50%;
  content: "";
}

.profile-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--fg-radius-3);
  color: #fff;
  background: var(--fg-action);
  font-size: 23px;
  font-weight: 800;
  box-shadow: none;
}

.profile-copy h2 {
  margin: 0;
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.profile-copy {
  min-width: 0;
}

.profile-tier {
  display: inline-flex;
  margin-left: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(158, 221, 247, 0.3);
  border-radius: var(--fg-radius-1);
  color: #9eddf7;
  background: rgba(6, 138, 229, 0.13);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.profile-copy p {
  margin: 8px 0 0;
  color: #d6dce1;
  font-size: 12px;
}

.profile-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-meta div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-meta span {
  color: #9fa3a5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-meta strong {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.voucher-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-3);
  background: var(--fg-surface);
}

.voucher-banner::before {
  position: absolute;
  inset: 16px auto 16px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--fg-action);
  content: "";
}

.voucher-banner h3 {
  margin: 0;
  color: var(--fg-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.voucher-banner p {
  max-width: 65ch;
  margin: 6px 0 0;
  color: var(--fg-text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.member-shell .button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--fg-radius-2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--fg-duration-base) var(--fg-ease-standard), border-color var(--fg-duration-base) var(--fg-ease-standard), color var(--fg-duration-base) var(--fg-ease-standard), transform var(--fg-duration-fast) var(--fg-ease-standard);
}

.member-shell .button.primary {
  color: #fff;
  background: var(--fg-action);
  box-shadow: none;
}

.member-shell .button.primary:hover {
  background: var(--fg-action-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.member-shell .button.secondary {
  color: var(--fg-text);
  border-color: var(--fg-border-strong);
  background: var(--fg-surface);
}

.member-shell .button.secondary:hover {
  color: var(--fg-action-hover);
  border-color: var(--fg-action);
  background: var(--fg-action-soft);
  box-shadow: none;
}

.member-shell .button.danger {
  color: #fff;
  background: var(--fg-danger);
}

.overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
}

.extension-cta {
  min-height: 176px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
}

.extension-cta h3 {
  margin: 0;
  color: var(--fg-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.extension-cta p {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--fg-text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.extension-mark {
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius-3);
  background: var(--fg-action-soft);
  transform: none;
}

.extension-mark img {
  width: 62px;
  height: 62px;
  border-radius: var(--fg-radius-2);
  transform: none;
}

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

.account-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius-2);
  background: var(--fg-surface);
}

.account-row .avatar {
  border-radius: var(--fg-radius-1);
}

.account-row strong {
  color: var(--fg-text);
  font-size: 11px;
}

.account-row small {
  display: block;
  margin-top: 4px;
  color: var(--fg-text-muted);
  font-size: 9px;
}

.count-label {
  color: var(--fg-action-hover);
  font-size: 10px;
  font-weight: 700;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-3);
  background: var(--fg-border);
}

.metric {
  min-height: 120px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--fg-border);
  border-bottom: 1px solid var(--fg-border);
  border-radius: 0;
  background: var(--fg-surface);
  transition: background var(--fg-duration-base) var(--fg-ease-standard);
}

.metric:nth-child(3n) {
  border-right: 0;
}

.metric:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.metric:hover {
  transform: none;
  background: var(--fg-surface-subtle);
  box-shadow: none;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--fg-text-muted);
}

.metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--fg-radius-1);
  color: var(--fg-action-hover);
  background: var(--fg-action-soft);
}

.metric-value {
  margin-top: 13px;
  color: var(--fg-text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  margin-top: 4px;
  color: var(--fg-text-muted);
  font-size: 10px;
}

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

.product-card {
  --product-accent: var(--fg-action);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-3);
  color: var(--fg-text);
  background: var(--fg-surface);
  box-shadow: var(--fg-shadow-1);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--fg-duration-base) var(--fg-ease-standard), box-shadow var(--fg-duration-base) var(--fg-ease-standard), transform var(--fg-duration-base) var(--fg-ease-standard);
}

.product-card::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 4px;
  background: var(--product-accent);
  content: "";
}

.product-card::after {
  position: absolute;
  z-index: -1;
  right: -45px;
  top: -50px;
  width: 150px;
  height: 150px;
  border: 34px solid color-mix(in srgb, var(--product-accent) 12%, transparent);
  border-radius: 50%;
  content: "";
}

.product-card:hover,
.product-card:focus-visible {
  border-color: color-mix(in srgb, var(--product-accent) 60%, var(--fg-border-strong));
  box-shadow: var(--fg-shadow-2);
  transform: translateY(-2px);
}

.product-card.blue { --product-accent: var(--fg-action); }
.product-card.violet { --product-accent: #7c3aed; }
.product-card.orange { --product-accent: #ea580c; }
.product-card.green { --product-accent: #059669; }

.product-card .product-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid color-mix(in srgb, var(--product-accent) 22%, var(--fg-border));
  border-radius: var(--fg-radius-2);
  color: var(--product-accent);
  background: color-mix(in srgb, var(--product-accent) 10%, var(--fg-surface));
}

.product-card h2 {
  max-width: 370px;
  margin: 24px 0 7px;
  color: var(--fg-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-card p {
  margin: 0;
  color: var(--fg-text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.product-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--fg-border);
}

.product-card footer strong {
  color: var(--fg-text);
  font-size: 12px;
}

.selected-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--product-accent);
  font-size: 9px;
  font-weight: 700;
}

.benefits {
  grid-column: 1 / -1;
  padding: 22px;
}

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

.benefit {
  padding: 14px;
  border-left: 2px solid var(--fg-action);
}

.benefit strong {
  display: block;
  color: var(--fg-text);
  font-size: 11px;
}

.benefit span {
  display: block;
  margin-top: 6px;
  color: var(--fg-text-muted);
  font-size: 9px;
  line-height: 1.5;
}

.cart-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.cart-count {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--fg-radius-1);
  color: #fff;
  background: var(--fg-action);
  font-size: 10px;
  font-weight: 700;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius-2);
}

.cart-item strong {
  color: var(--fg-text);
  font-size: 11px;
}

.cart-item small,
.payment-note,
.cart-empty {
  color: var(--fg-text-muted);
}

.cart-item small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
}

.cart-item b {
  color: var(--fg-text);
  font-size: 11px;
}

.remove-item {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius-1);
  color: var(--fg-text-muted);
  background: var(--fg-surface-subtle);
  cursor: pointer;
}

.remove-item:hover {
  color: var(--fg-danger);
  border-color: #fca5a5;
  background: #fef2f2;
}

.cart-total {
  border-top-color: var(--fg-border);
}

.cart-total strong {
  color: var(--fg-text);
  font-size: 20px;
  font-weight: 800;
}

.activity-mini-row i {
  background: var(--fg-action);
  box-shadow: 0 0 0 4px var(--fg-action-soft);
}

.empty-state {
  min-height: 240px;
}

.empty-state .empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: var(--fg-radius-2);
  color: var(--fg-action-hover);
  background: var(--fg-action-soft);
}

.empty-state h3 {
  color: var(--fg-text);
  font-size: 16px;
  font-weight: 800;
}

.empty-state p {
  color: var(--fg-text-muted);
}

.package-list {
  display: grid;
  gap: 10px;
}

.package-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  padding: 14px;
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius-2);
  background: var(--fg-surface);
}

.package-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--fg-radius-2);
  color: var(--fg-action-hover);
  background: var(--fg-action-soft);
}

.package-row h3 {
  margin: 0;
  color: var(--fg-text);
  font-size: 12px;
  font-weight: 700;
}

.package-row p {
  margin: 5px 0 0;
  color: var(--fg-text-muted);
  font-size: 9px;
}

.package-date {
  color: var(--fg-text-muted);
  font-size: 10px;
  text-align: right;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: var(--fg-radius-1);
  font-size: 9px;
  font-weight: 700;
}

.status.active {
  color: var(--fg-success);
  border-color: #b7e7ae;
  background: #f1faee;
}

.status.pending {
  color: var(--fg-warning);
  border-color: #fcd34d;
  background: #fffbeb;
}

.status.expired {
  color: var(--fg-danger);
  border-color: #fca5a5;
  background: #fef2f2;
}

.activity-layout,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: start;
}

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

.timeline::before {
  background: var(--fg-border-strong);
}

.timeline-dot {
  border-color: var(--fg-surface);
  background: var(--fg-action);
  box-shadow: 0 0 0 1px #9eddf7;
}

.timeline-item h3 {
  color: var(--fg-text);
  font-size: 11px;
}

.timeline-item p,
.timeline-item time {
  color: var(--fg-text-muted);
}

.data-table th,
.data-table td {
  border-bottom-color: var(--fg-border);
}

.data-table th {
  color: var(--fg-text-faint);
  background: var(--fg-surface-subtle);
}

.data-table td {
  color: var(--fg-text-muted);
}

.channel-tag {
  color: var(--fg-action-hover);
  background: var(--fg-action-soft);
}

.field label {
  color: var(--fg-text-muted);
  font-size: 9px;
}

.field input,
.field textarea,
.field select {
  border-color: var(--fg-border-strong);
  border-radius: var(--fg-radius-2);
  color: var(--fg-text);
  background: var(--fg-surface);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--fg-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg-focus) 15%, transparent);
}

.inline-notice {
  border-color: #b7def1;
  border-radius: var(--fg-radius-2);
  color: var(--fg-action-hover);
  background: var(--fg-action-soft);
}

body.member-active .overlay {
  background: rgba(12, 24, 33, 0.62);
  backdrop-filter: blur(8px);
}

body.member-active .dialog {
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-4);
  color: var(--fg-text);
  background: var(--fg-surface);
  box-shadow: var(--fg-shadow-3);
}

body.member-active .dialog-head {
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--fg-border);
  background: color-mix(in srgb, var(--fg-surface) 96%, transparent);
}

body.member-active .dialog-head h2 {
  color: var(--fg-text);
  font-family: "FaceGo Be Vietnam Pro", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

body.member-active .dialog-head p {
  color: var(--fg-text-muted);
  font-size: 10px;
  line-height: 1.55;
}

body.member-active .dialog-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-2);
  color: var(--fg-text-muted);
  background: var(--fg-surface);
}

body.member-active .dialog-close:hover {
  color: var(--fg-action-hover);
  border-color: var(--fg-action);
  background: var(--fg-action-soft);
}

body.member-active .dialog-body {
  padding: 24px;
}

body.member-active .feature-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--fg-radius-3);
  background:
    radial-gradient(circle at 115% -10%, rgba(6, 138, 229, 0.24), transparent 10rem),
    #171717;
}

body.member-active .feature-panel h3 {
  font-family: "FaceGo Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

body.member-active .feature-panel li {
  color: #d6dce1;
  font-size: 9px;
}

body.member-active .feature-panel li .icon {
  color: #9eddf7;
}

body.member-active .config-label {
  color: var(--fg-text-muted);
  font-size: 9px;
  font-weight: 700;
}

body.member-active .option-button,
body.member-active .price-option {
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-2);
  color: var(--fg-text-muted);
  background: var(--fg-surface);
}

body.member-active .option-button:hover,
body.member-active .price-option:hover {
  border-color: color-mix(in srgb, var(--fg-action) 55%, var(--fg-border-strong));
}

body.member-active .option-button.selected,
body.member-active .price-option.selected {
  color: var(--fg-action-hover);
  border-color: var(--fg-action);
  background: var(--fg-action-soft);
  box-shadow: inset 0 0 0 1px var(--fg-action);
}

body.member-active .price-option span,
body.member-active .price-option strong,
body.member-active .dialog-total strong,
body.member-active .payment-row strong {
  color: var(--fg-text);
}

body.member-active .price-option del,
body.member-active .dialog-total span,
body.member-active .payment-row span,
body.member-active .qr-placeholder {
  color: var(--fg-text-muted);
}

body.member-active .dialog-total,
body.member-active .payment-row {
  border-color: var(--fg-border);
}

body.member-active .qr-frame {
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-3);
  background: var(--fg-surface-subtle);
}

body.member-active .payment-content {
  border-color: color-mix(in srgb, var(--fg-action) 55%, var(--fg-border));
  border-radius: var(--fg-radius-2);
  color: var(--fg-action-hover);
  background: var(--fg-action-soft);
}

body.member-active .support-channel {
  border: 1px solid var(--fg-border);
  border-radius: var(--fg-radius-2);
  color: var(--fg-text);
  background: var(--fg-surface);
}

body.member-active .support-channel:hover {
  border-color: var(--fg-action);
  background: var(--fg-action-soft);
  box-shadow: none;
}

body.member-active .support-channel .channel-icon {
  border-radius: var(--fg-radius-2);
  color: var(--fg-action-hover);
  background: var(--fg-action-soft);
}

body.member-active .support-channel small {
  color: var(--fg-text-muted);
}

body.member-active .toast {
  border: 1px solid var(--fg-border-strong);
  border-radius: var(--fg-radius-2);
  color: var(--fg-text);
  background: var(--fg-surface);
  box-shadow: var(--fg-shadow-2);
}

body.member-active .toast.error {
  color: var(--fg-danger);
  border-color: #fca5a5;
}

body.member-active .toast span {
  color: var(--fg-text-muted);
}

.member-sidebar-scrim {
  display: none;
}

.member-shell.theme-dark,
body.member-active.member-dark {
  --fg-bg-canvas: #0c1821;
  --fg-surface: #122431;
  --fg-surface-subtle: #162c3a;
  --fg-surface-strong: #1c3545;
  --fg-text: #edf6fa;
  --fg-text-muted: #adc0ca;
  --fg-text-faint: #8fa4af;
  --fg-border: #294352;
  --fg-border-strong: #385564;
  --fg-action: #5eead4;
  --fg-action-hover: #99f6e4;
  --fg-action-soft: #153d39;
  --fg-focus: #2dd4bf;
  --fg-success: #6ee7b7;
  --fg-warning: #fcd34d;
  --fg-danger: #fca5a5;
}

.theme-dark .member-header {
  background: color-mix(in srgb, var(--fg-surface) 94%, transparent);
}

.theme-dark .profile-hero {
  background:
    radial-gradient(circle at 106% 126%, #203845 0 31%, transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(94, 234, 212, 0.18), transparent 9rem),
    #0d1f2d;
}

.theme-dark .profile-tier {
  color: #a5f3fc;
  border-color: rgba(165, 243, 252, 0.3);
  background: rgba(45, 212, 191, 0.14);
}

.member-shell.theme-dark .button.secondary,
.member-shell.theme-dark .icon-button {
  color: var(--fg-text);
}

@media (max-width: 1260px) {
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .overview-split,
  .activity-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .member-sidebar {
    transform: translateX(-100%);
    transition: transform var(--fg-duration-slow) var(--fg-ease-standard);
  }

  .member-shell.sidebar-open .member-sidebar {
    transform: translateX(0);
  }

  .member-sidebar-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(12, 24, 33, 0.48);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--fg-duration-base) var(--fg-ease-standard);
  }

  .member-shell.sidebar-open .member-sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .member-main {
    margin-left: 0;
  }

  .member-shell .mobile-menu {
    display: grid;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .member-content {
    padding-inline: 22px;
  }
}

@media (max-width: 720px) {
  .member-header {
    min-height: 72px;
    padding: 12px 16px;
  }

  .member-header h1 {
    font-size: 19px;
  }

  .member-header h1::before {
    font-size: 8px;
  }

  .member-header p {
    display: none;
  }

  .member-content {
    padding: 18px 14px 42px;
  }

  .profile-identity {
    align-items: flex-start;
    padding: 24px 20px;
  }

  .profile-avatar {
    width: 66px;
    height: 66px;
    border-radius: var(--fg-radius-2);
  }

  .profile-meta {
    grid-template-columns: 1fr;
  }

  .profile-meta div {
    min-height: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .voucher-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 20px 20px 24px;
  }

  .voucher-banner .button {
    justify-self: start;
  }

  .metrics-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(3n),
  .metric:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--fg-border);
  }

  .metric:last-child {
    border-bottom: 0;
  }

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

  .package-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .package-date,
  .package-row .status {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .extension-cta {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header-tools .icon-button:not(.mobile-menu):first-of-type {
    display: none;
  }

  .member-shell .surface-head,
  .member-shell .surface-body {
    padding: 18px;
  }

  .profile-identity {
    display: grid;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .extension-cta {
    display: grid;
  }

  .extension-mark {
    width: 76px;
    height: 76px;
  }

  .extension-mark img {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-shell *,
  .member-shell *::before,
  .member-shell *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
