/* ===== Premium: rounded + glass + motion ===== */
body, body.halloween { --radius: 22px; --radius-sm: 16px; }

.ds-page button, .ds-page input, .ds-page .ds-card, .ds-page .ds-co-card, .ds-page .ds-signed,
.ds-page .ds-line, .ds-page .ds-cur-menu, .ds-page .ds-notice, .ds-page .ds-lines,
.modal-content, .ds-page [class*="ds-buy"], .ds-page [class*="ds-pay"] { border-radius: 16px; }
.ds-page .ds-ibtn { border-radius: 12px; }
.ds-page .ds-co-row { gap: 10px; }
.ds-page .ds-co-input { border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow .25s, background .25s; }
.ds-page .ds-co-input:focus-visible { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px var(--glow); }
.ds-page .ds-co-go { border-radius: 16px; }

/* glass surfaces */
.ds-page .ds-card, .ds-page .ds-co-card, .ds-page .ds-signed, .modal-content {
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.13) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14);
}
.ds-page .ds-co-card, .modal-content { border-radius: 26px; overflow: hidden; }
.ds-page .ds-card { border-radius: 22px; }
.ds-page .ds-signed { border-radius: 18px; }
.ds-page .ds-skin, .ds-page .ds-cart-logo { border-radius: 14px; }

