:root {
  color-scheme: dark;
  --nav: #0f1115;
  --nav-soft: rgba(15, 17, 21, 0.88);
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --body: #111827;
  --light: #f8fafc;
  --text: #172033;
  --subtle: #667085;
  --gold: #f5b400;
  --gold-2: #ffdf6b;
  --purple: #667eea;
  --purple-2: #764ba2;
  --blue: #0888cc;
  --cyan: #22c7e8;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px max(18px, calc((100vw - 1140px) / 2));
  color: var(--ink);
  background: rgba(15, 17, 21, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled {
  background: rgba(15, 17, 21, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-2) 0%, var(--gold) 55%, #e69500 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58), 0 12px 24px rgba(245, 180, 0, .24);
}

.brand-badge.large {
  width: 92px;
  height: 92px;
  border-radius: 26px;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-bars,
.brand-bars::before,
.brand-bars::after {
  display: block;
  width: 24px;
  height: 5px;
  border-radius: 99px;
  background: #101827;
  content: "";
}

.brand-bars::before {
  transform: translateY(-10px);
}

.brand-bars::after {
  transform: translateY(5px);
}

.large .brand-bars,
.large .brand-bars::before,
.large .brand-bars::after {
  width: 42px;
  height: 8px;
}

.large .brand-bars::before {
  transform: translateY(-17px);
}

.large .brand-bars::after {
  transform: translateY(9px);
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0;
}

.brand-copy small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-left: auto;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a,
.family-trigger {
  position: relative;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  padding: 9px 0;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.family-trigger:hover {
  color: #fff;
}

.desktop-nav a::after,
.family-trigger::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  content: "";
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after,
.family-trigger:hover::after {
  transform: scaleX(1);
}

.desktop-nav em {
  display: inline-flex;
  margin-left: 3px;
  padding: 1px 5px;
  border-radius: 99px;
  color: #fff;
  background: #ef4444;
  font-style: normal;
  font-size: 10px;
}

.family-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(6, 182, 212, .15));
}

.family-trigger span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 99px;
  color: white;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  font-size: 12px;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
}

.auth-actions a,
.drawer-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}

.auth-actions .register,
.drawer-actions .register {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 12px 26px rgba(102, 126, 234, .28);
}

.auth-actions[hidden],
.header-user[hidden],
.drawer-actions[hidden],
.drawer-user[hidden],
.hero-actions[hidden] {
  display: none !important;
}

.header-user {
  position: relative;
  flex: 0 0 auto;
  color: white;
}

.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.header-user-trigger:hover,
.header-user.open .header-user-trigger {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}

