/* ===========================================================
   好来宝 - 前台（PC + H5 响应式）
   =========================================================== */

/* ===================== 顶部导航（PC） ===================== */
.lang-switch {
  display: inline-flex; align-items: center; border: 1px solid var(--line, #e5e7eb);
  border-radius: 999px; overflow: hidden; font-size: 13px; flex: none;
}
.lang-switch button {
  border: 0; background: transparent; padding: 5px 12px; cursor: pointer;
  color: #6b7280; line-height: 1; transition: all .15s;
}
.lang-switch button.on { background: var(--brand, #ff5a3c); color: #fff; }
.lang-switch button + button { border-left: 1px solid var(--line, #e5e7eb); }
.lang-switch button.on + button { border-left-color: rgba(255,255,255,.4); }

.app-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h); background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-header .inner {
  max-width: var(--page-max); height: 100%; margin: 0 auto; padding: 0 var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-6);
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; cursor: pointer; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  box-shadow: var(--sh-brand); color: #fff;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { font-size: var(--fs-18); font-weight: 700; letter-spacing: -.02em; color: var(--ink-900); }
.logo-sub { font-size: var(--fs-11); color: var(--ink-400); margin-left: 2px; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: var(--r-sm);
  font-size: var(--fs-14); color: var(--ink-600); transition: all .16s var(--ease);
}
.nav a:hover { color: var(--brand-600); background: var(--brand-50); }
.nav a.on { color: var(--brand-600); font-weight: 600; background: var(--brand-50); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.role-switch {
  display: flex; padding: 3px; background: var(--ink-100); border-radius: var(--r-sm);
}
.role-switch button {
  padding: 5px 14px; border-radius: 6px; font-size: var(--fs-13);
  color: var(--ink-500); transition: all .18s var(--ease);
}
.role-switch button.on { background: var(--white); color: var(--brand-600); font-weight: 600; box-shadow: var(--sh-xs); }

.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--ink-500); transition: all .16s var(--ease);
}
.icon-btn:hover { background: var(--ink-100); color: var(--ink-800); }
.badge-dot {
  position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--r-full); background: var(--danger-500); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; border: 2px solid #fff;
  box-sizing: content-box;
}

.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: var(--r-full); transition: background .16s; }
.user-trigger:hover { background: var(--ink-100); }
.user-menu .uc-link { display: inline-flex; align-items: center; padding: 0 10px; height: 34px; border-radius: var(--r-sm); color: var(--text-600); font-size: 14px; font-weight: 500; transition: background .16s, color .16s; }
.user-menu .uc-link:hover { background: var(--ink-100); color: var(--brand); }
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); z-index: var(--z-drawer); animation: modalIn .18s var(--ease);
}
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: var(--r-xs); font-size: var(--fs-14);
  color: var(--ink-700); text-align: left; transition: background .14s;
}
.dropdown a:hover, .dropdown button:hover { background: var(--brand-50); color: var(--brand-600); }
.dropdown .sep { height: 1px; background: var(--border); margin: 5px 0; }

/* ===================== 页面容器 ===================== */
.page { max-width: var(--page-max); margin: 0 auto; padding: var(--sp-6); }
.page-narrow { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-5); }
.page-title { font-size: var(--fs-24); font-weight: 700; letter-spacing: -.01em; color: var(--ink-900); }
.page-desc { margin-top: 6px; font-size: var(--fs-13); color: var(--ink-500); }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--sp-4);
  font-size: var(--fs-13); color: var(--ink-500);
}
.back-link:hover { color: var(--brand-600); }