/* Java / Bedrock tabs: sliding glider + icon pop */
.ds-co-tabs { position: relative; padding: 6px; gap: 6px; border-radius: 22px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); isolation: isolate; }
.ds-co-tabs button { position: relative; z-index: 1; flex: 1; justify-content: center; background: transparent !important; border-radius: 16px; height: 56px; transition: color .3s, transform .2s; }
.ds-co-tabs button.on { background: transparent !important; }
.ds-co-tabs button:not(.on):hover { color: #fff; }
.ds-glider { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 9px); border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent)); box-shadow: 0 8px 26px var(--glow), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.ds-co-tabs[data-p="bedrock"] .ds-glider { transform: translateX(calc(100% + 6px)); }
.ds-co-tabs button.on svg { animation: ds-pop .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes ds-pop { 0% { transform: scale(.4) rotate(-25deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: none; } }

/* Proceed button loading */
.ds-proceed { border-radius: 18px; background: linear-gradient(135deg, var(--accent-hi), var(--accent)); box-shadow: 0 10px 30px var(--glow); display: flex; align-items: center; justify-content: center; }
.ds-proceed.is-loading, .ds-proceed:disabled { cursor: progress; filter: saturate(.85); }
.ds-btn-spin, .tx-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: currentColor; animation: ds-spin .7s linear infinite; display: inline-block; }

/* ===== Tebex-style payment flow ===== */
.tx-root { position: fixed; inset: 0; z-index: 9999; overflow-y: auto; background: #050507; color: #eee; font-family: Raleway, sans-serif; animation: tx-fade .4s ease; }
@keyframes tx-fade { from { opacity: 0; } }
@keyframes tx-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.tx-in { animation: tx-rise .5s cubic-bezier(.22,1,.36,1) backwards; }
.tx-orbs { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(500px 380px at 15% 10%, rgba(64,196,196,.22), transparent 70%), radial-gradient(520px 420px at 90% 85%, rgba(22,152,255,.2), transparent 70%); animation: tx-drift 9s ease-in-out infinite alternate; }
@keyframes tx-drift { to { transform: translate(20px, -16px) scale(1.06); } }
.tx-x { position: fixed; top: 16px; right: 18px; z-index: 3; padding: 8px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #ddd; cursor: pointer; font: 600 13px Raleway, sans-serif; transition: background .2s; }
.tx-x:hover { background: rgba(255,255,255,.14); }
.tx-wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 40px 20px 60px; }
.tx-logo { display: block; width: 72px; height: 72px; margin: 0 auto 18px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(22,152,255,.45)); animation: tx-float 3.2s ease-in-out infinite; }
.tx-logo.sm { width: 52px; height: 52px; margin: 0 0 14px; }
@keyframes tx-float { 50% { transform: translateY(-6px); } }
.tx-bar { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 16px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font: 500 16px Raleway, sans-serif; cursor: pointer; }
.tx-bar strong { font-size: 20px; }
.tx-bar b { display: inline-block; transition: transform .3s; margin-left: 6px; }
.tx-bar b.up { transform: rotate(180deg); }
.tx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; font-size: 14px; color: #8d9098; }
.tx-crumbs b { margin-right: 8px; opacity: .6; }
.tx-crumbs .on { color: #40c4c4; font-weight: 600; }
.tx-h { margin: 28px 0 16px; font: 700 24px Raleway, sans-serif; }
.tx-ups { display: grid; gap: 12px; margin-bottom: 26px; }
.tx-up { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: tx-rise .5s cubic-bezier(.22,1,.36,1) backwards; transition: border-color .3s, box-shadow .3s, transform .3s; }
.tx-up:hover { transform: translateY(-2px); }
.tx-up.on { border-color: rgba(64,196,196,.6); box-shadow: 0 0 0 3px rgba(64,196,196,.12), 0 10px 30px rgba(64,196,196,.15); }
.tx-up img { width: 54px; height: 54px; object-fit: contain; border-radius: 14px; }
.tx-up div { flex: 1; min-width: 0; }
.tx-up strong, .tx-lines strong { display: block; font-weight: 500; font-size: 17px; }
.tx-up small, .tx-lines small { color: #a4a7b0; font-size: 14px; }
.tx-up button { padding: 12px 22px; border: 0; border-radius: 14px; background: #e8e8ea; color: #111; font: 600 16px Raleway, sans-serif; cursor: pointer; transition: transform .2s, background .3s; }
.tx-up button:active { transform: scale(.94); }
.tx-up.on button { background: #40c4c4; }
.tx-btn { display: flex; align-items: center; justify-content: center; min-width: 220px; height: 54px; padding: 0 28px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #5be0e0, #35b3b3); color: #04201f; font: 700 17px Raleway, sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(64,196,196,.3); transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, opacity .2s; }
.tx-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(64,196,196,.42); }
.tx-btn:active:not(:disabled) { transform: scale(.97); }
.tx-btn:disabled { opacity: .7; cursor: progress; }
.tx-lines { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.tx-lines li { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.05); }
.tx-lines img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.tx-lines s { opacity: .5; margin-right: 4px; }
.tx-lines em { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.1); font: 600 11px Raleway, sans-serif; text-transform: uppercase; font-style: normal; }

.tx-split { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr); gap: 0; min-height: 100vh; }
.tx-side { display: flex; flex-direction: column; padding: 40px 32px; background: rgba(255,255,255,.045); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border-right: 1px solid rgba(255,255,255,.08); }
.tx-order { margin: 0 0 4px; font-size: 15px; }
.tx-coupon { margin-top: auto; padding-top: 30px; }
.tx-coupon > span { display: block; margin-bottom: 8px; font-weight: 600; }
.tx-cin { position: relative; }
.tx-cin input { width: 100%; height: 50px; padding: 0 110px 0 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); color: #fff; font: 600 16px/1 Raleway, sans-serif; letter-spacing: .08em; outline: none; transition: border-color .3s, box-shadow .3s; }
.tx-cin.ok input { border-color: #40c4c4; box-shadow: 0 0 0 4px rgba(64,196,196,.15); }
.tx-cin b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 10px; background: rgba(64,196,196,.2); color: #5be0e0; font-size: 12px; animation: tx-pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes tx-pop { from { transform: translateY(-50%) scale(.4); opacity: 0; } }
.tx-tot { margin: 22px 0 0; font-size: 14px; }
.tx-tot div { display: flex; justify-content: space-between; padding: 8px 0; }
.tx-tot dt, .tx-tot dd { margin: 0; }
.tx-tot .disc { color: #5be0e0; }
.tx-tot .big { border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; padding-top: 16px; font-size: 22px; font-weight: 600; }
.tx-tot .big dd { animation: tx-rise .5s cubic-bezier(.22,1,.36,1); }
.tx-main { padding: 56px clamp(20px, 6vw, 72px); max-width: 700px; width: 100%; }
.tx-form { display: grid; gap: 18px; }
.tx-form h3 { margin: 0; font: 700 26px Raleway, sans-serif; }
.tx-sub { margin: 4px 0 8px; color: #a4a7b0; font-size: 15px; line-height: 1.5; }
.tx-sub b { color: #fff; }
.tx-field span { display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px; }
.tx-field input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); color: #fff; font: 400 16px Raleway, sans-serif; outline: none; transition: border-color .25s, box-shadow .25s, background .25s; }
.tx-field input:focus { border-color: #40c4c4; background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(64,196,196,.15); }
.tx-field.bad input { border-color: #ef4444; }
.tx-field em { display: block; margin-top: 6px; color: #f87171; font-size: 13px; font-style: normal; }
.tx-form .tx-btn { width: 100%; margin-top: 6px; }
.tx-otp { display: flex; gap: 10px; margin: 8px 0 4px; }
.tx-otp input { flex: 1; min-width: 0; height: 62px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.06); color: #fff; text-align: center; font: 700 26px Raleway, sans-serif; outline: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tx-otp input:focus { border-color: #40c4c4; box-shadow: 0 0 0 4px rgba(64,196,196,.18); transform: translateY(-3px); }
.tx-otp input.filled { border-color: rgba(64,196,196,.6); animation: tx-tick .25s ease; }
@keyframes tx-tick { 50% { transform: scale(1.1); } }
.tx-otp.bad { animation: tx-shake .4s; }
.tx-otp.bad input { border-color: #ef4444; }
@keyframes tx-shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.tx-err { margin: 0; color: #f87171; font-size: 13px; }
.tx-resend { margin: 4px 0 0; text-align: center; color: #8d9098; font-size: 14px; }
.tx-resend button { border: 0; background: none; color: #5be0e0; font: 600 14px Raleway, sans-serif; cursor: pointer; }

/* Confirmed */
.tx-done { text-align: center; padding-top: 12vh; }
.tx-done h2 { margin: 18px 0 6px; font: 800 34px Raleway, sans-serif; background: linear-gradient(90deg, #5be0e0, #1698ff, #b34bff); -webkit-background-clip: text; background-clip: text; color: transparent; animation: tx-rise .6s .6s backwards; }
.tx-done .tx-sub, .tx-done .tx-lines, .tx-done .tx-btn { animation: tx-rise .6s .8s backwards; }
.tx-done .tx-lines { text-align: left; margin-bottom: 26px; }
.tx-done .tx-btn { margin: 0 auto; }
.tx-check { width: 110px; height: 110px; filter: drop-shadow(0 0 24px rgba(64,196,196,.6)); animation: tx-checkpop .6s cubic-bezier(.34,1.56,.64,1) backwards; }
.tx-check circle { fill: rgba(64,196,196,.12); stroke: #40c4c4; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: tx-draw .8s .1s ease forwards; }
.tx-check path { fill: none; stroke: #5be0e0; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tx-draw .5s .7s ease forwards; }
@keyframes tx-draw { to { stroke-dashoffset: 0; } }
@keyframes tx-checkpop { from { transform: scale(.3); opacity: 0; } }
.tx-burst { position: absolute; left: 50%; top: calc(12vh + 150px); width: 0; height: 0; }
.tx-burst i { position: absolute; width: 9px; height: 14px; border-radius: 3px; opacity: 0; animation: tx-conf 1.4s cubic-bezier(.15,.8,.3,1) forwards; }
@keyframes tx-conf { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(540deg); } }

@media (max-width: 820px) {
  .tx-split { grid-template-columns: 1fr; min-height: 0; }
  .tx-side { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding: 64px 20px 24px; }
  .tx-coupon { margin-top: 20px; padding-top: 0; }
  .tx-main { padding: 28px 20px 60px; }
  .tx-otp { gap: 7px; }
  .tx-otp input { height: 54px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .tx-root *, .ds-glider { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===== OTP boxes: fixed, balanced sizes (PC + phone) ===== */
.tx-otp { justify-content: flex-start; gap: 12px; }
.tx-otp input { flex: 0 1 58px; width: 58px; max-width: 58px; min-width: 0; height: 68px; font-size: 26px; padding: 0; }
@media (max-width: 820px) {
  .tx-otp { justify-content: center; gap: 8px; }
  .tx-otp input { flex: 0 1 46px; width: 46px; max-width: 46px; height: 58px; font-size: 22px; border-radius: 14px; }
}
@media (max-width: 360px) { .tx-otp { gap: 6px; } .tx-otp input { flex-basis: 40px; width: 40px; height: 52px; font-size: 20px; } }

/* ===== Store intro animations (ranks / shards / headings) ===== */
@keyframes ds-card-in { 0% { opacity: 0; transform: translateY(46px) scale(.9) rotateX(14deg); filter: blur(10px); } 60% { filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes ds-head-in { from { opacity: 0; transform: translateX(-24px); letter-spacing: .25em; } }
@keyframes ds-sheen { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes ds-float { 50% { transform: translateY(-5px); } }
.ds-view .ds-section-head { animation: ds-head-in .8s cubic-bezier(.22,1,.36,1) .85s backwards; }
.ds-view .ds-section + .ds-section .ds-section-head { animation-delay: 1.3s; }
.ds-view .ds-grid { perspective: 1100px; }
.ds-view .ds-card { position: relative; overflow: hidden; animation: ds-card-in .85s cubic-bezier(.22,1,.36,1) calc(1s + var(--i, 0) * .11s) backwards; }
.ds-view .ds-section + .ds-section .ds-card { animation-delay: calc(1.45s + var(--i, 0) * .08s); }
.ds-view .ds-card::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: translateX(-130%) skewX(-18deg); animation: ds-sheen 1.1s ease calc(1.5s + var(--i, 0) * .11s) 1 both; }
.ds-view .ds-buy { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, filter .25s; }
.ds-view .ds-buy:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 28px var(--glow); }

/* ===== Loading screen ===== */
.loading-wrap.lw { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 26px; position: fixed; inset: 0; z-index: 2147483100; overflow: hidden; background: #07040b; }
.lw-glow { position: absolute; width: 520px; height: 520px; max-width: 120vw; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,24,.28), rgba(179,75,255,.14) 45%, transparent 70%); animation: lw-breathe 2.4s ease-in-out infinite; }
.lw-logo { position: relative; width: 120px; height: 120px; display: grid; place-items: center; animation: lw-in .9s cubic-bezier(.34,1.56,.64,1) backwards; }
.lw-logo img { position: relative; width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 10px 26px rgba(22,152,255,.55)); animation: lw-bob 1.8s ease-in-out .9s infinite; }
.lw-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid transparent; border-top-color: #ff9a3c; border-right-color: rgba(255,154,60,.25); animation: ds-spin 1.3s linear infinite; }
.lw-ring2 { inset: -26px; border-top-color: #b34bff; border-right-color: rgba(179,75,255,.2); animation-duration: 2s; animation-direction: reverse; }
.lw-bar { position: relative; width: min(260px, 64vw); height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; animation: lw-fade .6s .35s backwards; }
.lw-bar i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; background: linear-gradient(90deg, #ff7a18, #ffb15c, #b34bff); box-shadow: 0 0 16px rgba(255,122,24,.7); animation: lw-fill 2.1s cubic-bezier(.45,.05,.25,1) .2s forwards; transform: scaleX(0); }
.lw-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6), transparent 70%); animation: lw-shine 1s linear infinite; }
.lw-text { position: relative; margin: 0; color: #a591b3; font: 500 14px Raleway, sans-serif; letter-spacing: .04em; animation: lw-fade .6s .5s backwards; }
.lw-text strong { color: #ff9a3c; }
.lw-dots b { display: inline-block; animation: lw-dot 1.2s ease-in-out infinite; }
.lw-dots b:nth-child(2) { animation-delay: .15s; }
.lw-dots b:nth-child(3) { animation-delay: .3s; }
@keyframes lw-in { from { opacity: 0; transform: scale(.3) rotate(-20deg); } }
@keyframes lw-bob { 50% { transform: translateY(-8px) scale(1.04); } }
@keyframes lw-breathe { 50% { transform: scale(1.15); opacity: .75; } }
@keyframes lw-fade { from { opacity: 0; transform: translateY(10px); } }
@keyframes lw-fill { 0% { transform: scaleX(0); } 60% { transform: scaleX(.72); } 100% { transform: scaleX(1); } }
@keyframes lw-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes lw-dot { 0%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

/* ------------------------------------------------------------------ */
/* Claim-link flow (/l/:id)                                            */
/* ------------------------------------------------------------------ */
.lf-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 18px 72px;
  background:
    radial-gradient(760px 420px at 50% -12%, rgba(22, 152, 255, .12), transparent 70%),
    radial-gradient(620px 400px at 92% 108%, rgba(179, 75, 255, .1), transparent 70%),
    #070a0f;
}
.lf-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #0f151d, #0a0e14);
  border: 1px solid #1c2733;
  border-radius: 20px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .03);
  padding: 26px 28px 22px;
  color: #eaf2fb;
}
.lf-card.lf-center { text-align: center; padding: 44px 32px; }
.lf-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lf-brand { display: flex; align-items: center; gap: 12px; }
.lf-brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; }
.lf-brand span { display: block; font-weight: 800; letter-spacing: -.2px; }
.lf-brand small { display: block; color: #7f93a8; font-size: 12px; }
.lf-timer {
  text-align: right;
  min-width: 96px;
  padding: 7px 12px;
  border: 1px solid #1c2733;
  border-radius: 10px;
  background: #0a1119;
}
.lf-timer span { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #7f93a8; }
.lf-timer b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; }
.lf-timer--low b { color: #ff8fa5; }

.lf-steps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 22px 0 6px;
  padding: 0;
  counter-reset: lf;
}
.lf-steps li {
  flex: 1;
  position: relative;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #55697d;
  padding-top: 12px;
  text-align: center;
}
.lf-steps li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 100px;
  background: #16202b;
}
.lf-steps li.on { color: #eaf2fb; }
.lf-steps li.on::before { background: linear-gradient(90deg, #1698ff, #40c4c4); }
.lf-steps li.done { color: #40c4c4; }
.lf-steps li.done::before { background: #1d5f66; }

.lf-body { padding: 22px 0 4px; }
.lf-title { font-size: 22px; line-height: 1.25; letter-spacing: -.4px; margin: 0 0 8px; }
.lf-muted { color: #93a7bb; font-size: 14px; line-height: 1.65; margin: 0 0 18px; }
.lf-muted b { color: #eaf2fb; }
.lf-hint { color: #7f93a8; font-size: 12.5px; line-height: 1.6; margin: 12px 0 0; }

.lf-field { margin-bottom: 14px; }
.lf-field label {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7f93a8;
  margin-bottom: 7px;
}
.lf-field > input,
.lf-input-row input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid #1c2733;
  background: #070c12;
  color: #eaf2fb;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lf-field > input:focus,
.lf-input-row input:focus {
  border-color: #1698ff;
  box-shadow: 0 0 0 3px rgba(22, 152, 255, .16);
}
.lf-input-row { display: flex; align-items: center; gap: 12px; }
.lf-skin { width: 44px; height: 44px; border-radius: 9px; image-rendering: pixelated; background: #0d151e; }
.lf-skin--placeholder { display: block; }

.lf-btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(100deg, #1698ff, #40c4c4);
  color: #04121c;
  font-weight: 800;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s, filter .15s;
}
.lf-btn:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.lf-btn:disabled { opacity: .6; cursor: progress; }
.lf-link {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: 0;
  color: #7fb0d8;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lf-link:disabled { opacity: .5; cursor: default; }

.lf-error {
  margin: 12px 0 0;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 47, 94, .35);
  background: rgba(255, 47, 94, .08);
  color: #ffb3c1;
  font-size: 13px;
  line-height: 1.5;
}

.lf-otp { display: flex; gap: 9px; margin-bottom: 16px; }
.lf-otp input {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  border-radius: 11px;
  border: 1px solid #1c2733;
  background: #070c12;
  color: #eaf2fb;
  outline: none;
}
.lf-otp input.filled { border-color: #1698ff; background: #08131d; }
.lf-resend { text-align: center; color: #7f93a8; font-size: 12.5px; margin: 14px 0 0; }

.lf-numbers { display: flex; gap: 12px; margin: 20px 0 8px; }
.lf-number {
  flex: 1;
  padding: 22px 0;
  border-radius: 13px;
  border: 1px solid #1c2733;
  background: linear-gradient(180deg, #0d1721, #0a1017);
  color: #eaf2fb;
  font-size: 26px;
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  cursor: pointer;
  transition: border-color .14s, transform .12s, background .15s;
}
.lf-number:hover:not(:disabled) { border-color: #40c4c4; background: #0b1a20; transform: translateY(-2px); }
.lf-number:disabled { opacity: .55; cursor: progress; }

.lf-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lf-badge--bad { border: 1px solid rgba(255, 47, 94, .4); color: #ff8fa5; background: rgba(255, 47, 94, .08); }

.lf-confirm .lf-check { width: 74px; height: 74px; margin: 0 auto 16px; display: block; }
.lf-check circle {
  fill: rgba(64, 196, 196, .1);
  stroke: #40c4c4;
  stroke-width: 2;
  stroke-dasharray: 152;
  animation: lf-draw .55s ease forwards;
}
.lf-check path {
  fill: none;
  stroke: #40c4c4;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: lf-draw .4s .3s ease forwards;
}
@keyframes lf-draw { to { stroke-dashoffset: 0; } }

.lf-recap {
  display: grid;
  gap: 1px;
  margin: 20px 0 4px;
  border: 1px solid #1c2733;
  border-radius: 12px;
  overflow: hidden;
  background: #1c2733;
  text-align: left;
}
.lf-recap > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  background: #0a1017;
  font-size: 13px;
}
.lf-recap span { color: #7f93a8; }
.lf-recap b { font-weight: 600; word-break: break-all; text-align: right; }

.lf-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #16202b;
  color: #55697d;
  font-size: 11.5px;
}
@media (max-width: 520px) {
  .lf-card { padding: 20px 18px 18px; border-radius: 16px; }
  .lf-foot { flex-direction: column; gap: 4px; }
  .lf-otp { gap: 6px; }
  .lf-numbers { gap: 8px; }
  .lf-number { font-size: 21px; padding: 18px 0; }
}
