/* 星屿 FanClub · 粉丝端样式
   移动端优先；桌面预览时居中成手机宽度。所有颜色走 CSS 变量，换肤只改 :root。 */

:root {
  --bg: #0b0c17;
  --bg-2: #12142a;
  --card: #181a30;
  --card-2: #1f2140;
  --line: rgba(255, 255, 255, .08);
  --txt: #f0f1fa;
  --txt-2: #a6abc8;
  --txt-3: #6f759a;
  --pri: #7c6cff;
  --pri-2: #a68bff;
  --gold: #ffce6b;
  --ok: #31d0aa;
  --warn: #ffb13b;
  --err: #ff6b81;
  --grad: linear-gradient(135deg, #7c6cff 0%, #b06cff 50%, #ff6bb8 100%);
  --grad-gold: linear-gradient(135deg, #ffe6a8 0%, #ffce6b 45%, #e0a038 100%);
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --tab-h: 56px;
  --top-h: 50px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--txt);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  overscroll-behavior-y: none;
}
body { display: flex; justify-content: center; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--pri-2); }

.app {
  position: relative; width: 100%; max-width: 460px; min-height: 100%;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(124, 108, 255, .28) 0%, rgba(11, 12, 23, 0) 60%),
    var(--bg);
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, .6);
}

/* ---------------------------------------------------------------- 顶栏 / 底栏 */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: rgba(11, 12, 23, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tb-title { font-size: 16px; font-weight: 700; letter-spacing: .5px; flex: 1; }
.tb-btn {
  width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1;
  display: none; align-items: center; justify-content: center; color: var(--txt-2);
}
.tb-btn.show { display: flex; }
.tb-right { display: flex; gap: 8px; align-items: center; }
.tb-icon { position: relative; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--card); }
.tb-dot { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 9px; background: var(--err); color: #fff; font-size: 10px; line-height: 15px; text-align: center; font-weight: 700; }

.view { flex: 1; padding: 14px 14px calc(var(--tab-h) + 24px); }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; z-index: 30;
  background: rgba(15, 16, 33, .92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--txt-3); font-size: 11px; position: relative; }