.header-user-trigger strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-avatar,
.menu-user-icon {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.header-user-avatar::before,
.menu-user-icon::before {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
  content: "";
}

.header-user-avatar::after,
.menu-user-icon::after {
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 19px;
  height: 10px;
  border-radius: 10px 10px 3px 3px;
  background: currentColor;
  transform: translateX(-50%);
  content: "";
}

.header-user-chevron {
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.header-user.open .header-user-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.header-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: grid;
  width: 210px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #20242a;
  background: white;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

.header-user.open .header-user-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-user-menu a,
.header-user-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: #20242a;
  background: transparent;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.header-user-menu a:hover,
.header-user-menu button:hover {
  background: #f3f4f6;
}

.header-user-menu a span,
.header-user-menu button span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  flex: 0 0 25px;
  font-size: 24px;
}

.header-user-menu .menu-dashboard-icon {
  position: relative;
  display: inline-block;
  height: 15px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.menu-dashboard-icon::before {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-42deg);
  transform-origin: left center;
  content: "";
}

.menu-dashboard-icon::after {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
  content: "";
}

.header-user-menu button {
  margin-top: 7px;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 7px 7px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: rgba(255,255,255,.75);
}

.family-menu {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 45;
  width: min(760px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  color: #e5e7eb;
  background: rgba(17, 24, 39, .98);
  box-shadow: var(--shadow);
  transform: translate(-50%, -10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.family-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.family-grid a {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.family-grid a.featured {
  background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(99, 102, 241, .08));
}

.family-grid b,
.family-grid small,
.vip-strip span {
  display: block;
}

.family-grid small {
  margin-top: 6px;
  color: #aeb7c7;
}

.vip-strip {
  display: block;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #ffe8a3;
  background: linear-gradient(90deg, rgba(251,191,36,.08), rgba(251,191,36,.14), rgba(251,191,36,.08));
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  padding: 18px;
  color: white;
  background: rgba(15, 17, 21, .98);
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  transform: translateY(-110%);
  transition: transform .25s ease;
}

.mobile-drawer.open {
  transform: translateY(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.drawer-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: rgba(255,255,255,.1);
  font-size: 26px;
  cursor: pointer;
}

.mobile-drawer > a {
  padding: 13px 4px;
  color: rgba(255,255,255,.82);
  font-weight: 750;
}

.drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.drawer-user {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.drawer-user > strong {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-user > strong > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-user-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.drawer-user-links a,
.drawer-user-links button {
  display: grid;
  min-height: 40px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: white;
  background: rgba(255,255,255,.08);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero-section {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 118px 0 82px;
  overflow: hidden;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}

.hero-section::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 25%),
    radial-gradient(circle at 80% 35%, rgba(255,215,0,.16), transparent 22%),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  content: "";
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}

.orbit-one {
  width: 520px;
  height: 520px;
  left: -160px;
  top: 90px;
}

.orbit-two {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.hero-mark {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-mark p {
  margin: 4px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(0,0,0,.12);
}

.hero-mark small {
  color: rgba(255,255,255,.76);
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-section h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-kicker {
  margin: 18px 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
}

.hero-text {
  max-width: 930px;
  margin: 26px auto 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 14px 28px rgba(74, 62, 170, .28);
}

.hero-section .btn.primary {
  background: linear-gradient(135deg, #ffdf6b, #f5b400);
  color: #172033;
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
}

.section-pad {
  padding: 76px 0;
}

.section-title {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-title.left {
  margin: 0;
  text-align: left;
}

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 18px;
  line-height: 1.7;
}

.feature-section {
  background: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.steps-grid article,
.faq-item,
.ecosystem-grid a {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover,
.steps-grid article:hover,
.ecosystem-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .12);
}

.feature-card {
  padding: 28px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding: 0 10px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  font-weight: 900;
}

.feature-card h3,
.steps-grid h3 {
  margin: 22px 0 12px;
  color: #111827;
  font-size: 22px;
}

.feature-card p,
.steps-grid p,
.faq-item p,
.telegram-card p,
.ecosystem-grid span,
.footer p {
  color: var(--subtle);
  line-height: 1.75;
}

.stats-section {
  padding: 54px 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan) 60%, #1e96d5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stats-grid article {
  text-align: center;
  padding: 22px 10px;
}

.stats-grid strong {
  display: block;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.86);
  font-weight: 750;
}

.steps-section {
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.steps-grid article {
  padding: 30px;
  text-align: center;
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  font-size: 24px;
  font-weight: 900;
}

.faq-section {
  background: #f8f9fa;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.accordion {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  padding: 18px 22px;
  border: 0;
  color: #111827;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 850;
}

.faq-item button::after {
  float: right;
  color: var(--purple);
  content: "+";
}

.faq-item.open button::after {
  content: "−";
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 22px 20px;
}

.faq-item.open p {
  display: block;
}

.telegram-section {
  color: white;
  background: linear-gradient(135deg, #1e1b4b, #312e81 60%, #4c1d95);
}

.telegram-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 26px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.2);
}

.telegram-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
}

.telegram-card p,
.telegram-card small {
  color: rgba(255,255,255,.82);
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffe8a3;
  background: rgba(251,191,36,.12);
  font-weight: 850;
}

.telegram-card code {
  grid-column: 2;
  color: #ffe8a3;
  font-size: 16px;
}

.ecosystem-section {
  background: #fff;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ecosystem-grid a {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 20px;
}

.ecosystem-grid b {
  color: #111827;
  font-size: 18px;
}

.footer {
  padding: 58px 0 30px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(120px, .5fr));
  gap: 34px;
}

.footer-brand h2 {
  margin: 18px 0 10px;
  color: white;
}

.footer-brand h2 small {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 16px;
}

.footer-brand strong {
  display: block;
  margin-top: 16px;
  color: #ffe8a3;
}

.footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer nav h3 {
  margin: 0 0 8px;
  color: white;
}

.footer nav a {
  color: #cbd5e1;
}

.footer nav a:hover {
  color: white;
}

.copyright {
  width: min(1140px, calc(100% - 36px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .auth-actions,
  .header-user {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-header {
    padding: 8px 18px;
  }
}

@media (max-width: 860px) {
  .feature-grid,
  .steps-grid,
  .faq-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telegram-card {
    grid-template-columns: 1fr;
  }

  .telegram-card code {
    grid-column: auto;
  }

  .family-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .hero-section {
    min-height: 640px;
    padding-top: 104px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions,
  .drawer-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .drawer-actions a {
    flex: 1;
  }

  .stats-grid,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding: 58px 0;
  }
}

/* Auth pages */
.auth-body {
  min-height: 100vh;
  color: #212529;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: min(356px, 100%);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(29, 23, 83, .28);
}

.register-card {
  width: min(430px, 100%);
}

.auth-head {
  padding: 30px 24px 28px;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.auth-head p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.86);
  font-weight: 650;
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 24px 24px 0;
}

.auth-form label:not(.check-row) {
  display: grid;
  gap: 6px;
}

.auth-form label span {
  color: #495057;
  font-weight: 750;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.profile-form input,
.table-toolbar input,
.table-toolbar select,
.upload-panel input,
.upload-panel select,
.upload-panel textarea {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 6px;
  background: #e8f0fb;
  color: #111827;
  padding: 11px 12px;
  font: inherit;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-weight: 850;
  cursor: pointer;
}

.auth-links {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 24px 28px;
  color: #495057;
}

.auth-links p {
  margin: 0;
}

.auth-links a {
  color: #0d6efd;
}

.form-message {
  display: none;
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: #842029;
  background: #f8d7da;
  font-size: 14px;
}

.form-message.show {
  display: block;
}

/* App pages */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 226px 1fr;
  background: #f8f9fa;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 12px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

.app-logo-image {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  object-fit: cover;
}

.user-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
}

.user-pill span {
  grid-row: span 2;
  font-size: 24px;
}

.user-pill .user-avatar {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  grid-row: span 2;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0;
}

.user-avatar::before {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: white;
  transform: translateX(-50%);
  content: "";
}

.user-avatar::after {
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 25px;
  height: 13px;
  border: 0;
  border-radius: 14px 14px 5px 5px;
  background: white;
  transform: translateX(-50%);
  content: "";
}

.user-pill small {
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

.user-profile-pill {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.user-profile-pill .user-avatar {
  flex: 0 0 34px;
  grid-row: auto;
}

.user-profile-pill > strong {
  min-width: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.side-nav small {
  margin: 16px 8px 6px;
  color: rgba(255,255,255,.62);
  font-weight: 850;
}

.side-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  font-weight: 720;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255,255,255,.18);
  color: white;
}

.app-main {
  min-width: 0;
  padding: 30px 24px 46px;
}

.app-menu-button {
  display: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  color: white;
  background: #667eea;
  font-weight: 900;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.app-topbar h1 {
  margin: 0;
  color: #111827;
  font-size: 34px;
  font-weight: 500;
}

.app-topbar time {
  color: #475569;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.metric-grid article {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.metric-grid span {
  font-size: 34px;
}

.metric-grid .metric-icon {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  font-size: 0;
}

.chart-icon::before {
  position: absolute;
  inset: 5px 5px 5px 7px;
  border-left: 3px solid #198754;
  border-bottom: 3px solid #198754;
  content: "";
}

.chart-icon::after {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 31px;
  height: 23px;
  background: #198754;
  clip-path: polygon(0 78%, 12% 65%, 25% 72%, 43% 35%, 57% 51%, 76% 9%, 88% 26%, 100% 0, 100% 14%, 90% 39%, 78% 22%, 59% 65%, 44% 48%, 27% 84%, 12% 77%, 0 92%);
  content: "";
}

.metric-grid strong {
  color: #212529;
  font-size: 28px;
  font-weight: 500;
}

.metric-grid p {
  margin: 0;
  color: #6c757d;
}

.green { color: #198754; }
.blue { color: #0d6efd; }
.gold { color: #ffc107; }
.cyan { color: #0dcaf0; }

.license-card,
.panel-card {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 6px;
  background: white;
  box-shadow: 0 5px 20px rgba(102,126,234,.2);
}

.license-card {
  border-left: 4px solid #667eea;
}

.license-card h2,
.panel-card h2 {
  margin: 0 0 16px;
  color: #212529;
  font-weight: 500;
}

.license-alert {
  display: flex;
  gap: 18px;
  padding: 16px;
  border: 1px solid #ffe69c;
  border-radius: 6px;
  color: #664d03;
  background: #fff3cd;
}

.license-alert > span {
  font-size: 34px;
}

.license-alert strong,
.license-alert p {
  display: block;
  margin: 0 0 8px;
}

.mini-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: #0d6efd;
  font-weight: 800;
  cursor: pointer;
}

.analysis-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 28px 24px;
  border-radius: 10px;
  color: white;
  background: #1a1a2e;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}

.banner-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  color: #111827;
  background: #ffd700;
  font-size: 30px;
}

.analysis-banner h2 {
  margin: 0 0 4px;
  color: #ffd700;
}

.analysis-banner p {
  margin: 8px 0;
  color: rgba(255,255,255,.86);
}

.analysis-banner > strong {
  color: #ffd700;
  font-size: 18px;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.model-tags span {
  padding: 6px 12px;
  border-radius: 5px;
  color: #ffd700;
  border: 1px solid rgba(255,215,0,.35);
  background: rgba(255,215,0,.1);
  font-size: 13px;
  font-weight: 850;
}

.panel-head,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head a {
  color: #0d6efd;
  font-weight: 750;
}

.empty-state {
  padding: 34px;
  color: #6c757d;
  text-align: center;
  border: 1px dashed #d7deea;
  border-radius: 10px;
}

.tool-layout,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1fr);
  gap: 24px;
}

.upload-panel,
.result-panel,
.product-card,
.contact-card {
  padding: 24px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 5px 20px rgba(102,126,234,.16);
}

.upload-panel {
  display: grid;
  gap: 14px;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 2px dashed #a5b4fc;
  border-radius: 14px;
  color: #667eea;
  text-align: center;
  background: #f3f5ff;
  font-weight: 850;
}

.result-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.result-panel article {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fbfdff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: grid;
  gap: 12px;
}

.product-card span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 99px;
  color: #664d03;
  background: #fff3cd;
  font-weight: 850;
}

.product-card strong {
  color: #dc3545;
  font-size: 26px;
}

.product-card button,
.outline-button {
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #667eea;
  border-radius: 6px;
  color: #667eea;
  background: white;
  font-weight: 850;
}

.featured-product {
  color: white;
  background: linear-gradient(135deg, #1a1a2e, #312e81);
}

.featured-product h2,
.featured-product p {
  color: white;
}

.featured-product button {
  color: #111827;
  background: #ffd700;
  border-color: #ffd700;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.data-table th {
  color: #475569;
  background: #f8fafc;
}

.data-table td[colspan] {
  color: #6c757d;
  text-align: center;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.contact-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.contact-card {
  width: min(760px, 100%);
}

.contact-card > a {
  color: #0d6efd;
  font-weight: 800;
}

.placeholder-card {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 360px;
  align-content: center;
}

.placeholder-card h1,
.placeholder-card p {
  margin: 0;
}

.placeholder-card h1 {
  color: #172033;
  font-size: clamp(34px, 6vw, 54px);
}

.placeholder-card > p:not(.section-label) {
  color: #64748b;
  font-size: 17px;
  line-height: 1.7;
}

.placeholder-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-size: 28px;
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.contact-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 12px;
  background: #f8f9fa;
}

.contact-grid article > a {
  color: #0d6efd;
  font-weight: 700;
  text-decoration: none;
}

.contact-grid article > a:hover {
  text-decoration: underline;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: 260px;
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-menu-button {
    display: inline-flex;
    margin-bottom: 14px;
  }

  .metric-grid,
  .product-grid,
  .tool-layout,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .analysis-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-main {
    padding: 18px 14px 36px;
  }

  .app-topbar,
  .panel-head,
  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid {
    gap: 14px;
  }

  .metric-grid article {
    min-height: 140px;
  }

  .license-alert {
    flex-direction: column;
  }
}

/* Functional member workspace */
button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .32);
  outline-offset: 2px;
}

button:disabled,
.mini-primary.disabled {
  cursor: not-allowed;
  opacity: .55;
}

.admin-sidebar {
  background: linear-gradient(165deg, #111827 0%, #263244 62%, #59420f 100%);
}

.topbar-kicker,
.section-label {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.analysis-banner .section-label {
  color: #facc15;
}

.quota-chip,
.app-topbar > span {
  color: #475569;
  font-size: 14px;
}

.quota-chip {
  padding: 9px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 6px;
  background: white;
}

.action-wide {
  width: 100%;
  min-height: 46px;
}

.panel-head h2,
.upload-panel h2,
.result-panel h2,
.compact-form h2 {
  margin: 0;
}

.panel-head > span {
  color: #64748b;
  font-size: 13px;
}

.license-table-wrap {
  display: grid;
  gap: 12px;
}

.inline-action {
  width: fit-content;
  color: #0d6efd;
  font-weight: 800;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(150px, .3fr) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid #e8edf4;
}

.record-row:last-child {
  border-bottom: 0;
}

.record-row > div {
  display: grid;
  gap: 3px;
}

.record-row span,
.record-row time {
  color: #64748b;
  font-size: 13px;
}

.record-row p {
  margin: 0;
  color: #334155;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-panel label,
.profile-form label,
.compact-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.upload-panel input,
.upload-panel select,
.upload-panel textarea,
.profile-form input,
.compact-form input,
.search-field input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  color: #172033;
  background: white;
}

.upload-panel textarea {
  resize: vertical;
}

.drop-zone {
  position: relative;
  overflow: hidden;
  align-content: center;
  gap: 7px;
  padding: 20px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-zone small {
  color: #64748b;
  font-weight: 500;
}

.drop-zone.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .72);
}

.drop-zone.has-image span,
.drop-zone.has-image small {
  position: relative;
  color: white;
}

.result-summary {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 3px solid #f4bd22;
  border-bottom: 1px solid #dbe3ed;
}

.result-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.model-result {
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.model-result header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.model-result header span,
.risk-note {
  color: #64748b;
  font-size: 13px;
}

.risk-note {
  padding-left: 12px;
  border-left: 3px solid #f4bd22;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.success { color: #08734f; background: #dff7ec; }
.status-pill.warning { color: #805b00; background: #fff4c7; }
.status-pill.danger { color: #9b2634; background: #fee2e2; }

.data-table td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-scroll .data-table {
  min-width: 760px;
}

.table-empty {
  padding: 34px !important;
}

.summary-cell {
  min-width: 300px;
  color: #475569;
}

.row-actions {
  display: flex;
  gap: 7px;
}

.icon-action {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #334155;
  background: white;
  cursor: pointer;
}

.icon-action.danger {
  color: #b42332;
  border-color: #fecaca;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(420px, 100%);
  color: #64748b;
}

.account-management {
  display: grid;
  gap: 22px;
}

.vip-account-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 190px;
  padding: 28px 32px;
  overflow: hidden;
  border: 1px solid #f0c24a;
  border-radius: 8px;
  color: #4f3a00;
  background: linear-gradient(120deg, #fff8d8 0%, #ffed9b 58%, #f6cc45 100%);
  box-shadow: 0 12px 30px rgba(146, 105, 0, .14);
}

.vip-account-banner::after {
  position: absolute;
  inset: auto -90px -120px auto;
  width: 320px;
  height: 320px;
  border: 54px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  content: "";
}

.vip-account-banner > div {
  position: relative;
  z-index: 1;
}

.vip-account-banner .section-label {
  color: #8a6500;
}

.vip-account-banner h2 {
  margin: 0;
  font-size: 30px;
}

.vip-account-banner p:not(.section-label) {
  margin: 8px 0 18px;
  color: #6c520a;
}

.vip-account-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.vip-account-meta strong,
.vip-account-meta > span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(111, 79, 0, .16);
  border-radius: 5px;
  background: rgba(255, 255, 255, .5);
  font-size: 13px;
}

.vip-diamond {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  color: rgba(91, 62, 0, .72);
  border: 1px solid rgba(91, 62, 0, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .34);
  font-size: 72px;
  line-height: 1;
}

.compact-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, .7fr) minmax(180px, .7fr) auto;
  align-items: end;
  gap: 18px;
}

.mt5-add-form {
  position: relative;
  margin: 0;
  padding-top: 54px;
  border-top: 3px solid #667eea;
}

.mt5-payment-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid #86d7ba;
  border-radius: 8px;
  color: #075f46;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  box-shadow: 0 8px 24px rgba(5, 150, 105, .09);
}

.mt5-payment-success[hidden] {
  display: none;
}

.mt5-payment-success > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #10a576;
  font-weight: 900;
}

.mt5-payment-success strong {
  display: block;
  font-size: 16px;
}

.mt5-payment-success p {
  margin: 3px 0 0;
  color: #357361;
  font-size: 13px;
}

.mt5-form-heading h2 {
  font-size: 22px;
}

.mt5-form-heading p:last-child {
  line-height: 1.6;
}

.mt5-add-form input[readonly] {
  color: #475569;
  background: #f4f6f9;
  cursor: default;
}

.mt5-add-form .mini-primary {
  min-height: 43px;
  white-space: nowrap;
}

.mt5-quota {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 6px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.mt5-collection {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 20px rgba(40, 54, 86, .1);
}

.mt5-collection .panel-head {
  margin-bottom: 0;
}

.mt5-collection h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  color: #475569;
  background: #eef2f7;
  font-size: 12px;
  vertical-align: middle;
}

.mt5-policy {
  padding: 11px 13px;
  border-left: 3px solid #e6ad18;
  color: #725711;
  background: #fff9e7;
  font-size: 13px;
  line-height: 1.6;
}

.mt5-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mt5-account-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid #dfe6ef;
  border-top: 3px solid #667eea;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.mt5-account-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mt5-account-card header strong {
  overflow-wrap: anywhere;
  color: #172033;
  font-size: 20px;
}

.mt5-account-card > p,
.mt5-account-card > small {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.days-badge {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #a5e7f2;
  border-radius: 5px;
  color: #08758b;
  background: #ecfbfe;
  font-size: 12px;
  font-weight: 850;
}

.account-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.account-action {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #334155;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.account-action.danger {
  color: #b42332;
  border-color: #fecaca;
  background: #fffafa;
}

.account-action:hover {
  background: #f8fafc;
}

.mt5-empty {
  grid-column: 1 / -1;
}

.compact-form p {
  margin: 7px 0 0;
  color: #64748b;
}

.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .6fr);
  gap: 22px;
  margin-bottom: 24px;
}

.plan-offer,
.checkout-notes,
.download-intro {
  padding: 28px;
  border-radius: 7px;
  background: white;
  box-shadow: 0 5px 20px rgba(40, 54, 86, .12);
}

.plan-offer {
  display: grid;
  gap: 20px;
  border-top: 4px solid #f2be2a;
}

.plan-offer h2,
.checkout-notes h2,
.download-intro h2 {
  margin: 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.plan-price strong {
  font-size: 42px;
  color: #111827;
}

.plan-price span,
.plan-offer small {
  color: #64748b;
}

.plan-offer ul,
.checkout-notes ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #334155;
}

.checkout-notes {
  align-self: start;
  color: white;
  background: #172033;
}

.checkout-notes h2,
.checkout-notes .section-label,
.checkout-notes ol {
  color: white;
}

.purchase-main {
  background: #f5f7fb;
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(440px, 1.18fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 40px rgba(30, 41, 59, .1);
}

.purchase-summary,
.purchase-form {
  padding: 42px;
}

.purchase-summary {
  border-right: 1px solid #e4e9f0;
  background: #fbfcfe;
}

.purchase-summary h2,
.purchase-form h2 {
  margin: 0;
  color: #172033;
  font-size: 28px;
  font-weight: 600;
}

.purchase-price {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 0 34px;
}

.purchase-price strong {
  color: #667eea;
  font-size: 58px;
  line-height: 1;
}

.purchase-price span {
  color: #475569;
  font-size: 18px;
}

.purchase-summary h3 {
  margin: 8px 0 16px;
  color: #172033;
  font-size: 20px;
}

.benefit-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid #e5eaf1;
  color: #253047;
}

.benefit-list li::before {
  position: absolute;
  left: 0;
  top: 13px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: white;
  background: #159667;
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.purchase-form {
  display: grid;
  align-content: start;
  gap: 18px;
}

.purchase-form > label:not(.purchase-consent) {
  display: grid;
  gap: 8px;
  color: #253047;
  font-weight: 750;
}

.purchase-form em,
.plan-methods em,
.payment-methods em {
  color: #dc3545;
  font-style: normal;
}

.purchase-form input[type="text"],
.purchase-form input[name="username"],
.purchase-form input[name="accountNumber"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  color: #172033;
  background: white;
}

.purchase-form input[readonly] {
  color: #475569;
  background: #eef1f5;
}

.purchase-form input[name="accountNumber"]:valid {
  border-color: #159667;
}

.purchase-field-note {
  margin: -9px 0 3px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.plan-methods,
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.payment-methods legend {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: #253047;
  font-weight: 750;
}

.payment-option {
  position: relative;
  min-height: 142px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 14px 8px;
  border: 2px solid #d9dee7;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.payment-option.selected {
  border-color: #667eea;
  background: #f1f4ff;
  box-shadow: 0 0 0 1px rgba(102, 126, 234, .12);
}

.payment-option:focus-within {
  outline: 3px solid rgba(102, 126, 234, .2);
  outline-offset: 2px;
}

.payment-option.disabled {
  cursor: not-allowed;
  opacity: .52;
}

.payment-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.payment-option b {
  color: #253047;
  font-size: 16px;
}

.payment-option small {
  color: #64748b;
}

.payment-symbol {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 7px;
  border-radius: 8px;
  color: white;
  font-weight: 900;
}

.payment-symbol.alipay { background: #1677ff; font-size: 28px; }
.payment-symbol.wechat { background: #07c160; font-size: 13px; }
.payment-symbol.usdt {
  position: relative;
  width: 58px;
  height: 50px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.payment-symbol.usdt i {
  position: absolute;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: #26a17b;
  box-shadow: 0 2px 5px rgba(8, 115, 79, .18);
  font-size: 21px;
  font-style: normal;
  font-weight: 700;
}

.payment-symbol.usdt i:first-child { top: 2px; left: 4px; }
.payment-symbol.usdt i:last-child { right: 3px; bottom: 1px; }

.payment-option .usdt-price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 6px;
  color: white;
  background: #159667;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.usdt-offer-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #9bcfbd;
  border-radius: 6px;
  color: #174f3e;
  background: #e7f5f0;
  font-size: 13px;
  line-height: 1.6;
}

.usdt-offer-note[hidden] { display: none; }
.usdt-offer-note > span { color: #159667; font-size: 18px; line-height: 1.35; }
.usdt-offer-note p { margin: 0; }
.usdt-offer-note strong { color: #123f31; font-weight: 900; }

.purchase-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.purchase-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #159667;
}

.purchase-submit,
.purchase-back,
.payment-done {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 850;
}

.purchase-submit {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 12px 24px rgba(102, 126, 234, .24);
  cursor: pointer;
  font-size: 17px;
}

.purchase-submit.usdt-submit {
  background: linear-gradient(135deg, #20a477, #0d805c);
  box-shadow: 0 12px 24px rgba(21, 150, 103, .23);
}

.purchase-back {
  border: 1px solid #b8c1ce;
  color: #475569;
  background: white;
}

.purchase-notice {
  margin: 22px 0;
  padding: 18px 22px;
  border: 1px solid #83d7e6;
  border-radius: 7px;
  color: #07586a;
  background: #dff8fc;
}

.purchase-notice ul {
  margin: 9px 0 0;
  padding-left: 22px;
  line-height: 1.75;
}

.purchase-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(7, 88, 106, .2);
}

.purchase-support strong {
  width: 100%;
}

.purchase-support a {
  color: inherit;
  font-weight: 750;
}

.order-panel {
  box-shadow: 0 8px 24px rgba(30, 41, 59, .08);
}

.payment-modal[hidden] {
  display: none;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.payment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .7);
  backdrop-filter: blur(5px);
}

.payment-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  text-align: center;
}

.payment-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5eaf0;
  text-align: left;
}

.payment-dialog header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-dialog header p,
.payment-dialog header h2 {
  margin: 0;
}

.payment-dialog header p {
  color: #159667;
  font-size: 11px;
  font-weight: 900;
}

.payment-dialog header h2 {
  color: #172033;
  font-size: 21px;
}

.payment-dialog header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  color: #64748b;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 25px;
}

.wechat-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: #07c160;
  font-size: 22px;
  font-weight: 900;
}

.wechat-mark.usdt-mark {
  border-radius: 8px;
  background: #26a17b;
  font-size: 11px;
}

.wechat-mark.alipay-mark {
  border-radius: 8px;
  background: #1677ff;
  font-size: 24px;
}

.wechat-mark.trial-mark {
  border-radius: 8px;
  background: #e5a000;
  font-size: 20px;
}

.payment-amount {
  display: block;
  margin: 20px 0 14px;
  color: #172033;
  font-size: 36px;
}

.payment-qr-frame {
  width: min(330px, 85vw);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #dbe3eb;
  border-radius: 6px;
  background: white;
}

.payment-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
}

.usdt-payment-details {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #b9e2d6;
  border-radius: 6px;
  background: #f0faf7;
  text-align: left;
}

.usdt-payment-details[hidden] {
  display: none;
}

.usdt-payment-details > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.usdt-payment-details span {
  color: #64748b;
  font-size: 13px;
}

.usdt-payment-details strong {
  color: #08734f;
}

.usdt-address-row {
  grid-template-columns: 78px minmax(0, 1fr) auto !important;
}

.usdt-address-row code {
  color: #172033;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.usdt-address-row button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #159667;
  border-radius: 5px;
  color: #08734f;
  background: white;
  cursor: pointer;
  font-weight: 750;
}

.usdt-payment-details p {
  margin: 0;
  color: #9a5b00;
  font-size: 12px;
  line-height: 1.55;
}

.payment-order {
  margin: 14px 0;
  color: #64748b;
}

.payment-order code {
  color: #172033;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-instructions {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 6px;
  color: #075f42;
  background: #e7f8f1;
}

.payment-instructions span {
  color: #47645a;
  font-size: 13px;
  line-height: 1.55;
}

.payment-done {
  width: 100%;
  margin-top: 14px;
  border: 1px solid #159667;
  color: #08734f;
  background: white;
  cursor: pointer;
}

.payment-test {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 6px;
  color: #5c4300;
  background: #ffe69c;
  cursor: pointer;
  font-weight: 850;
}

.payment-test[hidden] {
  display: none;
}

.test-confirm {
  color: #805b00;
  border-color: #e8c35e;
  background: #fff9df;
  white-space: nowrap;
}

.admin-usdt-panel {
  margin-bottom: 22px;
  border-top: 4px solid #26a17b;
}

.admin-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid #dbe3eb;
  border-radius: 6px;
  background: white;
  overflow: hidden;
}

.admin-workspace-tabs button {
  min-height: 58px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #64748b;
  background: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.admin-workspace-tabs button + button {
  border-left: 1px solid #e2e8f0;
}

.admin-workspace-tabs button[aria-selected="true"] {
  border-bottom-color: #667eea;
  color: #263a8a;
  background: #f7f8ff;
}

.admin-workspace-tabs button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(102,126,234,.32);
  outline-offset: -3px;
}

.admin-workspace-tabs span {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 12px;
  color: #475569;
  background: #eef2f7;
  font-size: 12px;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 420px);
  align-items: center;
  justify-content: end;
  gap: 12px;
  margin: 0 0 16px;
  color: #475569;
  font-size: 14px;
  font-weight: 750;
}

.admin-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #172033;
  background: white;
  font: inherit;
}

.admin-search input:focus {
  border-color: #667eea;
  outline: 3px solid rgba(102,126,234,.18);
}

.admin-order-toggle-row td {
  padding: 8px 14px 16px;
  background: #f8fafc;
}

.admin-order-toggle-row button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  background: white;
  cursor: pointer;
  font: inherit;
}

.admin-order-toggle-row button:hover {
  border-color: #667eea;
  color: #263a8a;
}

.admin-order-toggle-row button:focus-visible {
  outline: 3px solid rgba(102,126,234,.22);
  outline-offset: 2px;
}

.admin-order-toggle-row button strong {
  color: #172033;
}

.admin-order-toggle-row button span::before {
  content: "\25BE";
  display: inline-block;
  margin-right: 6px;
  transition: transform .18s ease;
}

.admin-order-toggle-row button[aria-expanded="true"] span::before {
  transform: rotate(180deg);
}

.usdt-confirm-action {
  color: #08734f;
  border-color: #82cdb8;
  background: #effaf6;
  white-space: nowrap;
}

.admin-confirm-dialog {
  width: min(620px, 100%);
  text-align: left;
}

.admin-confirm-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-confirm-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe3eb;
  border-radius: 6px;
  background: #f8fafc;
}

.admin-confirm-summary span,
.admin-confirm-dialog > label:not(.purchase-consent) {
  color: #64748b;
  font-size: 13px;
}

.admin-confirm-summary strong {
  color: #172033;
  overflow-wrap: anywhere;
}

.admin-confirm-dialog > label:not(.purchase-consent) {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  font-weight: 750;
}

.admin-confirm-dialog input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #172033;
  background: white;
  font: inherit;
}

