/* =========================================================================
   TON Rig v2 — Dark cyber-luxury tema (glassmorphism + neon vurgular)
   ========================================================================= */
:root {
  --bg: #07060f;
  --bg-2: #0e0c1c;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --text: #f4f2ff;
  --muted: #9a96b8;
  --gold: #f7c948;
  --gold-2: #ff9f1c;
  --cyan: #3ee6ff;
  --violet: #8b5cf6;
  --green: #2ee59d;
  --red: #ff5470;
  --radius: 18px;
  --radius-sm: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Thai", "Noto Sans Bengali", "Noto Sans Devanagari", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 14px/1.45 var(--font);
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
input, button { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }
.green { color: var(--green); }
.red { color: var(--red); }
.muted { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.small { font-size: 12px; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(50% 35% at 100% 10%, rgba(62, 230, 255, .16), transparent 70%),
    radial-gradient(70% 45% at 50% 110%, rgba(247, 201, 72, .14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

/* ---------- Üst çubuk ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(var(--safe-top) + 10px) 14px 10px;
  background: linear-gradient(180deg, rgba(7, 6, 15, .92), rgba(7, 6, 15, .6));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.me-chip { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: start; }
.me-meta { display: flex; flex-direction: column; min-width: 0; }
.me-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.me-sub { font-size: 11px; color: var(--muted); }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 18px rgba(139,92,246,.45);
}
.avatar img, .avatar svg { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 76px; height: 76px; font-size: 40px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.net-badge { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px;
  color: #ffb347; background: rgba(255, 159, 28, .14); border: 1px solid rgba(255, 159, 28, .45); }
.balance-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--stroke-2); font-weight: 800;
}
.balance-chip .coin-ico { display: grid; }
.balance-chip .plus { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #251500; font-weight: 900; font-size: 15px; line-height: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--stroke); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Ekranlar ---------- */
.screens {
  position: fixed; inset: 0;
  padding: calc(var(--safe-top) + 74px) 14px calc(var(--safe-bottom) + var(--dock-h) + 24px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.screen { display: none; animation: fade .22s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen-title { font-size: 19px; font-weight: 900; letter-spacing: .2px; margin-bottom: 6px; }
.section-title { font-size: 15px; font-weight: 900; margin: 22px 2px 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.card { border-radius: var(--radius); padding: 16px; margin-bottom: 14px; position: relative; }
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 201, 72, .35), transparent 65%); pointer-events: none;
}
.hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 800; }
.hero-balance { font-size: 34px; font-weight: 900; line-height: 1.15; margin: 4px 0 12px; }
.hero-balance .num {
  background: linear-gradient(180deg, #fff6d6, var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 28px rgba(247, 201, 72, .25);
}
.hero-balance .sym { font-size: 14px; color: var(--muted); font-weight: 800; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.hero-stats > div { background: rgba(0,0,0,.22); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0; }
.hero-stats .k { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats .v { display: block; font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boost-banner {
  margin-bottom: 12px; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 800; font-size: 12.5px;
  background: linear-gradient(90deg, rgba(139,92,246,.35), rgba(62,230,255,.2)); border: 1px solid rgba(139,92,246,.6);
}
.claim-box { background: rgba(0,0,0,.25); border: 1px solid var(--stroke); border-radius: 16px; padding: 12px; }
.claim-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--muted); font-size: 12.5px; }
.claim-head .num { font-size: 20px; }
.claim-foot { font-size: 11.5px; color: var(--muted); margin: 6px 0 10px; min-height: 16px; }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--gold)); box-shadow: 0 0 12px rgba(62,230,255,.6); transition: width .6s ease; }
.bar.full i { background: linear-gradient(90deg, var(--gold-2), var(--red)); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 14px; font-weight: 900; letter-spacing: .3px;
  transition: transform .08s ease, filter .15s ease; position: relative; overflow: hidden;
}
.btn:active:not(:disabled) { transform: translateY(2px) scale(.99); }
.btn-lg { width: 100%; min-height: 52px; font-size: 15.5px; margin-top: 12px; }
.btn-gold { color: #2a1700; background: linear-gradient(180deg, #ffe58a, var(--gold) 50%, var(--gold-2)); box-shadow: 0 4px 0 #9a5a00, 0 10px 24px rgba(247,201,72,.25); }
.btn-cyan { color: #00222b; background: linear-gradient(180deg, #a5f6ff, var(--cyan)); box-shadow: 0 4px 0 #0b7e93, 0 10px 24px rgba(62,230,255,.2); }
.btn-green { color: #002515; background: linear-gradient(180deg, #a6ffd8, var(--green)); box-shadow: 0 4px 0 #0c8a58, 0 10px 24px rgba(46,229,157,.2); }
.btn-ghost { background: var(--glass-2); border: 1px solid var(--stroke-2); }
.btn-danger { background: rgba(255,84,112,.14); border: 1px solid rgba(255,84,112,.6); color: #ffb3c0; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn.shine::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  animation: shine 2.6s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.link { color: var(--cyan); font-weight: 800; font-size: 12px; }
.chip { padding: 6px 10px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--stroke-2); font-weight: 800; font-size: 12px; }
.chip.active { border-color: var(--gold); color: var(--gold); background: rgba(247,201,72,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pill { padding: 4px 10px; border-radius: 99px; background: rgba(62,230,255,.12); border: 1px solid rgba(62,230,255,.4); color: var(--cyan); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; display: inline-grid; place-items: center; }

/* ---------- Segment ---------- */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); margin: 4px 0 12px; }
.seg { padding: 9px 8px; border-radius: 10px; font-weight: 800; color: var(--muted); font-size: 13px; }
.seg.active { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke-2); }
.sub { display: none; }
.sub.active { display: block; }

/* ---------- Liste öğeleri ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--stroke); text-align: start; width: 100%;
}
button.item:active { transform: scale(.99); }
.item .ico { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); }
.item .ico svg { width: 44px; height: 44px; }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 900; font-size: 14.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item .sub-t { font-size: 12px; color: var(--muted); }
.item .end { text-align: end; flex: none; }
.item.locked { opacity: .55; }
.item.next-lock { border-style: dashed; border-color: rgba(247,201,72,.5); background: rgba(247,201,72,.05); }
.item.full { border-color: rgba(255,159,28,.6); box-shadow: 0 0 0 1px rgba(255,159,28,.25), 0 0 20px rgba(255,159,28,.15); }
.lvl { font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 99px; background: rgba(139,92,246,.22); color: #cdb8ff; border: 1px solid rgba(139,92,246,.5); }
.mini-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 6px; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); border: 1px dashed var(--stroke-2); border-radius: 16px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---------- Mağaza ---------- */
.shop-cat { font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 16px 2px 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-card { padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.shop-card:active { transform: scale(.98); }
.shop-card .vis { width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(62,230,255,.18), rgba(0,0,0,.25)); border: 1px solid var(--stroke); }
.shop-card .name { font-weight: 900; font-size: 13px; line-height: 1.25; min-height: 33px; }
.shop-card .meta { font-size: 11.5px; color: var(--muted); }
.shop-card .price { font-weight: 900; color: var(--gold); }
.owned { font-size: 11px; color: var(--cyan); font-weight: 800; }

/* ---------- Staking ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.tile { padding: 12px 6px; border-radius: 14px; text-align: center; background: var(--glass); border: 1px solid var(--stroke); }
.tile.active { border-color: var(--cyan); background: rgba(62,230,255,.08); box-shadow: 0 0 18px rgba(62,230,255,.18); }
.tile .d { font-weight: 900; font-size: 15px; }
.tile .a { font-size: 12px; color: var(--gold); font-weight: 800; }
.kv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.kv { background: rgba(0,0,0,.22); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 8px 10px; }
.kv .k, .stat .k { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.kv .v, .stat .v { display: block; font-weight: 900; }
.note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Form ---------- */
.field { display: block; margin-top: 12px; }
.field-label { display: block; font-size: 12px; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
.field input, .input-wrap input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; outline: none;
  background: rgba(0,0,0,.35); border: 1px solid var(--stroke-2); font-weight: 800; font-size: 16px;
  user-select: text; -webkit-user-select: text;
}
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62,230,255,.15); }
.input-wrap { position: relative; display: block; }
.input-wrap .chip { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); }
.input-wrap input { padding-inline-end: 70px; }
.nick-status { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ---------- Görevler / seri ---------- */
.streak-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 4px; }
.streak-cell { border-radius: 10px; padding: 6px 2px; text-align: center; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.streak-cell .d { font-size: 10px; color: var(--muted); font-weight: 800; }
.streak-cell .r { font-size: 11.5px; font-weight: 900; }
.streak-cell.done { background: rgba(46,229,157,.12); border-color: rgba(46,229,157,.5); }
.streak-cell.done .r { color: var(--green); }
.streak-cell.today { border-color: var(--gold); box-shadow: 0 0 14px rgba(247,201,72,.35); background: rgba(247,201,72,.1); }
.streak-cell.milestone .r { color: var(--gold); }
.task-reward { font-size: 12.5px; color: var(--gold); font-weight: 900; }

/* ---------- Arkadaşlar ---------- */
.ref-link { margin-top: 6px; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px dashed var(--stroke-2); font-size: 12.5px; word-break: break-all; user-select: all; -webkit-user-select: all; direction: ltr; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat { background: rgba(0,0,0,.22); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 10px 12px; }
.rank { width: 30px; text-align: center; font-weight: 900; color: var(--muted); flex: none; }
.rank.r1 { color: var(--gold); } .rank.r2 { color: #d9e2ff; } .rank.r3 { color: #ffb072; }
.item.me { border-color: rgba(62,230,255,.6); }

/* ---------- Kasa ---------- */
.wallet-box { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); margin-top: 8px; }
.wallet-status { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 10px; word-break: break-all; direction: ltr; }
.wallet-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 8px var(--red); }
.wallet-status.on .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.tc-btn { display: flex; justify-content: center; min-height: 40px; }
.rules { list-style: none; margin: 12px 0 0; display: grid; gap: 6px; }
.rules li { font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: rgba(247,201,72,.07); border: 1px solid rgba(247,201,72,.25); }
.receive { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.receive .k { color: var(--muted); font-size: 12px; font-weight: 800; }
.receive .v { font-size: 18px; font-weight: 900; }
.status-pill { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 99px; border: 1px solid; }
.status-pending { color: var(--gold); border-color: rgba(247,201,72,.5); }
.status-paid { color: var(--green); border-color: rgba(46,229,157,.5); }
.status-rejected { color: var(--red); border-color: rgba(255,84,112,.5); }

/* ---------- Ayarlar ---------- */
.lang-list { display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.lang-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--stroke); text-align: start; width: 100%; }
.lang-row img { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; flex: none; }
.lang-row .n { flex: 1; font-weight: 800; }
.lang-row .s { font-size: 11.5px; color: var(--muted); }
.lang-row.active { border-color: var(--cyan); background: rgba(62,230,255,.08); }
.prose p { margin-bottom: 10px; color: #d8d5ee; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--safe-bottom) + 10px); z-index: 20;
  height: var(--dock-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 22px; padding: 0 6px;
  background: rgba(16, 13, 32, .82); border: 1px solid var(--stroke-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.dock-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 800; color: var(--muted); padding: 6px 0; }
.dock-item .ico { display: grid; place-items: center; height: 28px; filter: grayscale(.5) opacity(.75); transition: transform .15s ease, filter .15s ease; }
.dock-item.active { color: var(--text); }
.dock-item.active .ico { filter: none; transform: translateY(-2px); }
.dock-item .dot { position: absolute; top: 4px; inset-inline-end: 22%; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.dock-item.center .ico {
  width: 60px; height: 60px; margin-top: -30px; border-radius: 20px; filter: none;
  background: linear-gradient(180deg, #ffe58a, var(--gold) 55%, var(--gold-2));
  box-shadow: 0 5px 0 #9a5a00, 0 0 0 4px rgba(7,6,15,.9), 0 12px 28px rgba(247,201,72,.35);
}
.dock-item.center.active .ico { transform: translateY(-2px) scale(1.04); }

/* ---------- Drawer ---------- */
.drawer-backdrop, .sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(3,2,8,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: bd .2s ease; }
@keyframes bd { from { opacity: 0; } }
.drawer {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(82vw, 320px);
  padding: calc(var(--safe-top) + 14px) 14px 14px; border-radius: 0; border-inline-end: 0;
  display: flex; flex-direction: column; gap: 8px; background: rgba(14, 12, 28, .95); animation: slideIn .22s ease;
}
[dir=ltr] .drawer { border-radius: 22px 0 0 22px; }
[dir=rtl] .drawer { border-radius: 0 22px 22px 0; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 17px; margin-bottom: 8px; }
.drawer-item { text-align: start; padding: 14px; border-radius: 14px; font-weight: 800; background: var(--glass); border: 1px solid var(--stroke); }
.drawer-item:active { background: var(--glass-2); }

/* ---------- Bottom sheet ---------- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  padding: 10px 16px calc(var(--safe-bottom) + 18px); border-radius: 26px 26px 0 0;
  background: rgba(16, 13, 32, .97); animation: up .25s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: var(--stroke-2); margin: 0 auto 10px; }
.sheet-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 34px; height: 34px; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; padding-inline-end: 40px; }
.sheet-head .ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(0,0,0,.3); border: 1px solid var(--stroke); flex: none; }
.sheet-head h3 { font-size: 18px; font-weight: 900; }
.req-list { display: grid; gap: 8px; margin: 10px 0; }
.req { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.req .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; background: rgba(255,84,112,.18); color: var(--red); }
.req.met .mark { background: rgba(46,229,157,.18); color: var(--green); }
.req .t { flex: 1; font-weight: 800; font-size: 13px; }
.req .p { font-size: 12px; color: var(--muted); font-weight: 700; line-height: 1.35; display: inline-block; margin-top: 2px; }
.req .btn-sm { flex: none; }
.burn-note { font-size: 12px; font-weight: 800; padding: 8px 10px; border-radius: 10px; color: #ffc2a8; background: rgba(255,120,60,.1); border: 1px solid rgba(255,120,60,.35); margin: 10px 0; }
.qty { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0; }
.qty button { width: 40px; height: 40px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--stroke-2); font-size: 20px; font-weight: 900; }
.qty .num { font-size: 22px; font-weight: 900; min-width: 40px; text-align: center; }
.avatar-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 4px; }
.avatar-picker .avatar { cursor: pointer; opacity: .6; }
.avatar-picker .avatar.active { opacity: 1; box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(247,201,72,.5); }

/* ---------- Toast & splash ---------- */
.toasts { position: fixed; z-index: 60; left: 12px; right: 12px; top: calc(var(--safe-top) + 70px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  padding: 12px 14px; border-radius: 14px; font-weight: 800; font-size: 13.5px; pointer-events: auto;
  background: rgba(20, 17, 40, .96); border: 1px solid var(--stroke-2); box-shadow: 0 10px 26px rgba(0,0,0,.5);
  animation: toast .25s ease;
}
.toast.success { border-color: rgba(46,229,157,.6); }
.toast.error { border-color: rgba(255,84,112,.7); }
@keyframes toast { from { transform: translateY(-10px); opacity: 0; } }
.splash { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); color: var(--muted); font-weight: 800; transition: opacity .3s ease; }
.splash.hide { opacity: 0; pointer-events: none; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255,255,255,.1); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-gain { position: fixed; z-index: 70; pointer-events: none; font-weight: 900; color: var(--gold); font-size: 20px; text-shadow: 0 0 12px rgba(247,201,72,.7); animation: rise 1.2s ease forwards; }
@keyframes rise { to { transform: translateY(-70px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 560px) {
  .screens { max-width: 520px; margin: 0 auto; }
  .dock { max-width: 500px; margin: 0 auto; }
}