/* ===================== 首页 ===================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #4A47BE 0%, #5B5BD6 45%, #7B7EF2 100%);
}
.hero::after {
  content: ''; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,138,98,.35), transparent 68%);
}
.hero::before {
  content: ''; position: absolute; left: -100px; bottom: -220px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--page-max); margin: 0 auto;
  padding: 72px var(--sp-6) 64px;
}
.hero h1 { font-size: var(--fs-42); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; }
.hero .sub { margin-top: 16px; font-size: var(--fs-16); opacity: .88; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; margin-top: var(--sp-8); flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; border-color: rgba(255,255,255,.5); }
.hero-stats { display: flex; gap: var(--sp-10); margin-top: var(--sp-10); flex-wrap: wrap; }
.hero-stat .v { font-family: var(--font-num); font-size: var(--fs-28); font-weight: 700; }
.hero-stat .k { font-size: var(--fs-13); opacity: .78; margin-top: 2px; }

.flow-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.flow-strip .inner {
  max-width: var(--page-max); margin: 0 auto; padding: var(--sp-6);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
}
.flow-item { display: flex; gap: 12px; }
.flow-no {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); font-family: var(--font-num);
  font-weight: 700; font-size: var(--fs-13);
}
.flow-item h4 { font-size: var(--fs-14); }
.flow-item p { margin-top: 3px; font-size: var(--fs-12); color: var(--ink-500); line-height: 1.5; }

/* ===================== 需求卡片 ===================== */
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-4); }
.req-card { display: flex; flex-direction: column; padding: var(--sp-5); cursor: pointer; }
.req-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.req-card h3 {
  font-size: var(--fs-16); line-height: 1.45; color: var(--ink-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.req-card .desc { margin-top: 10px; font-size: var(--fs-13); color: var(--ink-500); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.req-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--border);
}
.req-price .label { font-size: var(--fs-11); color: var(--ink-400); }
.req-price .val { font-size: var(--fs-20); }
.req-stats { display: flex; gap: 14px; font-size: var(--fs-12); color: var(--ink-500); }
.req-stats b { font-family: var(--font-num); color: var(--brand-600); font-weight: 600; }

.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
}
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box .input { padding-left: 38px; height: 38px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-400); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: var(--sp-5); overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; padding: 11px 16px; font-size: var(--fs-14); color: var(--ink-500);
  white-space: nowrap; transition: color .16s;
}
.tabs button:hover { color: var(--brand-600); }
.tabs button.on { color: var(--brand-600); font-weight: 600; }
.tabs button.on::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px;
  background: var(--brand-500); border-radius: 2px;
}
.tabs .cnt {
  margin-left: 5px; padding: 0 5px; min-width: 17px; height: 17px; line-height: 17px;
  display: inline-block; text-align: center; border-radius: var(--r-full);
  background: var(--ink-100); color: var(--ink-500); font-size: 11px; font-family: var(--font-num);
}
.tabs button.on .cnt { background: var(--brand-100); color: var(--brand-600); }

/* ===================== 详情页 ===================== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-5); align-items: start; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }

.kv-list { display: grid; gap: 12px; }
.kv { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-13); }
.kv .k { width: 84px; flex: none; color: var(--ink-400); }
.kv .v { flex: 1; color: var(--ink-800); word-break: break-all; }

.notice {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm);
  font-size: var(--fs-13); line-height: 1.6;
}
.notice-info { background: var(--info-50); color: #2563EB; }
.notice-warn { background: var(--warning-50); color: var(--warning-600); }
.notice-success { background: var(--success-50); color: var(--success-600); }
.notice-danger { background: var(--danger-50); color: var(--danger-600); }

/* ===================== Demo / 报名条目 ===================== */
.enroll-item { padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-md); transition: all .18s var(--ease); }
.enroll-item:hover { border-color: var(--brand-200); box-shadow: var(--sh-sm); }
.enroll-item.picked { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(91,91,214,.1); }
.enroll-item.won { border-color: var(--success-500); background: var(--success-50); }

.demo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.demo-card { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--white); }
.demo-thumb {
  position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #2C2A75, #5B5BD6);
  display: grid; place-items: center; color: rgba(255,255,255,.85);
}
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.demo-thumb .play {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.42); backdrop-filter: blur(4px); display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.6);
}
.demo-thumb .dur {
  position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-family: var(--font-num);
}
.demo-info { padding: 8px 10px; }
.demo-info .t { font-size: var(--fs-13); font-weight: 500; }
.demo-info .d { margin-top: 3px; font-size: var(--fs-12); color: var(--ink-400); }