.tab i { font-style: normal; font-size: 19px; line-height: 1; }
.tab.on { color: var(--txt); font-weight: 600; }
.tab.on::after { content: ''; position: absolute; top: 4px; width: 20px; height: 3px; border-radius: 2px; background: var(--grad); }
.tab .badge { position: absolute; top: 3px; right: 50%; margin-right: -20px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 9px; background: var(--err); color: #fff; font-size: 10px; line-height: 15px; font-weight: 700; }

/* ---------------------------------------------------------------- 通用元件 */
.sec { margin-bottom: 20px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.sec-h h2 { font-size: 16px; margin: 0; font-weight: 700; }
.sec-h span { font-size: 12px; color: var(--txt-3); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; }
.muted { color: var(--txt-2); font-size: 13px; }
.tiny { font-size: 12px; color: var(--txt-3); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: 12px; background: var(--card-2); font-weight: 600; font-size: 14px; transition: transform .12s, opacity .12s; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(124, 108, 255, .35); }
.btn.gold { background: var(--grad-gold); color: #4a3200; }
.btn.ghost { border: 1px solid var(--line); background: transparent; color: var(--txt-2); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .45; pointer-events: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 6px 13px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--txt-2); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }

.tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.tag.l1 { background: rgba(124, 108, 255, .18); color: var(--pri-2); }
.tag.l2 { background: rgba(255, 206, 107, .16); color: var(--gold); }
.tag.free { background: rgba(49, 208, 170, .14); color: var(--ok); }
.tag.warn { background: rgba(255, 177, 59, .14); color: var(--warn); }

.empty { text-align: center; padding: 46px 20px; color: var(--txt-3); }
.empty i { font-style: normal; font-size: 40px; display: block; margin-bottom: 10px; opacity: .55; }

.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 37%, var(--card) 63%); background-size: 400% 100%; animation: sk 1.3s infinite; border-radius: var(--r-m); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 168px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- 登录 */
.login { padding: 46px 22px 30px; text-align: center; }
.login .logo { width: 78px; height: 78px; border-radius: 26px; margin: 0 auto 16px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 38px; box-shadow: var(--shadow); }
.login h1 { font-size: 22px; margin: 0 0 6px; }
.login p { color: var(--txt-2); font-size: 13px; margin: 0 0 28px; }
.field { margin-bottom: 12px; text-align: left; }
.field > label { display: block; font-size: 12px; color: var(--txt-3); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; outline: none; font-size: 15px;
}
.field input:focus, .field textarea:focus { border-color: var(--pri); }
.field-inline { display: flex; gap: 8px; }
.field-inline .grow { flex: 1; }
.field-inline input { height: 48px; }
.tips { margin-top: 18px; font-size: 12px; color: var(--txt-3); line-height: 1.8; }
.tips b { color: var(--txt-2); }
.lg-links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--txt-3); }
.lg-links span { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lg-links span:active { color: var(--pri-2); }

/* ---------------------------------------------------------------- 内容流 */
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 14px; overflow: hidden; }
.post-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 auto; color: #fff; }
.post-h .avatar { background: var(--grad); }
.post-name { font-weight: 700; font-size: 14px; }
.post-time { font-size: 11px; color: var(--txt-3); }
.post-title { padding: 0 14px 8px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.post-body { padding: 0 14px 12px; font-size: 14px; color: var(--txt-2); white-space: pre-wrap; word-break: break-word; }
.post-media { position: relative; background: #0f1024; }
.post-media img { width: 100%; max-height: 420px; object-fit: cover; }
.media-badge { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 20px; font-size: 11px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.poster { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #232647, #14152a); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.poster .play { position: relative; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid rgba(255, 255, 255, .3); }
.poster-note { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--txt-3); }
.letter { padding: 18px 16px; background: repeating-linear-gradient(#fdf6e3, #fdf6e3 27px, #f2e7cd 28px); color: #4a3f2a; border-radius: var(--r-s); font-size: 15px; line-height: 27px; font-family: "Kaiti SC", "STKaiti", KaiTi, serif; }
.voice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 14px 12px; background: var(--card-2); border-radius: 12px; }
.voice .vp { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.wave { display: flex; align-items: center; gap: 2px; height: 30px; flex: 1; }
.wave s { flex: 1; background: rgba(124, 108, 255, .5); border-radius: 2px; text-decoration: none; min-width: 2px; }
.wave s.on { background: var(--pri); }

.post-lock { position: relative; }
.post-lock .blur { filter: blur(17px) saturate(.75); transform: scale(1.06); }
.lock-mask {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, rgba(11, 12, 23, .35), rgba(11, 12, 23, .82)); text-align: center; padding: 0 18px;
}
.lock-mask .ico { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; font-size: 21px; border: 1px solid rgba(255, 255, 255, .18); }
.lock-mask p { margin: 0; font-size: 13px; color: var(--txt-2); }
.lock-hint { padding: 12px 14px; font-size: 13px; color: var(--txt-2); border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-f { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--txt-3); font-size: 13px; }
.post-f button { display: flex; align-items: center; gap: 5px; color: inherit; font-size: 13px; }
.post-f button.on { color: var(--err); }

/* 详情 */
.detail-media { border-radius: var(--r-m); overflow: hidden; margin-bottom: 12px; }
.cm { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cm:last-child { border-bottom: 0; }
.cm .avatar { width: 32px; height: 32px; font-size: 15px; background: var(--card-2); }
.cm-b { font-size: 14px; margin: 0 0 3px; }
.cm-x { font-size: 14px; line-height: 1.55; word-break: break-word; }
.cm-t { font-size: 11px; color: var(--txt-3); }
.cm-input { display: flex; gap: 8px; margin-top: 12px; }
.cm-input input { flex: 1; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; outline: none; }

/* ---------------------------------------------------------------- 泡泡 */
.bsub { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bsub .avatar { width: 48px; height: 48px; font-size: 24px; }
.bsub .meta { flex: 1; min-width: 0; }
.bsub .nm { font-weight: 700; }
.bsub .last { font-size: 12px; color: var(--txt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.bsub .dt { font-size: 11px; color: var(--txt-3); }
.bsub .unread { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--err); color: #fff; font-size: 11px; line-height: 19px; text-align: center; font-weight: 700; }

.chat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.msg { display: flex; gap: 8px; max-width: 82%; }
.msg .avatar { width: 32px; height: 32px; font-size: 15px; }
.msg .bb { padding: 10px 13px; border-radius: 16px; background: var(--card); font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.msg .tm { font-size: 10px; color: var(--txt-3); margin-top: 4px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bb { background: var(--grad); color: #fff; }
.msg.photo .bb { padding: 4px; overflow: hidden; }
.msg.photo img { border-radius: 12px; }
.day { text-align: center; font-size: 11px; color: var(--txt-3); margin: 4px 0; }
.chat-input { position: sticky; bottom: calc(var(--tab-h) + 8px); display: flex; gap: 8px; padding-top: 8px; background: linear-gradient(180deg, rgba(11, 12, 23, 0), var(--bg) 30%); }
.chat-input input { flex: 1; padding: 13px 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); outline: none; }
.chat-input .btn { border-radius: 24px; }
.typing { font-size: 12px; color: var(--txt-3); padding-left: 42px; }

/* ---------------------------------------------------------------- 商城 */
.goods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; position: relative; }
.gcard .cover { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 54px; background: linear-gradient(150deg, #22243f, #16172c); }
.gcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.gcard .in { padding: 10px 11px 12px; }
.gcard .nm { font-size: 13.5px; font-weight: 600; line-height: 1.4; height: 38px; overflow: hidden; }
.gcard .sub { font-size: 11px; color: var(--txt-3); height: 16px; overflow: hidden; }
.gcard .pr { margin-top: 6px; display: flex; align-items: baseline; gap: 3px; }
.gcard .pr b { font-size: 17px; color: var(--err); }
.gcard .pr span { font-size: 11px; color: var(--err); }
.gcard .pr i { font-style: normal; font-size: 11px; color: var(--txt-3); margin-left: auto; }
.ribbon { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; background: var(--grad-gold); color: #4a3200; z-index: 2; }
.gcard.off .cover { filter: grayscale(1) brightness(.5); }
.glock { position: absolute; inset: 0 auto auto 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; background: linear-gradient(180deg, rgba(11, 12, 23, 0), rgba(11, 12, 23, .7)); font-size: 12px; color: var(--txt-2); }

.pd-head { display: flex; gap: 14px; }
.pd-cover { width: 132px; height: 132px; border-radius: var(--r-m); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 58px; background: linear-gradient(150deg, #22243f, #16172c); overflow: hidden; }
.pd-price { font-size: 26px; font-weight: 800; color: var(--err); }
.pd-price small { font-size: 13px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pd-meta span { font-size: 12px; color: var(--txt-2); background: var(--card-2); padding: 4px 10px; border-radius: 8px; }
.count { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: fit-content; }
.count button { width: 36px; height: 34px; background: var(--card-2); font-size: 17px; }
.count span { width: 46px; text-align: center; font-size: 15px; }
.bars { position: sticky; bottom: var(--tab-h); margin: 0 -14px; padding: 10px 14px; background: rgba(15, 16, 33, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }

.order { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order .cover { width: 56px; height: 56px; border-radius: 10px; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: 0 0 auto; overflow: hidden; }
.st { font-size: 12px; font-weight: 700; }
.st.paid { color: var(--warn); }
.st.shipped, .st.done { color: var(--ok); }
.st.cancelled { color: var(--txt-3); }

/* ---------------------------------------------------------------- 应援投票 */
.campaign { background: var(--grad); border-radius: var(--r-m); padding: 16px; box-shadow: var(--shadow); }
.campaign h2 { margin: 0 0 6px; font-size: 18px; }
.campaign p { margin: 0; font-size: 12.5px; opacity: .92; line-height: 1.6; }
.campaign .cd { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: rgba(0, 0, 0, .22); padding: 5px 11px; border-radius: 20px; }
.cand { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.cand .rk { width: 26px; text-align: center; font-size: 16px; font-weight: 800; color: var(--txt-3); flex: 0 0 auto; }
.cand.top .rk { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cand .avatar { width: 44px; height: 44px; font-size: 22px; }
.cand .info { flex: 1; min-width: 0; }
.cand .nm { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cand .bar { height: 6px; border-radius: 3px; background: var(--card-2); margin-top: 7px; overflow: hidden; }
.cand .bar s { display: block; height: 100%; background: var(--grad); border-radius: 3px; text-decoration: none; transition: width .5s; }
.cand .num { display: flex; justify-content: space-between; font-size: 11px; color: var(--txt-3); margin-top: 4px; }
.cand .btn { flex: 0 0 auto; }

/* ---------------------------------------------------------------- 我的 */
.me-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.me-top .avatar { width: 56px; height: 56px; font-size: 27px; background: var(--card-2); border: 2px solid var(--line); }
.me-name { font-size: 18px; font-weight: 700; }

.mcard { position: relative; border-radius: var(--r-l); padding: 18px; overflow: hidden; background: linear-gradient(135deg, #2b2550, #171730); border: 1px solid rgba(255, 255, 255, .1); }
.mcard.l1 { background: linear-gradient(135deg, #33296e, #1b1a35); }
.mcard.l2 { background: var(--grad-gold); color: #3b2a00; }
.mcard.l2 .mc-lv, .mcard.l2 .mc-tip, .mcard.l2 .mc-id { color: #6b4d10; }
.mc-lv { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.mc-tip { font-size: 12px; color: var(--txt-2); margin-top: 5px; }
.mc-id { position: absolute; right: 16px; bottom: 14px; font-size: 11px; color: var(--txt-3); letter-spacing: 1px; }
.mcard::after { content: ''; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .07); }

.wallet { display: flex; gap: 10px; margin-top: 12px; }
.wallet .box { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; }
.wallet .k { font-size: 11px; color: var(--txt-3); }
.wallet .v { font-size: 20px; font-weight: 800; margin-top: 2px; }
.list-i { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.list-i:last-child { border-bottom: 0; }
.list-i .ii { width: 32px; text-align: center; font-size: 17px; }
.list-i .arw { color: var(--txt-3); font-size: 18px; }
.log-i { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.log-i:last-child { border-bottom: 0; }
.log-i b.pos { color: var(--ok); }
.log-i b.neg { color: var(--err); }
.log-i .d { font-size: 11px; color: var(--txt-3); margin-top: 2px; }

/* ---------------------------------------------------------------- 弹层 */
.layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.mask { position: absolute; inset: 0; background: rgba(5, 6, 15, .68); backdrop-filter: blur(2px); opacity: 0; transition: opacity .22s; pointer-events: auto; }
.mask.on { opacity: 1; }
.sheet {
  position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 460px; transform: translate(-50%, 105%);
  background: var(--bg-2); border-radius: 22px 22px 0 0; padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto; transition: transform .26s cubic-bezier(.2, .9, .3, 1); pointer-events: auto;
  border-top: 1px solid var(--line);
}
.sheet.on { transform: translate(-50%, 0); }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; }
.sheet .sh-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--txt-3); }
.plan { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--card); }
.plan.on { border-color: var(--pri); background: rgba(124, 108, 255, .1); }
.plan .pv { font-size: 21px; font-weight: 800; color: var(--err); width: 88px; flex: 0 0 auto; }
.plan .pv small { font-size: 12px; font-weight: 400; }
.plan .pn { font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.plan .pp { font-size: 11.5px; color: var(--txt-3); line-height: 1.5; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12px; color: var(--txt-3); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 12px 13px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; outline: none; font-size: 15px; }
.form-row textarea { min-height: 78px; resize: vertical; }

.toast {
  position: fixed; left: 50%; top: 76px; transform: translate(-50%, -18px); z-index: 90;
  max-width: 330px; padding: 11px 18px; border-radius: 24px; font-size: 13.5px; text-align: center;
  background: rgba(28, 30, 55, .96); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 107, 129, .5); color: #ffd8de; }
.toast.ok { border-color: rgba(49, 208, 170, .5); color: #c6fff0; }

.banner { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(124, 108, 255, .12); border: 1px solid rgba(124, 108, 255, .3); font-size: 13px; margin-bottom: 14px; }
.banner.gold { background: rgba(255, 206, 107, .1); border-color: rgba(255, 206, 107, .32); }
.banner .btn { margin-left: auto; flex: 0 0 auto; }

.hero { position: relative; border-radius: var(--r-l); overflow: hidden; margin-bottom: 14px; background: var(--grad); padding: 18px; }
.hero h2 { margin: 0; font-size: 19px; }
.hero p { margin: 4px 0 0; font-size: 12.5px; opacity: .93; }
.hero .glow { position: absolute; right: -20px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .13); filter: blur(6px); }

@media (max-width: 360px) {
  .goods { grid-template-columns: 1fr; }
  .view { padding: 12px 12px calc(var(--tab-h) + 24px); }
}
