/* ==========================================================================
   Execute Guarantor — WebApp
   ========================================================================== */
:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --card-solid: #111319;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f1ea;
  --text-2: #a7a59f;
  --text-3: #6d6c69;
  --gold: #ffcf33;
  --gold-2: #f2b10f;
  --gold-3: #b07a06;
  --gold-grad: linear-gradient(135deg, #fff1a8 0%, #ffd23f 32%, #f2b10f 64%, #c98a0c 100%);
  --gold-soft: rgba(255, 207, 51, .12);
  --green: #2ee59d;
  --green-soft: rgba(46, 229, 157, .12);
  --red: #ff5a6a;
  --red-soft: rgba(255, 90, 106, .12);
  --blue: #5aa9ff;
  --blue-soft: rgba(90, 169, 255, .12);
  --violet: #b38bff;
  --violet-soft: rgba(179, 139, 255, .12);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --safe-t: max(var(--tg-content-safe-area-inset-top, 0px), 0px);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-d: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior-y: none;
}
input, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--gold); text-decoration: none; }
.ic { flex-shrink: 0; display: block; }
::selection { background: rgba(255, 207, 51, .3); }

/* ---------------------------------------------------------------- background */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-glow {
  position: absolute; inset: -20% -30% auto; height: 70vh;
  background:
    radial-gradient(50% 45% at 70% 25%, rgba(255, 196, 0, .16), transparent 70%),
    radial-gradient(40% 40% at 15% 10%, rgba(255, 140, 0, .08), transparent 70%);
  filter: blur(10px);
  animation: glowDrift 14s ease-in-out infinite alternate;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 50% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 50% at 50% 0%, #000 0%, transparent 75%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes glowDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }

/* ---------------------------------------------------------------- layout */
#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.view {
  padding: calc(14px + var(--safe-t)) 16px calc(104px + var(--safe-b));
  min-height: 100vh;
}
.view.no-tabs { padding-bottom: calc(32px + var(--safe-b)); }
.page-enter { animation: pageIn .42s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.stagger > * { animation: pageIn .5s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .10s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(7) { animation-delay: .26s; }
.stagger > *:nth-child(n+8) { animation-delay: .3s; }

/* ---------------------------------------------------------------- top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-svg { width: 30px; height: 32px; filter: drop-shadow(0 4px 14px rgba(255, 196, 0, .35)); }
.brand-name { font-family: var(--font-d); font-weight: 700; font-size: 15px; letter-spacing: .04em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font); font-size: 9.5px; font-weight: 700; letter-spacing: .32em; color: var(--gold); margin-top: 4px; opacity: .9; }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  color: var(--gold);
  transition: transform .2s var(--ease), background .2s;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.icon-btn:active { transform: scale(.92); background: var(--card-2); }
.icon-btn.spin .ic { animation: spin .7s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }

.h1 { font-family: var(--font-d); font-weight: 700; font-size: 28px; letter-spacing: -.01em; line-height: 1.1; margin: 4px 0 16px; }
.h1 .muted { color: var(--text-3); }
.sub { color: var(--text-2); font-size: 14px; margin: -8px 0 18px; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin: 22px 2px 10px;
}
.section-title .ic { color: var(--gold); }
.section-title > span { display: flex; align-items: center; gap: 6px; }
.section-title .count { font-family: var(--font-d); letter-spacing: 0; font-size: 12px; color: var(--text-3); }
.h2 { font-family: var(--font-d); font-weight: 600; font-size: 18px; margin: 26px 2px 12px; display: flex; align-items: center; justify-content: space-between; }
.h2 .count { font-size: 13px; color: var(--text-3); font-weight: 500; }

/* ---------------------------------------------------------------- cards */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card.pad { padding: 16px; }
.tap { transition: transform .22s var(--ease), background .2s, border-color .2s; }
.tap:active { transform: scale(.975); background: var(--card-2); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  height: 318px; border-radius: var(--r-xl);
  background:
    radial-gradient(70% 60% at 72% 42%, rgba(255, 190, 20, .22), transparent 65%),
    linear-gradient(160deg, #15130d 0%, #0b0c10 55%, #08090c 100%);
  border: 1px solid rgba(255, 207, 51, .14);
  box-shadow: 0 30px 80px -40px rgba(255, 180, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 207, 51, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 207, 51, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.hero-brand { position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 9px; z-index: 3; }
.hero-brand .logo-svg { width: 24px; height: 26px; }
.hero-brand b {
  font-family: var(--font-d); font-weight: 800; font-size: 16px; letter-spacing: .06em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-brand small { display: block; font-size: 8.5px; letter-spacing: .38em; font-weight: 800; color: rgba(255, 220, 120, .6); margin-top: 2px; }
.hero-copy { position: absolute; left: 18px; top: 68px; z-index: 3; width: 52%; }
.hero-copy h2 { font-family: var(--font-d); font-size: 19px; line-height: 1.18; margin: 0 0 8px; font-weight: 700; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.hero-copy h2 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.45; max-width: 165px; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.hero-stats { position: absolute; left: 18px; bottom: 66px; display: flex; gap: 16px; z-index: 3; }
.hero-stat b { display: block; font-family: var(--font-d); font-size: 15px; font-weight: 700; }
.hero-stat span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--text-3); font-weight: 600; letter-spacing: .02em; }

.hero-shield {
  position: absolute; right: -34px; top: 36px; width: 200px; height: 228px; z-index: 2;
  transform-style: preserve-3d; perspective: 600px;
}
.hero-shield .shield-wrap { width: 100%; height: 100%; transition: transform .5s var(--ease); animation: float 6s ease-in-out infinite; }
.hero-shield .shield-svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(255, 180, 0, .35)) drop-shadow(0 0 2px rgba(255, 220, 120, .8)); }
.shield-scan { animation: scan 4.5s ease-in-out infinite; }
@keyframes scan { 0%, 30% { transform: translateX(-80px) skewX(-18deg); } 70%, 100% { transform: translateX(330px) skewX(-18deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
.hero-halo {
  position: absolute; right: -80px; top: 6px; width: 290px; height: 290px; z-index: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255, 207, 51, .22) 30deg, transparent 50deg, transparent 110deg,
    rgba(255, 207, 51, .16) 125deg, transparent 145deg, transparent 200deg, rgba(255, 207, 51, .2) 215deg, transparent 235deg,
    transparent 290deg, rgba(255, 207, 51, .14) 305deg, transparent 325deg);
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  animation: rotate 26s linear infinite;
}
.hero-ring {
  position: absolute; right: -14px; top: 66px; width: 170px; height: 170px; z-index: 1; border-radius: 50%;
  border: 1px solid rgba(255, 207, 51, .18);
  box-shadow: 0 0 60px rgba(255, 196, 0, .25), inset 0 0 40px rgba(255, 196, 0, .12);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.hero-beams { position: absolute; right: 0px; bottom: -10px; width: 150px; height: 90px; z-index: 1; opacity: .7; }
.hero-beams path { stroke-dasharray: 4 10; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particles i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #ffd84d; box-shadow: 0 0 8px 2px rgba(255, 210, 60, .7);
  animation: rise linear infinite; opacity: 0;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate3d(var(--dx, 10px), -160px, 0) scale(1.1); opacity: 0; }
}
.badge-protect {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px 9px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--green);
  background: rgba(10, 40, 28, .55); border: 1px solid rgba(46, 229, 157, .32);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(46, 229, 157, .15);
}
.badge-protect .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46, 229, 157, .6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(46, 229, 157, 0); } }

/* ---------------------------------------------------------------- carousel */
.carousel {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.feature {
  flex: 0 0 calc(100% - 22px); scroll-snap-align: center;
  display: flex; align-items: center; gap: 14px; padding: 15px 14px 15px 15px;
  overflow: hidden; text-align: left;
}
.feature::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--fc, rgba(255, 207, 51, .18)), transparent 70%);
}
.feature-ic {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--fcolor, var(--gold)); background: var(--fbg, var(--gold-soft)); border: 1px solid rgba(255, 255, 255, .06);
}
.feature-txt { flex: 1; min-width: 0; }
.feature-txt b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.feature-txt span { font-size: 12.5px; color: var(--text-2); }
.feature .chev { color: var(--text-3); }
.dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: all .35s var(--ease); }
.dots i.on { width: 18px; background: var(--gold); box-shadow: 0 0 10px rgba(255, 207, 51, .6); }

