/* Shared portal skin: pricing, login, and account use the landing-page visual language. */
:root{
  --portal-ink:#12131a;
  --portal-muted:#687086;
  --portal-primary:#6652f2;
  --portal-primary-2:#9367fa;
  --portal-surface:#ffffff;
  --portal-line:#e7eaff;
  --portal-shadow:0 18px 42px rgba(76,82,142,.10);
}

#tab-login,#tab-buy,#tab-account{color:var(--portal-ink);isolation:isolate}
#tab-login{min-height:calc(100vh - 72px);overflow:hidden;background:linear-gradient(135deg,#f1f3ff 0%,#f8f9ff 48%,#eeeaff 100%)}

/* Login: the same airy world-and-people illustration, rather than a separate dark product. */
#tab-login .login-layout{min-height:calc(100vh - 72px);height:auto;grid-template-columns:minmax(0,1.08fr) minmax(460px,.92fr);overflow:hidden}
#tab-login .login-brand{min-height:650px;padding:76px clamp(38px,5.5vw,104px);justify-content:flex-start;background:
  radial-gradient(circle at 70% 44%,rgba(175,208,255,.58),transparent 26%),
  radial-gradient(circle at 28% 80%,rgba(213,225,255,.72),transparent 30%),
  linear-gradient(135deg,#f4f5ff 0%,#edf4ff 58%,#ede8ff 100%)}
#tab-login .login-brand::before{inset:52% 2% auto auto;width:min(590px,52vw);height:min(590px,52vw);transform:translateY(-50%);background:url("hero-transparent.webp") center/contain no-repeat;filter:drop-shadow(0 24px 36px rgba(71,87,171,.18));opacity:.94;animation:none}
#tab-login .login-brand::after{left:-18%;bottom:-42%;width:84%;height:62%;background:radial-gradient(ellipse,rgba(126,103,247,.20),transparent 68%);filter:blur(16px);animation:portalDrift 13s ease-in-out infinite}
#tab-login .login-brand-inner{max-width:400px;text-align:left}
#tab-login .login-brand-title{font-size:clamp(38px,4vw,58px);color:#111218;letter-spacing:0;margin-bottom:14px}
#tab-login .login-brand-title em{background:linear-gradient(135deg,#7257ef,#4e77f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
#tab-login .login-brand-desc{max-width:330px;color:#687086;font-size:15px;margin-bottom:36px}
#tab-login .login-trust-list{gap:10px;max-width:350px}
#tab-login .login-trust-item{background:rgba(255,255,255,.70);border:1px solid rgba(255,255,255,.95);box-shadow:0 12px 28px rgba(94,100,157,.07);border-radius:8px;padding:13px 15px;backdrop-filter:blur(12px)}
#tab-login .login-trust-item:hover{background:#fff;border-color:#e5e8ff;transform:translateX(4px)}
#tab-login .login-trust-title{color:#20222c}
#tab-login .login-trust-desc{color:#73798b}
#tab-login .login-trust-icon{border:0;border-radius:12px;background:#f0efff!important;box-shadow:inset 0 1px 0 #fff}
#tab-login .login-form-wrap{padding:48px clamp(24px,5vw,78px);overflow-x:hidden;background:linear-gradient(180deg,#fff 0%,#fafaff 100%)}
#tab-login .login-form-wrap::before{top:4%;right:-25%;width:480px;height:480px;background:radial-gradient(circle,rgba(139,114,251,.14),transparent 68%);filter:blur(20px)}
#tab-login .login-form-wrap::after{bottom:-18%;left:-30%;width:420px;height:420px;background:radial-gradient(circle,rgba(112,183,255,.14),transparent 67%);filter:blur(16px)}
#tab-login .login-form-card{position:relative;z-index:1;max-width:430px;padding:40px 38px 34px;border-radius:10px;border-color:#e9ebfa;box-shadow:var(--portal-shadow),inset 0 1px 0 #fff;animation:portalRise .6s cubic-bezier(.16,1,.3,1) both}
#tab-login .login-avatar{width:66px;height:66px;border-radius:18px;background:linear-gradient(135deg,#edf0ff,#dfd5ff);box-shadow:0 14px 26px rgba(101,82,242,.16)}
#tab-login .login-form-header h3{color:#171820;font-size:25px}
#tab-login .login-form-header p{color:var(--portal-muted)}
#tab-login .login-label{color:#4f4a78;letter-spacing:0}
#tab-login input[type="email"],#tab-login input[type="text"]{border-color:#e3e6f8;background:#fbfcff;border-radius:8px;box-shadow:none}
#tab-login input:focus{border-color:rgba(102,82,242,.52);box-shadow:0 0 0 4px rgba(102,82,242,.10)}
#tab-login .btn.primary,#tab-buy .btn.primary,#tab-account .btn.primary{background:linear-gradient(135deg,var(--portal-primary),var(--portal-primary-2));border-radius:999px;box-shadow:0 12px 22px rgba(101,82,242,.20)}
#tab-login .btn.primary:hover:not(:disabled),#tab-buy .btn.primary:hover:not(:disabled),#tab-account .btn.primary:hover:not(:disabled){background:linear-gradient(135deg,#5945de,#8157ee);box-shadow:0 16px 28px rgba(101,82,242,.28)}
#tab-login .btn.small{border-radius:999px}
#tab-login .agree-row a,#tab-login .agree-link{color:#6652f2}

@media (min-width:1061px){
  #tab-login .login-layout{height:calc(100vh - 72px);min-height:650px}
  #tab-login .login-form-wrap{overflow:hidden;padding-top:clamp(26px,4vh,48px);padding-bottom:clamp(26px,4vh,48px)}
}

/* Keep the copy and world illustration visually grouped on wide monitors. */
@media (min-width:1600px){
  #tab-login .login-brand::before{right:17%}
}

/* Pricing: a continuous pale canvas with elevated plans, no unrelated dark blocks. */
#tab-buy{min-height:100vh;background:
  radial-gradient(ellipse at 80% 0%,rgba(219,208,255,.68),transparent 30%),
  radial-gradient(ellipse at 10% 36%,rgba(207,232,255,.70),transparent 27%),
  linear-gradient(180deg,#f4f5ff 0%,#fbfbff 28%,#f5f3ff 100%)}
#tab-buy::before{height:410px;background:linear-gradient(180deg,rgba(244,245,255,.20),rgba(255,255,255,.68)),url("background-soft.svg") center top/cover no-repeat;opacity:.88}
#tab-buy::after{right:-68px;bottom:10%;width:330px;height:430px;border-radius:0;background:none;opacity:0}
#tab-buy .buy-hero{position:relative;padding:92px 0 20px;overflow:hidden}
#tab-buy .buy-hero .wrap{position:relative;z-index:2}
#tab-buy .buy-hero h1{font-size:clamp(36px,4vw,56px);letter-spacing:0;color:#13141b}
#tab-buy .buy-hero h1 em{background:linear-gradient(135deg,#1c1d24 15%,#6652f2 56%,#4e77f7 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
#tab-buy .buy-hero p{color:var(--portal-muted);font-size:16px}
#tab-buy .buy-plan-toggle{margin:27px auto 30px;padding:5px;background:rgba(255,255,255,.82);border-color:#e8eafb;border-radius:999px;box-shadow:0 14px 32px rgba(82,91,156,.10)}
#tab-buy .buy-plan-toggle span{border-radius:999px}
#tab-buy .buy-plan-toggle .active{background:linear-gradient(135deg,#6652f2,#8b63f7);box-shadow:0 10px 20px rgba(101,82,242,.22)}
#tab-buy .membership-grid{max-width:1260px;gap:18px;align-items:stretch}
#tab-buy .membership-card{min-height:700px;padding:12px 12px 30px;border-radius:9px;background:rgba(255,255,255,.76);border-color:rgba(232,234,250,.96);box-shadow:0 20px 46px rgba(74,83,142,.09);backdrop-filter:blur(12px)}
#tab-buy .membership-card:hover{transform:translateY(-7px);box-shadow:0 28px 60px rgba(76,82,142,.16)}
#tab-buy .membership-card.featured{margin-top:0;min-height:700px;background:linear-gradient(180deg,#f4efff 0%,#ffffff 32%);border:2px solid rgba(120,94,246,.55);box-shadow:0 26px 60px rgba(101,82,242,.18)}
#tab-buy .membership-card.free{background:rgba(255,255,255,.66)}
#tab-buy .membership-hot{height:38px;background:linear-gradient(90deg,#6652f2,#9567f8);font-size:12px}
#tab-buy .plan-head{min-height:276px;border-radius:7px;background:rgba(255,255,255,.90);box-shadow:none}
#tab-buy .membership-card.featured .plan-head{padding:34px 28px 16px;row-gap:0;column-gap:14px}
#tab-buy .membership-card.featured .plan-price,#tab-buy .membership-card.featured .buyout-billing{grid-column:1/-1}
#tab-buy .membership-card.featured .plan-price span{white-space:nowrap}
#tab-buy .plan-title{color:#161720}
#tab-buy .plan-subtitle,#tab-buy .plan-billing,#tab-buy .plan-pay-desc{color:var(--portal-muted)}
#tab-buy .plan-price strong,#tab-buy .plan-pay-price{color:#6652f2}
#tab-buy .plan-kicker{height:34px;padding:0 15px;border:1px solid #ded8ff;border-radius:10px;background:#f0edff;color:#6652f2;font-size:14px;font-weight:900;letter-spacing:.2px;box-shadow:0 6px 14px rgba(102,82,242,.10)}
#tab-buy .membership-card:not(.featured):not(.free) .plan-kicker{background:linear-gradient(135deg,#e8f1ff,#f2ecff);color:#5d50e6;border-color:#d8d8ff}
#tab-buy .membership-card.featured .plan-kicker{background:linear-gradient(135deg,#6652f2,#9567f8);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(102,82,242,.22)}
#tab-buy .membership-card.free .plan-kicker{background:#f6f5ff;color:#7564e8;border-color:#e2defb;box-shadow:none}
#tab-buy .buyout-save,#tab-buy .save-tip{background:#fff0c7;color:#9b6d08}
#tab-buy .plan-divider{border-color:#e9ebf8}
#tab-buy .plan-section-title{color:#242634}
#tab-buy .plan-feature-list li{color:#646b7d;border-color:#edf0fa}
#tab-buy .plan-feature-list li::before{color:#6a55f3}
#tab-buy .plan-feature-list li.plan-gift{align-items:center;padding:9px 11px;border:1px solid rgba(102,82,242,.18);border-radius:8px;background:linear-gradient(135deg,rgba(102,82,242,.10),rgba(147,103,250,.05));color:#5d48d7;font-weight:900}
#tab-buy .plan-feature-list li.plan-gift::before{content:"赠";width:20px;height:20px;flex-basis:20px;margin-top:0;border:0;background:#6a55f3;color:#fff;font-size:11px}
#tab-buy .btn.red{background:linear-gradient(135deg,#6652f2,#9367fa);box-shadow:0 12px 22px rgba(101,82,242,.20);border-radius:999px}
#tab-buy .btn.red:hover:not(:disabled){box-shadow:0 16px 28px rgba(101,82,242,.28)}
#tab-buy .btn.gray{border-color:#e2e5f6;border-radius:999px;background:#fff;color:#4e5365}
#tab-buy .pricing{padding:18px 0 68px}
#tab-buy .pricing-card{border-radius:9px;border-color:#e7eafd;box-shadow:0 16px 36px rgba(74,83,142,.08);background:rgba(255,255,255,.86)}
#tab-buy .pricing-card.featured{background:linear-gradient(160deg,#f2efff,#fff);border-color:#8976f5}
#tab-buy .pricing-card h3{color:#1d1e27}
#tab-buy .price-now{color:#6652f2!important}

/* Keep the membership plans on one visual baseline on desktop. */
@media (min-width:1025px){
  #tab-buy .buy-membership-pricing{margin-top:18px}
  #tab-buy .membership-card .plan-head,
  #tab-buy .membership-card.featured .plan-head{height:340px;min-height:340px}
  #tab-buy .membership-card .plan-actions{height:76px;min-height:76px}
  #tab-buy .membership-card.featured{overflow:visible;border-radius:0 0 9px 9px}
  #tab-buy .membership-card.featured .membership-hot{top:-38px;border-radius:9px 9px 0 0}
}

/* Account: operational content gets the same clear surfaces and brand light. */
#tab-account{min-height:100vh;background:
  radial-gradient(ellipse at 79% 0%,rgba(220,212,255,.64),transparent 31%),
  radial-gradient(ellipse at 12% 30%,rgba(208,235,255,.64),transparent 26%),
  linear-gradient(180deg,#f4f5ff 0%,#fbfbff 34%,#f4f2ff 100%)}
#tab-account::before{height:390px;background:linear-gradient(180deg,rgba(244,245,255,.10),rgba(255,255,255,.72)),url("background-soft.svg") center top/cover no-repeat}
#tab-account::after{bottom:28px;left:-54px;width:260px;height:290px;border-radius:0;background:none;opacity:0}
#tab-account .acct-layout{position:relative;max-width:1080px;padding:70px 24px 64px}
#tab-account .acct-page-head{position:relative;z-index:1;margin-bottom:24px!important}
#tab-account .acct-page-head h1{font-size:clamp(32px,4vw,48px)!important;letter-spacing:0!important;color:#171820!important}
#tab-account .acct-page-head h1 em{background:linear-gradient(135deg,#6652f2,#4f78f7)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important}
#tab-account .acct-page-head p{color:var(--portal-muted)!important}
#tab-account .acct-hero{min-height:142px;padding:26px 32px;border-radius:10px;background:
  radial-gradient(circle at 84% 30%,rgba(182,167,255,.54),transparent 19%),
  linear-gradient(135deg,#5e4ce4 0%,#7a5cf1 52%,#7386f7 100%);box-shadow:0 22px 44px rgba(92,74,216,.22)}
#tab-account .acct-hero::before{right:5%;top:0;width:300px;height:100%;background:url("orbit-glow.svg") right center/contain no-repeat;opacity:.50}
#tab-account .acct-hero::after{left:38%;bottom:-80px;width:220px;height:180px;background:radial-gradient(ellipse,rgba(255,255,255,.20),transparent 66%)}
#tab-account .acct-avatar{border-radius:18px;background:linear-gradient(135deg,#fff,#e8e5ff);color:#6652f2;box-shadow:0 12px 22px rgba(52,39,151,.22)}
#tab-account .acct-avatar-ring{border-color:rgba(255,255,255,.58)}
#tab-account .acct-cards{gap:16px}
#tab-account .acct-card{border-radius:9px;border-color:#e7eaf9;box-shadow:var(--portal-shadow);background:rgba(255,255,255,.90);backdrop-filter:blur(12px);padding:22px 26px}
#tab-account .acct-card:hover{transform:translateY(-3px);box-shadow:0 22px 46px rgba(76,82,142,.15)}
#tab-account .acct-card-title{color:#6652f2;letter-spacing:.8px}
#tab-account .token-balance-card{background:linear-gradient(115deg,rgba(241,238,255,.96),rgba(239,247,255,.92));border-color:#dddcff}
#tab-account .token-balance-card::before{background:radial-gradient(circle,rgba(112,92,246,.16),transparent 67%)}
#tab-account .balance-number{background:linear-gradient(135deg,#5c47e4,#4d78f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
#tab-account .balance-bar{background:linear-gradient(90deg,#6385f8,#7355ee,#a379fb)}
#tab-account .balance-detail-item{border-radius:8px;background:rgba(255,255,255,.72);border-color:#e8eafb}
#tab-account .acct-perm-badge.on{background:#edfbf4;color:#16815f;border-color:#c9efe0}
#tab-account .usage-table-wrap{border-radius:8px;border-color:#e6e9f7}
#tab-account .usage-table th{background:#f6f7ff;color:#596175}
#tab-account .usage-table tbody tr:hover{background:#f7f5ff}
#tab-account .acct-actions{position:relative;z-index:1;flex-direction:row;justify-content:center;margin-top:24px}
#tab-account .acct-actions .btn{border-radius:999px}

/* Reusable world illustration layer for portal headers. Language bubbles stay independent from the artwork. */
.portal-illustration{position:absolute;pointer-events:none;z-index:1}
.portal-illustration .portal-world{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(69,74,154,.18))}
.portal-illustration .portal-people-row{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 16px 20px rgba(35,30,119,.20))}
.portal-illustration .portal-bubble{position:absolute;z-index:2;height:auto;filter:drop-shadow(0 8px 12px rgba(80,80,145,.15))}
.portal-illustration .portal-bubble-hello{left:8%;top:44%;width:24%}
.portal-illustration .portal-bubble-bonjour{right:5%;top:48%;width:27%}
.portal-illustration .portal-bubble-hola{left:42%;bottom:16%;width:20%}
.portal-illustration .portal-bubble-korean{right:30%;top:13%;width:23%}
.portal-illustration .portal-bubble-nihao{left:30%;bottom:22%;width:19%}

#tab-buy .buy-hero{min-height:320px}
#tab-buy .buy-hero .wrap{padding-right:24px!important}
.portal-buy-illustration{right:clamp(22px,5vw,104px);bottom:0;width:min(500px,34vw);height:min(335px,23vw);z-index:0}

#tab-account .acct-hero{min-height:202px;padding-right:600px}
#tab-account .acct-avatar-wrap,#tab-account .acct-hero-info{z-index:2}
#tab-account .acct-hero-info{max-width:calc(100% - 16px)}
.portal-account-illustration{right:18px;bottom:0;width:620px;height:188px;overflow:hidden}
#tab-account .portal-account-illustration .portal-people-row{inset:0;width:100%;height:100%;object-fit:contain;object-position:right bottom;z-index:2}
#tab-account .portal-illustration .portal-world{z-index:1;filter:drop-shadow(0 16px 20px rgba(35,30,119,.26))}
#tab-account .portal-illustration .portal-bubble{z-index:0;filter:drop-shadow(0 8px 12px rgba(35,30,119,.23))}
#tab-account .portal-illustration .portal-bubble-hello{left:1%;top:31%;width:21%}
#tab-account .portal-illustration .portal-bubble-bonjour{right:1%;top:38%;width:24%}
#tab-account .portal-illustration .portal-bubble-korean{right:32%;top:7%;width:21%}
#tab-account .portal-illustration .portal-bubble-nihao{left:32%;bottom:8%;width:17%}

@keyframes portalDrift{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(22px,-14px,0)}}
@keyframes portalRise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}

