/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 14px 18px 0; z-index: 30; }
.side-in { height: 100%; display: flex; flex-direction: column; border-radius: 0 0 0 0; padding: 20px 14px; border-radius: 26px; margin-right: 14px; }
.side .brand { padding: 4px 8px 20px; }
.nav { display: grid; gap: 4px; overflow-y: auto; padding: 4px 2px; margin: 0 -2px; flex: 1 1 auto; min-height: 0; align-content: start; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.nav-backdrop { display: none; }
.nav-sec { font-size: 11px; color: var(--muted); letter-spacing: .04em; margin: 14px 12px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; color: var(--text-2); font-weight: 600; font-size: 14px;
  transition: background .2s, color .2s; position: relative; }
.nav a .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--clay-bg); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .06), inset -3px -4px 8px rgba(0, 0, 0, .45), 0 6px 14px -6px rgba(0, 0, 0, .7);
  transition: all .25s var(--ease); }
.nav a .ic svg { width: 18px; height: 18px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.nav a.on { color: #fff; background: linear-gradient(90deg, rgba(47, 107, 255, .0), rgba(47, 107, 255, .14)); }
.nav a.on .ic { background: var(--clay-blue); box-shadow: var(--clay-blue-shadow); color: #fff; }
.nav a.on::after { content: ""; position: absolute; right: -14px; top: 50%; width: 4px; height: 26px; transform: translateY(-50%); border-radius: 4px;
  background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.nav a .cnt { margin-right: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 20px; background: var(--bad); color: #fff; font-size: 11px;
  display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 12px rgba(244, 63, 94, .5); }
.side-foot { margin-top: 14px; padding: 12px; border-radius: 18px; display: flex; align-items: center; gap: 11px; }
.avatar { width: 42px; height: 42px; border-radius: 14px; flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(150deg, #3f6fe0, #1b2f75); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -8px rgba(47, 107, 255, .6); font-size: 16px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }
.who { min-width: 0; flex: 1; line-height: 1.5; }
.who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 12px; }

.main { min-width: 0; padding: 18px 28px 60px 28px; }
.top { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; margin-bottom: 24px; border-radius: 20px; }
.top h1 { font-size: 18px; margin: 0; font-weight: 800; }
.top .crumb { font-size: 12px; color: var(--muted); }
.top .acts { margin-right: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }
.mode-switch { display: inline-flex; padding: 4px; border-radius: 14px; gap: 4px; }
.mode-switch a { padding: 5px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.mode-switch a.on { background: var(--clay-blue); color: #fff; box-shadow: var(--clay-blue-shadow); }
.tabbar { display: none; }

/* ---------- layout helpers ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.span2 { grid-column: span 2; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.card { padding: 22px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h h3 { margin: 0; font-size: 16px; font-weight: 800; }
.card-h .sub { color: var(--muted); font-size: 12px; }
.card-h .end { margin-right: auto; display: flex; gap: 8px; align-items: center; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.sec-title h2 { font-size: 17px; margin: 0; font-weight: 800; }
.mt { margin-top: 18px; } .mt-s { margin-top: 10px; } .mb { margin-bottom: 18px; }

/* ---------- stat tile ---------- */
.stat { padding: 18px; display: grid; gap: 4px; position: relative; overflow: hidden; }
.stat .ic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--clay-bg); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .08), inset -5px -6px 12px rgba(0, 0, 0, .5), 0 10px 20px -10px rgba(0, 0, 0, .8); }
.stat .ic svg { width: 22px; height: 22px; }
.stat .ic.blue { background: var(--clay-blue); box-shadow: var(--clay-blue-shadow); color: #fff; }
.stat .ic.green { background: linear-gradient(150deg, #34d399, #0f8a43); color: #fff; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .25), inset -5px -6px 12px rgba(0, 50, 20, .5), 0 10px 22px -10px rgba(34, 197, 94, .6); }
.stat .ic.amber { background: linear-gradient(150deg, #fcd34d, #d97706); color: #fff; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .3), inset -5px -6px 12px rgba(90, 40, 0, .45), 0 10px 22px -10px rgba(245, 165, 36, .6); }
.stat .ic.violet { background: linear-gradient(150deg, #a78bfa, #6d28d9); color: #fff; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .25), inset -5px -6px 12px rgba(40, 10, 90, .5), 0 10px 22px -10px rgba(139, 92, 246, .6); }
.stat .ic.rose { background: linear-gradient(150deg, #fb7185, #be123c); color: #fff; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .25), inset -5px -6px 12px rgba(90, 5, 30, .5), 0 10px 22px -10px rgba(244, 63, 94, .6); }
.stat .ic.cyan { background: linear-gradient(150deg, #67e8f9, #0e7490); color: #fff; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .25), inset -5px -6px 12px rgba(0, 40, 60, .5), 0 10px 22px -10px rgba(34, 211, 238, .5); }
.stat .lb { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .val { font-size: 25px; font-weight: 850; letter-spacing: -.01em; line-height: 1.4; }
.stat .val small { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.stat .foot { font-size: 12px; color: var(--muted); }
.stat .spark { position: absolute; left: 0; bottom: 0; width: 55%; height: 54px; opacity: .9; pointer-events: none; }

/* ---------- hero ---------- */
.hero-card { padding: 28px; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: center; }
.hero-card h2 { margin: 0; font-size: 26px; font-weight: 850; line-height: 1.5; }
.hero-card p { margin: 6px 0 18px; color: var(--text-2); }
.hero-card .glow { position: absolute; width: 380px; height: 380px; left: -80px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .35), transparent 65%); pointer-events: none; }
.wallet-card { position: relative; border-radius: 24px; padding: 22px; aspect-ratio: 1.62; max-width: 380px; width: 100%; justify-self: end; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(96, 165, 250, .4), transparent 55%), linear-gradient(150deg, #1d3a8f 0%, #10204f 45%, #070c1c 100%);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .2), inset -10px -14px 30px rgba(0, 0, 0, .45), 0 30px 60px -20px rgba(47, 107, 255, .55);
  display: flex; flex-direction: column; justify-content: space-between; color: #fff; transform: perspective(900px) rotateY(-8deg) rotateX(4deg); transition: transform .5s var(--ease); }
.wallet-card:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.wallet-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%); }
.wallet-card .wl { font-size: 13px; opacity: .8; }
.wallet-card .wb { font-size: 30px; font-weight: 900; letter-spacing: -.01em; }
.wallet-card .wf { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; opacity: .85; }
.wallet-card img { width: 38px; height: 38px; }

/* ---------- bot card ---------- */
.bot-card { padding: 20px; display: grid; gap: 14px; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden; }
.bot-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(47, 107, 255, .4); }
.bot-head { display: flex; gap: 13px; align-items: center; }
.tpl-ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 25px; flex: none;
  background: var(--clay-bg); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .09), inset -5px -7px 14px rgba(0, 0, 0, .5), 0 12px 22px -10px rgba(0, 0, 0, .8); }
.tpl-ic.lg { width: 72px; height: 72px; border-radius: 24px; font-size: 34px; }
.bot-head .nm { min-width: 0; flex: 1; line-height: 1.55; }
.bot-head .nm b { display: block; font-size: 16px; direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-head .nm small { color: var(--muted); font-size: 12px; }
.bot-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bot-meta div { padding: 9px 10px; border-radius: 14px; text-align: center; }
.bot-meta b { display: block; font-size: 15px; }
.bot-meta small { color: var(--muted); font-size: 11px; }
.exp { display: grid; gap: 6px; }
.exp .bar { height: 8px; border-radius: 10px; overflow: hidden; }
.exp .bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #2f6bff, #60a5fa); box-shadow: 0 0 12px rgba(47, 107, 255, .7); transition: width 1s var(--ease); }
.exp .bar i.warn { background: linear-gradient(90deg, #d97706, #fbbf24); box-shadow: 0 0 12px rgba(245, 165, 36, .6); }
.exp .bar i.bad { background: linear-gradient(90deg, #be123c, #fb7185); box-shadow: 0 0 12px rgba(244, 63, 94, .6); }
.exp .row { font-size: 12px; color: var(--muted); }
.new-card { display: grid; place-items: center; text-align: center; gap: 10px; min-height: 220px; border: 1.5px dashed rgba(96, 165, 250, .3); background: rgba(47, 107, 255, .03); }
.new-card .plus { width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center; background: var(--clay-blue); box-shadow: var(--clay-blue-shadow); color: #fff; }
.new-card .plus svg { width: 28px; height: 28px; }

/* ---------- ring ---------- */
.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.3; }
.ring .rv b { font-size: 24px; font-weight: 900; display: block; }
.ring .rv small { font-size: 11px; color: var(--muted); }

/* ---------- table ---------- */
.table-wrap { overflow: auto; border-radius: 18px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.tbl th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 700; padding: 4px 14px; white-space: nowrap; }
.tbl td { padding: 12px 14px; background: rgba(255, 255, 255, .025); border-top: 1px solid rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(0, 0, 0, .25); white-space: nowrap; }
.tbl td:first-child { border-radius: 0 14px 14px 0; }
.tbl td:last-child { border-radius: 14px 0 0 14px; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(47, 107, 255, .07); }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user b { display: block; font-size: 14px; line-height: 1.4; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.cell-user small { color: var(--muted); font-size: 12px; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { min-height: 42px; width: auto; }
.toolbar .search { flex: 1 1 220px; min-width: 180px; position: relative; }
.toolbar .search .input { width: 100%; padding-right: 42px; }
.toolbar .search svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* ---------- list ---------- */
.list { display: grid; gap: 8px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .035); }
.li .t { flex: 1; min-width: 0; line-height: 1.55; }
.li .t b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .t small { color: var(--muted); font-size: 12px; }
.li .v { font-weight: 800; white-space: nowrap; }
.li.click { cursor: pointer; transition: background .2s; }
.li.click:hover { background: rgba(47, 107, 255, .07); }
.li .dot { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--clay-bg); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .07), inset -3px -4px 8px rgba(0, 0, 0, .45); }
.li .dot svg { width: 18px; height: 18px; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty .ei { width: 70px; height: 70px; border-radius: 24px; display: grid; place-items: center; background: var(--clay-bg); box-shadow: var(--clay-shadow); color: var(--blue-3); }
.empty .ei svg { width: 30px; height: 30px; }
.empty b { color: var(--text); font-size: 15px; }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; padding: 5px; gap: 4px; border-radius: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 12px; cursor: pointer; color: var(--text-2); font-weight: 700; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { background: var(--clay-blue); color: #fff; box-shadow: var(--clay-blue-shadow); }
.tabs .n { font-size: 11px; background: rgba(0, 0, 0, .25); padding: 0 7px; border-radius: 20px; }

/* ---------- chart ---------- */
.chart { position: relative; width: 100%; height: 230px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; padding: 8px 12px; border-radius: 12px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%);
  background: rgba(10, 16, 30, .92); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); line-height: 1.6; opacity: 0; transition: opacity .15s; z-index: 5; }
.chart .tip b { display: block; font-size: 14px; }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; flex: none; position: relative; }
.donut .rv { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.3; }
.donut .rv b { font-size: 26px; font-weight: 900; }
.donut .rv small { display: block; color: var(--muted); font-size: 11px; }
.dl { display: grid; gap: 8px; flex: 1; min-width: 160px; }
.dl div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dl i { width: 10px; height: 10px; border-radius: 4px; flex: none; }
.dl b { margin-right: auto; }
.hbar { display: grid; gap: 12px; }
.hbar .hr { display: grid; gap: 5px; font-size: 13px; }
.hbar .hr .row b { margin-right: auto; }
.hbar .tr { height: 10px; border-radius: 10px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #2f6bff, #60a5fa); box-shadow: 0 0 10px rgba(47, 107, 255, .6); }

/* ---------- wizard ---------- */
.steps { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; font-size: 13px; font-weight: 700; color: var(--muted); flex: 1; min-width: 150px; }
.step .sn { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; background: var(--clay-bg); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .07), inset -3px -4px 8px rgba(0, 0, 0, .5); }
.step.on { color: #fff; }
.step.on .sn { background: var(--clay-blue); box-shadow: var(--clay-blue-shadow); }
.step.done { color: var(--text-2); }
.step.done .sn { background: linear-gradient(150deg, #34d399, #0f8a43); color: #fff; }
.pick { padding: 20px; cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; display: grid; gap: 10px; align-content: start; }
.pick:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, .35); }
.pick.on { border-color: rgba(47, 107, 255, .8); box-shadow: 0 0 0 1px rgba(47, 107, 255, .6), 0 20px 50px -18px rgba(47, 107, 255, .55); }
.pick h4 { margin: 0; font-size: 16px; }
.pick p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.85; white-space: pre-line; }
.price-tag { font-size: 26px; font-weight: 900; }
.price-tag small { font-size: 13px; color: var(--muted); font-weight: 600; }
.feat { display: grid; gap: 7px; font-size: 13px; color: var(--text-2); margin: 4px 0 0; padding: 0; list-style: none; }
.feat li { display: flex; gap: 8px; align-items: center; }
.feat li svg { width: 16px; height: 16px; flex: none; color: #4ade80; }
.feat li.no { color: #5d6880; text-decoration: line-through; }
.feat li.no svg { color: #5d6880; }
.summary { display: grid; gap: 10px; }
.summary .row { justify-content: space-between; font-size: 14px; }
.summary .tot { font-size: 20px; font-weight: 900; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.bot-preview { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid rgba(34, 197, 94, .3); background: rgba(34, 197, 94, .06); }

/* ---------- upload ---------- */
.drop { border: 1.5px dashed rgba(96, 165, 250, .35); border-radius: 20px; padding: 26px; text-align: center; cursor: pointer; transition: all .25s; display: grid; place-items: center; gap: 8px; color: var(--text-2); position: relative; overflow: hidden; }
.drop:hover, .drop.over { background: rgba(47, 107, 255, .07); border-color: var(--blue); }
.drop img { max-height: 220px; border-radius: 14px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cardno { font-family: var(--mono); font-size: 22px; letter-spacing: .12em; direction: ltr; font-weight: 700; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; min-height: 260px; overflow: auto; padding: 6px 4px 6px 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.msg small { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.msg.me { align-self: flex-start; background: var(--clay-blue); color: #fff; border-bottom-right-radius: 6px; box-shadow: var(--clay-blue-shadow); }
.msg.them { align-self: flex-end; background: var(--clay-bg); box-shadow: var(--clay-shadow); border-bottom-left-radius: 6px; }
.composer { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.composer .textarea { min-height: 50px; height: 50px; }
.thread-list { display: grid; gap: 6px; max-height: 66vh; overflow: auto; }

/* ---------- detail ---------- */
.detail-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 24px; }
.detail-head h2 { margin: 0; font-size: 22px; direction: ltr; text-align: right; }
.detail-head .acts { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.danger-zone { border-color: rgba(244, 63, 94, .25) !important; }
.danger-zone h3 { color: #fb7185; }
.ai-box { padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.9; background: rgba(47, 107, 255, .07); border: 1px solid rgba(47, 107, 255, .2); }
.ai-box.bad { background: rgba(244, 63, 94, .07); border-color: rgba(244, 63, 94, .25); }
.ai-box.good { background: rgba(34, 197, 94, .07); border-color: rgba(34, 197, 94, .25); }
.pay-card { padding: 18px; display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.pay-card .thumb { width: 130px; height: 160px; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: rgba(255, 255, 255, .03); display: grid; place-items: center; color: var(--muted); }
.pay-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.progress { height: 10px; border-radius: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #2f6bff, #60a5fa); box-shadow: 0 0 10px rgba(47, 107, 255, .6); transition: width .6s; }
.tg-preview { max-width: 380px; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #182533; font-size: 14px; white-space: pre-wrap; line-height: 1.8; word-break: break-word; }
.tg-preview .tgb { margin-top: 8px; text-align: center; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 13px; }
.sortable .li { cursor: default; }

.page-enter { animation: fadeUp .45s var(--ease) both; }
.loader { display: grid; place-items: center; min-height: 60vh; }
.loader .lm { width: 74px; height: 74px; animation: breathe 1.6s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(47, 107, 255, .55)); }
@keyframes breathe { 50% { transform: scale(.9); opacity: .7; } }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 0 0 auto; width: 290px; padding: 10px; transform: translateX(110%); transition: transform .35s var(--ease); }
  .side-in { margin: 0; }
  body.nav-open .side { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); touch-action: none; animation: fade .25s; }
  html.nav-lock, html.nav-lock body { overflow: hidden; overscroll-behavior: none; }
  .side { height: 100dvh; }
  .side-in { max-height: 100%; }
  .menu-btn { display: inline-flex; }
  .main { padding: 12px 16px 110px; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .hero-card { grid-template-columns: 1fr; }
  .wallet-card { justify-self: stretch; max-width: none; transform: none; }
  .tabbar { display: flex; position: fixed; z-index: 40; bottom: 12px; left: 12px; right: 12px; padding: 8px; border-radius: 22px; justify-content: space-around; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); font-weight: 700; padding: 4px 6px; border-radius: 14px; flex: 1; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on span.i { background: var(--clay-blue); box-shadow: var(--clay-blue-shadow); }
  .tabbar span.i { width: 42px; height: 32px; border-radius: 12px; display: grid; place-items: center; transition: all .25s; }
  .top { top: 8px; }
  .top .crumb { display: none; }
  .mode-switch { display: none; }
  .toasts { bottom: 96px; }
}
@media (max-width: 640px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 14px; }
  .stat .val { font-size: 20px; }
  .card { padding: 16px; }
  .pay-card { grid-template-columns: 1fr; }
  .pay-card .thumb { width: 100%; height: 200px; }
  .detail-head { padding: 18px; }
  .detail-head .acts { margin-right: 0; width: 100%; }
  .msg { max-width: 90%; }
  .drawer { padding: 18px; }
  .modal { padding: 20px; }
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { margin-bottom: 10px; border-radius: 16px; background: rgba(255, 255, 255, .03); padding: 6px 0; }
  .tbl.cards td { background: transparent; border: 0; border-radius: 0 !important; padding: 6px 14px; white-space: normal; display: flex; justify-content: space-between; gap: 10px; }
  .tbl.cards td::before { content: attr(data-l); color: var(--muted); font-size: 12px; }
  .tbl.cards td.nolabel::before { display: none; }
  .bot-meta b { font-size: 14px; }
}
.tpl-ic svg { width: 24px; height: 24px; }
.tpl-ic.lg svg { width: 32px; height: 32px; }
.drop > div { display: grid; justify-items: center; gap: 6px; }
#title { unicode-bidi: plaintext; text-align: right; }
.grid > * { min-width: 0; }
.li { min-width: 0; }
@media (max-width: 640px) { .li { flex-wrap: wrap; } .li .t { flex-basis: 50%; } }
.ai-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.ai-list li { display: flex; gap: 8px; align-items: flex-start; }
.ai-list li .ico { margin-top: 4px; }

/* ---------- v2 polish ---------- */
.stat { --tint: 47, 107, 255; background: radial-gradient(240px circle at 85% 0%, rgba(var(--tint), .38), transparent 65%), radial-gradient(200px circle at 0% 100%, rgba(var(--tint), .12), transparent 70%), linear-gradient(160deg, rgba(30, 42, 70, .55), rgba(12, 18, 32, .45)); }
.stat.t-green { --tint: 34, 197, 94; } .stat.t-amber { --tint: 245, 165, 36; } .stat.t-violet { --tint: 139, 92, 246; }
.stat.t-rose { --tint: 244, 63, 94; } .stat.t-cyan { --tint: 34, 211, 238; }
.stat .val { background: linear-gradient(180deg, #fff, #c9d3e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .val small { -webkit-text-fill-color: var(--muted); }
.stat:hover .ic { transform: translateY(-3px) rotate(-6deg) scale(1.05); }
.stat .ic { transition: transform .4s var(--ease); }
.top h1, .sec-title h2, .card-h h3, .detail-head h2, .hero-card h2 { background: linear-gradient(180deg, #ffffff 10%, #cdd6e6 60%, #9eabc2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card h2 .blue-text { background: linear-gradient(90deg, #a5c4ff, #2f6bff); -webkit-background-clip: text; background-clip: text; }
.sec-title::before { content: ""; width: 6px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, #60a5fa, #1d4ed8); box-shadow: 0 0 14px rgba(47, 107, 255, .8); }
.side .brand::before { content: ""; position: absolute; right: -6px; top: -10px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .45), transparent 65%); filter: blur(6px); pointer-events: none; }
.side-in { background: linear-gradient(180deg, rgba(20, 30, 54, .65), rgba(8, 12, 24, .55)); }
.hero-card { background: radial-gradient(600px circle at 0% 0%, rgba(47, 107, 255, .22), transparent 55%), radial-gradient(500px circle at 100% 100%, rgba(139, 92, 246, .12), transparent 60%), linear-gradient(160deg, rgba(30, 42, 70, .6), rgba(12, 18, 32, .5)); }
.wallet-card { animation: cardFloat 7s ease-in-out infinite; }
@keyframes cardFloat { 50% { translate: 0 -6px; } }
.tpl-ic { color: #a9c3ff; }
.tpl-ic svg { filter: drop-shadow(0 0 8px rgba(47, 107, 255, .6)); }
.bot-card .tpl-ic, .pick .tpl-ic, .tcard .tpl-ic { background: radial-gradient(circle at 30% 25%, rgba(96, 165, 250, .35), transparent 60%), var(--clay-bg); }
.tcard .tpl-ic { color: #a9c3ff; } .tcard .tpl-ic svg { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(47, 107, 255, .6)); }
.li .dot { color: #a9c3ff; }
.nav a .ic { color: #9fb2d6; }
.badge.live { box-shadow: 0 0 14px rgba(34, 197, 94, .25); }
.empty .ei { background: radial-gradient(circle at 30% 25%, rgba(96, 165, 250, .35), transparent 60%), var(--clay-bg); }
h3 .ico, h4 .ico { margin-left: 4px; }

/* ---------- pay panel ---------- */
.pay-steps { display: grid; gap: 14px; align-content: start; }
.pay-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.pay-step .n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--clay-blue); box-shadow: var(--clay-blue-shadow); }
.copy-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; border-radius: 16px; flex-wrap: wrap; }
.copy-row .big { font-size: 20px; font-weight: 900; direction: ltr; letter-spacing: .06em; }
.status-card { text-align: center; padding: 40px 22px; display: grid; justify-items: center; gap: 12px; }
.orbit { width: 92px; height: 92px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(47, 107, 255, .15); border-top-color: #60a5fa; animation: spin 1.1s linear infinite; box-shadow: 0 0 24px rgba(47, 107, 255, .35); }
.orbit svg { width: 34px; height: 34px; color: #93b4ff; }
.li.log-row { align-items: flex-start; }
.li.log-row .t b { white-space: pre-line; overflow: visible; font-weight: 600; font-size: 13px; line-height: 1.95; }
@media (max-width: 640px) { .copy-row .big { font-size: 16px; letter-spacing: .03em; white-space: nowrap; } .steps .step { min-width: calc(50% - 5px); } }

/* ---------- type colors ---------- */
.tpl-ic.tc { color: #fff; background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .28), inset -5px -7px 14px rgba(0, 0, 0, .32), 0 12px 26px -10px rgba(var(--rgb), .75); }
.tpl-ic.tc svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.tpl-ic.sm { width: 38px; height: 38px; border-radius: 13px; }
.tpl-ic.sm svg { width: 19px; height: 19px; }

/* ---------- wizard ---------- */
.wiz-rail { --c1: #4f8cff; --c2: #1d4ed8; --rgb: 79, 140, 255; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 10px 14px; margin-bottom: 14px; }
.wiz-track { position: absolute; top: 36px; right: 12.5%; left: 12.5%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.wiz-track i { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 4px; background: linear-gradient(270deg, var(--c1), var(--c2)); box-shadow: 0 0 14px rgba(var(--rgb), .8); transition: width .6s var(--ease); }
.wiz-step { display: grid; justify-items: center; gap: 8px; position: relative; z-index: 1; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.wiz-step .sn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; background: var(--clay-bg);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .07), inset -3px -4px 8px rgba(0, 0, 0, .5), 0 0 0 5px rgba(5, 9, 18, .9); transition: all .4s var(--ease); }
.wiz-step .sn svg { width: 18px; height: 18px; }
.wiz-step.on { color: #fff; }
.wiz-step.on .sn, .wiz-step.done .sn { color: #fff; background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .25), 0 0 0 5px rgba(5, 9, 18, .9), 0 8px 22px -6px rgba(var(--rgb), .8); }
.wiz-step.on .sn { transform: scale(1.12); }
.wiz-ctx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: 18px; font-size: 14px;
  background: linear-gradient(90deg, rgba(var(--rgb), .16), rgba(var(--rgb), .02)); border: 1px solid rgba(var(--rgb), .3); }
.wiz-ctx .dotsep { width: 5px; height: 5px; border-radius: 50%; background: rgba(var(--rgb), .8); }
.wiz-ctx .wiz-price { margin-right: auto; }
.wiz-title { margin: 6px 0 18px; }
.wiz-title h2 { margin: 0; font-size: 22px; background: linear-gradient(180deg, #fff, #b9c5da); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wiz-title p { margin: 4px 0 0; }

.tcard2, .plan2 { position: relative; overflow: hidden; padding: 20px; display: grid; gap: 12px; align-content: start; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.tcard2 .tc-glow, .plan2::before { content: ""; position: absolute; inset: auto -30% 55% -30%; height: 220px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--rgb), .32), transparent); opacity: .7; transition: opacity .4s; }
.plan2::before { inset: -120px -30% auto; }
.tcard2:hover, .plan2:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(var(--rgb), .55); }
.tcard2:hover .tc-glow { opacity: 1; }
.tcard2.on, .plan2.on { box-shadow: 0 0 0 2px rgba(var(--rgb), .9), 0 30px 60px -20px rgba(var(--rgb), .6); }
.tcard2 h4, .plan2 h4 { margin: 0; font-size: 17px; }
.tc-price { font-size: 12.5px; font-weight: 700; color: var(--c1); }
.tc-desc { margin: 0; font-size: 13px; line-height: 1.95; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-chips span { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; color: var(--c1); background: rgba(var(--rgb), .12); border: 1px solid rgba(var(--rgb), .25); }
.tc-go { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; margin-top: 4px; border-radius: 14px; font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, rgba(var(--rgb), .28), rgba(var(--rgb), .06)); border: 1px solid rgba(var(--rgb), .35); transition: all .3s var(--ease); }
.tc-go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.tcard2:hover .tc-go, .plan2:hover .tc-go, .tcard2.on .tc-go, .plan2.on .tc-go { background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 10px 24px -10px rgba(var(--rgb), .9); }
.tcard2:hover .tc-go svg, .plan2:hover .tc-go svg { transform: translateX(-4px); }
.pl-head { display: flex; gap: 12px; align-items: center; }
.pl-head .muted { font-size: 12px; }
.pl-ic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .28), inset -5px -7px 14px rgba(0, 0, 0, .3), 0 12px 24px -10px rgba(var(--rgb), .75); }
.pl-ic svg { width: 22px; height: 22px; }
.pl-price { font-size: 30px; font-weight: 900; background: linear-gradient(180deg, #fff, var(--c1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-price small { font-size: 13px; -webkit-text-fill-color: var(--muted); font-weight: 600; }
.plan2 .feat li svg { color: var(--c1); }
.plan2 .feat li.no svg { color: #5d6880; }
.plan2.hot { box-shadow: 0 0 0 1px rgba(var(--rgb), .55), 0 30px 60px -24px rgba(var(--rgb), .5); }
.ribbon { position: absolute; top: 14px; left: -34px; transform: rotate(-45deg); padding: 4px 40px; font-size: 11px; font-weight: 800; color: #1a1200;
  background: linear-gradient(90deg, var(--c1), var(--c2)); display: flex; gap: 4px; align-items: center; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.ribbon svg { width: 12px; height: 12px; }
@media (max-width: 640px) {
  .wiz-step .sl { font-size: 11px; }
  .wiz-step .sn { width: 34px; height: 34px; border-radius: 12px; }
  .wiz-track { top: 33px; }
  .wiz-title h2 { font-size: 19px; }
  .pl-price { font-size: 26px; }
}
@media (max-width: 1280px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .toolbar > * { flex: 1 1 100%; min-width: 0; }
  .toolbar .select, .toolbar .input { width: 100%; }
  .toolbar .chips { flex-wrap: wrap; }
  .toolbar .tabs { justify-content: center; }
  .detail-head .acts .btn { flex: 1 1 auto; }
  .hero-card h2 { font-size: 21px; }
  .wallet-card .wb { font-size: 24px; }
}
.span3 { grid-column: 1 / -1; }
.dev-thumb { width: 180px; height: 180px; margin: 0 auto; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #3c6fe6, #0d1a40 70%); box-shadow: 0 0 0 3px rgba(150, 175, 230, .35), 0 20px 50px -16px rgba(47, 107, 255, .7); }
.dev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dev-thumb span { font-size: 70px; font-weight: 900; color: #e6ebf5; }
.proj-edit { padding: 16px; border-radius: 18px; }
@media (max-width: 1000px) { .span3 { grid-column: auto; } }

.copy-line { text-align: center; color: var(--muted); font-size: 12px; margin-top: 30px; }
.copy-line b { color: var(--text-2); }

/* ---------- smooth wizard ---------- */
button.tcard2, button.plan2 { width: 100%; text-align: inherit; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.tcard2:active, .plan2:active { transform: scale(.985); }
.pick-check { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; z-index: 2;
  background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 6px 16px -4px rgba(var(--rgb), .8); transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.pick-check svg { width: 16px; height: 16px; }
.tcard2.on .pick-check, .plan2.on .pick-check { transform: scale(1); }
.plan2 .pick-check { top: 52px; }
.grid.one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.wiz-ctx { display: none; }
.wiz-ctx.show { display: flex; animation: fadeUp .4s var(--ease) both; }
.wiz-step.can { cursor: pointer; }
.wiz-step.can:hover .sn { transform: translateY(-2px); }
.wiz-step .sn { transition: transform .35s var(--ease), background .4s, box-shadow .4s; }
#wiz-body { will-change: transform, opacity; }
.bf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--text-2); font-size: 14px; }
.bf-steps li { display: flex; gap: 10px; align-items: center; }
.bf-steps li > span:first-child { width: 28px; height: 28px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--blue-3);
  background: var(--clay-bg); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .06), inset -3px -4px 8px rgba(0, 0, 0, .45); }
.tk-wrap { position: relative; }
.tk-wrap .input { padding-left: 46px; font-size: 14px; }
.tk-state { position: absolute; left: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; display: grid; place-items: center; transition: all .3s; }
.tk-state svg { width: 14px; height: 14px; }
.tk-state.busy { border: 2px solid rgba(96, 165, 250, .25); border-top-color: #60a5fa; animation: spin .8s linear infinite; }
.tk-state.ok { background: #16a34a; color: #fff; box-shadow: 0 0 14px rgba(34, 197, 94, .6); animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }
.tk-state.bad { background: #e11d48; color: #fff; animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }
.pop { animation: popIn .45s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.dc-msg { font-size: 12.5px; margin-top: 8px; min-height: 1em; }
.dc-msg.ok { color: #4ade80; } .dc-msg.bad { color: #fb7185; }
.ready-card { display: grid; align-content: center; gap: 14px; text-align: center; }
.drop.has { border-style: solid; border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .05); }
.summary .row b, .summary .tot span:last-child { transition: color .3s; }
@media (max-width: 640px) {
  .pick-check { top: 10px; left: 10px; }
  .wiz-ctx { font-size: 13px; }
}

/* ---------- assistant ---------- */
.as { display: grid; gap: 14px; }
.as-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.as-head h2 { margin: 0; font-size: 20px; background: linear-gradient(180deg, #fff, #b9c5da); -webkit-background-clip: text; background-clip: text; color: transparent; }
.as-head p { margin: 2px 0 0; font-size: 13px; }
.as-orb { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative;
  background: conic-gradient(from 0deg, #2f6bff, #8b5cf6, #22d3ee, #2f6bff); animation: spin 6s linear infinite; box-shadow: 0 0 30px rgba(47, 107, 255, .55); }
.as-orb::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3b5fd6, #0b1430 70%); }
.as-orb svg { position: relative; z-index: 1; width: 24px; height: 24px; animation: spin 6s linear infinite reverse; }
.as-orb.big { width: 86px; height: 86px; }
.as-orb.big svg { width: 36px; height: 36px; }
.as-bots { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.as-bot { --c1: #4f8cff; --rgb: 79, 140, 255; display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 12px 6px 8px; border-radius: 16px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--text-2); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: all .25s var(--ease); }
.as-bot > svg { width: 18px; height: 18px; margin: 0 4px; }
.as-bot:hover { border-color: rgba(var(--rgb), .5); color: #fff; }
.as-bot.on { color: #fff; background: linear-gradient(90deg, rgba(var(--rgb), .28), rgba(var(--rgb), .08)); border-color: rgba(var(--rgb), .7); box-shadow: 0 8px 22px -10px rgba(var(--rgb), .8); }
.as-chat { min-height: 52vh; max-height: 62vh; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.as-empty { margin: auto; text-align: center; display: grid; justify-items: center; gap: 8px; max-width: 560px; }
.as-empty h3 { margin: 10px 0 0; font-size: 20px; }
.as-sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.as-sugg.small { justify-content: flex-start; }
.as-sugg .chip { height: auto; min-height: 36px; padding: 6px 14px; white-space: normal; text-align: right; line-height: 1.6; }
.as-msg.me { align-self: flex-start; max-width: 78%; padding: 10px 16px; border-radius: 18px 18px 18px 6px; color: #fff; background: var(--clay-blue); box-shadow: var(--clay-blue-shadow); white-space: pre-wrap; }
.as-msg.ai { display: flex; gap: 12px; align-items: flex-start; max-width: 100%; }
.as-av { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #8b5cf6, #2f6bff); box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .7); }
.as-av svg { width: 18px; height: 18px; }
.as-body { flex: 1; min-width: 0; display: grid; gap: 12px; }
.as-body > p { margin: 0; line-height: 2; color: var(--text); }
.as-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.as-tips li { display: flex; gap: 8px; align-items: flex-start; }
.as-tips .ico { margin-top: 5px; }
.typing .dots { display: flex; gap: 5px; padding: 8px 0 2px; }
.typing .dots i { width: 8px; height: 8px; border-radius: 50%; background: #93b4ff; animation: bounce 1.2s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .15s; } .typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
.as-composer { display: flex; gap: 10px; align-items: flex-end; padding: 10px; position: sticky; bottom: 12px; z-index: 5; }
.as-composer .textarea { min-height: 50px; max-height: 140px; resize: none; }

.route { padding: 16px; border-radius: 20px; display: grid; gap: 14px; background: linear-gradient(160deg, rgba(47, 107, 255, .12), rgba(12, 18, 32, .3)); border: 1px solid rgba(96, 165, 250, .25); }
.rt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rt-head b { font-size: 15px; }
.rt-head .badge svg { margin-left: 2px; }
.rt-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--clay-blue); box-shadow: var(--clay-blue-shadow); }
.rt-ic svg { width: 16px; height: 16px; }
.rt-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rt-arrow { color: #5d7bb8; display: grid; }
.rt-arrow svg { width: 16px; height: 16px; }
.rt-cmd { display: grid; gap: 2px; padding: 6px 12px; border-radius: 12px; background: #0e1621; border: 1px solid rgba(96, 165, 250, .35); }
.rt-cmd small { font-size: 10px; color: var(--muted); }
.rt-cmd b { color: #7eb6ff; font-size: 14px; }
.rt-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: #e8f0ff;
  background: rgba(118, 147, 199, .18); border: 1px solid rgba(160, 190, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: rtTap 4.8s infinite; animation-delay: calc(var(--i) * .6s); }
.rt-btn em { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(47, 107, 255, .5); }
.rt-btn.web { text-decoration: none; }
@keyframes rtTap { 0%, 14%, 100% { background: rgba(118, 147, 199, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
  6% { background: rgba(47, 107, 255, .55); box-shadow: 0 0 0 3px rgba(47, 107, 255, .35), 0 0 24px rgba(47, 107, 255, .6); } }
.rt-then { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.rt-then .ico { margin-top: 4px; }
.rt-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.tour-modal { width: min(820px, 100%) !important; }
.tour { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: center; }
.tour-n { font-size: 12px; font-weight: 800; color: var(--blue-3); }
.tour h3 { margin: 6px 0; font-size: 20px; line-height: 1.6; }
.tour-dots { display: flex; gap: 6px; margin: 16px 0; }
.tour-dots i { width: 26px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); transition: all .3s; }
.tour-dots i.done { background: rgba(47, 107, 255, .6); }
.tour-dots i.on { background: linear-gradient(90deg, #60a5fa, #2f6bff); box-shadow: 0 0 10px rgba(47, 107, 255, .8); width: 40px; }
.phone { border-radius: 30px; padding: 10px; background: linear-gradient(160deg, #1b2335, #0a0f1a); box-shadow: 0 0 0 2px rgba(160, 180, 220, .15), 0 30px 70px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ph-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ph-top b { display: block; font-size: 13px; direction: ltr; text-align: right; }
.ph-top small { color: var(--muted); font-size: 11px; }
.ph-body { min-height: 360px; max-height: 440px; overflow: hidden; padding: 12px 8px; border-radius: 0 0 22px 22px; display: flex; flex-direction: column; gap: 8px;
  background: #0e1621 radial-gradient(circle at 20% 20%, rgba(47, 107, 255, .08), transparent 50%); }
.tg-me { align-self: flex-start; max-width: 80%; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: #2b5278; color: #fff; font-size: 13px; }
.tg-me.ghost { opacity: .55; font-size: 12px; }
.tg-msg { align-self: flex-end; max-width: 92%; padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: #182533; color: #e6ebf5; font-size: 12.5px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  max-height: 210px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.tg-kbd { display: grid; gap: 4px; align-self: stretch; }
.tg-row { display: flex; gap: 4px; }
.tg-kb { position: relative; flex: 1; min-width: 0; padding: 7px 6px; border-radius: 8px; text-align: center; font-size: 11.5px; color: #fff; background: rgba(90, 120, 160, .35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-kb.hit { overflow: visible; background: linear-gradient(150deg, #4f8cff, #1d4ed8); box-shadow: 0 0 0 2px #93b4ff, 0 0 22px rgba(47, 107, 255, .9); animation: hitPulse 1.4s ease-in-out infinite; z-index: 1; }
@keyframes hitPulse { 50% { box-shadow: 0 0 0 5px rgba(147, 180, 255, .35), 0 0 28px rgba(47, 107, 255, 1); } }
.tg-kb .tap { position: absolute; left: 50%; bottom: -16px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); animation: tapMove 1.4s ease-in-out infinite; }
.tg-kb .tap svg { width: 22px; height: 22px; }
@keyframes tapMove { 0%, 100% { transform: translate(-30%, 4px); } 50% { transform: translate(-30%, -2px) scale(.92); } }
@media (max-width: 760px) {
  .tour { grid-template-columns: 1fr; }
  .phone { max-width: 340px; margin: 0 auto; width: 100%; }
  .as-chat { max-height: none; min-height: 55vh; padding: 14px; }
  .as-msg.me { max-width: 92%; }
  .as-head { padding: 14px; }
  .as-composer { bottom: 92px; }
}
@media (max-width: 760px) { .as-chat { padding-bottom: 90px; } }
.dev-thumb:has(img) { width: 190px; height: auto; border-radius: 22px; background: none; }
.dev-thumb img { width: 100%; height: auto; display: block; }
@media (max-width: 1000px) {
  body.nav-open .side { z-index: 60; }
  body.nav-open .nav-backdrop { z-index: 55; }
  body.nav-open .tabbar { opacity: 0; pointer-events: none; transform: translateY(20px); }
  .tabbar { transition: opacity .25s, transform .25s; }
}
@media (max-width: 1000px) {
  body.has-tabbar .to-top { bottom: 100px; }
  body.nav-open .to-top { opacity: 0; pointer-events: none; }
}
