:root {
  --blue: #012da7;
  --blue-deep: #001b66;
  --blue-bright: #3158d8;
  --blue-soft: #e9eefb;
  --orange: #ff7f00;
  --orange-deep: #d96500;
  --orange-soft: #fff1df;
  --ink: #081126;
  --ink-soft: #26334d;
  --muted: #68738b;
  --line: #dfe5f1;
  --paper: #f5f7fc;
  --white: #fff;
  --display: "Arial Black", "Microsoft JhengHei", sans-serif;
  --body: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --shadow: 0 20px 60px rgba(12, 32, 83, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 2%, rgba(49, 88, 216, 0.09), transparent 25rem),
    radial-gradient(circle at 94% 25%, rgba(255, 127, 0, 0.07), transparent 23rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(255, 127, 0, 0.55);
  outline-offset: 2px;
}

.account-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 78px;
  padding: 13px clamp(20px, 4vw, 58px);
  border-bottom: 1px solid rgba(1, 45, 167, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}
.account-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.account-brand img { width: 58px; height: 46px; object-fit: contain; }
.account-brand span { display: grid; line-height: 1.25; }
.account-brand strong { font-size: 15px; letter-spacing: 0.03em; }
.account-brand small { color: var(--muted); font-size: 9px; letter-spacing: 0.14em; }
.account-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.account-nav a { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.account-nav a:hover { color: var(--blue); }
.header-login, .header-member > button {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(1, 45, 167, 0.22);
}
.header-login:hover, .header-member > button:hover { background: var(--blue-deep); }
.account-language {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(1, 45, 167, .12);
  border-radius: 999px;
  background: #eef2fb;
}
.account-language button {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64708f;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.account-language button:hover { color: var(--blue); }
.account-language button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 3px 10px rgba(15, 35, 80, .14);
}
.header-member { display: flex; align-items: center; gap: 10px; }
.header-member-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}
.header-member > span:nth-child(2) { display: grid; line-height: 1.3; }
.header-member strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.header-member small { color: var(--muted); font-size: 10px; }
.header-member > button { background: #fff; color: var(--blue); border: 1px solid var(--line); box-shadow: none; padding: 8px 13px; }

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: stretch;
  width: min(1380px, calc(100% - 48px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) 0;
}
.auth-story {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 660px;
  padding: clamp(36px, 5vw, 76px);
  border-radius: 34px;
  background:
    linear-gradient(125deg, rgba(0, 20, 88, 0.97), rgba(1, 45, 167, 0.95) 58%, rgba(35, 74, 198, 0.9)),
    var(--blue);
  color: #fff;
  box-shadow: 0 34px 90px rgba(1, 35, 132, 0.24);
}
.auth-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.auth-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -15%;
  bottom: -30%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,127,0,.44), rgba(255,127,0,0) 67%);
}
.auth-orbit { position: absolute; top: 4%; right: -6%; width: 54%; aspect-ratio: 1; opacity: .82; }
.orbit { position: absolute; inset: 15%; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; animation: orbitPulse 8s ease-in-out infinite; }
.orbit-two { inset: 4%; border-color: rgba(255,127,0,.3); animation-delay: -2s; }
.orbit-three { inset: 28%; border-style: dashed; animation-delay: -4s; }
.orbit-mark { position: absolute; left: 50%; top: 50%; width: 72px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 22px rgba(255,127,0,.5)); animation: markFloat 5s ease-in-out infinite; }
.orbit-drone { position: absolute; left: 13%; top: 24%; width: 44px; height: 24px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; transform: rotate(-28deg); }
.orbit-drone::before, .orbit-drone::after { content: ""; position: absolute; top: 50%; width: 17px; height: 1px; background: rgba(255,255,255,.7); }
.orbit-drone::before { right: 100%; }
.orbit-drone::after { left: 100%; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 21px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.eyebrow i { width: 29px; height: 2px; background: var(--orange); }
.auth-story .eyebrow { color: rgba(255,255,255,.75); }
.auth-story h1 { position: relative; margin: 0; max-width: 680px; font-family: var(--display); font-size: clamp(45px, 5vw, 72px); line-height: 1.04; letter-spacing: -.055em; }
.auth-story h1 span { display: inline-block; color: var(--orange); white-space: nowrap; }
html[lang="en"] .auth-story h1 { font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -.035em; }
html[lang="en"] .auth-story h1 span { white-space: normal; }
.auth-story-copy { position: relative; max-width: 600px; margin: 27px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.9; }
.auth-story-points { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 52px; }
.auth-story-points div { min-height: 90px; padding: 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.auth-story-points strong { display: block; color: var(--orange); font-size: 11px; letter-spacing: .12em; }
.auth-story-points span { display: block; margin-top: 12px; font-size: 12px; line-height: 1.45; }
.auth-story-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: auto; padding-top: 44px; color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .08em; }
.auth-story-foot i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

.auth-card-wrap { align-self: center; width: 100%; max-width: 550px; justify-self: center; }
.auth-card { overflow: hidden; padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.93); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 14px; background: #eef1f8; }
.auth-tabs button { border: 0; border-radius: 10px; background: transparent; color: var(--muted); padding: 10px; font-size: 13px; font-weight: 800; }
.auth-tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 5px 16px rgba(15, 35, 80, .1); }
.auth-panel { display: none; padding-top: 30px; }
.auth-panel.active { display: block; animation: panelIn .35s ease both; }
.auth-panel-head { margin-bottom: 26px; }
.auth-panel-head > span { color: var(--orange-deep); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.auth-panel-head h2 { margin: 5px 0 6px; font-family: var(--display); font-size: 32px; letter-spacing: -.04em; }
.auth-panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 761px) {
  .field-row.contact-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field > span { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  color: var(--ink);
  padding: 13px 14px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a2aabd; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue-bright); background: #fff; box-shadow: 0 0 0 4px rgba(49, 88, 216, .1); }
.phone-group { display: grid; grid-template-columns: minmax(108px, auto) minmax(0, 1fr); }
.phone-group select {
  width: auto;
  border-radius: 12px 0 0 12px;
  border-right: 0;
  padding-right: 8px;
  padding-left: 12px;
  background: #eef2fb;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.phone-group input { border-radius: 0 12px 12px 0; min-width: 0; }
.phone-group select:focus { position: relative; z-index: 1; box-shadow: none; }
.phone-group:focus-within select,
.phone-group:focus-within input { border-color: var(--blue-bright); background: #fff; }
.phone-group:focus-within input { box-shadow: 0 0 0 4px rgba(49, 88, 216, .1); }
.phone-group:focus-within select { box-shadow: -4px 0 0 4px rgba(49, 88, 216, .1); }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.consent-row input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; accent-color: var(--blue); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-message { display: none; margin: 3px 0 13px; padding: 10px 12px; border-radius: 9px; background: #fff0f0; color: #b42318; font-size: 12px; }
.form-message.visible { display: block; }
.form-message.success { background: #edf9f1; color: #137a3c; }
.primary-action, .secondary-action, .outline-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}
.primary-action { width: 100%; background: var(--blue); color: #fff; padding: 14px 17px; box-shadow: 0 11px 25px rgba(1, 45, 167, .2); }
.primary-action i { color: var(--orange); font-style: normal; font-size: 18px; }
.primary-action:hover { background: var(--blue-deep); transform: translateY(-1px); }
.primary-action:disabled { cursor: wait; opacity: .6; transform: none; }
.secondary-action { width: max-content; border: 1px solid var(--blue); background: #fff; color: var(--blue); padding: 11px 16px; }
.secondary-action:hover { background: var(--blue); color: #fff; }
.outline-action { width: max-content; border: 1px solid rgba(1,45,167,.22); background: #fff; color: var(--blue); padding: 11px 16px; }
.auth-switch { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch button { border: 0; background: transparent; color: var(--blue); font-weight: 900; padding: 0; }
.auth-help { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.auth-help a { color: var(--blue); font-weight: 800; }

.dashboard { padding: clamp(28px, 5vw, 70px) 0 80px; }
.dashboard-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.dashboard-heading h1 { margin: 0; font-family: var(--display); font-size: clamp(40px, 5vw, 64px); letter-spacing: -.055em; line-height: 1.05; }
.dashboard-heading h1 span { color: var(--blue); }
.dashboard-heading p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.member-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 32px;
  min-height: 310px;
  padding: clamp(30px, 4.5vw, 54px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 83% 35%, rgba(255,127,0,.24), transparent 18rem),
    linear-gradient(125deg, #061a58, var(--blue) 62%, #2450c9);
  color: #fff;
  box-shadow: 0 24px 60px rgba(1, 45, 167, .19);
}
.member-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, transparent, #000); }
.member-hero-copy { position: relative; z-index: 2; align-self: center; }
.member-eyebrow { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 900; letter-spacing: .19em; }
.member-tier-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.member-tier-line h2 { margin: 0; font-family: var(--display); font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; }
#memberLifetimeBadge { display: none; border: 1px solid rgba(255,127,0,.55); border-radius: 999px; background: rgba(255,127,0,.15); color: #ffc37d; padding: 5px 10px; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
#memberLifetimeBadge.visible { display: inline-flex; }
#memberTierCaption { max-width: 540px; margin: 13px 0 0; color: rgba(255,255,255,.69); font-size: 13px; }
.member-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.member-meta div { display: grid; gap: 2px; }
.member-meta span { color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .08em; }
.member-meta strong { font-size: 12px; }
.member-pass { position: relative; z-index: 2; align-self: center; justify-self: end; overflow: hidden; width: min(100%, 370px); aspect-ratio: 1.58; padding: 23px; border: 1px solid rgba(255,255,255,.23); border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 24px 54px rgba(0,8,40,.28); backdrop-filter: blur(12px); transform: rotate(-2deg); }
.pass-top { display: flex; align-items: center; justify-content: space-between; }
.pass-top span { font-family: var(--display); font-size: 21px; letter-spacing: .06em; }
.pass-top img { width: 40px; }
.member-pass > strong { display: block; margin-top: 18px; color: var(--orange); font-family: var(--display); font-size: clamp(20px, 3vw, 31px); line-height: 1; letter-spacing: -.02em; }
.member-pass p { max-width: 230px; margin: 8px 0 0; color: rgba(255,255,255,.49); font-size: 7px; letter-spacing: .13em; }
.pass-number { position: absolute; left: 23px; bottom: 20px; color: rgba(255,255,255,.63); font-size: 10px; letter-spacing: .18em; }
.pass-orbit { position: absolute; right: -23%; bottom: -49%; width: 73%; aspect-ratio: 1; border: 1px solid rgba(255,127,0,.35); border-radius: 50%; }
.pass-orbit i { position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.pass-orbit i:nth-child(2) { inset: 27%; border-style: dashed; }
.pass-orbit i:nth-child(3) { inset: 42%; background: rgba(255,127,0,.2); border: 0; }
.quick-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.quick-stats article { padding: 20px 21px; border: 1px solid rgba(1,45,167,.08); border-radius: 17px; background: #fff; box-shadow: 0 10px 26px rgba(14, 38, 92, .045); }
.quick-stats span { display: block; color: var(--muted); font-size: 10px; }
.quick-stats strong { display: inline-block; margin-top: 3px; color: var(--blue); font-family: var(--display); font-size: 31px; line-height: 1.1; }
.quick-stats small { margin-left: 4px; color: #9aa3b6; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; margin-top: 18px; }
.lower-grid { grid-template-columns: 1fr 1fr; }
.panel { min-width: 0; padding: clamp(22px, 3vw, 31px); border: 1px solid rgba(1,45,167,.08); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(14, 38, 92, .045); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-head span { color: var(--orange-deep); font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.panel-head h2 { margin: 3px 0 0; font-family: var(--display); font-size: 23px; letter-spacing: -.035em; }
.panel-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.panel-head > a { flex-shrink: 0; color: var(--blue); font-size: 11px; font-weight: 900; }
.panel-head > a b { color: var(--orange); }
.panel-link-button {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.panel-link-button b { color: var(--orange); }
.panel-link-button:hover { color: var(--blue-deep); }
.course-list, .order-list { display: grid; gap: 10px; }
.course-card { display: grid; grid-template-columns: 1fr auto; gap: 17px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.course-card:hover { border-color: rgba(1,45,167,.24); background: #fff; }
.course-main { min-width: 0; }
.course-main h3 { margin: 0; font-size: 14px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.course-meta b { color: var(--ink-soft); }
.course-side { display: grid; justify-items: end; gap: 7px; }
.course-price { color: var(--blue); font-family: var(--display); font-size: 17px; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 9px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 800; }
.status-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.paid, .status-chip.completed { background: #eaf8ef; color: #137a3c; }
.status-chip.cancelled { background: #f2f3f6; color: #7b8495; }
.status-chip.new { background: var(--orange-soft); color: var(--orange-deep); }
.empty-box { display: grid; place-items: center; min-height: 180px; padding: 25px; border: 1px dashed #ccd5e6; border-radius: 14px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-box strong { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 14px; }
.benefit-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid #edf0f6; color: var(--ink-soft); font-size: 12px; }
.benefit-list li:last-child { border-bottom: 0; }
.benefit-list li::before { content: "✓"; display: grid; place-items: center; flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); font-size: 10px; font-weight: 900; }
.gift-grid { display: grid; gap: 10px; }
.gift-card { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 13px; border-radius: 13px; background: #f8faff; }
.gift-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-size: 17px; }
.gift-card h3 { margin: 0; font-size: 12px; }
.gift-card p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.eligible-tag { border-radius: 999px; background: #eaf8ef; color: #137a3c; padding: 3px 7px; font-size: 8px; font-weight: 800; }
.eligible-tag.locked { background: #eef0f5; color: #818a9d; }
.campaign-list { display: grid; gap: 10px; }
.campaign-card { position: relative; overflow: hidden; padding: 15px 16px; border-radius: 13px; background: linear-gradient(118deg, #fff7ed, #fff); border: 1px solid #ffe0bd; }
.campaign-card::after { content: ""; position: absolute; right: -20px; top: -27px; width: 70px; height: 70px; border: 12px solid rgba(255,127,0,.08); border-radius: 50%; }
.campaign-card h3 { margin: 0; font-size: 12px; }
.campaign-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.campaign-card span { display: inline-block; margin-top: 7px; color: var(--orange-deep); font-size: 9px; font-weight: 900; }
.upgrade-panel { margin-top: 18px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcff; }
.tier-card.current { border-color: var(--orange); background: linear-gradient(145deg, #fff8ee, #fff); box-shadow: 0 12px 30px rgba(255,127,0,.1); }
.tier-card.vip { background: linear-gradient(145deg, #071c61, #012da7); color: #fff; border-color: transparent; }
.tier-card > span:first-child { color: var(--orange-deep); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.tier-card.vip > span:first-child { color: #ffb25a; }
.tier-card h3 { margin: 7px 0 0; font-family: var(--display); font-size: 25px; letter-spacing: -.04em; }
.tier-caption { min-height: 37px; margin: 6px 0 14px; color: var(--muted); font-size: 10px; }
.tier-card.vip .tier-caption { color: rgba(255,255,255,.55); }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 2px; color: var(--blue); }
.tier-card.vip .tier-price { color: #fff; }
.tier-price strong { font-family: var(--display); font-size: 28px; letter-spacing: -.04em; }
.tier-price small { color: var(--muted); font-size: 9px; }
.tier-card.vip .tier-price small { color: rgba(255,255,255,.48); }
.tier-half { color: var(--muted); font-size: 9px; }
.tier-card.vip .tier-half { color: rgba(255,255,255,.48); }
.tier-benefits { display: grid; gap: 7px; margin: 17px 0 20px; padding: 0; list-style: none; }
.tier-benefits li { display: flex; gap: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.tier-benefits li::before { content: "·"; color: var(--orange); font-weight: 900; }
.tier-card.vip .tier-benefits li { color: rgba(255,255,255,.72); }
.tier-card .secondary-action { margin-top: auto; width: 100%; justify-content: center; }
.tier-card.vip .secondary-action { border-color: rgba(255,255,255,.28); background: transparent; color: #fff; }
.tier-card.vip .secondary-action:hover { background: #fff; color: var(--blue); }
.current-tag { position: absolute; right: 15px; top: 15px; border-radius: 999px; background: var(--orange); color: #fff; padding: 3px 8px; font-size: 8px; font-weight: 900; }
.order-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.order-card h3 { margin: 0; font-size: 12px; }
.order-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.order-card strong { display: block; color: var(--blue); font-size: 12px; text-align: right; }
.order-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; text-align: right; }
.shop-orders-panel { margin-top: 18px; }
.shop-order-list { grid-template-columns: 1fr; }
.shop-order-card { align-items: flex-start; gap: 22px; padding: 18px; background: #fbfcff; }
.shop-order-main { min-width: 0; }
.shop-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.shop-order-head h3 { color: var(--ink); font-family: var(--display); font-size: 16px; letter-spacing: -.02em; }
.shop-order-head p { margin-top: 4px; }
.shop-order-items { display: grid; gap: 6px; margin: 12px 0 10px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.shop-order-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: 10px; }
.shop-order-type { padding: 3px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 900; text-align: center; }
.shop-order-type.product { background: var(--orange-soft); color: var(--orange-deep); }
.shop-order-items li > strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.shop-order-items li > b { color: var(--muted); font-size: 9px; text-align: right; }
.shop-order-items li > em { color: var(--blue); font-size: 10px; font-style: normal; font-weight: 900; text-align: right; }
.shop-order-meta { color: var(--muted); font-size: 9px; }
.shop-order-side { display: grid; flex-shrink: 0; justify-items: end; gap: 7px; }
.shop-order-side > strong { font-family: var(--display); font-size: 20px; }
.shop-order-side .status-chip { justify-content: center; }
.profile-panel form { display: grid; }
.profile-panel .secondary-action { margin-top: 3px; }
.password-details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.password-details summary { color: var(--blue); cursor: pointer; font-size: 11px; font-weight: 900; }
.password-details form { margin-top: 15px; }

.account-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 25px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.account-footer div { display: flex; gap: 18px; }
.account-footer a:hover { color: var(--blue); }
.apply-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 24px; background: transparent; box-shadow: 0 35px 100px rgba(2, 18, 62, .35); }
.apply-dialog::backdrop { background: rgba(4, 14, 40, .54); backdrop-filter: blur(4px); }
.apply-shell { position: relative; display: grid; gap: 15px; padding: 31px; border-radius: 24px; background: #fff; }
.dialog-close { position: absolute; right: 17px; top: 15px; border: 0; background: transparent; color: var(--muted); font-size: 25px; line-height: 1; }
.dialog-eyebrow { margin: 0; color: var(--orange-deep); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.apply-shell h2 { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: -.04em; }
.dialog-copy { margin: -7px 0 2px; color: var(--muted); font-size: 11px; }
.course-booking-dialog { width: min(620px, calc(100% - 24px)); }
.booking-shell { max-height: calc(100vh - 24px); overflow-y: auto; gap: 13px; }
.booking-program-summary {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid rgba(1, 45, 167, .1);
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 127, 0, .08), transparent 38%),
    #f5f8ff;
}
.booking-program-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.booking-program-head strong { color: var(--ink); font-size: 15px; letter-spacing: -.02em; }
.booking-program-head span { color: var(--muted); font-size: 10px; text-align: right; }
.booking-price-breakdown { display: grid; gap: 5px; padding-top: 9px; border-top: 1px dashed rgba(1, 45, 167, .15); }
.price-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.price-line strong { color: var(--ink); font-size: 11px; font-weight: 700; }
.price-line.discount strong { color: #1f8a5b; }
.price-line.price-total { margin-top: 2px; padding-top: 8px; border-top: 1px solid rgba(1, 45, 167, .13); }
.price-line.price-total span { color: var(--ink); font-weight: 800; }
.price-line.price-total strong { color: var(--blue); font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.booking-payment-amount { display: block; width: fit-content; margin-bottom: 6px; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }
.booking-payment-hint { display: grid; gap: 4px; margin: -5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.booking-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(1, 45, 167, .1);
  border-radius: 12px;
  background: #f8faff;
}
.booking-contact div { display: grid; gap: 4px; min-width: 0; }
.booking-contact span { color: var(--muted); font-size: 9px; font-weight: 800; }
.booking-contact strong { color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.booking-contact small { grid-column: 1 / -1; color: #8a94a8; font-size: 9px; }
.cycle-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cycle-option { position: relative; }
.cycle-option input { position: absolute; opacity: 0; pointer-events: none; }
.cycle-option span { display: grid; gap: 2px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cycle-option strong { font-size: 12px; }
.cycle-option small { color: var(--muted); font-size: 10px; }
.cycle-option input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.cycle-option input:disabled + span { cursor: not-allowed; opacity: .4; }
.account-toast { position: fixed; left: 50%; bottom: 25px; z-index: 80; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; box-shadow: 0 12px 35px rgba(7, 17, 38, .24); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.account-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.account-toast.error { background: #a52a20; }

@keyframes orbitPulse { 0%, 100% { transform: scale(.94) rotate(0); opacity: .55; } 50% { transform: scale(1.04) rotate(9deg); opacity: 1; } }
@keyframes markFloat { 0%, 100% { transform: translate(-50%, -50%) rotate(-4deg); } 50% { transform: translate(-50%, calc(-50% - 10px)) rotate(5deg); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .account-nav { display: none; }
  .auth-layout { grid-template-columns: 1fr; width: min(760px, calc(100% - 40px)); }
  .auth-story { min-height: 540px; }
  .auth-card-wrap { max-width: 620px; }
  .member-hero { grid-template-columns: 1fr 320px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .account-header { gap: 12px; padding: 11px 16px; }
  .account-language { padding: 2px; }
  .account-language button { min-width: 29px; height: 27px; padding: 0 6px; font-size: 10px; }
  .account-brand span, .account-brand strong { min-width: 0; }
  .account-brand strong { display: block; max-width: 185px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .header-member > span:nth-child(2) { display: none; }
  .header-member > button { padding: 7px 10px; }
  .auth-layout { width: min(100% - 24px, 620px); padding: 12px 0 30px; }
  .auth-story { min-height: 470px; padding: 32px 24px; border-radius: 24px; }
  .auth-story h1 { font-size: clamp(37px, 11vw, 52px); }
  html[lang="en"] .auth-story h1 { font-size: clamp(34px, 8.6vw, 46px); }
  .auth-story-copy { font-size: 13px; }
  .auth-story-points { grid-template-columns: 1fr; margin-top: 32px; }
  .auth-story-points div { min-height: 0; display: flex; align-items: center; gap: 13px; padding: 11px 13px; }
  .auth-story-points span { margin-top: 0; }
  .auth-story-foot { display: none; }
  .auth-orbit { width: 78%; right: -24%; top: 8%; }
  .auth-card { padding: 25px 20px; border-radius: 22px; }
  .field-row, .cycle-options { grid-template-columns: 1fr; }
  .dashboard-shell, .account-footer { width: min(100% - 24px, 620px); }
  .dashboard { padding-top: 30px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading .outline-action { width: 100%; justify-content: space-between; }
  .member-hero { grid-template-columns: 1fr; padding: 27px 23px; border-radius: 23px; }
  .member-pass { justify-self: stretch; width: 100%; max-width: 390px; margin-top: 5px; transform: none; }
  .member-meta { gap: 18px; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: 1fr; }
  .course-side { justify-items: start; grid-auto-flow: column; justify-content: start; }
  .panel { padding: 20px 17px; border-radius: 18px; }
  .panel-head { gap: 10px; }
  .gift-card { grid-template-columns: 34px 1fr; }
  .gift-card .eligible-tag { grid-column: 2; justify-self: start; }
  .order-card { grid-template-columns: 1fr; }
  .order-card strong, .order-card small { text-align: left; }
  .shop-order-card { gap: 14px; }
  .shop-order-side { justify-items: start; }
  .shop-order-items li { grid-template-columns: 45px minmax(0, 1fr) auto; }
  .shop-order-items li > em { grid-column: 2 / 4; justify-self: end; }
  .account-footer { align-items: flex-start; flex-direction: column; }
  .account-footer div { flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .account-header .header-login { padding: 8px 11px; font-size: 10px; }
  .account-language button { min-width: 26px; padding: 0 5px; }
  .header-member-avatar { display: none; }
  .booking-contact { grid-template-columns: 1fr; }
  .auth-story { min-height: 430px; }
  .member-tier-line h2 { font-size: 32px; }
  .member-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-stats strong { font-size: 27px; }
  .apply-shell { padding: 25px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.booking-duplicate-warning {
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid #f0c779;
  border-radius: 10px;
  background: #fff8e7;
  color: #865b16;
  font-size: 11px;
  line-height: 1.65;
}

.booking-duplicate-warning[hidden] {
  display: none !important;
}

.booking-payment-qr {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  background: #fff;
}

.booking-payment-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.booking-payment-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 9px;
  background: #0a43b8;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