.video-box { width: 100%; height: 60vh; border-radius: var(--r-md); overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.video-box video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* ===================== 账户 ===================== */
.balance-card {
  position: relative; overflow: hidden; padding: var(--sp-6); border-radius: var(--r-lg);
  background: linear-gradient(135deg, #3B389B 0%, #5B5BD6 60%, #7B7EF2 100%); color: #fff;
  box-shadow: var(--sh-brand);
}
.balance-card::after {
  content: ''; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.balance-card .label { font-size: var(--fs-13); opacity: .8; }
.balance-card .amount { font-family: var(--font-num); font-size: 40px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; }
.balance-sub { display: flex; gap: var(--sp-8); margin-top: var(--sp-5); position: relative; z-index: 1; flex-wrap: wrap; }
.balance-sub .k { font-size: var(--fs-12); opacity: .78; }
.balance-sub .v { font-family: var(--font-num); font-size: var(--fs-18); font-weight: 600; margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-3); }
.stat-card { padding: var(--sp-4); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); }
.stat-card .k { font-size: var(--fs-12); color: var(--ink-500); }
.stat-card .v { margin-top: 6px; font-family: var(--font-num); font-size: var(--fs-20); font-weight: 700; color: var(--ink-900); }

.trans-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
.trans-item:last-child { border-bottom: none; }
.trans-icon { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; font-size: 16px; }
.trans-in  { background: var(--success-50); color: var(--success-600); }
.trans-out { background: var(--danger-50); color: var(--danger-500); }
.trans-mid { background: var(--info-50); color: var(--info-500); }

/* ===================== 订单进度 ===================== */
.order-card { padding: var(--sp-5); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ink-100); }
.order-no { font-family: var(--font-num); font-size: var(--fs-12); color: var(--ink-400); }
.split-box { padding: var(--sp-4); background: var(--bg-soft); border-radius: var(--r-md); border: 1px dashed var(--border); }
.split-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: var(--fs-13); }
.split-row + .split-row { border-top: 1px dashed var(--border); }
.split-row.total { border-top: 1px solid var(--ink-200); margin-top: 4px; padding-top: 11px; font-weight: 600; }

/* ===================== 认证页 ===================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 480px; }
.auth-visual {
  position: relative; overflow: hidden; padding: var(--sp-12);
  background: linear-gradient(150deg, #2C2A75, #4A47BE 50%, #5B5BD6); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-visual::after {
  content: ''; position: absolute; right: -140px; bottom: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,138,98,.3), transparent 68%);
}
.auth-visual h2 { font-size: var(--fs-34); line-height: 1.3; position: relative; z-index: 1; }
.auth-visual p { margin-top: 16px; opacity: .85; max-width: 420px; position: relative; z-index: 1; }
.auth-points { margin-top: var(--sp-10); display: grid; gap: 16px; position: relative; z-index: 1; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; }
.auth-point .ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
}
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: var(--sp-8); background: var(--white); }
.auth-form { width: 100%; max-width: 360px; }
.auth-form h1 { font-size: var(--fs-28); }
.auth-form .tip { margin-top: 8px; color: var(--ink-500); font-size: var(--fs-14); }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--ink-100); border-radius: var(--r-sm); margin: var(--sp-6) 0; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 6px; font-size: var(--fs-14); color: var(--ink-500); }
.auth-tabs button.on { background: #fff; color: var(--brand-600); font-weight: 600; box-shadow: var(--sh-xs); }
.demo-accounts { margin-top: var(--sp-5); padding: var(--sp-4); background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--r-sm); font-size: var(--fs-12); color: var(--ink-500); line-height: 1.9; }
.demo-accounts b { color: var(--ink-700); }
.demo-accounts code { font-family: var(--font-num); color: var(--brand-600); cursor: pointer; }
.demo-accounts code:hover { text-decoration: underline; }

/* ===================== 上传 ===================== */
.uploader {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: var(--sp-6); border: 1.5px dashed var(--ink-300); border-radius: var(--r-md);
  background: var(--bg-soft); cursor: pointer; transition: all .18s var(--ease); text-align: center;
}
.uploader:hover { border-color: var(--brand-400); background: var(--brand-50); }
.uploader.dragging { border-color: var(--brand-500); background: var(--brand-50); }
.uploader .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-500); display: grid; place-items: center; }
.uploader .t { font-size: var(--fs-14); color: var(--ink-700); font-weight: 500; }
.uploader .d { font-size: var(--fs-12); color: var(--ink-400); }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: var(--fs-13);
}
.progress { height: 4px; background: var(--ink-100); border-radius: var(--r-full); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--brand-500); border-radius: var(--r-full); transition: width .2s; }