/* ---------------------------------------------------------------- tiles */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; align-items: center; gap: 11px; padding: 14px 12px; text-align: left; width: 100%; }
.tile-ic {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(255, 207, 51, .14);
}
.tile-txt { min-width: 0; flex: 1; }
.tile-txt b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-txt span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-txt span em { font-style: normal; color: var(--text); font-weight: 700; }

/* ---------------------------------------------------------------- CTA */
.cta {
  position: relative; overflow: hidden; width: 100%;
  display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 12px;
  border-radius: var(--r-lg); text-align: left; color: #1b1300;
  background: var(--gold-grad);
  box-shadow: 0 18px 50px -14px rgba(255, 190, 20, .65), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.cta:active { transform: scale(.975); box-shadow: 0 10px 30px -14px rgba(255, 190, 20, .8); }
.cta::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.cta-plus { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.cta-txt { flex: 1; }
.cta-txt b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 17px; }
.cta-txt span { font-size: 12.5px; font-weight: 600; opacity: .72; }
.cta-go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .12); }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 20px; width: 100%; border-radius: 18px;
  font-weight: 800; font-size: 15.5px; letter-spacing: .01em;
  transition: transform .2s var(--ease), opacity .2s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; filter: saturate(.4); }
.btn-gold { color: #1b1300; background: var(--gold-grad); box-shadow: 0 14px 34px -12px rgba(255, 190, 20, .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-green { color: #032016; background: linear-gradient(135deg, #8bffd0, #2ee59d 50%, #12b979); box-shadow: 0 14px 34px -12px rgba(46, 229, 157, .55); }
.btn-red { color: var(--red); background: var(--red-soft); border: 1px solid rgba(255, 90, 106, .25); }
.btn-sm { height: 42px; border-radius: 14px; font-size: 14px; padding: 0 14px; width: auto; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::before {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(0, 0, 0, .25); border-top-color: #1b1300; animation: spin .7s linear infinite;
}
.btn-ghost.loading::before, .btn-red.loading::before { border-color: rgba(255, 255, 255, .2); border-top-color: var(--text); }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.link-btn { color: var(--gold); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- deals list */
.deal-row { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; width: 100%; text-align: left; }
.cat-ic {
  width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0; display: grid; place-items: center; position: relative;
  color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 22px -8px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cat-ic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 55%); }
.cat-ic .ic { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.deal-main { flex: 1; min-width: 0; }
.deal-main b { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-main span { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-side { text-align: right; flex-shrink: 0; }
.deal-side b { display: block; font-family: var(--font-d); font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; white-space: nowrap; letter-spacing: .01em;
  color: var(--text-2); background: var(--card-2);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.s-waiting, .chip.s-pending_payment { color: var(--blue); background: var(--blue-soft); }
.chip.s-paid { color: var(--gold); background: var(--gold-soft); }
.chip.s-delivered { color: var(--violet); background: var(--violet-soft); }
.chip.s-dispute { color: var(--red); background: var(--red-soft); }
.chip.s-completed { color: var(--green); background: var(--green-soft); }
.chip.s-refunded, .chip.s-cancelled { color: var(--text-3); background: var(--card-2); }
.chip.s-paid::before, .chip.s-dispute::before, .chip.s-waiting::before, .chip.s-pending_payment::before { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

.segment {
  display: flex; padding: 4px; gap: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px;
}
.segment button {
  flex: 1; height: 38px; border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--text-2);
  transition: all .25s var(--ease);
}
.segment button.on { color: #1b1300; background: var(--gold-grad); box-shadow: 0 6px 16px -6px rgba(255, 190, 20, .6); }

/* ---------------------------------------------------------------- empty */
.empty { text-align: center; padding: 34px 20px 20px; color: var(--text-3); }
.empty-art {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 30px; display: grid; place-items: center;
  color: var(--gold); background: radial-gradient(circle at 50% 30%, rgba(255, 207, 51, .2), rgba(255, 207, 51, .03) 70%);
  border: 1px solid rgba(255, 207, 51, .12);
  animation: float 5s ease-in-out infinite;
}
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty p { margin: 0 auto; font-size: 13px; max-width: 260px; }

/* ---------------------------------------------------------------- skeleton */
.sk { position: relative; overflow: hidden; background: var(--card); border-radius: var(--r-lg); }
.sk::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  animation: skeleton 1.3s infinite;
}
@keyframes skeleton { to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 8px 8px calc(8px + var(--safe-b));
  background: linear-gradient(180deg, rgba(10, 11, 15, .72), rgba(8, 9, 12, .96));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  transition: transform .4s var(--ease);
}
.tabbar.hidden { transform: translateY(110%); }
.tab {
  flex: 1; max-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; color: var(--text-3); padding: 2px 0;
  transition: color .25s;
}
.tab-ic { width: 46px; height: 32px; border-radius: 12px; display: grid; place-items: center; transition: all .35s var(--spring); position: relative; }
.tab.on { color: var(--gold); }
.tab.on .tab-ic {
  color: #1b1300; background: var(--gold-grad); transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(255, 190, 20, .75), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.tab:active .tab-ic { transform: scale(.88); }
.tab .badge {
  position: absolute; top: -3px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}

/* ---------------------------------------------------------------- wizard */
.steps { display: flex; gap: 6px; margin: 0 0 22px; }
.steps i { height: 5px; width: 14px; border-radius: 3px; background: var(--line-2); transition: all .4s var(--ease); }
.steps i.on { width: 30px; background: var(--gold); box-shadow: 0 0 12px rgba(255, 207, 51, .6); }
.steps i.done { background: rgba(255, 207, 51, .45); }
.label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 20px 2px 10px; }

.role {
  padding: 18px 12px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: var(--r-lg); width: 100%;
}
.role-ic {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--card-2); color: var(--text-2); transition: all .3s var(--ease);
}
.role b { font-size: 15.5px; font-weight: 800; }
.role span { font-size: 12px; color: var(--text-3); }
.pick.on {
  border-color: rgba(255, 207, 51, .65);
  background: linear-gradient(160deg, rgba(255, 207, 51, .14), rgba(255, 207, 51, .03));
  box-shadow: 0 0 0 1px rgba(255, 207, 51, .25), 0 14px 40px -18px rgba(255, 190, 20, .6);
}
.pick.on .role-ic { color: #1b1300; background: var(--gold-grad); box-shadow: 0 10px 24px -8px rgba(255, 190, 20, .7); transform: scale(1.04) rotate(-3deg); }
.pick { position: relative; }
.pick.on::after {
  content: ''; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1300' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
  animation: pop .35s var(--spring);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.cat { padding: 14px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 9px; border-radius: 18px; width: 100%; }
.cat .cat-ic { width: 42px; height: 42px; border-radius: 14px; }
.cat span { font-size: 11.5px; font-weight: 800; text-align: center; line-height: 1.2; color: var(--text-2); }
.cat.on span { color: var(--text); }

.field { margin-bottom: 12px; }
.input, .textarea {
  width: 100%; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  padding: 15px 16px; font-size: 15.5px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-user-select: text; user-select: text;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus { border-color: rgba(255, 207, 51, .6); box-shadow: 0 0 0 4px rgba(255, 207, 51, .1); background: rgba(255, 255, 255, .06); }
.textarea { resize: none; min-height: 110px; line-height: 1.45; }
.hint { font-size: 12px; color: var(--text-3); margin: 6px 4px 0; display: flex; justify-content: space-between; }

.amount-box {
  padding: 18px 18px 14px; border-radius: var(--r-lg); text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(255, 207, 51, .12), transparent 70%), var(--card);
  border: 1px solid rgba(255, 207, 51, .2);
}
.amount-box .cap { font-size: 12px; color: var(--text-3); font-weight: 700; }
.amount-input-wrap { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 4px 0 6px; }
.amount-input {
  width: 100%; max-width: 230px; background: none; border: 0; outline: none; text-align: right;
  font-family: var(--font-d); font-size: 42px; font-weight: 700; letter-spacing: -.02em;
  -webkit-user-select: text; user-select: text; caret-color: var(--gold);
}
.amount-input::placeholder { color: rgba(255, 255, 255, .15); }
.amount-cur { font-family: var(--font-d); font-size: 16px; font-weight: 600; color: var(--gold); flex-shrink: 0; min-width: 60px; text-align: left; }
.quick { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.quick button { padding: 7px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.quick button:active { transform: scale(.94); }

.breakdown { padding: 4px 16px; }
.brow { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.brow:last-child { border-bottom: 0; }
.brow span { color: var(--text-2); }
.brow b { font-weight: 800; }
.brow.total b { font-family: var(--font-d); font-size: 16px; font-weight: 600; color: var(--gold); }

.sticky-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 14px 16px calc(14px + var(--safe-b));
  background: linear-gradient(180deg, rgba(7, 8, 11, 0), rgba(7, 8, 11, .96) 22px, #07080b);
}
.sticky-bottom .btn-ghost { background: #16181e; }
.sticky-bottom .btn-red { background: #2a1217; }
.btn-sm { white-space: nowrap; }
.sticky-bottom .inner { max-width: 528px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------------------------------------- deal page */
.deal-hero { padding: 18px; overflow: hidden; }
.deal-hero::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(255, 207, 51, .2)), transparent 70%);
}
.deal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.deal-head .cat-ic { width: 52px; height: 52px; border-radius: 17px; }
.deal-head-txt { flex: 1; min-width: 0; }
.deal-head-txt b { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.deal-code { font-size: 12px; color: var(--text-3); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; margin-top: 3px; }
.deal-code button { color: var(--text-3); display: inline-flex; }
.deal-amount { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.deal-amount .big { font-family: var(--font-d); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.deal-amount .big small { font-size: 15px; color: var(--gold); font-weight: 600; margin-left: 4px; }
.deal-amount .cap { font-size: 12px; color: var(--text-3); font-weight: 700; margin-bottom: 6px; }

.timeline { display: flex; align-items: flex-start; margin: 20px 0 2px; position: relative; }
.tl-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; z-index: 1; }
.tl-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 1.5px solid var(--line-2); color: var(--text-3); transition: all .4s var(--ease);
}
.tl-step span { font-size: 10px; font-weight: 800; color: var(--text-3); text-align: center; line-height: 1.15; }
.tl-step.done .tl-dot { background: var(--gold-grad); border-color: transparent; color: #1b1300; }
.tl-step.done span { color: var(--text-2); }
.tl-step.cur .tl-dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(255, 207, 51, .12), 0 0 22px rgba(255, 207, 51, .45); animation: curPulse 2s infinite; }
.tl-step.cur span { color: var(--gold); }
.tl-step.bad .tl-dot { background: var(--red-soft); border-color: var(--red); color: var(--red); }
@keyframes curPulse { 50% { box-shadow: 0 0 0 9px rgba(255, 207, 51, 0), 0 0 22px rgba(255, 207, 51, .45); } }
.tl-line { position: absolute; top: 14px; left: 10%; right: 10%; height: 3px; background: var(--line-2); z-index: 0; border-radius: 2px; }
.tl-line i { display: block; height: 100%; background: linear-gradient(90deg, #c98a0c, #ffd23f 60%, #fff1a8); border-radius: 2px; box-shadow: 0 0 10px rgba(255, 207, 51, .6); transition: width .9s var(--ease); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.45; }
.notice .ic { margin-top: 1px; }
.notice b { display: block; font-size: 14px; margin-bottom: 2px; }
.notice span { color: var(--text-2); }
.notice.gold { background: var(--gold-soft); border: 1px solid rgba(255, 207, 51, .22); color: var(--gold); }
.notice.green { background: var(--green-soft); border: 1px solid rgba(46, 229, 157, .22); color: var(--green); }
.notice.red { background: var(--red-soft); border: 1px solid rgba(255, 90, 106, .25); color: var(--red); }
.notice.blue { background: var(--blue-soft); border: 1px solid rgba(90, 169, 255, .22); color: var(--blue); }
.notice.violet { background: var(--violet-soft); border: 1px solid rgba(179, 139, 255, .25); color: var(--violet); }
.notice b, .notice span { color: inherit; }
.notice span { opacity: .85; color: var(--text-2); }

.party { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-d); font-weight: 700; font-size: 16px; color: #1b1300;
  background: linear-gradient(135deg, hsl(var(--h, 45) 95% 70%), hsl(calc(var(--h, 45) + 30) 85% 50%));
  overflow: hidden; position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.avatar.empty-av { background: var(--card-2); color: var(--text-3); border: 1.5px dashed var(--line-2); }
.party-txt { flex: 1; min-width: 0; }
.party-txt .role-cap { font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.party-txt b { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-meta { font-size: 12px; color: var(--text-2); display: flex; gap: 10px; flex-wrap: wrap; }
.party-meta .st { color: var(--gold); }
.you { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); margin-left: 6px; vertical-align: 2px; }
.party-sep { height: 1px; background: var(--line); margin: 0 14px; }

.desc { padding: 14px 16px; font-size: 14px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; word-break: break-word; -webkit-user-select: text; user-select: text; }

.tabs-inline { display: flex; gap: 18px; margin: 22px 2px 12px; border-bottom: 1px solid var(--line); }
.tabs-inline button { padding: 0 0 10px; font-weight: 800; font-size: 15px; color: var(--text-3); position: relative; display: inline-flex; gap: 6px; align-items: center; }
.tabs-inline button.on { color: var(--text); }
.tabs-inline button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(255, 207, 51, .7); }
.tabs-inline .n { font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; background: var(--gold); color: #1b1300; padding: 0 5px; }

/* ---------------------------------------------------------------- chat */
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.msg { max-width: 82%; padding: 9px 13px 7px; border-radius: 18px; font-size: 14px; line-height: 1.4; word-break: break-word; white-space: pre-wrap; animation: msgIn .3s var(--ease); -webkit-user-select: text; user-select: text; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.msg time { display: block; font-size: 10px; color: var(--text-3); margin-top: 3px; text-align: right; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #ffe27a, #f2b10f); color: #1b1300; border-bottom-right-radius: 6px; }
.msg.me time { color: rgba(27, 19, 0, .55); }
.msg.them { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.admin { align-self: flex-start; background: var(--violet-soft); border: 1px solid rgba(179, 139, 255, .3); border-bottom-left-radius: 6px; }
.msg .who { display: block; font-size: 11px; font-weight: 800; color: var(--text-3); margin-bottom: 2px; }
.msg.admin .who { color: var(--violet); display: flex; align-items: center; gap: 4px; }
.msg.sys { align-self: center; max-width: 92%; text-align: center; background: none; font-size: 12px; color: var(--text-3); padding: 4px 10px; display: flex; gap: 6px; align-items: center; }
.msg.sys .ic { color: var(--gold); }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.composer .textarea { min-height: 48px; max-height: 120px; padding: 13px 14px; border-radius: 16px; }
.composer .icon-btn { width: 48px; height: 48px; border-radius: 16px; background: var(--gold-grad); color: #1b1300; border: 0; }

/* ---------------------------------------------------------------- wallet */
.balance-card {
  position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 220, 120, .55), transparent 55%),
    linear-gradient(135deg, #ffe17a 0%, #f4b512 45%, #b9800a 100%);
  color: #1b1300;
  box-shadow: 0 30px 60px -28px rgba(255, 180, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.balance-card::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .0) 0 18px, rgba(255, 255, 255, .07) 18px 19px);
}
.balance-card::after {
  content: ''; position: absolute; top: -40%; left: -30%; width: 40%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: rotate(20deg);
  animation: cardShine 6s ease-in-out infinite;
}
@keyframes cardShine { 0%, 60% { left: -40%; } 100% { left: 130%; } }
.balance-card > * { position: relative; z-index: 1; }
.bc-top { display: flex; justify-content: space-between; align-items: center; }
.bc-top .lbl { font-size: 12.5px; font-weight: 800; opacity: .7; letter-spacing: .02em; }
.bc-chip { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #fff6c8, #d9a21c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; }
.bc-chip::before { content: ''; position: absolute; inset: 6px 10px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 3px; }
.bc-amount { font-family: var(--font-d); font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 2px; line-height: 1; }
.bc-amount small { font-size: 16px; font-weight: 700; opacity: .65; margin-left: 4px; }
.bc-held { font-size: 13px; font-weight: 700; opacity: .7; display: flex; align-items: center; gap: 6px; }
.bc-actions { display: flex; gap: 10px; margin-top: 18px; }
.bc-actions button {
  flex: 1; height: 48px; border-radius: 15px; font-weight: 800; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(20, 14, 0, .88); color: var(--gold); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
  transition: transform .2s var(--ease);
}
.bc-actions button.light { background: rgba(255, 255, 255, .38); color: #1b1300; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.bc-actions button:active { transform: scale(.95); }

.tx { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.tx-ic.plus { background: var(--green-soft); color: var(--green); }
.tx-ic.minus { background: var(--red-soft); color: var(--red); }
.tx-ic.hold { background: var(--gold-soft); color: var(--gold); }
.tx-main { flex: 1; min-width: 0; }
.tx-main b { display: block; font-size: 14px; font-weight: 700; }
.tx-main span { font-size: 12px; color: var(--text-3); }
.tx-sum { font-family: var(--font-d); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tx-sum.plus { color: var(--green); }

/* ---------------------------------------------------------------- reviews */
.rating-hero { display: flex; align-items: center; gap: 18px; padding: 18px; }
.rating-big { font-family: var(--font-d); font-size: 50px; font-weight: 800; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .ic.off { color: rgba(255, 255, 255, .14); }
.stars .ic.fill path { fill: currentColor; }
.review { padding: 14px; margin-bottom: 8px; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-top .avatar { width: 36px; height: 36px; border-radius: 12px; font-size: 14px; }
.review-top b { font-size: 14px; font-weight: 800; display: block; }
.review-top span { font-size: 11.5px; color: var(--text-3); }
.review-top .stars { color: var(--gold); flex-shrink: 0; }
.review p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; word-break: break-word; }
.review-meta { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: var(--card-2); color: var(--text-2); }

/* ---------------------------------------------------------------- leaders */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin: 10px 0 18px; }
.pod { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pod .avatar { width: 56px; height: 56px; border-radius: 19px; font-size: 20px; margin-bottom: 8px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.pod.p1 .avatar { width: 70px; height: 70px; border-radius: 23px; font-size: 26px; box-shadow: 0 0 0 3px #ffd23f, 0 16px 40px -10px rgba(255, 190, 20, .7); }
.pod.p2 .avatar { box-shadow: 0 0 0 3px #d8dde6; }
.pod.p3 .avatar { box-shadow: 0 0 0 3px #e0915a; }
.pod .crown { color: #ffd23f; margin-bottom: 4px; filter: drop-shadow(0 0 8px rgba(255, 210, 60, .8)); animation: float 3s ease-in-out infinite; }
.pod b { font-size: 13px; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod span { font-size: 11.5px; color: var(--text-3); font-weight: 700; }
.pod-base {
  width: 100%; margin-top: 10px; border-radius: 16px 16px 6px 6px; display: grid; place-items: center;
  font-family: var(--font-d); font-weight: 800; font-size: 22px;
  border: 1px solid var(--line); border-bottom: 0;
}
.pod.p1 .pod-base { height: 92px; color: #1b1300; background: var(--gold-grad); box-shadow: 0 20px 50px -20px rgba(255, 190, 20, .8); }
.pod.p2 .pod-base { height: 68px; background: linear-gradient(180deg, rgba(216, 221, 230, .28), rgba(216, 221, 230, .06)); color: #e6e9ef; }
.pod.p3 .pod-base { height: 52px; background: linear-gradient(180deg, rgba(224, 145, 90, .3), rgba(224, 145, 90, .06)); color: #f0b088; }
.lead-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin-bottom: 8px; }
.lead-pos { width: 24px; text-align: center; font-family: var(--font-d); font-weight: 700; color: var(--text-3); font-size: 13px; }
.lead-row .avatar { width: 38px; height: 38px; border-radius: 13px; font-size: 14px; }

/* ---------------------------------------------------------------- profile */
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 6px; }
.profile-head .avatar {
  width: 88px; height: 88px; border-radius: 30px; font-size: 32px; margin-bottom: 12px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(255, 207, 51, .55), 0 20px 50px -14px rgba(255, 190, 20, .6);
}
.profile-head h2 { font-family: var(--font-d); font-size: 22px; margin: 0 0 4px; font-weight: 700; }
.profile-head p { margin: 0; color: var(--text-3); font-size: 13px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; margin-top: 10px; }
.pill.gold { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(255, 207, 51, .25); }
.pill.violet { background: var(--violet-soft); color: var(--violet); border: 1px solid rgba(179, 139, 255, .3); }
.stat { padding: 14px; }
.stat b { display: block; font-family: var(--font-d); font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.stat span { font-size: 12px; color: var(--text-3); font-weight: 700; }
.stat .ic { color: var(--gold); margin-bottom: 10px; }

.ref-card {
  padding: 18px; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 207, 51, .18), transparent 60%), var(--card);
  border-color: rgba(255, 207, 51, .2);
}
.ref-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ref-card p { margin: 0 0 14px; color: var(--text-2); font-size: 13px; }
.ref-link {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 207, 51, .35);
}
.ref-link code { flex: 1; min-width: 0; font-size: 12.5px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ref-link button { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-grad); color: #1b1300; flex-shrink: 0; }
.ref-stats { display: flex; gap: 18px; margin-top: 14px; }
.ref-stats div b { display: block; font-family: var(--font-d); font-size: 17px; font-weight: 700; }
.ref-stats div span { font-size: 11.5px; color: var(--text-3); font-weight: 700; }

.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); color: var(--gold); }
.menu-item b { flex: 1; font-size: 14.5px; font-weight: 700; }
.menu-item .chev { color: var(--text-3); }

/* ---------------------------------------------------------------- share success */
.success { text-align: center; padding-top: 12px; }
.success-badge {
  width: 110px; height: 110px; margin: 10px auto 18px; border-radius: 36px; display: grid; place-items: center;
  background: var(--gold-grad); color: #1b1300; position: relative;
  box-shadow: 0 30px 70px -20px rgba(255, 190, 20, .9), inset 0 1px 0 rgba(255, 255, 255, .6);
  animation: popIn .7s var(--spring) both;
}
.success-badge::before, .success-badge::after {
  content: ''; position: absolute; inset: -14px; border-radius: 46px; border: 1px solid rgba(255, 207, 51, .35);
  animation: ripple 2.4s ease-out infinite;
}
.success-badge::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes popIn { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.success h2 { font-family: var(--font-d); font-size: 24px; margin: 0 0 6px; }
.success p { color: var(--text-2); margin: 0 auto 20px; font-size: 14px; max-width: 300px; }

/* ---------------------------------------------------------------- sheet */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s ease both;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 560px; margin: 0 auto;
  max-height: 90vh; overflow-y: auto;
  padding: 10px 18px calc(20px + var(--safe-b));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #16181f, #0d0f14);
  border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .8);
  animation: sheetUp .45s var(--ease) both;
}
.sheet.closing { animation: sheetDown .3s ease both; }
.sheet-backdrop.closing { animation: fadeOut .3s ease both; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--font-d); font-size: 19px; margin: 0 0 4px; font-weight: 700; }
.sheet .sheet-sub { color: var(--text-2); font-size: 13.5px; margin: 0 0 16px; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.star-pick { display: flex; justify-content: center; gap: 8px; margin: 10px 0 16px; }
.star-pick button { color: rgba(255, 255, 255, .15); transition: transform .25s var(--spring), color .2s; }
.star-pick button.on { color: var(--gold); filter: drop-shadow(0 0 10px rgba(255, 207, 51, .6)); }
.star-pick button.on path { fill: currentColor; }
.star-pick button:active { transform: scale(.8); }

/* ---------------------------------------------------------------- toast */
#toast-root { position: fixed; left: 0; right: 0; top: calc(10px + var(--safe-t)); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 420px; width: fit-content;
  padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 700;
  background: rgba(24, 26, 33, .94); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .8);
  animation: toastIn .45s var(--spring) both;
}
.toast.out { animation: toastOut .3s ease both; }
.toast.ok .ic { color: var(--green); }
.toast.err .ic { color: var(--red); }
.toast.info .ic { color: var(--gold); }
@keyframes toastIn { from { transform: translateY(-30px) scale(.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-20px); opacity: 0; } }

#confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- splash */
.splash {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--bg); transition: opacity .5s ease, visibility .5s;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash-mark { width: 84px; height: 92px; animation: splashPulse 1.4s ease-in-out infinite; }
.splash-mark .logo-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 30px rgba(255, 196, 0, .55)); }
.splash-name { font-family: var(--font-d); font-weight: 800; letter-spacing: .4em; font-size: 14px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-left: .4em; }
@keyframes splashPulse { 50% { transform: scale(1.07); filter: brightness(1.2); } }

/* ---------------------------------------------------------------- currencies */
.coin {
  display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%;
  font-family: var(--font-d); font-weight: 700; color: #fff; line-height: 1;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 6px 16px -6px var(--c2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.coin .coin-ic { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.cur-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.cur-scroll::-webkit-scrollbar { display: none; }
.cur-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 13.5px;
  color: var(--text-2); transition: all .25s var(--ease);
}
.cur-chip small { font-weight: 700; color: var(--text-3); font-size: 11.5px; }
.cur-chip.on { color: var(--text); border-color: rgba(255, 207, 51, .6); background: linear-gradient(160deg, rgba(255, 207, 51, .14), rgba(255, 207, 51, .03)); box-shadow: 0 0 0 1px rgba(255, 207, 51, .2); }
.cur-chip:active { transform: scale(.95); }
.asset { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.asset:last-child { border-bottom: 0; }
.asset-main { flex: 1; min-width: 0; }
.asset-main b { display: block; font-size: 14.5px; font-weight: 800; }
.asset-main span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.asset-side { text-align: right; }
.asset-side b { display: block; font-family: var(--font-d); font-size: 14.5px; font-weight: 600; }
.asset-side span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.asset.on .asset-main b { color: var(--gold); }
.bc-usd { font-size: 14px; font-weight: 800; opacity: .65; margin-bottom: 6px; }
.bc-cur { display: inline-flex; align-items: center; gap: 8px; }
.bc-cur .coin { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.method-list { display: flex; flex-direction: column; gap: 8px; }
.method {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); transition: all .25s var(--ease);
}
.method .m-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--card-2); color: var(--text-2); flex-shrink: 0; }
.method b { display: block; font-size: 14.5px; font-weight: 800; }
.method span { font-size: 12px; color: var(--text-3); }
.method.on { border-color: rgba(255, 207, 51, .6); background: linear-gradient(160deg, rgba(255, 207, 51, .12), rgba(255, 207, 51, .02)); }
.method.on .m-ic { color: #1b1300; background: var(--gold-grad); }
.method.m-ton.on .m-ic, .method.m-ton_usdt.on .m-ic { color: #fff; background: linear-gradient(140deg, #4cc2ff, #0a7fd8); }
.btn-ton { color: #fff; background: linear-gradient(135deg, #5ccbff, #0098ea 55%, #0a6fc2); box-shadow: 0 14px 34px -12px rgba(0, 152, 234, .65), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ton.loading::before { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.pay-wait { text-align: center; padding: 6px 0 4px; }
.pay-wait .spinner { width: 64px; height: 64px; margin: 6px auto 16px; border-radius: 50%; border: 4px solid rgba(76, 194, 255, .15); border-top-color: #4cc2ff; animation: spin 1s linear infinite; }
.copy-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); margin-top: 8px; text-align: left; }
.copy-row div { flex: 1; min-width: 0; }
.copy-row span { display: block; font-size: 11px; color: var(--text-3); font-weight: 700; }
.copy-row code { display: block; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-row button { color: var(--gold); }
#tc-widget-root { position: relative; z-index: 300; }

/* ---------------------------------------------------------------- arbiter panel */
.adm-tabs .cur-chip { padding: 0 14px; gap: 6px; height: 40px; }
.adm-n {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; margin-left: 2px;
}
.menu-item .adm-n { margin-right: 4px; }
.adm-top { color: var(--violet); position: relative; }
.adm-dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg); animation: pop .35s var(--spring);
}
.adm-deal { padding: 0; gap: 0; }
.adm-deal-main { display: flex; align-items: center; gap: 12px; padding: 12px; flex: 1; min-width: 0; text-align: left; border-radius: inherit; }
.adm-del {
  width: 44px; align-self: stretch; display: grid; place-items: center; color: var(--red);
  border-left: 1px solid var(--line); border-radius: 0 var(--r-lg) var(--r-lg) 0; flex-shrink: 0;
}
.adm-del:active { background: var(--red-soft); }
.adm-search { display: flex; gap: 8px; }
.adm-search .input { flex: 1; }
.adm-search .icon-btn { width: 52px; height: 52px; border-radius: 16px; background: var(--gold-grad); color: #1b1300; border: 0; }
.cur-chip.small { height: 36px; padding: 0 14px; font-size: 12.5px; }
.stat.stat-red { border-color: rgba(255, 90, 106, .35); background: linear-gradient(160deg, rgba(255, 90, 106, .14), transparent); }
.stat.stat-red .ic, .stat.stat-red b { color: var(--red); }
.stat.stat-blue { border-color: rgba(90, 169, 255, .35); background: linear-gradient(160deg, rgba(90, 169, 255, .14), transparent); }
.stat.stat-blue .ic, .stat.stat-blue b { color: var(--blue); }
button.stat { text-align: left; width: 100%; }
.adm-wd { margin-bottom: 10px; }
.adm-wd .row { gap: 12px; }

.tag-arb { display: inline-flex; align-items: center; gap: 4px; color: var(--violet); background: var(--violet-soft); }
.adm-rdel { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); flex-shrink: 0; margin-left: 6px; }

.hist-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hist-row span { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.hist-row .input { width: 55%; padding: 11px 14px; text-align: right; font-weight: 700; }

/* ---------------------------------------------------------------- misc */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.muted { color: var(--text-3); }
.gold-t { color: var(--gold); }
.center { text-align: center; }
.hidden { display: none !important; }
.list-card { padding: 4px 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--text-3); font-weight: 600; }
.kv b { font-weight: 800; text-align: right; }
.how-step { display: flex; gap: 14px; padding: 12px 0; }
.how-num { width: 32px; height: 32px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-d); font-weight: 700; font-size: 14px; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(255, 207, 51, .2); }
.how-step b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.how-step span { font-size: 13px; color: var(--text-2); }

@media (max-width: 370px) {
  .hero-copy h2 { font-size: 17px; }
  .hero-shield { width: 175px; right: -44px; }
  .grid3 { gap: 8px; }
  .h1 { font-size: 25px; }
  .bc-amount { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
