@font-face {
  font-family: "FaceGo Display";
  src: url("/assets/manrope-vietnamese.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "FaceGo Text";
  src: url("/assets/inter-vietnamese.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --navy-950: #081220;
  --navy-900: #0a1628;
  --navy-850: #0f1d32;
  --navy-800: #142640;
  --blue-700: #174fc6;
  --blue-600: #2364df;
  --blue-500: #3478f6;
  --blue-100: #e8f0ff;
  --ink: #172033;
  --muted: #68748a;
  --line: #e2e7ef;
  --line-dark: #cfd6e2;
  --canvas: #f7f9fc;
  --surface: #ffffff;
  --orange: #f28b22;
  --green: #149b6c;
  --red: #d54c4c;
  --violet: #7555d9;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 5px 18px rgba(24, 38, 64, .07);
  --shadow: 0 16px 44px rgba(24, 38, 64, .1);
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: "FaceGo Text", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.app-loading { min-height: 100vh; display: grid; place-items: center; background: #f7f9fc; }
.boot-mark { display: flex; align-items: center; gap: 12px; color: var(--navy-850); font: 900 16px "FaceGo Display", sans-serif; letter-spacing: .16em; animation: breathe 1.2s ease-in-out infinite alternate; }
.boot-mark img { width: 42px; height: 42px; border-radius: 12px; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.8; }
.icon-sm { width: 16px; height: 16px; }

/* Public account pages */
.public-page {
  min-height: 100vh;
  color: #15304d;
  background:
    radial-gradient(circle at 88% 8%, rgba(42, 157, 216, .14), transparent 26rem),
    linear-gradient(135deg, #f7f6f0 0%, #edf0ee 100%);
}
.public-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(0, 53, 102, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 53, 102, .08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.public-header, .public-footer {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-header { height: 88px; border-bottom: 1px solid rgba(0, 53, 102, .18); }
.public-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #002b52; }
.public-brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 8px 20px rgba(0, 53, 102, .18); }
.public-brand span { display: grid; line-height: 1; }
.public-brand strong { font: 900 22px "FaceGo Display", sans-serif; letter-spacing: .08em; }
.public-brand small { margin-top: 5px; color: #6d7c8b; font-size: 8px; font-weight: 800; letter-spacing: .26em; }
.public-header-link { display: inline-flex; align-items: center; gap: 7px; color: #003566; text-decoration: none; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.public-header-link .icon { color: var(--orange); }
.public-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100vh - 156px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  border-inline: 1px solid rgba(0, 53, 102, .16);
}
.public-signal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(42px, 5vw, 86px);
  color: white;
  background: linear-gradient(150deg, rgba(0, 95, 168, .96), rgba(0, 34, 65, .99));
}
.public-signal::before { content: ""; position: absolute; z-index: -1; width: 430px; height: 430px; right: -200px; top: -180px; border: 74px solid rgba(68, 194, 245, .17); border-radius: 50%; }
.public-signal::after { content: ""; position: absolute; right: 11%; bottom: 10%; width: 112px; height: 5px; background: var(--orange); box-shadow: 0 14px 0 rgba(255,255,255,.14), 0 28px 0 rgba(255,255,255,.07); transform: skewX(-32deg); }
.signal-noise { position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.06) 5px); }
.public-signal h1 { margin: 0 0 22px; max-width: 650px; font: 850 clamp(50px, 5vw, 76px)/.98 "FaceGo Display", sans-serif; letter-spacing: -.045em; text-transform: uppercase; }
.public-signal h1 em { color: #84ddff; font-style: normal; }
.public-signal > p { max-width: 580px; margin: 0; color: #d2e8f4; font-size: 14px; line-height: 1.75; }
.feature-rail { display: grid; gap: 1px; margin-top: 44px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.14); }
.feature-rail article { display: flex; align-items: center; gap: 18px; padding: 15px 17px; background: rgba(0, 31, 59, .7); }
.feature-rail b { color: var(--orange); font: 800 11px monospace; }
.feature-rail span { display: grid; gap: 3px; }
.feature-rail strong { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.feature-rail small { color: #9bbaca; font-size: 10px; }
.service-state { margin-top: 26px; color: #a5becd; font: 700 9px monospace; letter-spacing: .12em; }
.service-state i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #43db91; box-shadow: 0 0 0 4px rgba(67, 219, 145, .12); }
.service-state span { color: #43db91; }
.public-form-panel { display: flex; align-items: center; padding: 58px clamp(34px, 4.7vw, 72px); background: rgba(255, 255, 252, .88); backdrop-filter: blur(16px); }
.public-form-wrap { width: 100%; max-width: 470px; margin: auto; }
.route-code { margin: 0 0 14px; color: #0063a8; font: 900 10px monospace; letter-spacing: .18em; }
.public-form-wrap h2 { margin: 0; color: #00325d; font: 850 clamp(36px, 3.5vw, 50px)/1.03 "FaceGo Display", sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.route-intro { margin: 16px 0 30px; color: #65778a; font-size: 13px; line-height: 1.7; }
.account-form { display: grid; gap: 18px; }
.account-form label:not(.check-row) { display: grid; gap: 8px; color: #00325d; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.account-form input:not([type="checkbox"]) { width: 100%; height: 51px; padding: 0 15px; border: 1px solid #bdc8ce; border-radius: 0; outline: 0; color: #17324d; background: rgba(255,255,255,.82); font-size: 14px; font-weight: 600; transition: .2s ease; }
.account-form input:focus { border-color: #18aeea; background: white; box-shadow: 4px 4px 0 rgba(24, 174, 234, .12); }
.check-row { display: flex; gap: 10px; color: #65778a; font-size: 11px; line-height: 1.5; }
.check-row input { width: 17px; height: 17px; accent-color: #075fa6; }
.check-row a, .alternate a { color: #075fa6; font-weight: 800; }
.form-message { display: none; padding: 12px 14px; border-left: 3px solid var(--red); color: #a93535; background: #fff0f0; font-size: 12px; line-height: 1.5; }
.form-message.visible { display: block; }
.form-message.success { border-color: var(--green); color: #08704e; background: #eaf9f3; }
.primary-button { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; padding: 0 18px 0 21px; color: white; background: #00325d; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .13em; box-shadow: 6px 6px 0 rgba(0,53,102,.12); transition: .18s ease; }
.primary-button:hover { background: #075fa6; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0,53,102,.12); }
.primary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.primary-button .icon { color: var(--orange); }
.button-link { text-decoration: none; }
.alternate { margin: 24px 0 0; text-align: center; color: #65778a; font-size: 11px; line-height: 1.8; }
.public-footer { min-height: 68px; color: #6c7a88; font: 700 9px monospace; letter-spacing: .09em; }
.public-footer nav { display: flex; gap: 22px; }
.public-footer a { color: inherit; text-decoration: none; }
.state-symbol { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 26px; color: white; background: #075fa6; font: 800 28px monospace; box-shadow: 8px 8px 0 rgba(24,174,234,.16); }
.legal-copy { max-height: 48vh; overflow: auto; margin: 25px 0; padding-right: 8px; color: #65778a; font-size: 12px; line-height: 1.75; }
.legal-copy h3 { margin: 24px 0 6px; color: #00325d; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Member shell */
.member-shell { min-height: 100vh; background: var(--canvas); }
.member-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: #dbe5f4;
  background: linear-gradient(180deg, #0f1d32 0%, #0a1628 72%, #081220 100%);
  box-shadow: 14px 0 38px rgba(8, 18, 32, .1);
}
.sidebar-brand { height: 92px; display: flex; align-items: center; gap: 12px; padding: 0 25px; color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.sidebar-brand span { display: grid; line-height: 1; }
.sidebar-brand strong { font: 900 20px "FaceGo Display", sans-serif; letter-spacing: .08em; }
.sidebar-brand small { margin-top: 6px; color: #8294ae; font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.tier-chip { display: inline-flex; width: max-content; margin: 17px 25px 8px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #7cc7ff; background: rgba(52, 120, 246, .12); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.member-nav { display: grid; gap: 5px; padding: 12px 15px; }
.member-nav a, .support-trigger { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-radius: 10px; color: #aebed3; background: transparent; text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 600; text-align: left; transition: .18s ease; }
.member-nav a:hover, .support-trigger:hover { color: white; background: rgba(255,255,255,.055); }
.member-nav a.active { color: white; background: linear-gradient(90deg, rgba(52,120,246,.28), rgba(52,120,246,.09)); box-shadow: inset 3px 0 0 #4b8cff; }
.member-nav a.active .icon { color: #79b1ff; }
.sidebar-spacer { flex: 1; }
.sidebar-user { margin: 12px 15px 15px; padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.035); }
.sidebar-user-main { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg, #2a6be6, #194bb8); font: 800 11px "FaceGo Display", sans-serif; }
.sidebar-user strong, .sidebar-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: white; font-size: 12px; }
.sidebar-user small { display: block; margin-top: 4px; color: #8496ae; font-size: 9px; }
.logout-button { width: 100%; display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 10px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.07); color: #9dafc5; background: none; cursor: pointer; font-size: 10px; font-weight: 700; }
.member-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.member-header { position: sticky; z-index: 30; top: 0; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 38px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.member-header h1 { margin: 0; color: #182238; font: 780 24px/1.2 "FaceGo Display", sans-serif; letter-spacing: -.025em; }
.member-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: #66748a; background: white; cursor: pointer; transition: .18s ease; }
.icon-button:hover { color: var(--blue-600); border-color: #bfd1f4; box-shadow: var(--shadow-sm); }
.mobile-menu { display: none; }
.member-content { width: min(1660px, 100%); margin: 0 auto; padding: 32px 38px 60px; }
.content-grid { display: grid; gap: 22px; }
.surface { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.surface-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.surface-head h2 { margin: 0; font: 750 17px "FaceGo Display", sans-serif; }
.surface-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.surface-body { padding: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-600); text-decoration: none; font-size: 11px; font-weight: 800; }
.text-link .icon { width: 14px; height: 14px; }
.loading-block { min-height: 320px; display: grid; place-items: center; color: var(--muted); }
.loading-block span { display: flex; align-items: center; gap: 10px; }
.loading-block i { width: 18px; height: 18px; border: 2px solid #dbe4f1; border-top-color: var(--blue-600); border-radius: 50%; animation: spin .7s linear infinite; }

/* Overview */
.profile-hero { position: relative; overflow: hidden; min-height: 216px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr); color: white; border-radius: var(--radius-lg); background: linear-gradient(135deg, #142946 0%, #0c1c31 70%); box-shadow: var(--shadow); }
.profile-hero::after { content: ""; position: absolute; width: 410px; height: 410px; right: -145px; top: -195px; border: 72px solid rgba(73, 137, 242, .13); border-radius: 50%; }
.profile-identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; padding: 34px; }
.profile-avatar { width: 86px; height: 86px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; color: white; background: linear-gradient(145deg, #397ff3, #2050bc); font: 850 24px "FaceGo Display", sans-serif; box-shadow: 0 18px 34px rgba(0,0,0,.2); }
.profile-copy h2 { margin: 0; font: 760 27px "FaceGo Display", sans-serif; }
.profile-tier { display: inline-flex; margin-left: 8px; padding: 5px 8px; border-radius: 7px; color: #99ceff; background: rgba(76, 143, 246, .15); font-size: 9px; vertical-align: middle; }
.profile-copy p { margin: 9px 0 0; color: #aebdd1; 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,.08); }
.profile-meta div { min-height: 74px; display: grid; align-content: center; gap: 7px; padding: 0 22px; border-left: 1px solid rgba(255,255,255,.06); }
.profile-meta span { color: #8fa2bb; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-meta strong { color: white; font-size: 12px; font-weight: 650; }
.voucher-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 27px; border: 1px solid #c9d9f4; border-radius: var(--radius); background: linear-gradient(100deg, #eef5ff, #f9fbff); }
.voucher-banner h3 { margin: 0; color: #17438f; font: 750 16px "FaceGo Display", sans-serif; }
.voucher-banner p { margin: 7px 0 0; color: #5b6f8c; font-size: 11px; line-height: 1.55; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 800; text-decoration: none; transition: .18s ease; }
.button.primary { color: white; background: var(--blue-600); box-shadow: 0 7px 16px rgba(35, 100, 223, .2); }
.button.primary:hover { background: #174fc6; transform: translateY(-1px); }
.button.secondary { color: #34425a; border-color: var(--line-dark); background: white; }
.button.secondary:hover { border-color: #aebcd0; box-shadow: var(--shadow-sm); }
.button.danger { color: white; background: var(--red); }
.overview-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 22px; }
.extension-cta { min-height: 176px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; overflow: hidden; background: white; }
.extension-cta h3 { margin: 0; font: 740 18px "FaceGo Display", sans-serif; }
.extension-cta p { max-width: 580px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.extension-mark { width: 102px; height: 102px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 26px; background: #eef4ff; transform: rotate(-5deg); }
.extension-mark img { width: 68px; height: 68px; border-radius: 17px; transform: rotate(5deg); }
.account-list { display: grid; gap: 10px; }
.account-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; }
.account-row .avatar { border-radius: 50%; }
.account-row strong { font-size: 12px; }
.account-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.count-label { color: var(--blue-600); font-size: 10px; font-weight: 800; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric { min-height: 126px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: white; transition: .18s ease; }
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.metric-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: var(--blue-600); background: var(--blue-100); }
.metric-value { margin-top: 13px; color: #182238; font: 800 24px "FaceGo Display", sans-serif; }
.metric-label { margin-top: 4px; color: var(--muted); font-size: 10px; }

/* Upgrade */
.upgrade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 22px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; isolation: isolate; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border: 1px solid white; border-radius: 17px; color: white; background: var(--product-gradient); box-shadow: 0 12px 30px rgba(15, 29, 50, .14); cursor: pointer; text-align: left; transition: .2s ease; }
.product-card::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -65px; top: -80px; border: 45px solid rgba(255,255,255,.11); border-radius: 50%; }
.product-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 27px 27px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(15, 29, 50, .2); }
.product-card.blue { --product-gradient: linear-gradient(145deg, #276ddf, #1749a8); }
.product-card.violet { --product-gradient: linear-gradient(145deg, #7b5ddd, #4e35aa); }
.product-card.orange { --product-gradient: linear-gradient(145deg, #f09232, #c45b18); }
.product-card.green { --product-gradient: linear-gradient(145deg, #22a979, #08724e); }
.product-card .product-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.product-card h2 { max-width: 370px; margin: 25px 0 8px; font: 730 20px/1.2 "FaceGo Display", sans-serif; }
.product-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 11px; }
.product-card footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 21px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.16); }
.product-card footer strong { font-size: 12px; }
.selected-label { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; }
.benefits { grid-column: 1 / -1; padding: 25px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefit { padding: 16px; border-left: 2px solid #d9e3f2; }
.benefit strong { display: block; font-size: 11px; }
.benefit span { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.cart-panel { position: sticky; top: 114px; overflow: hidden; }
.cart-count { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--blue-600); font-size: 10px; }
.cart-list { display: grid; gap: 10px; }
.cart-empty { padding: 28px 12px; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.6; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.cart-item strong { font-size: 11px; }
.cart-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.cart-item b { color: #1e3559; font-size: 11px; }
.remove-item { width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #9aa6b8; background: #f2f5f9; cursor: pointer; }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.cart-total span { color: var(--muted); font-size: 10px; }
.cart-total strong { font: 800 20px "FaceGo Display", sans-serif; }
.cart-panel .button { width: 100%; margin-top: 15px; }
.payment-note { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.5; }
.activity-mini { display: grid; gap: 13px; margin-top: 18px; }
.activity-mini-row { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; }
.activity-mini-row i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #76a8f3; box-shadow: 0 0 0 4px #edf3fc; }
.activity-mini-row strong { display: block; font-size: 10px; }
.activity-mini-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }

/* Packages, activity, settings */
.empty-state { min-height: 240px; display: grid; place-items: center; padding: 30px; text-align: center; }
.empty-state .empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 16px; color: #6286bd; background: #eef4fc; }
.empty-state h3 { margin: 0; font: 720 16px "FaceGo Display", sans-serif; }
.empty-state p { max-width: 440px; margin: 8px auto 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.package-list { display: grid; gap: 13px; }
.package-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; }
.package-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: var(--blue-600); background: var(--blue-100); }
.package-row h3 { margin: 0; font-size: 12px; }
.package-row p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.package-date { color: #43516a; font-size: 10px; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; font-size: 9px; font-weight: 800; }
.status.active { color: #08704e; background: #e8f7f1; }
.status.pending { color: #a45c0d; background: #fff4df; }
.status.expired { color: #9a3b3b; background: #fdecec; }
.activity-layout { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr); gap: 22px; align-items: start; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 11px; bottom: 11px; width: 1px; background: #dfe6f0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
.timeline-dot { z-index: 1; width: 17px; height: 17px; border: 4px solid white; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 1px #bdd0ed; }
.timeline-item h3 { margin: 0; font-size: 11px; }
.timeline-item p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.timeline-item time { display: block; margin-top: 7px; color: #8793a5; font-size: 8px; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: #778398; background: #fafbfd; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.data-table td { color: #39465c; font-size: 10px; }
.channel-tag { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: #315a9b; background: #edf3fd; font-size: 8px; font-weight: 800; text-transform: capitalize; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.form-grid { display: grid; gap: 17px; }
.field { display: grid; gap: 8px; }
.field label { color: #4b5870; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-dark); border-radius: 10px; outline: 0; color: #233048; background: white; transition: .18s ease; }
.field input { height: 46px; padding: 0 13px; font-size: 12px; }
.field textarea { min-height: 110px; padding: 13px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #8eb1ea; box-shadow: 0 0 0 3px #edf4ff; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.inline-notice { padding: 12px 14px; border: 1px solid #cfe0f7; border-radius: 10px; color: #466487; background: #f2f7fd; font-size: 10px; line-height: 1.55; }

/* Dialogs */
.overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(7, 15, 27, .66); backdrop-filter: blur(7px); animation: fade-in .18s ease both; }
.dialog { width: min(920px, 100%); max-height: min(90vh, 860px); overflow: auto; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; background: white; box-shadow: 0 30px 80px rgba(7, 15, 27, .32); animation: dialog-in .22s ease both; }
.dialog.narrow { width: min(520px, 100%); }
.dialog.medium { width: min(720px, 100%); }
.dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.dialog-head h2 { margin: 0; font: 760 21px "FaceGo Display", sans-serif; }
.dialog-head p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.dialog-close { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #728097; background: white; cursor: pointer; }
.dialog-body { padding: 26px; }
.config-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; }
.feature-panel { padding: 19px; border-radius: 14px; color: white; background: linear-gradient(155deg, #152946, #0b1a2e); }
.feature-panel h3 { margin: 0 0 15px; font: 700 13px "FaceGo Display", sans-serif; }
.feature-panel ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-panel li { display: flex; gap: 8px; color: #b8c8dc; font-size: 9px; line-height: 1.4; }
.feature-panel li .icon { width: 14px; height: 14px; color: #76adff; }
.config-section + .config-section { margin-top: 22px; }
.config-label { display: block; margin-bottom: 10px; color: #4c5970; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.option-row { display: flex; flex-wrap: wrap; gap: 9px; }
.option-button { min-width: 74px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line-dark); border-radius: 10px; color: #4b5870; background: white; cursor: pointer; font-size: 10px; font-weight: 750; }
.option-button.selected { color: #174fc6; border-color: #80aaf0; background: #edf4ff; box-shadow: inset 0 0 0 1px #80aaf0; }
.price-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.price-option { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; text-align: left; }
.price-option.selected { border-color: #76a4ed; background: #f3f7ff; box-shadow: inset 0 0 0 1px #76a4ed; }
.price-option span { color: #4f5d73; font-size: 10px; }
.price-option strong { display: block; margin-top: 4px; color: #1f3558; font-size: 11px; }
.price-option del { color: #9aa5b5; font-size: 8px; }
.dialog-total { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-total span { color: var(--muted); font-size: 10px; }
.dialog-total strong { font: 800 20px "FaceGo Display", sans-serif; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.qr-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: center; }
.qr-frame { min-height: 250px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: #fafbfd; }
.qr-frame img { width: 230px; max-width: 92%; height: auto; }
.qr-placeholder { color: var(--muted); text-align: center; font-size: 10px; line-height: 1.6; }
.payment-details { display: grid; gap: 11px; }
.payment-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.payment-row span { color: var(--muted); font-size: 9px; }
.payment-row strong { color: #203653; font-size: 11px; text-align: right; }
.payment-content { padding: 13px; border: 1px dashed #9eb9e2; border-radius: 10px; color: #174fc6; background: #f2f7ff; font: 800 13px monospace; text-align: center; letter-spacing: .06em; }
.support-channels { display: grid; gap: 10px; }
.support-channel { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: white; text-decoration: none; }
.support-channel:hover { border-color: #aec4e7; box-shadow: var(--shadow-sm); }
.support-channel .channel-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--blue-600); background: var(--blue-100); }
.support-channel strong { font-size: 11px; }
.support-channel small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

.toast-root { position: fixed; z-index: 150; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 420px; display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid #cfe0f7; border-radius: 12px; color: #284c7d; background: white; box-shadow: var(--shadow); animation: toast-in .24s ease both; }
.toast.error { color: #963939; border-color: #f0caca; }
.toast .icon { margin-top: 1px; }
.toast strong { display: block; font-size: 11px; }
.toast span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

.theme-dark { --canvas: #101621; --surface: #171f2c; --ink: #edf2fa; --muted: #94a1b5; --line: #293343; --line-dark: #394659; background: var(--canvas); }
.theme-dark .member-header { background: rgba(23,31,44,.94); }
.theme-dark .member-header h1, .theme-dark .surface-head h2, .theme-dark .metric-value, .theme-dark .extension-cta h3, .theme-dark .package-row h3 { color: #edf2fa; }
.theme-dark .surface, .theme-dark .metric, .theme-dark .extension-cta, .theme-dark .icon-button, .theme-dark .field input, .theme-dark .field textarea, .theme-dark .option-button, .theme-dark .price-option, .theme-dark .dialog { background: #171f2c; }
.theme-dark .dialog-head { background: rgba(23,31,44,.96); }
.theme-dark .dialog-head h2 { color: #edf2fa; }

@media (max-width: 1260px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-meta { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .overview-split { grid-template-columns: 1fr; }
  .upgrade-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
}

@media (max-width: 980px) {
  .member-sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .member-shell.sidebar-open .member-sidebar { transform: translateX(0); }
  .member-main { margin-left: 0; }
  .member-header { padding-inline: 22px; }
  .mobile-menu { display: grid; }
  .member-content { padding: 24px 22px 48px; }
  .activity-layout, .settings-grid { grid-template-columns: 1fr; }
  .public-shell { grid-template-columns: 1fr; }
  .public-signal { min-height: 520px; }
}

@media (max-width: 720px) {
  .member-header { min-height: 78px; padding: 14px 16px; }
  .member-header h1 { font-size: 19px; }
  .member-header p { display: none; }
  .member-content { padding: 17px 14px 40px; }
  .profile-identity { align-items: flex-start; padding: 25px 22px; }
  .profile-avatar { width: 66px; height: 66px; border-radius: 18px; }
  .profile-meta { grid-template-columns: 1fr; }
  .profile-meta div { min-height: 62px; border-top: 1px solid rgba(255,255,255,.06); border-left: 0; }
  .voucher-banner { grid-template-columns: 1fr; }
  .metrics-grid, .product-grid { grid-template-columns: 1fr; }
  .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; text-align: left; justify-self: start; }
  .config-layout, .qr-layout { grid-template-columns: 1fr; }
  .price-options { grid-template-columns: 1fr; }
  .public-header, .public-footer, .public-shell { width: min(100% - 28px, 680px); }
  .public-signal { min-height: auto; padding: 52px 31px; }
  .public-signal h1 { font-size: clamp(43px, 12vw, 62px); }
  .public-form-panel { padding: 54px 30px 66px; }
}

@media (max-width: 480px) {
  .header-tools .icon-button:not(.mobile-menu):first-of-type { display: none; }
  .surface-head, .surface-body { padding: 18px; }
  .profile-identity { display: grid; }
  .metrics-grid { gap: 10px; }
  .metric { min-height: 112px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .dialog-body, .dialog-head { padding: 19px; }
  .overlay { padding: 10px; }
  .public-header { height: 76px; }
  .public-header-link { font-size: 0; }
  .public-header-link .icon { width: 19px; height: 19px; }
  .public-shell { width: 100%; border: 0; }
  .public-signal { padding: 45px 22px; }
  .public-form-panel { padding: 45px 22px 56px; }
  .public-footer { width: calc(100% - 34px); padding: 18px 0; align-items: flex-start; gap: 14px; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .member-content > * { animation: page-in .35s ease both; }
  .public-signal > *:not(.signal-noise) { animation: page-in .5s ease both; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { to { opacity: .55; transform: translateY(-3px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