.admin-confirm-dialog input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #172033;
  background: white;
  font: inherit;
}

.adjust-mark {
  color: #fff;
  background: #475569;
}

.admin-confirm-dialog > label small {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.admin-status-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.admin-status-options legend {
  width: 100%;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.admin-status-options label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #172033;
  background: #fff;
  cursor: pointer;
}

.admin-status-options label:has(input:checked) {
  border-color: #667eea;
  background: #f7f8ff;
}

.admin-status-options input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #667eea;
}

.admin-status-options span {
  display: grid;
  gap: 4px;
}

.admin-status-options strong {
  font-size: 14px;
}

.admin-status-options small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.access-summary {
  margin: 0 0 14px;
  color: #475569;
}

.trial-access-alert > span {
  background: #e5a000;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}

.trial-action {
  color: #805b00;
  border-color: #e8c35e;
  background: #fff9df;
}

.trial-revoke-action {
  color: #b42318;
  border-color: #f1aaa5;
  background: #fff1f0;
}

.icon-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.admin-confirm-consent {
  margin-top: 16px;
}

.admin-confirm-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid #e5a000;
  color: #725100;
  background: #fff8df;
  font-size: 13px;
  line-height: 1.55;
}

.admin-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-top: 18px;
}

.admin-confirm-actions .purchase-back,
.admin-confirm-actions .purchase-submit {
  min-height: 48px;
}

