:root {
  --bg: #f6f7fb; --card: #fff; --line: #e6e8f0; --text: #1c2033; --muted: #6b7189;
  --brand: #5b5ef4; --brand-d: #4a4ddb; --ok: #12996b; --bad: #d43d51; --warn-bg: #fff9e3; --warn-line: #f1dc8b;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Inter, "Segoe UI", system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 22px; margin: 0 0 12px; } h2 { font-size: 19px; margin: 26px 0 16px; }
.muted { color: var(--muted); } .mono, code { font-family: Consolas, Menlo, monospace; word-break: break-all; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.narrow { width: 100%; max-width: 460px; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--brand-d); } .btn.wide { width: 100%; padding: 15px; } .btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.ghost { background: #eef0ff; color: var(--brand-d); } .btn.danger { background: var(--bad); }
.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
.note { border-radius: 8px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; margin: 14px 0; }
.note.warn { background: var(--warn-bg); border-color: var(--warn-line); color: #6b5300; }
.note.bad { background: #fdecee; border-color: #f5c2c9; color: #8f1f30; }
.note.ok { background: #e8f8f1; border-color: #b5e5d1; color: #0b6b4a; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #cfd3e1; border-radius: 7px; font: inherit; color: var(--text); background: #fff; }
input[type=checkbox] { display: inline; width: auto; margin: 0 6px 0 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* checkout */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.shop { font-size: 17px; }
.checkout { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 440px); gap: 56px; padding-top: 36px; padding-bottom: 60px; justify-content: center; }
.timer { display: flex; justify-content: space-between; align-items: center; background: #f1f3f8; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.timer span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); } .timer b { font-size: 19px; font-variant-numeric: tabular-nums; }
.backform { margin-bottom: 12px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px 12px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.method:hover:not(:disabled) { border-color: var(--brand); box-shadow: 0 4px 18px rgba(91, 94, 244, .14); }
.method:disabled { opacity: .45; cursor: not-allowed; }
.method .net { color: var(--muted); font-size: 14px; }
.method .min { background: #eef0ff; color: var(--brand-d); font-size: 12px; font-weight: 600; border-radius: 20px; padding: 2px 10px; }
.coin { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; font-size: 28px; font-weight: 700; flex: none; }
.coin.bnb { background: #f0b90b; } .coin.usdt { background: #26a17b; } .coin.usdc { background: #2775ca; }
.coin i { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: #1c2033; border: 2px solid #fff; font: 700 11px/18px sans-serif; text-align: center; }
.mtitle { display: flex; align-items: center; gap: 12px; } .mtitle .coin { width: 36px; height: 36px; font-size: 18px; } .mtitle .coin i { display: none; }
.qr { width: 240px; min-height: 60px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 19px; display: grid; place-items: center; }
.qr:empty { display: none; } .qr img { max-width: 100%; display: block; }
.qrname { text-align: center; color: var(--muted); font-size: 17px; margin: 12px 0 18px; }
.paybox { background: var(--brand); color: #fff; border-radius: 10px; padding: 26px 24px; text-align: center; }
.paybox small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; opacity: .85; }
.amount { font-size: 46px; font-weight: 700; line-height: 1.3; cursor: pointer; } .amount span { font-size: 18px; opacity: .85; }
.dest { margin-top: 14px; border: 2px dashed rgba(255, 255, 255, .6); border-radius: 8px; padding: 12px; cursor: pointer; position: relative; }
.dest code { display: block; font-size: 16px; font-weight: 700; margin-top: 4px; }
.dest em { position: absolute; right: 10px; top: 8px; font-size: 11px; font-style: normal; opacity: .8; }
.copied::after { content: " Copied!"; font-size: 13px; font-weight: 600; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spin { width: 16px; height: 16px; border: 2px solid #c9cce0; border-top-color: var(--brand); border-radius: 50%; animation: sp 1s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }
.state { text-align: center; padding: 50px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.state .big { width: 72px; height: 72px; line-height: 72px; border-radius: 50%; margin: 0 auto 16px; font-size: 34px; color: #fff; }
.state.ok .big { background: var(--ok); } .state.bad .big { background: var(--bad); }
.right .tag { display: inline-block; background: #eef1f8; border-radius: 6px; padding: 6px 12px; font-size: 14px; margin-bottom: 20px; }
.st { font-size: 11px; font-weight: 700; margin-left: 8px; color: #c98a00; } .st.paid { color: var(--ok); } .st.expired, .st.cancelled { color: var(--bad); }
.right .card { margin-bottom: 20px; }
.item { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; }
.item small { display: block; color: var(--muted); }
.bag { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 9px; background: #eef0ff; color: var(--brand); font-size: 22px; font-weight: 700; flex: none; }
.line { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.line.total { color: var(--text); font-weight: 700; font-size: 17px; padding-bottom: 0; }
.secure p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .right { order: -1; } .methods { grid-template-columns: repeat(2, 1fr); } .amount { font-size: 36px; }
}

/* panel */
.btn.dark { background: #111827; } .btn.dark:hover { background: #000; }
.authbg { background: #111827; }
.amber { color: #d98a00; }
.panel { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.side { background: #111827; color: #cdd2e0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid #232b3d; }
.logo span { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid #fff; border-radius: 50%; color: #fff; font-weight: 800; }
.logo b { display: block; color: #fff; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; } .logo small { font-size: 12px; }
.links { padding: 12px; flex: 1; overflow-y: auto; }
.links a { display: flex; align-items: center; gap: 14px; color: #cdd2e0; text-decoration: none; padding: 12px 16px; border-radius: 8px; margin-bottom: 4px; }
.links a i { font-style: normal; width: 22px; text-align: center; font-size: 17px; }
.links a.on { background: #2b3446; color: #fff; font-weight: 700; } .links a:hover { color: #fff; }
.links em { display: block; font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f7890; padding: 14px 16px 6px; }
.who { margin: 14px; padding: 16px; border-radius: 10px; background: #232b3d; }
.who > div { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; min-width: 0; }
.who b { display: block; color: #fff; } .who small { font-size: 12px; word-break: break-all; }
.who a { display: block; text-align: center; color: #fff; text-decoration: none; border: 1px solid #cdd2e0; border-radius: 6px; padding: 6px; font-weight: 600; }
.ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.ava.sq { border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #fff; }
.panel .main { padding: 22px 40px 50px; min-width: 0; }
.dash { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.hero { border-radius: 6px; padding: 70px 48px; min-height: 288px; color: #1b2233; background: linear-gradient(120deg, #8a96a8 0%, #98a3b3 45%, #b3bbc8 100%); }
.hero h2 { font-size: 30px; margin: 0 0 6px; } .hero p { margin: 0 0 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.stat, .rowi { display: flex; align-items: center; gap: 16px; } .stat { padding: 20px 24px; }
.stat small, .rowi small, .paid .hd small { display: block; font-size: 12px; color: var(--muted); }
.r { margin-left: auto; text-align: right; } .stat .r b { font-size: 18px; } .r span { display: block; }
.ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #eceef2; font-size: 18px; flex: none; } .ic.amber { background: #fdf0d8; }
.paid, .latest { padding: 0; } .paid .hd { padding: 22px 24px; border-bottom: 1px solid var(--line); } .paid .hd b { font-size: 17px; }
.paid .rowi { margin: 0 24px; padding: 20px 0; border-bottom: 1px solid var(--line); } .paid .rowi:last-child { border: 0; }
.latest .tab { padding: 0 28px; border-bottom: 1px solid var(--line); } .latest .tab span { display: inline-block; padding: 40px 14px 16px; border-bottom: 2px solid #111827; font-weight: 600; }
.latest .rowi { padding: 16px 24px; border-bottom: 1px solid var(--line); } .latest .rowi:last-child { border: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.plan .price { font-size: 30px; font-weight: 700; margin: 6px 0; } .plan .price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 18px; color: var(--muted); margin: 10px 0 18px; }
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; } .hero { padding: 36px 24px; min-height: 0; } }
@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; } .side { position: static; height: auto; } .links { display: flex; flex-wrap: wrap; } .links em { display: none; }
  .who { display: none; } .panel .main { padding: 16px; } .two { grid-template-columns: 1fr; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stats .card small { color: var(--muted); display: block; } .stats .card b { font-size: 24px; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6f7fb; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
td form { display: inline; } td .mono { font-size: 12px; }
.pill { display: inline-block; border-radius: 20px; padding: 1px 9px; font-size: 12px; font-weight: 600; background: #fff3d1; color: #8a6100; }
.pill.paid, .pill.on { background: #dff6ec; color: #0b6b4a; } .pill.expired, .pill.cancelled, .pill.off { background: #fde4e7; color: #8f1f30; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }
.bar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; } .bar label { margin: 0; } .bar input, .bar select { width: auto; }

/* landing page */
.lp { background: #fff; scroll-behavior: smooth; }
.lp h2 { font-size: 30px; text-align: center; margin: 0 0 8px; letter-spacing: -.01em; }
.lp h3 { font-size: 17px; margin: 14px 0 6px; }
.lp-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.lp-nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lp-nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.lp-brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #111827; color: #fff; }
.lp-nav nav { display: flex; gap: 24px; margin-left: auto; } .lp-nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; } .lp-nav nav a:hover { color: var(--text); }
.lp-hero { background: linear-gradient(180deg, #f3f4fb 0%, #fff 100%); padding: 72px 0 64px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.lp-tag { display: inline-block; background: #e8e9ff; color: var(--brand-d); font-weight: 600; font-size: 13px; border-radius: 20px; padding: 4px 12px; }
.lp-hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -.02em; margin: 16px 0; }
.lp-hero p { font-size: 18px; color: #4a5068; margin: 0 0 26px; max-width: 560px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-points { list-style: none; padding: 0; margin: 26px 0 0; color: #4a5068; } .lp-points li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.lp-points li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.lp-mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 24px 60px rgba(28, 32, 51, .12); }
.lp-mock-top { display: flex; justify-content: space-between; background: #f1f3f8; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--muted); font-weight: 600; } .lp-mock-top b { color: var(--text); font-size: 15px; }
.lp-mock-pay { background: var(--brand); color: #fff; border-radius: 10px; text-align: center; padding: 20px; margin: 14px 0; }
.lp-mock-pay small { font-size: 11px; letter-spacing: .06em; opacity: .85; } .lp-mock-pay strong { display: block; font-size: 34px; } .lp-mock-pay i { font-size: 15px; font-style: normal; opacity: .85; }
.lp-mock-pay div { border: 1.5px dashed rgba(255, 255, 255, .6); border-radius: 7px; padding: 7px; margin-top: 8px; font-size: 13px; }
.lp-mock-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.lp-mock-row .coin { width: 36px; height: 36px; font-size: 17px; } .lp-mock-row small { display: block; color: var(--muted); font-size: 12px; }
.lp-mock-row em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand-d); background: #eef0ff; border-radius: 20px; padding: 2px 10px; }
.lp-mock-ok { display: flex; align-items: center; gap: 10px; background: #e8f8f1; color: #0b6b4a; border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-top: 14px; }
.lp-mock-ok span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 14px; }
.lp-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.lp-strip div { padding: 22px 10px; border-left: 1px solid var(--line); } .lp-strip div:first-child { border: 0; }
.lp-strip b { display: block; font-size: 17px; } .lp-strip small { color: var(--muted); }
.lp-sec { padding: 76px 0; } .lp-sec.alt { background: #f6f7fb; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-grid .card p, .lp-steps p { color: var(--muted); margin: 0; }
.lp-grid .ic { background: #eef0ff; color: var(--brand-d); }
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-steps > div > b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #111827; color: #fff; }
.lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } .lp-two h2 { text-align: left; }
.lp-list { padding-left: 20px; color: #4a5068; } .lp-list li { margin-bottom: 10px; }
.lp-code { background: #111827; color: #d7dcea; border: 0; } .lp-code small { color: #8b93aa; } .lp-code pre { margin: 10px 0 0; font: 13px/1.6 Consolas, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.lp-plans { max-width: 820px; margin: 0 auto; }
.lp-faq { max-width: 760px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; } .lp-faq summary { font-weight: 600; cursor: pointer; font-size: 16px; } .lp-faq details p { color: var(--muted); margin: 10px 0 0; }
.lp-final { background: #111827; color: #fff; text-align: center; padding: 64px 0; } .lp-final h2 { color: #fff; } .lp-final p { color: #b9bfd1; margin: 0 0 24px; }
.lp-foot { padding: 22px 0; color: var(--muted); font-size: 14px; } .lp-foot .wrap { display: flex; justify-content: space-between; }
@media (max-width: 900px) {
  .lp-hero { padding: 40px 0; } .lp-hero-grid, .lp-two { grid-template-columns: 1fr; gap: 32px; } .lp-hero h1 { font-size: 32px; } .lp h2 { font-size: 24px; }
  .lp-grid { grid-template-columns: 1fr; } .lp-steps { grid-template-columns: 1fr 1fr; } .lp-strip .wrap { grid-template-columns: 1fr 1fr; } .lp-strip div:nth-child(3) { border-left: 0; }
  .lp-nav nav { display: none; } .lp-nav .btn { margin-left: auto; } .lp-sec { padding: 48px 0; }
}

/* landing: live demo card */
.lp-mock-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.lp-live { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .05em; }
.lp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: lp-pulse 1.4s ease-out infinite; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 153, 107, .5); } 100% { box-shadow: 0 0 0 9px rgba(18, 153, 107, 0); } }
#d-timer { font-variant-numeric: tabular-nums; }
.lp-mock-pay, .lp-mock-row, .lp-mock-status { transition: opacity .25s, border-color .25s, background .25s, color .25s; }
.lp-mock.swap .lp-mock-pay { opacity: .25; }
.lp-mock-row em { visibility: hidden; } .lp-mock-row.on em { visibility: visible; }
.lp-mock-row.on { border-color: var(--brand); background: #f7f7ff; } .lp-mock-row:not(.on) { opacity: .6; }
.lp-mock-status { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-top: 14px; background: #f1f3f8; color: var(--muted); min-height: 48px; }
.lp-mock-status.busy { background: #fff9e3; color: #6b5300; }
.lp-mock-status.ok { background: #e8f8f1; color: #0b6b4a; animation: lp-pop .35s ease-out; }
.lp-mock-status .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 14px; flex: none; }
@keyframes lp-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
.lp-sec, .lp-final { scroll-margin-top: 64px; }
@media (prefers-reduced-motion: reduce) { .lp-live i, .lp-mock-status.ok, .spin { animation: none; } }
