/* ===== 北抖AI H5 · 设计规范（对齐小程序现版） =====
   文字 #1D1D1F · 次级 #7A7A7A · 弱 #B0B0B8 · 卡片 #F5F5F7 · 主色 #4F46E5 · 辅 #6E5BFF
   成功 #22A06B · 危险 #FF3B30 · 页面底 #F7F7F9 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; } /* 遮罩类元素 display:flex 会顶掉 hidden 属性，必须强制 */
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: #E9E9EE; color: #1D1D1F; font-size: 15px; line-height: 1.5;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: #F7F7F9; position: relative; display: flex; flex-direction: column; }
.view { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img, video { display: block; max-width: 100%; }
.muted { color: #7A7A7A; }
.small { font-size: 12px; }

/* ===== 顶栏 ===== */
.hdr {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #EFEFF2;
}
.hdr .back { font-size: 22px; line-height: 1; width: 28px; color: #1D1D1F; }
.hdr .t { font-size: 17px; font-weight: 600; }
.hdr .sp { flex: 1; }
.hdr .logo { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.hdr .sub { font-size: 11px; color: #7A7A7A; }

/* ===== 通用卡片 / 区块 ===== */
.page { padding: 14px 16px; }
.card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.card.tight { padding: 12px 14px; }
.sec-h { font-size: 13px; font-weight: 600; color: #7A7A7A; margin: 4px 2px 8px; }
.btn {
  display: block; width: 100%; padding: 14px; border-radius: 14px; font-size: 16px; font-weight: 600;
  background: #4F46E5; color: #fff; text-align: center; transition: opacity .15s;
}
.btn:active { opacity: .85; }
.btn[disabled] { opacity: .45; }
.btn.ghost { background: #fff; color: #1D1D1F; border: 1px solid #E4E4EA; }
.btn.black { background: #1D1D1F; }
.btn.mini { display: inline-block; width: auto; padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.link { color: #4F46E5; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #F3F1FF; color: #4F46E5; }
.tag.ok { background: #EAF7EE; color: #22A06B; }
.tag.warn { background: #FFF3E0; color: #C77700; }
.tag.err { background: #FFECEC; color: #FF3B30; }
.tag.off { background: #F0F0F2; color: #8A8A94; }

/* ===== 开关 ===== */
.switch { width: 46px; height: 27px; border-radius: 14px; background: #E4E4EA; position: relative; transition: background .2s; flex: none; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 23px; height: 23px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: #22A06B; }
.switch.on .knob { left: 21px; }

/* ===== 输入 ===== */
.input, .textarea {
  width: 100%; border: 1px solid #E4E4EA; border-radius: 12px; padding: 12px 14px; font-size: 15px;
  background: #FAFAFC; outline: none; font-family: inherit; color: #1D1D1F;
}
.input:focus, .textarea:focus { border-color: #4F46E5; background: #fff; }
/* 登录页品牌区：logo 必须 margin:auto 居中
   （全局 img{display:block} 会让父级的 text-align:center 对它失效，2026-09-21 北斋指出） */
.lg-logo { display: block; width: 64px; height: 64px; border-radius: 16px; margin: 0 auto; }

/* 邮箱输入：账号 + 后缀同框，后缀点开贴着输入框的小弹层
   （2026-09-21 改版：原先用原生 <select>，在微信 webview 里会被系统接管成整屏选择器，
     样式完全不可控、观感很糙，故改为自定义弹层） */
.mail-field {
  display: flex; align-items: center; position: relative;
  height: 45px; padding: 0 4px 0 14px;
  border: 1px solid #E4E4EA; border-radius: 12px; background: #FAFAFC;
}
.mail-field:focus-within, .mail-field.open { border-color: #4F46E5; background: #fff; }
.mail-acc {
  flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 15px; color: #1D1D1F;
}
.mail-sep { flex: none; width: 1px; height: 20px; margin: 0 2px 0 8px; background: #E4E4EA; }
.mail-suffix {
  flex: none; display: flex; align-items: center; gap: 5px;
  height: 37px; padding: 0 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #4F46E5; white-space: nowrap;
}
.mail-suffix:active { background: #F3F1FF; }
.mail-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #8A8A94; transition: transform .15s;
}
.mail-field.open .mail-caret { transform: rotate(180deg); }

/* 后缀弹层：贴着输入框、限高内滚，替代原生整屏选择器 */
.mail-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid #EFEFF2; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(29,29,31,.12); overflow: hidden;
}
.mail-pop-in { max-height: 218px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px; }
/* 「其他邮箱」钉在底部固定可见：它埋在可滚列表末尾时用户基本发现不了 */
.mail-pop-foot { padding: 4px; border-top: 1px solid #EFEFF2; background: #fff; }
.mail-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 11px 12px; border-radius: 10px;
  font-size: 15px; color: #1D1D1F; text-align: left;
}
.mail-opt:active { background: #F5F5F7; }
.mail-opt.on { background: #F7F7FB; color: #4F46E5; font-weight: 600; }
.mail-opt .tick { font-size: 13px; color: #4F46E5; visibility: hidden; }
.mail-opt.on .tick { visibility: visible; }
.textarea { min-height: 88px; resize: vertical; }
input[type=file] { display: none; }
/* 去掉 number 输入框的上下微调箭头（验证码等场景不需要，且会挤占输入空间） */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ===== TabBar ===== */
.tabbar {
  position: sticky; bottom: 0; z-index: 20; display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid #EFEFF2; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar.hidden { display: none; }
.tabbar .ti { flex: 1; text-align: center; font-size: 11px; color: #8A8A94; }
.tabbar .ti svg { width: 24px; height: 24px; display: block; margin: 0 auto 2px; }
.tabbar .ti.on { color: #4F46E5; font-weight: 600; }

/* ===== 广场 ===== */
/* 搜索框（对齐小程序广场） */
/* 首页横版活动 banner：标题与搜索之间，2:1，与搜索框同宽同边距 */
.home-banner { position: relative; margin: 10px 16px 0; border-radius: 16px; overflow: hidden; background: #EEF1FA; }
.home-banner::before { content: ''; display: block; padding-top: 50%; }
.home-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.search { display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; padding: 0 14px; height: 38px; border-radius: 19px; background: #F5F5F7; }
.search-icon { width: 16px; height: 16px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B0B0B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20.5 20.5l-4-4'/%3E%3C/svg%3E"); }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; color: #1D1D1F; -webkit-appearance: none; min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: #B0B0B8; }
.search .clear { width: 18px; height: 18px; border-radius: 50%; background: #C4C4CC; color: #fff; font-size: 13px; line-height: 18px; text-align: center; flex: none; }
.plaza-tabs { display: flex; gap: 18px; padding: 12px 16px 4px; font-size: 17px; font-weight: 600; color: #8A8A94; }
.plaza-tabs .on { color: #1D1D1F; position: relative; }
.plaza-tabs .on::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -4px; height: 3px; border-radius: 2px; background: #4F46E5; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 14px; border-radius: 16px; background: #fff; color: #5A5A66; font-size: 13px; }
.chip.on { background: #1D1D1F; color: #fff; }
.waterfall { display: flex; gap: 10px; padding: 8px 16px 16px; align-items: flex-start; }
.wcol { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tcard { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.tcard .cover { position: relative; width: 100%; background: #0B0B0F; border-radius: 0; overflow: hidden; }
.tcard .cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.tcard .cover video { width: 100%; height: 100%; position: absolute; top: 0; left: 0; object-fit: contain; }
.tcard .ratio916 { padding-top: 177.78%; }
.tcard .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.35);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; padding-left: 3px; /* 视觉居中三角 */
}
/* 内联播放时视频层级 1、加载指示 2、进度条 3 → 收藏键/比例标签必须在最上层，否则点不到 */
.tcard .cover .star { z-index: 4; }
.tcard .cover .aspect-tag { z-index: 4; }
.tcard .star { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; opacity: .3; }
.tcard .star img { width: 18px; height: 18px; position: static; }
.tcard .star:active { opacity: .8; }
.tcard .meta { padding: 10px 12px 12px; }
.tcard .name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.tcard .go { display: block; width: 100%; padding: 8px; border-radius: 10px; background: #4F46E5; color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.tcard.disabled .go { background: #B0B0B8; }
.aspect-tag { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 8px; }

/* ===== 上传 ===== */
/* 上传框：空态 3:4（视频框 16:9），flex 居中 */
.up-box {
  background: #fff; border-radius: 16px; padding: 14px; text-align: center;
  border: 1.5px dashed #D9D9E0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 3 / 4;
}
.up-box.video-box { aspect-ratio: 16 / 9; }
.up-box.filled { aspect-ratio: auto; padding-bottom: 14px; }
.up-box .plus { font-size: 34px; color: #B0B0B8; line-height: 1.2; }
.up-box .tip { font-size: 13px; color: #7A7A7A; margin-top: 4px; }
/* 预览：padding-top 撑比例 + 子元素绝对定位铺满（缺 absolute 会垫出黑块） */
.up-preview { width: 100%; border-radius: 12px; overflow: hidden; background: #0B0B0F; position: relative; }
.up-preview img, .up-preview video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; background: #F0F0F2;
}
.up-preview video { background: #0B0B0F; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.tpl-chip { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.tpl-chip img { width: 40px; height: 52px; border-radius: 8px; object-fit: cover; background: #F0F0F2; }

/* ===== 进度 ===== */
.progress-wrap { background: #fff; border-radius: 16px; padding: 22px 18px; text-align: center; }
.progress-bar { height: 10px; border-radius: 6px; background: #F0F0F2; overflow: hidden; margin: 18px 0 10px; }
.progress-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4F46E5, #6E5BFF); transition: width .6s; }
.spin { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid #E4E4EA; border-top-color: #4F46E5; animation: spin 1s linear infinite; }
/* 生成等待时长提示：独立强调卡（从生成中模块拆出，凸显预计时长） */
.eta-card { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #EEF0FF 0%, #F7F4FF 100%); border-left: 4px solid #4F46E5; box-shadow: 0 2px 10px rgba(79,70,229,.12); }
.eta-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #4F46E5, #6E5BFF); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(79,70,229,.28); }
.eta-main { font-size: 17px; font-weight: 800; color: #3730A3; letter-spacing: .2px; }
.eta-sub { font-size: 12.5px; color: #6B6B7B; margin-top: 3px; }
/* 提交中：进度条呼吸动画（提交阶段无确定进度，用呼吸感表示进行中） */
@keyframes pulseBar { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.row-link { transition: background .15s; }
.row-link:active { background: #F4F4F7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 结果页 ===== */
.player { position: relative; border-radius: 18px; overflow: hidden; background: #0B0B0F; margin-bottom: 14px; }
.player video { width: 100%; display: block; max-height: 72vh; object-fit: contain; background: #0B0B0F; }
.ai-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 12px; }
/* 结果页中央播放键：未播放时显示，播放后隐藏 */
.big-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; padding-left: 4px; background: rgba(15,15,24,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; z-index: 2; }
/* 广场封面内联播放：视频缓冲完才显示（避免黑屏），缓冲期间显示转圈 */
.cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s; z-index: 1; }
.cover-video.on { opacity: 1; }
.cover-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.22); z-index: 2; }
.mini-spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .9s linear infinite; }
/* 玻璃质感播放进度条：半透明毛玻璃，紧致贴视频底部 */
.glass-bar { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 9px; background: rgba(15,15,24,.42); backdrop-filter: blur(10px) saturate(150%); -webkit-backdrop-filter: blur(10px) saturate(150%); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 3; }
.glass-bar .g-track { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; cursor: pointer; }
.glass-bar .g-fill { height: 100%; width: 0%; border-radius: 2px; background: linear-gradient(90deg, #A5B4FC, #FFFFFF); }
.glass-bar .g-time { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.95); letter-spacing: .3px; white-space: nowrap; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.copy-card { background: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.copy-card .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F0F0F2; }
.copy-card .row:last-child { border-bottom: 0; }
.copy-card .lbl { flex: none; width: 40px; font-size: 13px; color: #7A7A7A; padding-top: 2px; }
.copy-card .val { flex: 1; font-size: 14px; word-break: break-all; }
.copy-card .cp { flex: none; font-size: 12px; color: #4F46E5; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; }
.topics .t { background: #F3F1FF; color: #4F46E5; font-size: 12px; padding: 3px 9px; border-radius: 8px; }

/* ===== 我的 ===== */
.me-head { display: flex; align-items: center; gap: 14px; padding: 20px 16px 6px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #E4E4EA; }
/* 身份徽章：普通=浅灰 / 会员=银色渐变 / 合伙人=金色渐变+光晕 */
.role-badge { margin-left: auto; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; letter-spacing: .5px; }
.role-badge .rb-ic { font-size: 12px; line-height: 1; }
.role-badge.rb-normal { background: #F1F2F5; color: #8A8F99; }
.role-badge.rb-member { background: linear-gradient(135deg, #F4F7FB 0%, #C9D1DC 55%, #A9B4C2 100%); color: #3E4A5A; box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 1px 4px rgba(62,74,90,.28); }
.role-badge.rb-partner { background: linear-gradient(135deg, #FFF4D8 0%, #F7CE68 55%, #E8A93D 100%); color: #6B430A; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 2px 9px rgba(232,169,61,.5); }
.quota-hero { margin: 14px 16px; background: linear-gradient(135deg, #4F46E5, #6E5BFF); border-radius: 18px; padding: 18px; color: #fff; }
.quota-hero .num { font-size: 34px; font-weight: 700; }
.asset-grid { display: flex; background: #fff; border-radius: 16px; margin: 0 16px 12px; overflow: hidden; }
.asset-grid .ai { flex: 1; text-align: center; padding: 14px 0; position: relative; }
.asset-grid .ai + .ai { border-left: 1px solid #F0F0F2; }
.asset-grid .n { font-size: 19px; font-weight: 700; }
.asset-grid .l { font-size: 12px; color: #7A7A7A; }
.menu { background: #fff; border-radius: 16px; margin: 0 16px 12px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #F5F5F7; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .m-label { flex: 1; font-size: 15px; }
.menu-row .arrow { color: #C4C4CC; font-size: 18px; }
.menu-row .ext { font-size: 12px; color: #B0B0B8; }

/* ===== 列表（视频/订单/素材等）===== */
.vcard { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.vcard .th { width: 64px; height: 96px; border-radius: 8px; background: #EDEDEF; object-fit: cover; flex: none; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.empty { text-align: center; color: #B0B0B8; padding: 48px 0 30px; font-size: 13px; }

/* 广场常驻「自由创作」悬浮按钮：固定页面下方居中 */
.free-fab {
  position: fixed; bottom: calc(78px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: 210px; padding: 13px; border-radius: 26px; background: #4F46E5; color: #fff;
  font-size: 15px; font-weight: 600; text-align: center; z-index: 15;
  box-shadow: 0 6px 18px rgba(79,70,229,.4);
}
.free-fab:active { opacity: .85; }
.waterfall { padding-bottom: 150px; } /* 给悬浮按钮留出空间，避免压住最后的卡片 */
.ledger-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #F5F5F7; font-size: 13px; }

/* ===== 兑换 ===== */
.code-input { text-align: center; font-size: 22px; letter-spacing: 3px; font-weight: 600; text-transform: uppercase; }

/* ===== 协议 ===== */
.doc-tabs { display: flex; background: #fff; border-radius: 14px; margin: 14px 16px 6px; overflow: hidden; }
.doc-tabs .dt { flex: 1; text-align: center; padding: 11px; font-size: 14px; color: #7A7A7A; }
.doc-tabs .dt.on { background: #1D1D1F; color: #fff; border-radius: 14px; }
.doc { background: #fff; border-radius: 16px; margin: 8px 16px 16px; padding: 18px 18px 24px; }
.doc .h1 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.doc .upd { font-size: 11px; color: #B0B0B8; margin-bottom: 14px; }
.doc .h2 { font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.doc .p { font-size: 13px; color: #4A4A52; margin-bottom: 6px; }
.doc .p.warn { color: #C77700; background: #FFF8EC; border-radius: 8px; padding: 8px 10px; }

/* ===== 计划卡 ===== */
.plans { display: flex; flex-direction: column; gap: 12px; }
.plan { width: 100%; background: #fff; border-radius: 14px; padding: 16px 18px; position: relative; border: 1.5px solid transparent; display: flex; align-items: center; justify-content: space-between; }
.plan.on { border-color: #4F46E5; background: #F9F8FF; }
.plan .cnt { font-size: 22px; font-weight: 700; }
.plan .cnt small { font-size: 12px; font-weight: 400; color: #7A7A7A; }
.plan .price { color: #4F46E5; font-weight: 700; font-size: 20px; }
.plan .tag { position: absolute; top: -9px; right: 14px; }

/* ===== Toast / Modal / Lightbox ===== */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%);
  background: rgba(0,0,0,.82); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 10px;
  z-index: 90; max-width: 80vw; text-align: center;
}
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 30px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 360px; padding: 20px; max-height: 76vh; overflow-y: auto; }
.modal .m-t { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.modal .m-b { font-size: 14px; color: #4A4A52; }
.modal .m-btns { display: flex; gap: 8px; margin-top: 18px; }
.modal .m-btns .btn { flex: 1 1 auto; min-width: 0; padding: 11px 6px; font-size: clamp(12.5px, 3.6vw, 14px); white-space: nowrap; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 95; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; }