@media (max-width:1060px){
  #tab-login .login-layout{grid-template-columns:1fr;min-height:calc(100vh - 58px)}
  #tab-login .login-brand{min-height:0;padding:46px 28px 230px}
  #tab-login .login-brand::before{top:auto;width:360px;height:360px;right:-18px;bottom:-34px;transform:none}
  #tab-login .login-brand-inner{max-width:510px}
  #tab-login .login-trust-list{display:none}
  #tab-login .login-form-wrap{padding:42px 20px}
  #tab-buy .membership-grid{grid-template-columns:1fr;max-width:620px}
  #tab-buy .membership-card,#tab-buy .membership-card.featured{min-height:0}
  #tab-buy::after,#tab-account::after{display:none}
  #tab-buy .buy-hero .wrap{padding-right:24px!important}
  .portal-buy-illustration{right:20px;width:250px;height:180px;opacity:.28}
  #tab-account .acct-hero{padding-right:32px}
  .portal-account-illustration{right:-24px;bottom:-10px;width:330px;height:154px;opacity:.20}
  #tab-account .acct-layout{padding-top:52px}
}

@media (max-width:620px){
  #tab-login .login-brand{padding:38px 22px 200px}
  #tab-login .login-brand-title{font-size:38px}
  #tab-login .login-form-card{padding:32px 22px 28px}
  #tab-login .field-row{align-items:stretch;flex-direction:column}
  #tab-login .field-row .btn{width:100%}
  #tab-buy .buy-hero{padding-top:58px}
  #tab-buy .buy-hero p{font-size:14px;padding:0 12px}
  #tab-buy .membership-card{padding:10px}
  #tab-buy .plan-head,#tab-buy .membership-card.featured .plan-head{padding:30px 22px 20px}
  #tab-account .acct-layout{padding:46px 16px 52px}
  #tab-account .acct-hero{min-height:150px;padding:22px 18px}
  .portal-buy-illustration{display:none}
  .portal-account-illustration{width:260px;height:122px;right:-56px;bottom:-12px;opacity:.15}
  #tab-account .acct-cards{grid-template-columns:1fr}
  #tab-account .acct-actions{flex-direction:column}
}

@media (prefers-reduced-motion:reduce){
  #tab-login .login-brand::after{animation:none}
  #tab-login .login-form-card{animation:none}
}