@media (max-width: 640px) {
  .admin-workspace-tabs button {
    min-height: 52px;
    padding: 8px;
    font-size: 14px;
  }

  .admin-search {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .admin-status-options {
    grid-template-columns: 1fr;
  }

  .admin-confirm-summary,
  .admin-confirm-actions {
    grid-template-columns: 1fr;
  }
}

body.payment-open {
  overflow: hidden;
}

.download-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border-left: 5px solid #19a974;
}

.download-intro p {
  margin-bottom: 0;
  color: #64748b;
}

.shield-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 2px solid #19a974;
  border-radius: 50%;
  color: #08734f;
  font-size: 24px;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}

.plan-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.plan-methods legend {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: #253047;
  font-weight: 750;
}

.plan-option {
  position: relative;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe3eb;
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

.plan-option.selected {
  border-color: #667eea;
  background: #f1f4ff;
  box-shadow: 0 0 0 1px rgba(102, 126, 234, .12);
}

.plan-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.plan-option span {
  display: grid;
  gap: 5px;
}

.plan-option b { color: #253047; font-size: 15px; }
.plan-option small { color: #64748b; font-size: 12px; }
.plan-option > strong { color: #667eea; font-size: 21px; white-space: nowrap; }
.plan-options-loading { grid-column: 1 / -1; color: #64748b; }

.download-row h2 {
  margin: 6px 0;
  font-size: 21px;
}

.download-row p {
  margin: 0;
  color: #64748b;
}

.download-category {
  color: #0d6efd;
  font-size: 11px;
  font-weight: 900;
}

.download-product-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.download-product-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: #1677ff;
  box-shadow: 0 7px 16px rgba(22, 119, 255, .2);
  font-size: 14px;
  font-weight: 900;
}

.download-product-icon.panel {
  background: #159667;
  box-shadow: 0 7px 16px rgba(21, 150, 103, .2);
}

.download-product-copy { min-width: 0; }

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.download-meta span {
  padding: 4px 8px;
  border: 1px solid #dbe4ef;
  border-radius: 5px;
  color: #53657d;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 750;
}

.download-checksum {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: 11px;
}

.download-checksum code {
  overflow: hidden;
  color: #475569;
  font-family: Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-product-action {
  flex: 0 0 142px;
  display: grid;
  gap: 7px;
  text-align: center;
}

.download-product-action .mini-primary {
  min-height: 44px;
  white-space: nowrap;
}

.download-product-action small {
  color: #64748b;
  font-size: 11px;
}

.toast-region {
  position: fixed;
  z-index: 200;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
}

.app-toast {
  transform: translateY(-8px);
  padding: 13px 15px;
  border-left: 4px solid #19a974;
  border-radius: 5px;
  color: #173126;
  background: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.app-toast.error {
  color: #7d1f2a;
  border-left-color: #dc3545;
}

.app-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .compact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt5-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .plan-layout {
    grid-template-columns: 1fr;
  }

  .purchase-layout {
    grid-template-columns: 1fr;
  }

  .purchase-summary {
    border-right: 0;
    border-bottom: 1px solid #e4e9f0;
  }

  .record-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 620px) {
  .app-topbar h1 {
    font-size: 28px;
  }

  .field-grid,
  .compact-form {
    grid-template-columns: 1fr;
  }

  .vip-account-banner {
    min-height: 0;
    padding: 22px 18px;
  }

  .vip-account-banner h2 {
    font-size: 25px;
  }

  .vip-diamond {
    display: none;
  }

  .mt5-add-form {
    padding: 62px 16px 18px;
  }

  .mt5-add-form .mini-primary {
    width: 100%;
  }

  .mt5-quota {
    left: 16px;
    right: auto;
  }

  .mt5-collection {
    padding: 16px;
  }

  .mt5-card-grid {
    grid-template-columns: 1fr;
  }

  .account-card-actions,
  .account-action {
    width: 100%;
  }

  .purchase-summary,
  .purchase-form {
    padding: 22px 16px;
  }

  .purchase-summary h2,
  .purchase-form h2 {
    font-size: 23px;
  }

  .purchase-price {
    padding: 30px 0 24px;
  }

  .purchase-price strong {
    font-size: 46px;
  }

  .payment-methods {
    gap: 7px;
  }

  .plan-methods {
    grid-template-columns: 1fr;
  }

  .payment-option {
    min-height: 126px;
    padding: 10px 4px;
  }

  .payment-option b {
    font-size: 14px;
    text-align: center;
  }

  .payment-option small {
    font-size: 11px;
  }

  .payment-dialog {
    padding: 16px;
  }

  .payment-amount {
    font-size: 31px;
  }

  .download-row,
  .download-intro,
  .plan-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-row .mini-primary {
    width: 100%;
  }

  .download-product-main {
    width: 100%;
  }

  .download-product-action {
    width: 100%;
    flex-basis: auto;
  }

  .download-checksum {
    grid-template-columns: 1fr;
  }

  .plan-price strong {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Tutorial blog */
.blog-body {
  margin: 0;
  color: #172033;
  background: #f6f8fc;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.blog-body *, .blog-body *::before, .blog-body *::after { box-sizing: border-box; }
.blog-body a { color: inherit; text-decoration: none; }
.blog-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.blog-topbar {
  min-height: 68px;
  padding: 10px max(20px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e8edf5;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.blog-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.blog-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #5669ef, #7c4cd7);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(92, 85, 220, .24);
}
.blog-topbar nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: #556077; }
.blog-topbar nav a { padding: 10px 0; position: relative; }
.blog-topbar nav a:hover, .blog-topbar nav a.active { color: #5d59d9; }
.blog-topbar nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: #655ee8; }

.blog-hero {
  padding: 78px 0 84px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.13) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 28%, rgba(255,255,255,.12) 0 90px, transparent 92px),
    linear-gradient(135deg, #5168eb 0%, #6d54db 55%, #7446c7 100%);
}
.blog-kicker { margin: 0 0 14px; color: #dfe4ff; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.blog-hero h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); letter-spacing: -.04em; }
.blog-hero p:last-child { max-width: 640px; margin: 18px 0 0; color: #edf0ff; font-size: 18px; line-height: 1.8; }

.blog-listing { padding: 68px 0 100px; }
.blog-section-heading { margin-bottom: 24px; }
.blog-section-heading span { color: #685edc; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.blog-section-heading h2 { margin: 8px 0 0; font-size: clamp(26px, 4vw, 36px); }
.blog-card { overflow: hidden; display: grid; grid-template-columns: minmax(300px, .95fr) minmax(380px, 1.25fr); background: #fff; border: 1px solid #e7eaf2; border-radius: 22px; box-shadow: 0 18px 60px rgba(41, 50, 91, .08); }
.blog-card-visual { min-height: 330px; padding: 26px; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #151b33, #293777 58%, #7259d9); }
.blog-card-chip { position: absolute; left: 24px; top: 24px; padding: 7px 12px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 12px; }
.blog-card-art { width: 180px; height: 180px; position: relative; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.05), 0 0 70px rgba(134,109,255,.48); }
.blog-card-art span { font-size: 56px; font-weight: 900; letter-spacing: -.08em; }
.blog-card-art i { position: absolute; width: 8px; height: 8px; background: #92e7ff; border-radius: 50%; box-shadow: 0 0 18px #92e7ff; }
.blog-card-art i:nth-of-type(1) { top: 8px; left: 42px; }
.blog-card-art i:nth-of-type(2) { right: -2px; top: 83px; }
.blog-card-art i:nth-of-type(3) { bottom: 8px; right: 38px; }
.blog-card-art i:nth-of-type(4) { left: -3px; bottom: 67px; }
.blog-card-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.blog-card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #7b8499; font-size: 13px; }
.blog-card-meta span::before, .article-meta span::before { content: "·"; margin-right: 20px; }
.blog-card-content h3 { margin: 14px 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.35; }
.blog-card-content h3 a:hover { color: #625be0; }
.blog-card-content p { margin: 0; color: #606b80; line-height: 1.85; }
.blog-read-more { margin-top: 24px; color: #5d57d8 !important; font-weight: 800; }
.blog-read-more span { transition: transform .2s ease; display: inline-block; }
.blog-read-more:hover span { transform: translateX(5px); }

.article-body { background: #f8f9fc; }
.article-breadcrumb { padding: 28px 0 0; display: flex; flex-wrap: wrap; gap: 9px; color: #8a92a4; font-size: 13px; }
.article-breadcrumb a:hover { color: #635dde; }
.article-shell { width: min(880px, calc(100% - 40px)); margin: 24px auto 64px; padding: 62px 74px 70px; background: #fff; border: 1px solid #e8ebf2; border-radius: 22px; box-shadow: 0 20px 70px rgba(37, 45, 78, .07); }
.article-header { padding-bottom: 36px; border-bottom: 1px solid #edf0f5; }
.article-category { display: inline-flex; padding: 7px 12px; color: #5d57d7; background: #f0efff; border-radius: 999px; font-size: 12px; font-weight: 800; }
.article-header h1 { margin: 18px 0; color: #131b2d; font-size: clamp(34px, 5vw, 49px); line-height: 1.25; letter-spacing: -.035em; }
.article-lead { margin: 0; color: #58657a; font-size: 17px; line-height: 1.95; }
.article-meta { margin-top: 22px; }
.article-summary { margin: 34px 0; padding: 24px 26px; background: linear-gradient(135deg, #f1f3ff, #f7f3ff); border-left: 4px solid #6961e4; border-radius: 4px 14px 14px 4px; }
.article-summary strong { color: #4b45c4; }
.article-summary ul { margin: 12px 0 0; padding-left: 20px; }
.article-summary li { margin: 8px 0; line-height: 1.75; }
.article-toc { margin: 30px 0 44px; padding: 24px 26px; background: #fafbfe; border: 1px solid #e9edf4; border-radius: 14px; }
.article-toc strong { font-size: 16px; }
.article-toc ol { margin: 12px 0 0; padding-left: 22px; columns: 2; column-gap: 40px; }
.article-toc li { margin: 9px 0; color: #657087; break-inside: avoid; }
.article-toc a:hover { color: #5e58db; }
.article-section { scroll-margin-top: 90px; margin-top: 46px; }
.article-section h2 { margin: 0 0 20px; color: #182136; font-size: 29px; line-height: 1.4; }
.article-section h3 { margin: 28px 0 10px; color: #26324b; font-size: 20px; }
.article-section p { margin: 12px 0; color: #4f5c70; font-size: 16px; line-height: 1.95; }
.article-section a { color: #5550d4; text-decoration: underline; text-underline-offset: 3px; }
.article-table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid #e3e7ef; border-radius: 13px; }
.article-section table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: 14px; }
.article-section th { padding: 14px 15px; color: #fff; background: #3d486b; text-align: left; }
.article-section td { padding: 16px 15px; color: #4f596d; border-top: 1px solid #e8ebf1; line-height: 1.65; vertical-align: top; }
.article-section tr:nth-child(even) td { background: #f9faff; }
.warning-list { display: grid; gap: 12px; }
.warning-list div { padding: 18px 20px; background: #fff9f2; border: 1px solid #f5dfc3; border-radius: 12px; }
.warning-list b { color: #9a541a; }
.warning-list p { margin: 5px 0 0; font-size: 15px; }
.article-note { padding: 18px 20px; background: #f6f8fc; border-radius: 12px; font-size: 14px !important; }
.article-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.article-steps li { padding: 20px; display: grid; grid-template-columns: 52px 1fr; gap: 18px; background: #f8f9fd; border: 1px solid #e7eaf2; border-radius: 13px; }
.article-steps li > span { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #5d67e8, #7655d2); border-radius: 13px; font-weight: 900; }
.article-steps h3 { margin: 0 0 5px; }
.article-steps p { margin: 0; font-size: 15px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.choice-grid > div { padding: 22px; background: #f8f9fd; border: 1px solid #e6e9f1; border-radius: 14px; }
.choice-grid span { color: #6a63db; font-size: 12px; font-weight: 800; }
.choice-grid h3 { margin: 8px 0; }
.choice-grid p { margin: 0; font-size: 14px; }
.article-checklist { padding: 28px; color: #fff; background: linear-gradient(135deg, #283762, #614eb8); border-radius: 16px; }
.article-checklist h2 { color: #fff; }
.article-checklist ul { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.article-checklist li { padding-left: 30px; position: relative; line-height: 1.7; }
.article-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; display: grid; place-items: center; color: #314074; background: #b7f0dd; border-radius: 50%; font-size: 12px; font-weight: 900; }
.article-faq details { padding: 17px 0; border-bottom: 1px solid #e7eaf0; }
.article-faq summary { cursor: pointer; color: #263148; font-weight: 800; }
.article-faq details p { margin-bottom: 0; }
.article-risk { margin-top: 46px; padding: 20px 22px; color: #725129; background: #fff8ed; border: 1px solid #f0dfc2; border-radius: 13px; }
.article-risk p { margin: 7px 0 0; font-size: 13px; line-height: 1.75; }
.article-cta { margin-top: 40px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: linear-gradient(135deg, #596bea, #704bc9); border-radius: 17px; }
.article-cta span { color: #dedfff; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.article-cta h2 { margin: 6px 0; font-size: 24px; }
.article-cta p { margin: 0; color: #eceeff; font-size: 14px; }
.article-cta > a { flex: 0 0 auto; padding: 13px 18px; color: #574fc8; background: #fff; border-radius: 10px; font-weight: 800; }
.article-more { padding-bottom: 70px; }
.article-more h2 { font-size: 25px; }
.article-more > a { padding: 20px 24px; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 18px; background: #fff; border: 1px solid #e5e8ef; border-radius: 14px; }
.article-more span { color: #6963dc; font-size: 12px; font-weight: 800; }
.article-more i { font-style: normal; font-size: 22px; }
.blog-footer { padding: 28px 0; color: #8c94a5; background: #1f2638; font-size: 12px; }
.blog-footer .blog-container { display: flex; justify-content: space-between; gap: 20px; }
.blog-footer p { margin: 0; }

@media (max-width: 760px) {
  .blog-topbar { position: static; align-items: flex-start; }
  .blog-topbar nav { max-width: 70%; gap: 8px 16px; flex-wrap: wrap; justify-content: flex-end; }
  .blog-topbar nav a { font-size: 12px; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-visual { min-height: 250px; }
  .blog-card-content { padding: 30px 24px; }
  .article-shell { padding: 38px 24px 44px; border-radius: 14px; }
  .article-header h1 { font-size: 34px; }
  .article-toc ol { columns: 1; }
  .choice-grid { grid-template-columns: 1fr; }
  .article-cta { align-items: flex-start; flex-direction: column; }
  .article-cta > a { width: 100%; text-align: center; }
  .article-more > a { grid-template-columns: 1fr auto; }
  .article-more span { grid-column: 1 / -1; }
  .blog-footer .blog-container { flex-direction: column; }
}

@media (max-width: 480px) {
  .blog-container, .article-shell { width: min(100% - 24px, 1120px); }
  .blog-brand b { display: none; }
  .blog-topbar nav { max-width: none; }
  .blog-topbar nav a:nth-child(3) { display: none; }
  .article-header h1 { font-size: 30px; }
  .article-section h2 { font-size: 24px; }
  .article-steps li { grid-template-columns: 1fr; }
}
