/* Member-facing visual refresh. Loaded after the existing stylesheet. */
:root {
  --yp-ink: #14233d;
  --yp-muted: #64748b;
  --yp-blue: #2864e9;
  --yp-blue-deep: #1747bf;
  --yp-line: #e3eaf4;
  --yp-surface: #ffffff;
  --yp-shadow: 0 18px 48px rgba(26, 55, 105, .09);
}

body.app-bg *, body.login-v31-bg *, body.auth-v26-register-bg * { box-sizing: border-box; }
body.app-bg, body.login-v31-bg, body.auth-v26-register-bg {
  color: var(--yp-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Member area */
body.app-bg {
  min-height: 100dvh;
  padding-bottom: 0;
  background: radial-gradient(circle at 9% -8%, #e4edff 0, transparent 32%),
              radial-gradient(circle at 98% 24%, #e9f6ff 0, transparent 34%),
              #f5f8fd;
}
body.app-bg .container { max-width: 1040px; margin-inline: auto; padding: 22px 20px calc(112px + env(safe-area-inset-bottom, 0px)); }
body.app-bg .container.narrow { max-width: 820px; }
body.app-bg .app-header, body.app-bg .topbar {
  height: 68px;
  padding-inline: max(22px, calc((100vw - 1040px) / 2));
  color: var(--yp-ink);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--yp-line);
  box-shadow: 0 8px 28px rgba(25, 53, 100, .045);
  backdrop-filter: blur(18px);
}
body.app-bg .app-header strong, body.app-bg .topbar strong { color: #172d51; font-size: 17px; letter-spacing: -.02em; }
body.app-bg .app-header a, body.app-bg .topbar a { color: #2456bb; }
body.app-bg .topbar > a:first-child {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 12px; background: #eef4ff; font-size: 29px; line-height: 1;
}
body.app-bg .app-header .menu { color: #2456bb; background: #eef4ff; border-radius: 12px; }
body.app-bg .app-header .message-bell { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #eef4ff; }
body.app-bg .app-header .globe { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 11px; background: #eef4ff; }
body.app-bg .app-header .ui-icon { width: 18px; height: 18px; }
body.app-bg .ticker {
  max-width: 1040px; margin: 16px auto 0; border: 1px solid #dce9ff;
  border-radius: 14px; background: #edf5ff; color: #315b9b; box-shadow: 0 8px 24px rgba(39, 95, 194, .06);
}
body.app-bg .announcement-icon .ui-icon { width: 17px; height: 17px; }
body.app-bg .hero {
  position: relative; display: block; overflow: hidden; max-width: 1040px;
  margin: 22px auto 0; padding: 32px 36px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px; background: linear-gradient(125deg, #132d57 0%, #1e50a6 63%, #356fe4 100%);
  box-shadow: 0 24px 50px rgba(25, 63, 139, .22);
}
body.app-bg .hero::after {
  content: ""; position: absolute; width: 290px; height: 290px; right: -70px; top: -160px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.045), 0 0 0 98px rgba(255,255,255,.035);
  pointer-events: none;
}
body.app-bg .hero-user, body.app-bg .hero .pill { position: relative; z-index: 1; }
body.app-bg .hero-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
body.app-bg .hero-user { min-width: 0; }
body.app-bg .hero h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em; }
body.app-bg .hero p { color: rgba(255,255,255,.75); line-height: 1.75; }
body.app-bg .hero p b { color: #fff; }
body.app-bg .avatar-mid { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.18); }
body.app-bg .hero .pill { flex: none; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.15); color: #fff; }
body.app-bg .hero-meta, body.app-bg .hero-balances { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.app-bg .hero-meta { margin-top: 26px; }
body.app-bg .hero-meta span { min-width: 0; padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: rgba(255,255,255,.68); font-size: 12px; }
body.app-bg .hero-meta b { display: inline-block; margin-left: 6px; color: #fff; font-size: 13px; overflow-wrap: anywhere; }
body.app-bg .hero-balances { margin-top: 12px; }
body.app-bg .hero-balances > div { min-width: 0; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 17px; background: rgba(255,255,255,.1); }
body.app-bg .hero-balances span, body.app-bg .hero-balances strong { display: block; }
body.app-bg .hero-balances span { color: rgba(255,255,255,.72); font-size: 12px; }
body.app-bg .hero-balances strong { margin-top: 8px; color: #fff; font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; overflow-wrap: anywhere; }
body.app-bg .member-quota-strip, body.app-bg .table-card, body.app-bg .grab-card,
body.app-bg .wallet-card, body.app-bg .order-card, body.app-bg .message-detail-card {
  border: 1px solid var(--yp-line); border-radius: 22px;
  background: var(--yp-surface); box-shadow: var(--yp-shadow);
}
body.app-bg .member-quota-strip { padding: 22px 24px; margin: 0 0 20px; }
body.app-bg .member-quota-strip b { color: #173b82; }
body.app-bg .mini-progress, body.app-bg .progress-line { background: #e9f0fb; }
body.app-bg .mini-progress i, body.app-bg .progress-line span { background: linear-gradient(90deg, #2864e9, #46b9f4); }
body.app-bg .quota-grab-link, body.app-bg .primary, body.app-bg .grab-button {
  color: #fff; border: 0; border-radius: 14px;
  background: linear-gradient(105deg, var(--yp-blue-deep), var(--yp-blue));
  box-shadow: 0 12px 24px rgba(39, 96, 218, .23);
}
body.app-bg .primary:hover, body.app-bg .grab-button:not(:disabled):hover,
body.app-bg .quota-grab-link:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.app-bg .grid-icons.real-icons { padding: 0; background: transparent; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.app-bg .icon-card {
  min-height: 142px; padding: 20px 12px; border: 1px solid var(--yp-line); border-radius: 20px;
  background: #fff; box-shadow: 0 12px 30px rgba(31, 64, 116, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.app-bg .icon-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(31, 64, 116, .12); }
body.app-bg .icon-card span { width: 56px; height: 56px; margin-bottom: 12px; background: #eaf2ff; color: #2462d7; border-radius: 17px; display: grid; place-items: center; }
body.app-bg .ui-icon { display: block; width: 25px; height: 25px; flex: none; }
body.app-bg .icon-card:nth-child(4n+2) span { background: #f2edff; color: #7754cc; }
body.app-bg .icon-card:nth-child(4n+3) span { background: #fff0e9; color: #d56a3b; }
body.app-bg .icon-card:nth-child(4n+4) span { background: #e7f8f3; color: #238a71; }
body.app-bg .icon-card b { color: #1b3153; font-size: 15px; }
body.app-bg .icon-card small { color: var(--yp-muted); }
body.app-bg .home-status-note { color: var(--yp-muted); margin-top: 22px; }
body.app-bg .partner-preview { margin-top: 24px; padding: 25px 27px 23px; border: 1px solid var(--yp-line); border-radius: 22px; background: #fff; box-shadow: var(--yp-shadow); }
body.app-bg .partner-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.app-bg .partner-preview-eyebrow { color: #577ac3; font-size: 10px; font-weight: 850; letter-spacing: .18em; }
body.app-bg .partner-preview h2 { margin: 5px 0 0; color: #1b3153; font-size: 21px; letter-spacing: -.02em; }
body.app-bg .partner-preview-tag { flex: none; padding: 6px 10px; border-radius: 999px; background: #eef4ff; color: #2e61bc; font-size: 11px; font-weight: 750; }
body.app-bg .partner-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
body.app-bg .artist-preview-card { position: relative; min-width: 0; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: 17px; background: #14213b; isolation: isolate; }
body.app-bg .artist-preview-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.92); transition: transform .25s ease; }
body.app-bg .artist-preview-card:nth-child(2) img { object-position: center 23%; }
body.app-bg .artist-preview-card:nth-child(3) img { object-position: center 18%; }
body.app-bg .artist-preview-card:nth-child(4) img { object-position: center 20%; }
body.app-bg .artist-preview-card:hover img { transform: scale(1.035); }
body.app-bg .artist-preview-card::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(0deg, rgba(5,14,35,.9), rgba(5,14,35,.28) 58%, transparent); pointer-events: none; }
body.app-bg .artist-preview-card figcaption { position: absolute; z-index: 1; right: 16px; bottom: 17px; left: 16px; display: flex; flex-direction: column; align-items: flex-start; }
body.app-bg .artist-preview-card small { margin: 0 0 4px; color: #c5d5f2; font-size: 10px; font-weight: 750; letter-spacing: .14em; }
body.app-bg .artist-preview-card b { color: #fff; font-size: 20px; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
body.app-bg .artist-preview-card figcaption span { display: inline-block; margin-top: 9px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; background: rgba(255,255,255,.13); font-size: 10px; font-weight: 650; backdrop-filter: blur(8px); }
body.app-bg .home-credits-footer { padding: 12px 0 2px; text-align: center; }
body.app-bg .home-credits-footer a { color: #94a3b8; font-size: 11px; text-decoration: none; }
body.app-bg .home-credits-footer a:hover, body.app-bg .home-credits-footer a:focus-visible { color: #496fac; text-decoration: underline; }
body.app-bg .table-card { padding: 24px !important; }
body.app-bg .table-card h2, body.app-bg .grab-card h2 { color: #1a3154; }
body.app-bg .order-card { padding: 20px; margin-bottom: 12px; }
body.app-bg .order-card h3 { color: #1a3154; }
body.app-bg .wallet-card { padding: 23px 14px; }
body.app-bg .wallet-card strong { color: #1c4caa; }
body.app-bg .profile-v31-hero { border-radius: 27px; background: linear-gradient(125deg, #132d57, #275cc2); box-shadow: 0 24px 50px rgba(25,63,139,.2); }
body.app-bg .profile-v31-money a { border: 1px solid var(--yp-line); border-radius: 19px; box-shadow: var(--yp-shadow); }
body.app-bg .profile-v31-menu { border: 1px solid var(--yp-line); box-shadow: var(--yp-shadow); }
body.app-bg input:not([type="checkbox"]):not([type="hidden"]), body.app-bg select, body.app-bg textarea {
  border-color: #dce6f3; border-radius: 12px; background: #fbfdff;
}
body.app-bg input:focus, body.app-bg select:focus, body.app-bg textarea:focus { outline: 2px solid rgba(40,100,233,.25); outline-offset: 1px; }
body.app-bg .bottom-nav {
  left: 50%; right: auto; bottom: 14px; transform: translateX(-50%);
  width: min(720px, calc(100% - 28px)); height: calc(68px + env(safe-area-inset-bottom, 0px));
  padding: 6px 8px env(safe-area-inset-bottom, 0px); border: 1px solid #dce5f1;
  border-radius: 22px; background: rgba(255,255,255,.97);
  box-shadow: 0 16px 42px rgba(25, 49, 94, .16); backdrop-filter: blur(20px);
}
body.app-bg .bottom-nav a { min-width: 0; color: #6d7b90; border-radius: 15px; }
body.app-bg .bottom-nav a .ui-icon { width: 22px; height: 22px; }
body.app-bg .bottom-nav a span { font-size: 11px; font-weight: 750; }
body.app-bg .bottom-nav a.active { background: #eff5ff; color: #2459c7; }
body.app-bg .bottom-nav a.grab { margin-inline: 4px; background: linear-gradient(135deg, #2257c7, #3778ee); color: #fff; }
body.app-bg .float-chat { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 14px 28px rgba(255,70,85,.3); }

@media (max-width: 700px) {
  body.app-bg .float-chat { right: 0; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border: 2px solid #fff; }
}

/* Shared authentication palette */
body.login-v31-bg, body.auth-v26-register-bg {
  background: radial-gradient(circle at 11% 8%, #dae9ff 0, transparent 30%),
              radial-gradient(circle at 90% 78%, #e6eaff 0, transparent 34%), #f4f8ff;
}
body.login-v31-bg a, body.auth-v26-register-bg a { transition: color .18s ease, background .18s ease, transform .18s ease; }
body.login-v31-bg .login-v31-shell { width: min(100% - 48px, 1100px); min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); grid-template-rows: auto 1fr auto auto; gap: 22px 56px; padding: 28px 0 24px; }
body.login-v31-bg .login-v31-top { grid-column: 1 / -1; margin: 0; }
body.login-v31-bg .login-v31-brand { color: #173159; font-size: 21px; }
body.login-v31-bg .login-v31-mark, body.login-v31-bg .login-v31-logo { border-radius: 15px; background: linear-gradient(135deg, #1649ad, #3574ed); box-shadow: 0 14px 32px rgba(35,85,190,.23); }
body.login-v31-bg .login-v31-lang { padding: 6px 10px; border-color: #dce6f3; box-shadow: 0 8px 20px rgba(24,52,103,.05); }
body.login-v31-bg .login-v31-lang > span { display: none; }
body.login-v31-bg .login-v31-lang a.active { color: #2459c7; }
.login-refresh-intro { align-self: center; max-width: 520px; padding: 12px 0 44px; }
.login-refresh-intro .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #cbddff; border-radius: 999px; background: #eaf2ff; color: #285ac0; font-size: 12px; font-weight: 850; letter-spacing: .11em; }
.login-refresh-intro h2 { margin: 24px 0 16px; color: #122a52; font-size: clamp(42px, 5vw, 68px); line-height: 1.12; letter-spacing: -.055em; }
.login-refresh-intro h2 span { color: #2864e9; }
.login-refresh-intro p { max-width: 440px; margin: 0; color: #5d718e; font-size: 16px; line-height: 1.9; }
.login-refresh-intro .intro-line { width: 84px; height: 5px; margin-top: 34px; border-radius: 99px; background: linear-gradient(90deg,#2864e9,#67c7f5); }
body.login-v31-bg .login-v31-card { align-self: center; grid-column: 2; padding: 34px 34px 32px; border: 1px solid #e0e9f6; border-radius: 30px; background: rgba(255,255,255,.96); box-shadow: 0 32px 70px rgba(27,58,114,.13); }
body.login-v31-bg .login-v31-logo { width: 66px; height: 66px; margin: -67px auto 20px; border-radius: 20px; font-size: 20px; }
body.login-v31-bg .login-v31-card h1 { color: #152a4c; font-size: 30px; }
body.login-v31-bg .login-v31-card > p { color: #77859a; }
body.login-v31-bg .login-v31-input { height: 58px; border-color: #dbe5f2; border-radius: 14px; background: #fbfdff; box-shadow: none; }
body.login-v31-bg .login-v31-input:focus-within { border-color: #4781ee; box-shadow: 0 0 0 4px rgba(40,100,233,.12); }
body.login-v31-bg .login-v31-field-icon svg { width: 20px; height: 20px; display: block; stroke: #7588a5; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.login-v31-bg .login-v31-eye { width: 42px; color: #315aa6; font-size: 12px; font-weight: 800; }
body.login-v31-bg .login-v31-submit { border-radius: 14px; background: linear-gradient(105deg, #1748bb, #3175ee); box-shadow: 0 14px 28px rgba(39, 99, 222, .24); }
body.login-v31-bg .login-v31-options a, body.login-v31-bg .login-v31-register a { color: #245ac5; }
body.login-v31-bg .login-v31-support { grid-column: 2; width: 100%; margin: 0 auto; }
body.login-v31-bg .login-v31-footer { grid-column: 1 / -1; padding-top: 0; }

/* Registration */
body.auth-v26-register-bg { min-height: 100dvh; padding: 28px 18px 38px; }
body.auth-v26-register-bg .auth-v26-register-shell { max-width: 760px; margin: 0 auto; }
body.auth-v26-register-bg .auth-v26-register-top { margin: 0 0 18px; }
body.auth-v26-register-bg .auth-v26-register-top > a { box-shadow: 0 8px 24px rgba(24,52,103,.09); }
body.auth-v26-register-bg .auth-v24-lang { position: static; display: flex; gap: 4px; border: 1px solid #dce6f3; border-radius: 999px; background: rgba(255,255,255,.93); box-shadow: 0 8px 20px rgba(24,52,103,.05); }
body.auth-v26-register-bg .auth-v24-lang a { color: #6b7b91; border-radius: 999px; padding: 8px 13px; font-size: 13px; }
body.auth-v26-register-bg .auth-v24-lang a.active { color: #2459c7; background: #eaf2ff; }
body.auth-v26-register-bg .auth-v26-register-card { padding: 38px; border: 1px solid #e0e9f6; border-radius: 30px; background: rgba(255,255,255,.97); box-shadow: 0 28px 70px rgba(27,58,114,.12); }
body.auth-v26-register-bg .auth-v24-title { align-items: center; gap: 18px; margin-bottom: 28px; }
body.auth-v26-register-bg .auth-v24-title-icon { width: 64px; height: 64px; border-radius: 20px; background: #eaf2ff; display: grid; place-items: center; font-size: 27px; }
body.auth-v26-register-bg .auth-v24-title h1 { color: #152a4c; letter-spacing: -.035em; }
body.auth-v26-register-bg .auth-v24-title p { color: #557090; }
body.auth-v26-register-bg .auth-v24-title small, body.auth-v26-register-bg .auth-v24-field small { color: #8795a9; }
body.auth-v26-register-bg .auth-v24-field { color: #263a59 !important; }
body.auth-v26-register-bg .auth-v24-input-wrap { height: 56px; border: 1px solid #dbe5f2; border-radius: 14px; background: #fbfdff; }
body.auth-v26-register-bg .auth-v24-input-wrap:focus-within { border-color: #4781ee; box-shadow: 0 0 0 4px rgba(40,100,233,.12); }
body.auth-v26-register-bg .auth-v24-input-wrap input { min-width: 0; }
body.auth-v26-register-bg .auth-v24-submit { height: 56px; border-radius: 14px; background: linear-gradient(105deg, #1748bb, #3175ee); box-shadow: 0 14px 28px rgba(39, 99, 222, .24); }

@media (max-width: 900px) {
  body.app-bg .grid-icons.real-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.login-v31-bg .login-v31-shell { display: flex; flex-direction: column; width: min(100% - 28px, 480px); gap: 0; padding: 20px 0 18px; }
  body.login-v31-bg .login-v31-top { margin-bottom: 62px; }
  .login-refresh-intro { display: none; }
  body.login-v31-bg .login-v31-card { width: 100%; }
  body.login-v31-bg .login-v31-support { margin: 24px auto 0; }
  body.login-v31-bg .login-v31-footer { margin-top: auto; padding-top: 26px; }
}
@media (max-width: 600px) {
  body.app-bg .container { padding: 16px 14px calc(112px + env(safe-area-inset-bottom, 0px)); }
  body.app-bg .app-header, body.app-bg .topbar { height: 60px; padding-inline: 14px; }
  body.app-bg .ticker { margin: 12px 14px 0; }
  body.app-bg .hero { margin: 14px 14px 0; padding: 22px; border-radius: 22px; }
  body.app-bg .hero h2 { font-size: 23px; }
  body.app-bg .hero-head { align-items: flex-start; }
  body.app-bg .hero-user { gap: 10px; }
  body.app-bg .hero .pill { padding: 7px 11px; font-size: 12px; }
  body.app-bg .hero-meta { margin-top: 20px; gap: 8px; }
  body.app-bg .hero-meta span { padding: 9px 10px; }
  body.app-bg .hero-meta b { display: block; margin: 3px 0 0; }
  body.app-bg .hero-balances { gap: 8px; }
  body.app-bg .hero-balances > div { padding: 12px; border-radius: 14px; }
  body.app-bg .hero-balances strong { font-size: clamp(17px, 5vw, 22px); }
  body.app-bg .avatar-mid { width: 48px; height: 48px; }
  body.app-bg .member-quota-strip { padding: 17px; }
  body.app-bg .grid-icons.real-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.app-bg .icon-card { min-height: 126px; padding: 15px 8px; border-radius: 18px; }
  body.app-bg .icon-card span { width: 48px; height: 48px; }
  body.app-bg .icon-card .ui-icon { width: 23px; height: 23px; }
  body.app-bg .partner-preview { margin-top: 18px; padding: 19px 16px 20px; border-radius: 19px; }
  body.app-bg .partner-preview h2 { font-size: 19px; }
  body.app-bg .partner-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.app-bg .artist-preview-card { aspect-ratio: 4 / 5; border-radius: 13px; }
  body.app-bg .artist-preview-card figcaption { right: 11px; bottom: 12px; left: 11px; }
  body.app-bg .artist-preview-card b { font-size: 17px; }
  body.app-bg .artist-preview-card small { font-size: 9px; }
  body.app-bg .artist-preview-card figcaption span { margin-top: 6px; padding: 4px 7px; font-size: 9px; }
  body.app-bg .table-card { padding: 18px !important; }
  body.app-bg .bottom-nav { bottom: 0; width: 100%; height: calc(68px + env(safe-area-inset-bottom, 0px)); padding: 6px 8px env(safe-area-inset-bottom, 0px); border-radius: 19px 19px 0 0; }
  body.app-bg .bottom-nav a .ui-icon { width: 21px; height: 21px; }
  body.app-bg .bottom-nav a span { font-size: 10px; }
  body.app-bg .float-chat { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body.auth-v26-register-bg { padding: 15px 12px 28px; }
  body.auth-v26-register-bg .auth-v26-register-card { padding: 24px 18px; border-radius: 24px; }
  body.auth-v26-register-bg .auth-v24-title-icon { width: 54px; height: 54px; border-radius: 17px; }
  body.login-v31-bg .login-v31-card { padding: 32px 20px 26px; border-radius: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  body.app-bg .icon-card, body.app-bg .primary, body.app-bg .grab-button,
  body.app-bg .quota-grab-link { transition: none; }
}

/* Wallet: balance, payout and transaction history */
body.wallet-page [hidden] { display: none !important; }
body.wallet-page .wallet-main { padding-top: 20px; }
body.wallet-page .wallet-overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
body.wallet-page .wallet-balance-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 170px; padding: 25px 28px; color: #fff; border-radius: 22px; background: linear-gradient(120deg,#123769,#1c58bd 68%,#337cf0); box-shadow: 0 16px 36px rgba(31,81,171,.18); }
body.wallet-page .wallet-balance-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: #d9e8ff; }
body.wallet-page .wallet-currency { padding: 4px 8px; border: 1px solid #ffffff55; border-radius: 999px; color: #fff; font-size: 10px; letter-spacing: .08em; }
body.wallet-page .wallet-balance-card strong { display: block; margin-top: 13px; color: #fff; font-size: clamp(27px,3vw,38px); line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.wallet-page .wallet-balance-card small { margin-top: 13px; color: #d8e7ff; font-size: 11px; }
body.wallet-page .wallet-frozen-grid { display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 12px; }
body.wallet-page .wallet-frozen-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 15px 18px; border: 1px solid #e3eaf4; border-radius: 18px; background: #fff; box-shadow: var(--yp-shadow); }
body.wallet-page .wallet-frozen-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #eff5ff; font-size: 19px; }
body.wallet-page .wallet-frozen-card:nth-child(2) .wallet-frozen-icon { background: #f1f7f5; }
body.wallet-page .wallet-frozen-card div { display: flex; flex-direction: column; min-width: 0; }
body.wallet-page .wallet-frozen-card div>span { color: #667a97; font-size: 12px; }
body.wallet-page .wallet-frozen-card strong { margin-top: 4px; color: #233b5e; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.wallet-page .wallet-frozen-card small { margin-top: 3px; color: #93a0b2; font-size: 10px; }
body.wallet-page .wallet-payout-card { padding: 17px 20px; }
body.wallet-page .wallet-payout-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
body.wallet-page .wallet-payout-icon { display: grid; flex: none; place-items: center; width: 47px; height: 47px; border-radius: 14px; background: #eff5ff; font-size: 22px; }
body.wallet-page .wallet-payout-info { min-width: 0; flex: 1; }
body.wallet-page .wallet-payout-info h2 { margin: 0 0 3px; color: #203656; font-size: 16px; }
body.wallet-page .wallet-payout-info strong { display: block; color: #244469; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.wallet-page .wallet-payout-info strong span { color: #6f8098; font-weight: 600; }
body.wallet-page .wallet-payout-info small { display: block; margin-top: 2px; color: #8998ab; font-size: 10px; }
body.wallet-page .wallet-payout-link { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 5px; min-width: 62px; min-height: 44px; padding: 8px 10px; border: 1px solid #d9e5fa; border-radius: 12px; background: #f4f8ff; color: #245cc7; font-size: 12px; font-weight: 800; text-decoration: none; }
body.wallet-page .wallet-payout-link span { font-size: 20px; line-height: 1; }
body.wallet-page .wallet-withdraw-panel, body.wallet-page .wallet-records-panel, body.wallet-page .wallet-ledger-panel { padding: 21px 22px; }
body.wallet-page .wallet-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.wallet-page .wallet-section-head h2 { margin: 0; color: #203656; font-size: 20px; }
body.wallet-page .wallet-section-head>span { color: #6f83a4; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
body.wallet-page .wallet-section-head>a { color: #2b62c9; font-size: 12px; font-weight: 750; text-decoration: none; }
body.wallet-page .wallet-section-head>small { color: #8a98ab; font-size: 11px; }
body.wallet-page .wallet-task-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid #d8e7ff; border-radius: 14px; background: #f5f9ff; }
body.wallet-page .wallet-task-progress.is-ready { border-color: #bde5ca; background: #f2fcf5; }
body.wallet-page .wallet-task-progress.is-pending { border-color: #f3d69a; background: #fffaf0; }
body.wallet-page .wallet-task-progress div { display: flex; flex-direction: column; gap: 3px; }
body.wallet-page .wallet-task-progress b { color: #244469; font-size: 13px; }
body.wallet-page .wallet-task-progress small { color: #7587a1; font-size: 11px; }
body.wallet-page .wallet-task-progress>span { color: #167447; font-size: 11px; font-weight: 750; text-align: right; }
body.wallet-page .wallet-task-progress.is-pending>span { color: #a66a16; }
body.wallet-page .wallet-withdraw-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 18px; }
body.wallet-page .wallet-withdraw-summary>div { min-width: 0; padding: 12px 14px; border: 1px solid #e9eef5; border-radius: 13px; background: #f9fbfe; }
body.wallet-page .wallet-withdraw-summary span { display: block; color: #8090a5; font-size: 11px; }
body.wallet-page .wallet-withdraw-summary b { display: block; margin-top: 5px; color: #243c5d; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.wallet-page .wallet-withdraw-form { display: grid; gap: 8px; max-width: 560px; }
body.wallet-page .wallet-withdraw-form>label { color: #38506f; font-size: 12px; font-weight: 750; }
body.wallet-page .wallet-amount-control { display: flex; align-items: center; min-height: 48px; border: 1px solid #dce6f3; border-radius: 12px; background: #fbfdff; }
body.wallet-page .wallet-amount-control:focus-within { border-color: #6392e7; box-shadow: 0 0 0 3px rgba(53,115,225,.12); }
body.wallet-page .wallet-amount-control>span { padding-left: 14px; color: #566c89; font-size: 14px; font-weight: 800; }
body.wallet-page .wallet-amount-control input { flex: 1; width: 100%; min-width: 0; height: 46px; margin: 0; padding: 8px 7px; border: 0; outline: 0; background: transparent; font-variant-numeric: tabular-nums; }
body.wallet-page .wallet-amount-control input::-webkit-inner-spin-button, body.wallet-page .wallet-amount-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.wallet-page .wallet-amount-control input[type=number] { -moz-appearance: textfield; appearance: textfield; }
body.wallet-page .wallet-amount-control input:focus { outline: 0; }
body.wallet-page .wallet-amount-control button { align-self: stretch; flex: none; min-width: 84px; padding: 0 12px; border: 0; border-left: 1px solid #e0e8f3; border-radius: 0 11px 11px 0; background: #eff5ff; color: #275ec6; font-size: 12px; font-weight: 800; cursor: pointer; }
body.wallet-page .wallet-amount-control button:disabled { color: #9aa8bb; cursor: not-allowed; }
body.wallet-page #wallet-withdraw-password { width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; }
body.wallet-page #wallet-pin-hint { color: #8997aa; font-size: 11px; }
body.wallet-page .wallet-submit { min-height: 48px; margin-top: 6px; font-size: 14px; }
body.wallet-page .wallet-withdraw-note { margin: 11px 0 0; color: #70819a; font-size: 11px; line-height: 1.5; }
body.wallet-page .wallet-withdrawal-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
body.wallet-page .wallet-withdrawal-item { min-width: 0; padding: 15px; border: 1px solid #e4ebf5; border-radius: 14px; background: #fbfdff; }
body.wallet-page .wallet-withdrawal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
body.wallet-page .wallet-withdrawal-top div { min-width: 0; }
body.wallet-page .wallet-withdrawal-top strong { display: block; color: #244c92; font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.wallet-page .wallet-withdrawal-top small { display: block; margin-top: 6px; color: #8190a5; font-size: 11px; overflow-wrap: anywhere; }
body.wallet-page .wallet-withdrawal-top .status-chip { flex: none; }
body.wallet-page .wallet-record-note { margin: 11px 0 0; color: #5f7089; font-size: 11px; line-height: 1.5; }
body.wallet-page .wallet-record-link { display: inline-flex; align-items: center; min-height: 34px; margin-top: 8px; color: #2b62c9; font-size: 12px; font-weight: 750; text-decoration: none; }
body.wallet-page .wallet-record-link span { margin-left: 3px; font-size: 17px; }
body.wallet-page .wallet-ledger-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
body.wallet-page .wallet-ledger-filters { display: flex; gap: 6px; }
body.wallet-page .wallet-ledger-filters button { min-width: 52px; min-height: 35px; padding: 6px 12px; border: 1px solid #e0e8f4; border-radius: 999px; background: #f7faff; color: #70819a; font-size: 12px; font-weight: 750; cursor: pointer; }
body.wallet-page .wallet-ledger-filters button[aria-pressed="true"] { border-color: #2967d5; background: #2967d5; color: #fff; }
body.wallet-page #wallet-ledger-count { color: #8190a5; font-size: 11px; }
body.wallet-page .wallet-ledger-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
body.wallet-page .wallet-ledger-item { min-width: 0; padding: 15px; border: 1px solid #e3eaf4; border-radius: 14px; background: #fff; }
body.wallet-page .wallet-ledger-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body.wallet-page .wallet-ledger-top>div { min-width: 0; }
body.wallet-page .wallet-ledger-top b { display: block; color: #253b59; font-size: 14px; }
body.wallet-page .wallet-ledger-top time { display: block; margin-top: 5px; color: #8998ab; font-size: 10px; font-variant-numeric: tabular-nums; }
body.wallet-page .wallet-ledger-top strong { flex: none; color: #2d4a70; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.wallet-page .wallet-ledger-top strong.is-income { color: #0f8a5b; }
body.wallet-page .wallet-ledger-top strong.is-expense { color: #c6534e; }
body.wallet-page .wallet-ledger-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #eef2f7; }
body.wallet-page .wallet-ledger-meta span { color: #8b9aae; font-size: 11px; }
body.wallet-page .wallet-ledger-meta b { margin-left: 4px; color: #526783; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.wallet-page .wallet-ledger-note { margin-top: 8px; color: #657b98; font-size: 11px; }
body.wallet-page .wallet-ledger-note summary { display: inline-flex; align-items: center; min-height: 30px; color: #2d65c5; font-weight: 750; cursor: pointer; }
body.wallet-page .wallet-ledger-note p { margin: 3px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
body.wallet-page .wallet-ledger-more { display: block; width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid #d9e5f8; border-radius: 12px; background: #f4f8ff; color: #2a60bf; font-size: 12px; font-weight: 800; cursor: pointer; }
body.wallet-page .wallet-empty { margin: 8px 0; padding: 15px; border-radius: 12px; background: #f7faff; color: #7a8ca5; font-size: 12px; text-align: center; }
.bank-page h2::before, .bank-page .bank-bound b::before { content: none; }
@media (max-width: 700px) {
  body.wallet-page .wallet-main { padding-top: 14px; }
  body.wallet-page .wallet-overview { grid-template-columns: minmax(0,1fr); gap: 9px; }
  body.wallet-page .wallet-balance-card { min-height: 142px; padding: 20px 21px; border-radius: 19px; }
  body.wallet-page .wallet-balance-card strong { font-size: clamp(25px,7.5vw,32px); }
  body.wallet-page .wallet-frozen-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; gap: 9px; }
  body.wallet-page .wallet-frozen-card { display: block; padding: 13px; border-radius: 16px; }
  body.wallet-page .wallet-frozen-icon { width: 32px; height: 32px; margin-bottom: 7px; font-size: 16px; }
  body.wallet-page .wallet-frozen-card strong { font-size: clamp(13px,3.8vw,16px); }
  body.wallet-page .wallet-frozen-card small { font-size: 9px; }
  body.wallet-page .wallet-payout-card { padding: 15px; }
  body.wallet-page .wallet-withdraw-panel, body.wallet-page .wallet-records-panel, body.wallet-page .wallet-ledger-panel { padding: 18px 15px; }
  body.wallet-page .wallet-withdrawal-list, body.wallet-page .wallet-ledger-list { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 390px) {
  body.wallet-page .wallet-payout-main { gap: 9px; }
  body.wallet-page .wallet-payout-icon { width: 40px; height: 40px; }
  body.wallet-page .wallet-payout-info h2 { font-size: 14px; }
  body.wallet-page .wallet-payout-info strong { font-size: 12px; }
  body.wallet-page .wallet-payout-link { min-width: 50px; padding: 7px; }
  body.wallet-page .wallet-ledger-top strong { font-size: 15px; }
  body.wallet-page .wallet-ledger-meta { gap: 4px 10px; }
}

/* Mobile login overflow fix: constrain the form grid to the card's content width. */
@media (max-width: 760px) {
  body.login-v31-bg .login-v31-card,
  body.login-v31-bg .login-v31-form,
  body.login-v31-bg .login-v31-input,
  body.login-v31-bg .login-v31-submit {
    min-width: 0;
    max-width: 100%;
  }
  body.login-v31-bg .login-v31-form {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  body.login-v31-bg .login-v31-input,
  body.login-v31-bg .login-v31-submit {
    width: 100%;
    box-sizing: border-box;
  }
}