/* ===================== 预览弹窗 ===================== */
.preview-box { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; }
.preview-media { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); background: #000; }
.preview-fallback { display: flex; flex-direction: column; align-items: center; color: var(--ink-500); padding: var(--sp-8) 0; }

/* ===================== 自媒体矩阵画像 ===================== */
.social-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ink-100); }
.social-item:last-child { border-bottom: none; }
.social-badge { flex: 0 0 auto; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; line-height: 1.4; }
.social-edit-row { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.social-edit-row:last-of-type { border-bottom: none; }

/* ===================== 底部 TabBar（H5） ===================== */
.tabbar { display: none; }

/* ===================== 页脚 ===================== */
.app-footer {
  margin-top: var(--sp-12); padding: var(--sp-8) var(--sp-6);
  background: var(--white); border-top: 1px solid var(--border);
  text-align: center; color: var(--ink-400); font-size: var(--fs-12); line-height: 2;
}
.app-footer .copyright { margin-top: var(--sp-2); font-size: var(--fs-11); color: var(--ink-300); }

/* ===========================================================
   响应式：H5
   =========================================================== */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .flow-strip .inner { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 52px; }

  .page { padding: var(--sp-4) var(--sp-3) calc(var(--tabbar-h) + 24px); }
  .page-title { font-size: var(--fs-20); }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }

  .app-header .inner { padding: 0 var(--sp-3); gap: var(--sp-3); }
  .nav, .role-switch, .header-actions .pc-only { display: none; }
  .logo-sub { display: none; }

  .hero-inner { padding: 44px var(--sp-4) 40px; }
  .hero h1 { font-size: var(--fs-28); }
  .hero .sub { font-size: var(--fs-14); margin-top: 12px; }
  .hero-stats { gap: var(--sp-6); margin-top: var(--sp-6); }
  .hero-stat .v { font-size: var(--fs-20); }
  .hero-actions .btn { flex: 1; }

  .flow-strip .inner { grid-template-columns: 1fr; gap: var(--sp-4); padding: var(--sp-4); }

  .req-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .req-card { padding: var(--sp-4); }
  .filter-bar { padding: var(--sp-3); gap: 8px; }
  .filter-bar .chip-group { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .filter-bar .chip-group::-webkit-scrollbar { display: none; }

  .card-pad { padding: var(--sp-4); }
  .demo-list { grid-template-columns: repeat(2, 1fr); }
  .kv .k { width: 70px; }

  .modal { max-width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; align-self: flex-end; }
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal-foot .btn { flex: 1; }

  .balance-card .amount { font-size: 32px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .toast-wrap { top: 12px; }
  .app-footer { margin-bottom: var(--tabbar-h); }

  /* 底部 TabBar */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 10px; color: var(--ink-400); position: relative; transition: color .16s;
  }
  .tabbar a.on { color: var(--brand-600); font-weight: 600; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar .badge-dot { top: 4px; right: 50%; margin-right: -20px; }

  .fab {
    position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
    width: 52px; height: 52px; border-radius: 50%; z-index: 90;
    background: var(--brand-500); color: #fff; display: grid; place-items: center;
    box-shadow: var(--sh-brand);
  }
  .fab:active { transform: scale(.94); }
}

@media (min-width: 769px) { .h5-only { display: none !important; } .fab { display: none; } }
