:root {
  --pink: #ff3f78;
  --pink-2: #ff6d9c;
  --line: rgba(255, 255, 255, 0.085);
  --muted: #a89baa;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: #08060c; color: #fff7fb; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.auth-page { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.auth-video {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 50% 20%, #34162d 0, #100913 46%, #07050a 100%);
}
.auth-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: saturate(0.9) contrast(1.03); transform: scale(1.012);
}
.auth-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,4,10,.42) 0%, rgba(8,5,11,.28) 28%, rgba(8,5,11,.58) 67%, rgba(7,4,10,.9) 100%),
    radial-gradient(circle at 50% 15%, rgba(255,63,120,.13), transparent 40%);
}
.auth-langs {
  position: relative; z-index: 3;
  display: flex; justify-content: flex-end; gap: 8px;
  padding: max(14px, env(safe-area-inset-top)) 18px 0;
}
.auth-langs a {
  height: 30px; padding: 0 11px; border-radius: 15px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(16,11,21,.55); color: #d9ccd6;
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; text-decoration: none;
}
.auth-langs a.on { color: #fff; border-color: rgba(255,111,157,.45); background: rgba(255,63,120,.18); }
.auth {
  position: relative; z-index: 1;
  max-width: 460px; margin: 0 auto;
  min-height: calc(100vh - 44px); min-height: calc(100dvh - 44px);
  padding: 10px 22px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: center;
}
.auth-brand { text-align: center; margin: 10px 0 24px; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.auth-brand a {
  display: inline-flex; align-items: center;
  font-size: 40px; line-height: 1; font-weight: 950; letter-spacing: -1.6px;
  color: #fff; text-decoration: none; filter: drop-shadow(0 8px 22px rgba(0,0,0,.46));
}
.auth-brand em {
  font-style: normal; color: #190b12;
  background: linear-gradient(135deg, #ff739f, #ff3f78);
  padding: 4px 8px 5px; margin-left: 3px; border-radius: 10px;
  box-shadow: 0 7px 20px rgba(255,63,120,.28);
}
.auth-brand p { color: rgba(255,245,250,.82); font-size: 12px; margin: 13px 0 0; }
.auth-card {
  border-radius: 25px; padding: 21px;
  background: linear-gradient(145deg, rgba(27,16,31,.88), rgba(13,8,17,.82));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 65px rgba(0,0,0,.45);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.auth-card h1 { font-size: 21px; margin: 0 0 18px; }
.auth-alert {
  margin: 0 0 14px; border-radius: 13px; padding: 11px 12px;
  background: rgba(255,63,120,.11); color: #ff94b2; font-size: 11px;
  border: 1px solid rgba(255,63,120,.18);
}
.field { margin-bottom: 14px; }
.field label { display: block; color: #cfc1cc; font-size: 11px; margin: 0 0 7px; }
.field input, .field select {
  width: 100%; height: 49px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px;
  background: rgba(12,8,16,.66); color: #fff; padding: 0 14px; outline: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.field select option { color: #1a1218; }
.field input:focus, .field select:focus { border-color: rgba(255,88,142,.65); box-shadow: 0 0 0 3px rgba(255,63,120,.08); }
.auth-submit {
  width: 100%; height: 49px; border: 0; border-radius: 16px; margin-top: 7px;
  background: linear-gradient(135deg, var(--pink-2), var(--pink));
  color: #fff; font-weight: 950; box-shadow: 0 10px 25px rgba(255,63,120,.24); cursor: pointer;
}
.auth-submit[disabled] { opacity: .45; cursor: not-allowed; }
.auth-link { display: block; text-align: center; color: #ffacc4; font-size: 12px; margin-top: 18px; text-decoration: none; text-shadow: 0 2px 12px rgba(0,0,0,.4); }

.captcha { margin: 15px 0 2px; padding: 12px; border: 1px solid rgba(255,103,158,.22); border-radius: 17px; background: linear-gradient(145deg, rgba(255,63,120,.08), rgba(139,78,235,.08)); }
.captcha-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: #f8edf4; font-size: 11px; font-weight: 900; }
.captcha-head button { width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.05); color: #d8c8d4; }
.captcha-track { position: relative; height: 50px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(7,4,11,.58); overflow: hidden; touch-action: none; user-select: none; }
.captcha-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, rgba(255,63,120,.28), rgba(174,91,255,.24)); pointer-events: none; }
.captcha-target { position: absolute; z-index: 2; top: 5px; width: 44px; height: 38px; border: 1px dashed rgba(255,126,169,.8); border-radius: 11px; background: rgba(255,63,120,.08); pointer-events: none; }
.captcha-target:before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid #ff7ca3; border-bottom: 2px solid #ff7ca3; transform: translate(-65%, -50%) rotate(-45deg); }
.captcha-copy { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 50px; color: #9e909b; font-size: 10px; pointer-events: none; }
.captcha-knob { position: absolute; z-index: 4; left: 2px; top: 2px; width: 46px; height: 44px; padding: 0; border: 1px solid rgba(255,125,168,.42); border-radius: 12px; background: linear-gradient(145deg, #ff5d91, #d93f8e); color: #fff; display: grid; place-items: center; box-shadow: 0 7px 18px rgba(255,48,115,.2); cursor: grab; }
.captcha-knob b { font-size: 16px; letter-spacing: -4px; margin-left: -3px; }
.captcha-status { margin: 8px 1px 0; color: #8f818d; font-size: 9px; }
.captcha.is-error { border-color: rgba(255,91,112,.5); }
.captcha.is-error .captcha-status { color: #ff8698; }
.captcha.is-success { border-color: rgba(90,226,174,.45); background: linear-gradient(145deg, rgba(56,205,153,.1), rgba(139,78,235,.06)); }
.captcha.is-success .captcha-target { opacity: 0; }
.captcha.is-success .captcha-progress { width: 100% !important; background: linear-gradient(90deg, rgba(73,221,164,.24), rgba(98,230,180,.14)); }
.captcha.is-success .captcha-knob { background: linear-gradient(145deg, #49dca4, #2fb980); border-color: rgba(120,245,198,.45); }
.captcha.is-success .captcha-copy, .captcha.is-success .captcha-status { color: #78e8ba; }

@media (max-height: 680px) {
  .auth { justify-content: flex-start; padding-top: 8px; }
  .auth-brand { margin: 8px 0 16px; }
  .auth-brand a { font-size: 34px; }
  .auth-card { padding: 18px; }
  .field { margin-bottom: 10px; }
  .field input, .auth-submit { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-video video { display: none; }
}

body.sub-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #09060e;
}
.sub-top {
  position: sticky; top: 0; z-index: 5;
  max-width: 460px; margin: 0 auto;
  min-height: 56px;
  padding: max(10px, env(safe-area-inset-top)) 8px 8px;
  display: flex; align-items: center;
  background: #09060e;
}
.sub-top a {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: #fff; position: relative; z-index: 1;
}
.sub-top a svg { width: 22px; height: 22px; }
.sub-top h1 {
  position: absolute; left: 0; right: 0;
  margin: 0; text-align: center;
  font-size: 16px; font-weight: 900;
  pointer-events: none;
  padding-top: max(10px, env(safe-area-inset-top));
}
.sub-wrap { max-width: 460px; margin: 0 auto; padding: 8px 16px calc(var(--pu8-nav-h, 74px) + 28px); }
.sub-card {
  border-radius: 20px; padding: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.085);
}
.sub-h { margin: 0 0 14px; font-size: 14px; font-weight: 900; }
.auth-alert.ok {
  background: rgba(73,221,164,.12); color: #78e8ba;
  border-color: rgba(73,221,164,.22);
}
.field input[readonly] { opacity: .72; }
.bank-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.bank-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bank-item:first-of-type { padding-top: 0; }
.bank-item b { display: block; font-size: 14px; }
.bank-item p { margin: 4px 0 0; color: #a89baa; font-size: 12px; }
.bank-side { text-align: right; flex: 0 0 auto; }
.bank-st {
  display: inline-block; font-style: normal; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
}
.bank-st.wait { color: #ffc65c; background: rgba(255,198,92,.12); }
.bank-st.ok { color: #78e8ba; background: rgba(73,221,164,.12); }
.bank-st.no { color: #ff8698; background: rgba(255,63,120,.12); }
.bank-side button {
  display: block; margin: 8px 0 0 auto;
  background: none; border: 0; color: #ff7f9f; font-size: 12px; cursor: pointer;
}

.rec-empty {
  padding: 70px 20px; text-align: center; color: #a596a2; font-size: 13px;
}
.rec-list { display: flex; flex-direction: column; gap: 11px; }
.rec-card {
  padding: 14px; border-radius: 22px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.085);
}
.rec-card-h {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.rec-card-h b { font-size: 13px; line-height: 1.4; }
.rec-st {
  height: 24px; border-radius: 12px; padding: 0 8px;
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 900; font-style: normal;
  background: rgba(255,255,255,.065); color: #c9bdc7; white-space: nowrap;
}
.rec-st.ok { background: rgba(77,227,165,.1); color: #67e7b3; }
.rec-st.wait { background: rgba(255,198,92,.1); color: #ffd071; }
.rec-st.bad { background: rgba(255,63,120,.1); color: #ff85a8; }
.rec-card-l {
  display: flex; justify-content: space-between; gap: 14px; padding-top: 8px; font-size: 10px;
}
.rec-card-l span { color: #a89baa; }
.rec-card-l b { font-weight: 750; color: #eee5ec; }

.fav-summary {
  height: 44px; padding: 0 14px; margin-bottom: 14px;
  border: 1px solid rgba(255,104,157,.2); border-radius: 15px;
  background: linear-gradient(135deg, rgba(255,63,120,.09), rgba(145,75,225,.075));
  display: flex; align-items: center; gap: 6px; color: #b8aab5; font-size: 11px;
}
.fav-summary b { font-size: 17px; color: #ff6f9d; }
.fav-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.fav-card {
  display: block; overflow: hidden; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08); background: #15101d; text-decoration: none; color: inherit;
}
.fav-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.fav-copy { padding: 8px 10px 10px; }
.fav-copy b { display: block; font-size: 13px; }
.fav-copy span { display: block; margin-top: 3px; color: #a89baa; font-size: 10px; }
.fav-empty {
  min-height: 280px; padding: 45px 22px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  text-align: center; color: #a596a2;
}
.fav-empty-ico {
  width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%;
  border: 1px solid rgba(255,107,158,.23);
  background: linear-gradient(135deg, rgba(255,63,120,.1), rgba(142,76,225,.08));
  display: grid; place-items: center; color: #ff78a3; font-size: 34px;
}
.fav-empty strong { font-size: 16px; color: #f8edf4; }
.fav-empty a {
  margin-top: 16px; min-width: 126px; height: 38px; padding: 0 18px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5d91, #e83d83);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 900; text-decoration: none;
}

.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(460px, 100%); z-index: 75;
  height: 74px; padding: 7px 9px max(7px, env(safe-area-inset-bottom));
  background: rgba(16, 10, 21, 0.93);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
  backdrop-filter: blur(20px);
}
.tabbar a {
  height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 700; text-decoration: none; position: relative;
}
.tabbar a svg { width: 20px; height: 20px; }
.tabbar a.on { color: #ff6e9b; }
.tabbar a.on::before {
  content: ""; position: absolute; top: -1px; width: 32px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #8b54ff, #ff3f78);
}
