body.st-account {
  margin: 0;
  min-height: 100vh;
  color: #f4f0ff;
  background: #07060e;
  font-family: Anuphan, system-ui, sans-serif;
}
.st-account-veil {
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(48, 18, 96, .62), rgba(7, 6, 14, .82)),
    url("/media/draft/timeline-bg.jpg") center/cover no-repeat;
  filter: blur(42px) saturate(1.35);
  opacity: .22;
}
.st-account-wrap {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}
.st-account-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.st-account-top a { color: #c4b5d9; text-decoration: none; font-weight: 700; }
.st-account-card {
  background: rgba(14, 12, 22, .86);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1.4rem;
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  animation: st-rise .45s ease;
}
@keyframes st-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.st-account h1 { margin: 0 0 .4rem; font-size: 1.7rem; }
.st-account .lead { margin: 0 0 1.1rem; color: #c4b5d9; }
.st-q { animation: st-rise .35s ease; }
.st-q h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.st-options { display: flex; flex-direction: column; gap: .55rem; }
.st-options label {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .75rem .85rem;
  border-radius: .9rem;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease;
}
.st-options label:hover { transform: translateY(-2px); border-color: rgba(210, 187, 255, .55); }
.st-options label.is-on { border-color: #d2bbff; background: rgba(124, 58, 237, .18); }
.st-progress { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin: 0 0 1rem; overflow: hidden; }
.st-progress span { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #d2bbff); transition: width .35s ease; }
.st-row { display: flex; gap: .6rem; margin-top: 1rem; }
.st-btn {
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.2rem;
  font: 700 .95rem/1 Anuphan, system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease;
}
.st-btn[hidden] { display: none; }
.st-btn:hover { transform: translateY(-2px); }
.st-btn-primary { background: #d2bbff; color: #3f008e; }
.st-btn-ghost { background: transparent; color: #f4f0ff; border: 1px solid rgba(255, 255, 255, .16); }
.st-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; }
.st-field span { color: #c4b5d9; font-size: .85rem; }
.st-field input {
  border-radius: .8rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .28);
  color: #fff;
  padding: .75rem .85rem;
  font: 500 1rem/1.2 Anuphan, system-ui, sans-serif;
}
.st-note { color: #f3b4b4; min-height: 1.2rem; font-size: .88rem; }
.st-check { display: flex; gap: .6rem; align-items: flex-start; color: #e8e2f4; font-size: .9rem; margin: .4rem 0 1rem; }
.st-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.st-tabs button.is-on { background: #d2bbff; color: #3f008e; }
.st-plans { display: grid; gap: .8rem; }
@media (min-width: 840px) { .st-plans { grid-template-columns: repeat(3, 1fr); } }
.st-plan {
  text-align: left;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #12101a;
  color: inherit;
  padding: 1rem;
  cursor: pointer;
  transition: transform .35s ease, border-color .35s ease;
  font: inherit;
}
.st-plan:hover { transform: translateY(-8px); }
.st-plan.is-on { border-color: #d2bbff; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.st-plan h3 { margin: 0 0 .2rem; }
.st-plan .price { font-size: 1.6rem; font-weight: 800; margin: .3rem 0; }
.st-plan ul { margin: 0; padding: 0; list-style: none; color: #e8e2f4; font-size: .86rem; display: flex; flex-direction: column; gap: .35rem; }
.st-pay { margin-top: 1rem; }
.st-ops { width: min(1100px, calc(100% - 2rem)); }
.st-ops table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.st-ops th, .st-ops td { border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; vertical-align: top; padding: .55rem .4rem; }
.st-ops pre { white-space: pre-wrap; margin: 0; font: 500 .75rem/1.45 Anuphan, system-ui, sans-serif; }
.st-acct-tester { margin: .55rem 0 .35rem; padding: .65rem .7rem; border-radius: 12px; border: 1px dashed rgba(255,255,255,.22); background: rgba(124,58,237,.12); }
.st-acct-tester-label { font: 700 .78rem/1.3 Anuphan, system-ui, sans-serif; margin-bottom: .45rem; color: #efe7ff; }
.st-acct-tester-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.st-acct-tester-row button { border: 0; border-radius: 999px; padding: .35rem .7rem; font: 700 .78rem Anuphan, system-ui, sans-serif; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; }
.st-acct-tester-row button:hover { background: #fff; color: #111; }
.st-acct-tester-row button.is-on { background: linear-gradient(135deg, #7c3aed, #5a00c6); color: #fff; box-shadow: 0 0 0 1px rgba(210,187,255,.35); }
.st-consent {
  position: fixed;
  box-sizing: border-box; /* width includes padding, so it fits phone screens */
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: min(440px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: .85rem;
  align-items: center;
  background: rgba(12, 10, 20, .94);
  border: 1px solid rgba(210, 187, 255, .35);
  border-radius: 1.2rem;
  padding: 1rem 1rem .9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  animation: st-rise .4s ease;
}
.st-consent p { margin: .35rem 0 .35rem; color: #e8e2f4; font-size: .92rem; }
.st-consent ul { margin: 0 0 .75rem; padding-left: 1.1rem; color: #e8e2f4; font-size: .88rem; }
.st-consent li { margin: .15rem 0; }
.st-consent .st-row { margin-top: 0; flex-wrap: wrap; }
.st-consent a { color: #d2bbff; }
.st-cookie { width: 76px; height: 76px; overflow: visible; }
.st-cookie .half { transform-box: fill-box; transform-origin: center; }
.st-cookie .left { animation: st-cookie-l 1.5s ease-in-out infinite; }
.st-cookie .right { animation: st-cookie-r 1.5s ease-in-out infinite; }
.st-cookie .crumb { transform-box: fill-box; transform-origin: center; animation: st-crumb 1.5s ease-in-out infinite; }
.st-cookie .c2 { animation-delay: .12s; }
.st-cookie .c3 { animation-delay: .22s; }
@keyframes st-cookie-l {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40% { transform: translate(-3px, 1px) rotate(-8deg); }
  62% { transform: translate(-1px, 0) rotate(-2deg); }
}
@keyframes st-cookie-r {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40% { transform: translate(3px, 1px) rotate(8deg); }
  62% { transform: translate(1px, 0) rotate(2deg); }
}
@keyframes st-crumb {
  0%, 100% { transform: translate(0, 0); opacity: .35; }
  40% { transform: translate(0, 4px); opacity: 1; }
  70% { transform: translate(0, 1px); opacity: .7; }
}
.st-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: .45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  vertical-align: -2px;
}
.st-tick.is-on { background: #c6f6d5; border-color: #c6f6d5; color: #14532d; }
.st-tick.is-on::after { content: "✓"; font-size: .78rem; font-weight: 800; line-height: 1; }
.st-social { display: flex; flex-direction: column; gap: .55rem; margin: 0 0 1rem; }
.st-social button {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; border-radius: 999px; padding: .8rem 1rem; font: 700 .95rem/1 Anuphan, system-ui, sans-serif;
  cursor: pointer; border: 1px solid rgba(255,255,255,.12); background: #fff; color: #1a1230;
  transition: transform .25s ease;
}
.st-social button:hover { transform: translateY(-2px); }
.st-social .ms { background: #2f2f2f; color: #fff; }
.st-rules { width: min(820px, calc(100% - 2rem)); }
.st-rules details { border-top: 1px solid rgba(255,255,255,.08); padding: .8rem 0; }
.st-rules summary { cursor: pointer; font-weight: 700; }
.st-read-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.st-read-foot .st-note { color: #e8e2f4; margin: 0; }
.st-read-foot .st-btn { min-width: 14rem; }
.st-rules h2 { font-size: 1.05rem; margin: .8rem 0 .3rem; }
.st-rules p { color: #e8e2f4; line-height: 1.6; margin: .35rem 0; }
.st-checkout { width: min(1100px, calc(100% - 2rem)); }
.st-checkout h1 { text-align: center; font-size: 2.4rem; letter-spacing: -.03em; }
.st-checkout .lead { text-align: center; }
.st-offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.st-offer article {
  position: relative; display: flex; flex-direction: column; gap: .35rem;
  padding: 1.35rem 1.2rem 1.15rem; border-radius: 1.15rem;
  background: #12141f; border: 1px solid rgba(120, 170, 255, .45);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.st-offer article:hover { transform: translateY(-10px); }
.st-offer article.is-on { border-color: #8eb6ff; box-shadow: 0 0 0 1px #8eb6ff; }
.st-offer h3 { margin: 0; font-size: 1.35rem; }
.st-offer .price { margin: .2rem 0 .6rem; font-size: 2.15rem; font-weight: 800; }
.st-offer .price span { font-size: .95rem; font-weight: 500; color: #b7c0d4; }
.st-offer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; color: #e7eaf3; font-size: .92rem; }
.st-offer li { display: flex; gap: .45rem; align-items: flex-start; }
.st-offer .material-symbols-outlined { font-size: 18px; color: #9ec1ff; }
.st-offer .off { color: #8b93a7; }
.st-offer .off .material-symbols-outlined { color: #6d768a; }
.st-offer .pick {
  margin-top: auto; width: 100%; border-radius: .75rem; padding: .75rem;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
  font: 700 .95rem/1 Anuphan, system-ui, sans-serif; cursor: pointer;
}
.st-offer .pick:hover { border-color: #fff; }
.st-badge {
  position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
  background: #7eb6ff; color: #071225; font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; padding: .28rem .7rem; border-radius: 999px;
}
.st-paygo { margin-top: 2rem; }
.st-paygo h2 { margin: 0 0 .8rem; display: flex; align-items: center; gap: .6rem; }
.st-paygo .pill { font-size: .75rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .2rem .55rem; color: #c9d2e4; }
.st-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.st-packs button {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  text-align: left; color: inherit; background: #16182a; border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem; padding: .9rem 1rem; cursor: pointer; font: inherit;
  transition: transform .3s ease, border-color .3s ease;
}
.st-packs button:hover { transform: translateY(-6px); }
.st-packs button.is-on { border-color: #3dd6a5; }
.st-packs strong { display: block; }
.st-packs span { color: #b7c0d4; font-size: .85rem; }
.st-sheet { margin-top: 1.2rem; padding: 1rem; border-radius: 1rem; background: rgba(10, 12, 22, .8); border: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) {
  .st-offer, .st-packs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .st-account-card, .st-q, .st-consent { animation: none; }
  .st-cookie .half, .st-cookie .crumb { animation: none; }
  .st-options label, .st-btn, .st-plan, .st-offer article, .st-packs button, .st-social button { transition: none; }
}


/* Logged-in account chip + click panel — never block the page */
.st-acct-root {
  position: fixed; top: 14px; right: 16px; z-index: 12050;
  font-family: Anuphan, Bai Jamjuree, system-ui, sans-serif;
  pointer-events: none;
  width: auto; height: auto;
}
.st-acct-root > * { pointer-events: auto; }
.st-acct-root.st-acct-inline {
  position: relative; top: auto; right: auto; z-index: 40;
  pointer-events: auto;
}
.st-acct-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(210,187,255,.35); background: rgba(20,14,36,.92);
  color: #f4f0ff; border-radius: 999px; padding: .28rem .65rem .28rem .45rem;
  cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  line-height: 1; min-height: 40px;
}
.st-acct-btn:hover, .st-acct-root.is-open .st-acct-btn {
  transform: translateY(-1px); border-color: #d2bbff;
  box-shadow: 0 0 0 1px rgba(210,187,255,.35), 0 14px 36px rgba(80,40,160,.35);
}
.st-acct-avatar {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg,#7c3aed,#d2bbff); color: #1a0b2e; font-weight: 800;
  font-size: .78rem; flex: 0 0 auto;
}
.st-acct-meta {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: .12rem; line-height: 1.05; min-width: 0; text-align: left;
}
.st-acct-meta b { font-size: .82rem; font-weight: 700; }
.st-acct-meta small,
.st-acct-meta .st-acct-credits {
  font-size: .68rem; color: #f4f0ff; font-weight: 800;
  display: inline-flex; align-items: center; gap: .22rem; line-height: 1;
  white-space: nowrap;
}
.st-acct-meta small .st-cr-spark,
.st-acct-meta .st-acct-credits .st-cr-spark { display: block; flex: 0 0 auto; width: 12px; height: 12px; }
.st-acct-caret { font-size: 18px !important; opacity: .7; flex: 0 0 auto; }
.st-acct-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(280px, 86vw);
  background: rgba(14,12,22,.96); border: 1px solid rgba(210,187,255,.28);
  border-radius: 1rem; padding: .75rem; box-shadow: 0 20px 50px rgba(0,0,0,.45);
  animation: st-rise .28s ease; z-index: 50; pointer-events: auto;
}
.st-acct-credits-line {
  font-weight: 800; color: #fff; margin: 0 0 .55rem; padding: .55rem .65rem;
  border-radius: .75rem; background: rgba(124,58,237,.18);
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem;
}
.st-acct-plus {
  margin-left: auto; width: 1.55rem; height: 1.55rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
  color: #fff; font: 800 1rem/1 Anuphan, system-ui, sans-serif; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.st-acct-plus:hover { transform: scale(1.08); background: rgba(210,187,255,.25); }
.st-acct-meta small { color: #fff !important; }
.st-acct-reset-dlg {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
}
.st-acct-link {
  display: block; color: #f4f0ff; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .55rem .65rem; border-radius: .7rem; transition: background .2s ease, transform .2s ease;
}
.st-acct-link:hover { background: rgba(210,187,255,.1); transform: translateX(2px); }
.st-acct-logout {
  width: 100%; margin-top: .35rem; border: 1px solid rgba(255,180,171,.35);
  background: transparent; color: #ffb4ab; border-radius: .7rem; padding: .6rem;
  font: 700 .9rem/1 Anuphan, system-ui, sans-serif; cursor: pointer;
}
.st-acct-logout:hover { background: rgba(255,180,171,.1); }
.st-acct-hide-auth { display: none !important; }
.st-cr-star,
.st-cr-spark {
  display: inline-block;
  vertical-align: -2px;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, .55)) drop-shadow(0 0 12px rgba(217, 70, 239, .28));
}
.st-acct-credits-line,
.st-acct-meta small {
  color: #f4f0ff !important;
  font-weight: 800;
}
.st-acct-meta small {
  font-size: .82rem !important;
}
@media (max-width: 640px) {
  .st-acct-meta .st-acct-credits span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
}
